earthsdk3-ue 3.0.6 → 3.0.7-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/earthsdk3-ue.iife.js +359 -0
- package/dist/earthsdk3-ue.js +5112 -16627
- package/dist/earthsdk3-ue.umd.cjs +21 -0
- package/dist/types/ESUeViewer/ESUeViewer.d.ts +537 -536
- package/dist/types/ESUeViewer/ESUeViewer.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/ESMsgWebSocketWrapper.d.ts +16 -15
- package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/ESMsgWebSocketWrapper.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/PSUEViewer.d.ts +38 -40
- package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/PSUEViewer.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/PSUEViewerWrapper.d.ts +21 -19
- package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/PSUEViewerWrapper.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/dataFormats.d.ts +66 -65
- package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/dataFormats.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/index.d.ts +50 -49
- package/dist/types/ESUeViewer/Viewers/CSTMPSViewer/index.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/H5Viewer/DLViewer.d.ts +25 -24
- package/dist/types/ESUeViewer/Viewers/H5Viewer/DLViewer.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/H5Viewer/ViewerH5Instance.d.ts +7 -6
- package/dist/types/ESUeViewer/Viewers/H5Viewer/ViewerH5Instance.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/H5Viewer/data.d.ts +2 -1
- package/dist/types/ESUeViewer/Viewers/H5Viewer/data.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/H5Viewer/index.d.ts +42 -41
- package/dist/types/ESUeViewer/Viewers/H5Viewer/index.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/H5Viewer/utils.d.ts +6 -5
- package/dist/types/ESUeViewer/Viewers/H5Viewer/utils.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/INNPSViewer/WebRtcManager.d.ts +36 -35
- package/dist/types/ESUeViewer/Viewers/INNPSViewer/WebRtcManager.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/INNPSViewer/WebRtcManagerWrapper.d.ts +21 -20
- package/dist/types/ESUeViewer/Viewers/INNPSViewer/WebRtcManagerWrapper.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/INNPSViewer/createMsgInput.d.ts +4 -3
- package/dist/types/ESUeViewer/Viewers/INNPSViewer/createMsgInput.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/INNPSViewer/index.d.ts +44 -43
- package/dist/types/ESUeViewer/Viewers/INNPSViewer/index.d.ts.map +1 -0
- package/dist/types/ESUeViewer/Viewers/index.d.ts +4 -3
- package/dist/types/ESUeViewer/Viewers/index.d.ts.map +1 -0
- package/dist/types/ESUeViewer/index.d.ts +3 -2
- package/dist/types/ESUeViewer/index.d.ts.map +1 -0
- package/dist/types/ESUeViewer/inner/ReactProps.d.ts +106 -105
- package/dist/types/ESUeViewer/inner/ReactProps.d.ts.map +1 -0
- package/dist/types/ESUeViewer/inner/UeLocalViewer.d.ts +19 -18
- package/dist/types/ESUeViewer/inner/UeLocalViewer.d.ts.map +1 -0
- package/dist/types/ESUeViewer/inner/ViewerCreating.d.ts +8 -7
- package/dist/types/ESUeViewer/inner/ViewerCreating.d.ts.map +1 -0
- package/dist/types/ESUeViewer/inner/ViewerInstance.d.ts +7 -6
- package/dist/types/ESUeViewer/inner/ViewerInstance.d.ts.map +1 -0
- package/dist/types/ESUeViewer/inner/ViewerLocalInstance.d.ts +7 -6
- package/dist/types/ESUeViewer/inner/ViewerLocalInstance.d.ts.map +1 -0
- package/dist/types/ESUeViewer/uemsg/CallUeFuncs.d.ts +192 -191
- package/dist/types/ESUeViewer/uemsg/CallUeFuncs.d.ts.map +1 -0
- package/dist/types/ESUeViewer/uemsg/UeCloudViewerBase.d.ts +8 -7
- package/dist/types/ESUeViewer/uemsg/UeCloudViewerBase.d.ts.map +1 -0
- package/dist/types/ESUeViewer/uemsg/UeEventsType.d.ts +106 -105
- package/dist/types/ESUeViewer/uemsg/UeEventsType.d.ts.map +1 -0
- package/dist/types/ESUeViewer/uemsg/UeFuncsType.d.ts +929 -968
- package/dist/types/ESUeViewer/uemsg/UeFuncsType.d.ts.map +1 -0
- package/dist/types/ESUeViewer/uemsg/UeMessage.d.ts +42 -41
- package/dist/types/ESUeViewer/uemsg/UeMessage.d.ts.map +1 -0
- package/dist/types/ESUeViewer/uemsg/index.d.ts +6 -5
- package/dist/types/ESUeViewer/uemsg/index.d.ts.map +1 -0
- package/dist/types/UeObjects/base/UeESGeoVector/index.d.ts +30 -29
- package/dist/types/UeObjects/base/UeESGeoVector/index.d.ts.map +1 -0
- package/dist/types/UeObjects/base/UeESLabel/index.d.ts +7 -6
- package/dist/types/UeObjects/base/UeESLabel/index.d.ts.map +1 -0
- package/dist/types/UeObjects/base/UeESLocalVector/index.d.ts +30 -29
- package/dist/types/UeObjects/base/UeESLocalVector/index.d.ts.map +1 -0
- package/dist/types/UeObjects/base/UeESLocalVector2D/index.d.ts +7 -6
- package/dist/types/UeObjects/base/UeESLocalVector2D/index.d.ts.map +1 -0
- package/dist/types/UeObjects/base/UeESObjectWithLocation/index.d.ts +7 -6
- package/dist/types/UeObjects/base/UeESObjectWithLocation/index.d.ts.map +1 -0
- package/dist/types/UeObjects/base/UeESObjectWithLocation/types.d.ts +30 -29
- package/dist/types/UeObjects/base/UeESObjectWithLocation/types.d.ts.map +1 -0
- package/dist/types/UeObjects/base/UeESSceneObject/index.d.ts +11 -10
- package/dist/types/UeObjects/base/UeESSceneObject/index.d.ts.map +1 -0
- package/dist/types/UeObjects/base/UeESSceneObject/types.d.ts +4 -3
- package/dist/types/UeObjects/base/UeESSceneObject/types.d.ts.map +1 -0
- package/dist/types/UeObjects/base/UeESVisualObject/index.d.ts +7 -6
- package/dist/types/UeObjects/base/UeESVisualObject/index.d.ts.map +1 -0
- package/dist/types/UeObjects/base/index.d.ts +8 -7
- package/dist/types/UeObjects/base/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeES3DTileset/index.d.ts +13 -12
- package/dist/types/UeObjects/general/UeES3DTileset/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESAlarm/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESAlarm/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESApertureEffect/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESApertureEffect/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESAreaMeasurement/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESAreaMeasurement/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESBlastParticleSystem/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESBlastParticleSystem/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESBoxClipping/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESBoxClipping/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESCameraView/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESCameraView/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESCameraVisibleRange/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESCameraVisibleRange/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESCar/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESCar/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESClassification/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESClassification/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESClippingPlane/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESClippingPlane/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESDataMesh/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESDataMesh/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESDatasmithRuntimeModel/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESDatasmithRuntimeModel/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESDirectionMeasurement/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESDirectionMeasurement/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESDistanceMeasurement/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESDistanceMeasurement/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESDynamicWater/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESDynamicWater/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESEntityCluster/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESEntityCluster/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESExcavate/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESExcavate/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESFireParticleSystem/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESFireParticleSystem/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESForestTileset/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESForestTileset/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESGaussianSplatting/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESGaussianSplatting/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESGeoDiv/index.d.ts +9 -8
- package/dist/types/UeObjects/general/UeESGeoDiv/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESGeoExtrudedPolygon/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESGeoExtrudedPolygon/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESGeoJson/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESGeoJson/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESGeoLineString/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESGeoLineString/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESGeoPolygon/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESGeoPolygon/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESGeoRectangle/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESGeoRectangle/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESGeoWater/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESGeoWater/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESGltfModel/index.d.ts +16 -15
- package/dist/types/UeObjects/general/UeESGltfModel/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESHeightMeasurement/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESHeightMeasurement/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESHuman/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESHuman/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESHumanPoi/index.d.ts +7 -6
- package/dist/types/UeObjects/general/UeESHumanPoi/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESImageLabel/index.d.ts +12 -11
- package/dist/types/UeObjects/general/UeESImageLabel/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESImageryLayer/index.d.ts +7 -6
- package/dist/types/UeObjects/general/UeESImageryLayer/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESLevelRuntimeModel/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESLevelRuntimeModel/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESLocalCircle/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESLocalCircle/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESLocalPolygon/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESLocalPolygon/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESLocalPolygonZ/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESLocalPolygonZ/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESLocalRectangle/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESLocalRectangle/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESLocalSkyBox/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESLocalSkyBox/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESLocationMeasurement/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESLocationMeasurement/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESMsTileset/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESMsTileset/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESNavigator/index.d.ts +7 -6
- package/dist/types/UeObjects/general/UeESNavigator/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPath/index.d.ts +33 -32
- package/dist/types/UeObjects/general/UeESPath/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPipeFence/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESPipeFence/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPipeline/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESPipeline/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPipeserTileset/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESPipeserTileset/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPit/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESPit/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPoi2D/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESPoi2D/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPoi3D/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESPoi3D/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPoiTileset/index.d.ts +12 -11
- package/dist/types/UeObjects/general/UeESPoiTileset/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPolygonFence/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESPolygonFence/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPolygonFlattenedPlane/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESPolygonFlattenedPlane/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESPolygonWithHole/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESPolygonWithHole/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESRtsFeatureEditing/index.d.ts +10 -9
- package/dist/types/UeObjects/general/UeESRtsFeatureEditing/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESRtsTileset/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESRtsTileset/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESSeparateFoliage/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESSeparateFoliage/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESStaticMesh/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESStaticMesh/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESSubmergingAnalysis/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESSubmergingAnalysis/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESSunshineAnalysis/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESSunshineAnalysis/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESSurfaceAreaMeasurement/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESSurfaceAreaMeasurement/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESTerrainLayer/index.d.ts +14 -13
- package/dist/types/UeObjects/general/UeESTerrainLayer/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESTextLabel/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESTextLabel/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESUEWidget/index.d.ts +11 -10
- package/dist/types/UeObjects/general/UeESUEWidget/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESUnrealActor/index.d.ts +7 -6
- package/dist/types/UeObjects/general/UeESUnrealActor/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESUnrealActor/tipInfo.d.ts +3 -2
- package/dist/types/UeObjects/general/UeESUnrealActor/tipInfo.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESVideoFusion/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESVideoFusion/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESViewShed/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESViewShed/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESViewerStatusBar/index.d.ts +7 -6
- package/dist/types/UeObjects/general/UeESViewerStatusBar/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESVisibilityAnalysis/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESVisibilityAnalysis/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESVolumeMeasurement/index.d.ts +8 -7
- package/dist/types/UeObjects/general/UeESVolumeMeasurement/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/UeESWidget/index.d.ts +11 -10
- package/dist/types/UeObjects/general/UeESWidget/index.d.ts.map +1 -0
- package/dist/types/UeObjects/general/index.d.ts +72 -71
- package/dist/types/UeObjects/general/index.d.ts.map +1 -0
- package/dist/types/UeObjects/index.d.ts +3 -2
- package/dist/types/UeObjects/index.d.ts.map +1 -0
- package/dist/types/copyright.d.ts +14 -13
- package/dist/types/copyright.d.ts.map +1 -0
- package/dist/types/index.d.ts +4 -3
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +30 -20
- package/dist/earthsdk3-ue.cjs +0 -16732
- package/dist/earthsdk3-ue.mjs +0 -16866
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
var EarthSDK3_UE=function(z,j){"use strict";var Oy=Object.defineProperty;var My=(z,j,rt)=>j in z?Oy(z,j,{enumerable:!0,configurable:!0,writable:!0,value:rt}):z[j]=rt;var J=(z,j,rt)=>My(z,typeof j!="symbol"?j+"":j,rt);var rt={exports:{}};/*! For license information please see xbsj-base.js.LICENSE.txt */var Du=rt.exports,Es;function Ru(){return Es||(Es=1,function(v,e){(function(t,o){v.exports=o()})(Du,()=>(()=>{var t={109:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)}),w=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l};Object.defineProperty(A,"__esModule",{value:!0}),A.DebouncingDeprecated=void 0;var p=h(6891),u=h(1662),f=function(c){function a(n){n===void 0&&(n=300);var s=c.call(this,function(r){var i=r.progressFunc,l=(r.completeFunc,r.errorFunc,w((0,u.debounce)(function(){if(!s._lastDebounceValue)throw new Error("!this._lastDebounceValue");i([s._lastDebounceValue,s._debouncTimes]),s._debouncTimes=0},s._delayTime),2)),d=l[0],C=l[1];return s._d=d,function(){C()}})||this;return s._delayTime=n,s._debouncTimes=0,s}return g(a,c),Object.defineProperty(a.prototype,"delayTime",{get:function(){return this._delayTime},enumerable:!1,configurable:!0}),a.prototype.debounce=function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];this.isRunning?(++this._debouncTimes,this._lastDebounceValue=n,this._d&&this._d()):console.warn("Debouncing is not running!")},a}(p.ProcessingDeprecated);A.DebouncingDeprecated=f},146:function(B,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(C[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function C(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),w=this&&this.__read||function(l,d){var C=typeof Symbol=="function"&&l[Symbol.iterator];if(!C)return l;var _,b,E=C.call(l),F=[];try{for(;(d===void 0||d-- >0)&&!(_=E.next()).done;)F.push(_.value)}catch(S){b={error:S}}finally{try{_&&!_.done&&(C=E.return)&&C.call(E)}finally{if(b)throw b.error}}return F};Object.defineProperty(A,"__esModule",{value:!0}),A.SceneObjectWithId=A.SceneObjectIdWatching=A.getSceneObjectReactFromId=A.SceneObjectFromId=void 0;var p=h(1662),u=h(2220),f=h(7372),c=h(3815),a=function(l){function d(C){var _=l.call(this)||this;_._id=C,_._sceneObject=_.disposeVar((0,f.react)(void 0)),_.dispose(function(){_._sceneObject.value=void 0});var b=u.SceneObject.getSceneObjById(_._id);return b&&(_._sceneObject.value=b),_.dispose(u.SceneObject.context.sceneObjCreatedEvent.disposableOn(function(E){E.id===_._id&&(_._sceneObject.value=E)})),_.dispose(u.SceneObject.context.sceneObjToDestroyEvent.disposableOn(function(E){E.id===_._id&&(_._sceneObject.value=void 0)})),_}return g(d,l),Object.defineProperty(d.prototype,"sceneObject",{get:function(){return this._sceneObject.value},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),d}(f.Destroyable);function n(l){var d=w((0,p.getReactFuncs)(l),3),C=d[0],_=(d[1],d[2]),b=(0,f.react)(void 0);return b.disposeVar(new c.ObjResettingWithEvent(_,function(){var E=C();if(E){var F=new a(E),S=function(){b.value=F.sceneObject};return S(),F.dispose(F.sceneObjectChanged.disposableOn(S)),F}b.value=void 0})),b}A.SceneObjectFromId=a,A.getSceneObjectReactFromId=n;var s=function(l){function d(C,_){var b=l.call(this)||this,E=b.disposeVar(n(C));return b.disposeVar(new c.ObjResettingWithEvent(E.changed,function(){var F=E.value;if(F)return _(F)})),b}return g(d,l),d}(f.Destroyable);A.SceneObjectIdWatching=s;var r=function(l){function d(C,_){var b=l.call(this)||this;b._id=C,b._sofi=b.disposeVar(new a(b._id));var E=function(){_.sceneObject=b._sofi.sceneObject};return E(),b.dispose(b._sofi.sceneObjectChanged.disposableOn(E)),b}return g(d,l),d}(f.Destroyable),i=function(l){function d(){var C=l.call(this)||this;return C._id=C.disposeVar((0,f.react)(void 0)),C._sceneObject=C.disposeVar((0,f.react)(void 0)),C._resetting=C.disposeVar(new c.ObjResettingWithEvent(C.idChanged,function(){var _=C.id;if(_!==void 0&&_!=="")return new r(_,C);C.sceneObject=void 0})),C}return g(d,l),Object.defineProperty(d.prototype,"id",{get:function(){return this._id.value},set:function(C){this._id.value=C},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"idChanged",{get:function(){return this._id.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"sceneObject",{get:function(){return this._sceneObject.value},set:function(C){this._sceneObject.value=C},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"sceneObjectChanged",{get:function(){return this._sceneObject.changed},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"resetting",{get:function(){return this._resetting},enumerable:!1,configurable:!0}),d}(f.Destroyable);A.SceneObjectWithId=i},172:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(6928),A),g(h(7445),A)},200:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.DivPoi=void 0;var w=h(7372),p=h(7372),u=h(7324),f=function(c){function a(n,s){var r=c.call(this)||this;return r._customDivClass=n,r._divContainer=s,r._show=!1,r.dispose(function(){r.show=!1}),r}return g(a,c),a.prototype._updateDivPoi=function(){if(this._show){var n=this.floatDiv;n.element.parentElement||this._divContainer.appendChild(n.element)}else{var s=this._floatDiv;s&&s.element.parentElement&&this._divContainer.removeChild(s.element)}},Object.defineProperty(a.prototype,"show",{get:function(){return this._show},set:function(n){this._show!==n&&(this._show=n,this._updateDivPoi(),this._showChanged&&this._showChanged.emit(n))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"floatDiv",{get:function(){var n=this;if(!this._floatDiv){var s=(0,u.getFloatDivPool)(this._customDivClass).create();this.dispose(function(){(0,u.getFloatDivPool)(n._customDivClass).destroy(s)}),this._floatDiv=s}return this._floatDiv},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"showChanged",{get:function(){return this._showChanged||(this._showChanged=new w.Event),this._showChanged},enumerable:!1,configurable:!0}),a}(p.Destroyable);A.DivPoi=f},312:(B,A)=>{var h;Object.defineProperty(A,"__esModule",{value:!0}),A.Intersect=void 0,(h=A.Intersect||(A.Intersect={})).OUTSIDE=-1,h.INTERSECTING=0,h.INSIDE=1},345:(B,A)=>{function h(m){var g=0|+m;if(g.toString()===m)return g}Object.defineProperty(A,"__esModule",{value:!0}),A.observeArray=void 0,A.observeArray=function(m,g){if(!Array.isArray(m))throw new Error("!Array.isArray(array)");return new Proxy(m,{set:function(w,p,u,f){var c=w;if(typeof p!="string")throw new Error("typeof key !== string");var a=h(p);if(a===void 0)return Reflect.set(c,p,u,f);if(a<0)throw new Error("n < 0 || n >= array.length");return!!g({type:c[a]===void 0?"insert":"update",index:a,oldValue:c[a],value:u})&&Reflect.set(w,p,u,f)},deleteProperty:function(w,p){var u=w;if(typeof p!="string")throw new Error("typeof key !== string");var f=h(p);if(f===void 0)return Reflect.deleteProperty(w,p);if(f<0||f>=u.length)throw new Error("n < 0 || n >= array.length");return!!g({type:"delete",index:f,oldValue:u[f],value:void 0})&&Reflect.deleteProperty(w,p)}})}},433:function(B,A){var h=this&&this.__read||function(g,w){var p=typeof Symbol=="function"&&g[Symbol.iterator];if(!p)return g;var u,f,c=p.call(g),a=[];try{for(;(w===void 0||w-- >0)&&!(u=c.next()).done;)a.push(u.value)}catch(n){f={error:n}}finally{try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(f)throw f.error}}return a},m=this&&this.__spreadArray||function(g,w,p){if(p||arguments.length===2)for(var u,f=0,c=w.length;f<c;f++)!u&&f in w||(u||(u=Array.prototype.slice.call(w,0,f)),u[f]=w[f]);return g.concat(u||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.magicStrToUint32=void 0,A.magicStrToUint32=function(g){if(g.length>4)throw new Error("getMagic error! str.length > 4");return function(w){return m([],h(w),!1).reverse().reduce(function(p,u){return(p<<=8)+u.codePointAt(0)},0)}(g)}},476:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.some=void 0;var m=h(6301);A.some=function(g,w){return(0,m.forEachWithBreak)(g,function(p,u){return w(p,u)})}},507:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A.PointerClickDeprecated=void 0;var p=h(109),u=h(7372),f=h(2299),c=h(7372),a=function(n){function s(r){var i=n.call(this)||this;i._clickEvent=new c.Event,i._dbclickEvent=new c.Event,i._downEvent=new c.Event,i._upEvent=new c.Event,i._moveEvent=new c.Event,i._debouncing=new p.DebouncingDeprecated(300),i.dispose(function(){i._clickEvent.destroy(),i._dbclickEvent.destroy(),i._downEvent.destroy(),i._upEvent.destroy(),i._moveEvent.destroy(),i._debouncing.destroy()});var l=!1,d=[0,0],C=!1;i._debouncing.progressFunc=function(S){var U=w(S,2),T=w(U[0],3),Q=T[0],P=T[1],I=T[2],M=U[1];M===1?i._clickEvent.emit(Q,P,I):M>=2?i._dbclickEvent.emit(Q,P,I):console.error("point click should not be here!")},i._debouncing.start(),i.dispose(function(){i._debouncing.isRunning&&i._debouncing.cancel(),i._debouncing.destroy()});var _=function(S){l=!0;var U=w((0,f.getDomEventCurrentTargetPos)(S),2),T=U[0],Q=U[1];d[0]=T,d[1]=Q,i._downEvent.emit(T,Q,S)},b=function(S){var U=w((0,f.getDomEventCurrentTargetPos)(S),2),T=U[0],Q=U[1];l&&!C&&i._debouncing.debounce(T,Q,S),l=!1,C=!1,i._upEvent.emit(T,Q,S)},E=function(S){var U=w((0,f.getDomEventCurrentTargetPos)(S),2),T=U[0],Q=U[1];if(l&&!C){var P=w(d,2),I=P[0],M=P[1];(Math.abs(T-I)>3||Math.abs(Q-M)>3)&&(C=!0)}i._moveEvent.emit(T,Q,S)},F=function(){l=!1,C=!1};return r.addEventListener("pointerdown",_),r.addEventListener("pointerup",b),r.addEventListener("pointermove",E),r.addEventListener("pointerout",F),i.dispose(function(){r.removeEventListener("pointerdown",_),r.removeEventListener("pointerup",b),r.removeEventListener("pointermove",E),r.removeEventListener("pointerout",F)}),i}return g(s,n),Object.defineProperty(s.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"downEvent",{get:function(){return this._downEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"upEvent",{get:function(){return this._upEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"moveEvent",{get:function(){return this._moveEvent},enumerable:!1,configurable:!0}),s}(u.Destroyable);A.PointerClickDeprecated=a},602:(B,A)=>{var h,m,g,w,p,u,f,c,a;Object.defineProperty(A,"__esModule",{value:!0}),A.Tween=void 0,(h=A.Tween||(A.Tween={})).Linear=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*n/i+s},(a=h.Quad||(h.Quad={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*(n/=i)*n+s},a.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),-r*(n/=i)*(n-2)+s},a.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i/2)<1?r/2*n*n+s:-r/2*(--n*(n-2)-1)+s},(c=h.Cubic||(h.Cubic={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*(n/=i)*n*n+s},c.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*((n=n/i-1)*n*n+1)+s},c.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i/2)<1?r/2*n*n*n+s:r/2*((n-=2)*n*n+2)+s},(f=h.Quart||(h.Quart={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*(n/=i)*n*n*n+s},f.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),-r*((n=n/i-1)*n*n*n-1)+s},f.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i/2)<1?r/2*n*n*n*n+s:-r/2*((n-=2)*n*n*n-2)+s},(u=h.Quint||(h.Quint={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*(n/=i)*n*n*n*n+s},u.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*((n=n/i-1)*n*n*n*n+1)+s},u.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i/2)<1?r/2*n*n*n*n*n+s:r/2*((n-=2)*n*n*n*n+2)+s},(p=h.Sine||(h.Sine={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),-r*Math.cos(n/i*(Math.PI/2))+r+s},p.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*Math.sin(n/i*(Math.PI/2))+s},p.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),-r/2*(Math.cos(Math.PI*n/i)-1)+s},(w=h.Expo||(h.Expo={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),n==0?s:r*Math.pow(2,10*(n/i-1))+s},w.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),n==i?s+r:r*(1-Math.pow(2,-10*n/i))+s},w.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),n==0?s:n==i?s+r:(n/=i/2)<1?r/2*Math.pow(2,10*(n-1))+s:r/2*(2-Math.pow(2,-10*--n))+s},(g=h.Circ||(h.Circ={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),-r*(Math.sqrt(1-(n/=i)*n)-1)+s},g.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r*Math.sqrt(1-(n=n/i-1)*n)+s},g.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i/2)<1?-r/2*(Math.sqrt(1-n*n)-1)+s:r/2*(Math.sqrt(1-(n-=2)*n)+1)+s},(m=h.Bounce||(h.Bounce={})).easeIn=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),r-h.Bounce.easeOut(i-n,0,r,i)+s},m.easeOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),(n/=i)<.36363636363636365?r*(7.5625*n*n)+s:n<.7272727272727273?r*(7.5625*(n-=.5454545454545454)*n+.75)+s:n<.9090909090909091?r*(7.5625*(n-=.8181818181818182)*n+.9375)+s:r*(7.5625*(n-=.9545454545454546)*n+.984375)+s},m.easeInOut=function(n,s,r,i){return s===void 0&&(s=0),r===void 0&&(r=1),i===void 0&&(i=1),n<i/2?.5*h.Bounce.easeIn(2*n,0,r,i)+s:.5*h.Bounce.easeOut(2*n-i,0,r,i)+.5*r+s}},643:function(B,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r},g=this&&this.__spreadArray||function(u,f,c){if(c||arguments.length===2)for(var a,n=0,s=f.length;n<s;n++)!a&&n in f||(a||(a=Array.prototype.slice.call(f,0,n)),a[n]=f[n]);return u.concat(a||Array.prototype.slice.call(f))};Object.defineProperty(A,"__esModule",{value:!0}),A.cancelableFetchDeprecated=void 0;var w=h(5726);function p(u,f){for(var c=[],a=2;a<arguments.length;a++)c[a-2]=arguments[a];var n=new AbortController,s=n.signal,r=m(c,2),i=r[0],l=r[1];if(l!=null&&l.signal)throw console.error("init?.signal"),new Error("init?.signal");(l=l||{}).signal=s;var d=!1;(0,w._executeSetCancelFuncOrCancelResult)(u,function(){d=!0,n.abort()});var C=fetch(i,l);return f&&(C=C.then(function(_){if(!_.ok)return _;if(!_.body)throw Error("ReadableStream not yet supported in this browser.");var b=_.headers.get("content-length"),E=b?parseInt(b,10):0,F=0;return new Response(new ReadableStream({start:function(S){if(!_.body)throw new Error("!response.body");var U=_.body.getReader();(function T(){U.read().then(function(Q){var P=Q.done,I=Q.value;if(P)S.close();else{if(!I)throw new Error("!value");if(!f)throw new Error("!progressFunc");F+=I.byteLength,f(F,E),S.enqueue(I),T()}}).catch(function(Q){S.error(Q)})})()}}),{status:_.status,statusText:_.statusText,headers:_.headers})}).catch(function(_){throw d?(_ instanceof Error&&_.code!==20&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new w.CancelError("fetching cancelled!")):(_ instanceof Error&&_.code===20&&console.error("error.code === 20"),_)})),C}A.cancelableFetchDeprecated=function(){for(var u=[],f=0;f<arguments.length;f++)u[f]=arguments[f];if(u.length>=1){if(typeof u[0]=="function"||u[0]===void 0){var c={},a=p.apply(void 0,g([c],m(u),!1)),n=c.cancelFunc;if(!n)throw new Error("!cancelResult.cancelFunc");return[n,a]}return p.apply(void 0,g([],m(u),!1))}throw new Error("cancelableFetch args error!")}},709:(B,A,h)=>{h.r(A),h.d(A,{Observable:()=>W});const m="insert",g="update",w="delete",p="reverse",u="shuffle",f=Symbol("observable-meta-key"),c={async:1},a={path:1,pathsOf:1,pathsFrom:1},n={[f]:{value:null},observe:{value:function(L,O){if(typeof L!="function")throw new Error(`observer MUST be a function, got '${L}'`);const H=this[f].observers;if(H.some(k=>k[0]===L))console.warn("observer may be bound to an observable only once; will NOT rebind");else{let k;k=O?function(G){const D={};if(G.path!==void 0){if(typeof G.path!="string"||G.path==="")throw new Error('"path" option, if/when provided, MUST be a non-empty string');D.path=G.path}if(G.pathsOf!==void 0){if(G.path)throw new Error('"pathsOf" option MAY NOT be specified together with "path" option');if(typeof G.pathsOf!="string")throw new Error('"pathsOf" option, if/when provided, MUST be a string (MAY be empty)');D.pathsOf=G.pathsOf.split(".").filter(N=>N)}if(G.pathsFrom!==void 0){if(G.path||G.pathsOf)throw new Error('"pathsFrom" option MAY NOT be specified together with "path"/"pathsOf" option/s');if(typeof G.pathsFrom!="string"||G.pathsFrom==="")throw new Error('"pathsFrom" option, if/when provided, MUST be a non-empty string');D.pathsFrom=G.pathsFrom}const R=Object.keys(G).filter(N=>!a.hasOwnProperty(N));if(R.length)throw new Error(`'${R.join(", ")}' is/are not a valid observer option/s`);return D}(O):{},H.push([L,k])}}},unobserve:{value:function(){const L=this[f].observers;let O=L.length;if(O){let H=arguments.length;if(H)for(;H--;){let k=O;for(;k--;)L[k][0]===arguments[H]&&(L.splice(k,1),O--)}else L.splice(0)}}}},s=function(L,O){n[f].value=O;const H=Object.defineProperties({},n);for(const k of Object.keys(L))H[k]=b(L[k],k,O);return H},r=function(L,O){let H=0,k=L.length;n[f].value=O;const G=Object.defineProperties(new Array(k),n);for(;H<k;H++)G[H]=b(L[H],H,O);return G},i=function(L,O){return n[f].value=O,Object.defineProperties(L,n),L},l=function(L,O){let H=O;if(L.path){const k=L.path;H=O.filter(G=>G.path.join(".")===k)}else if(L.pathsOf){const k=L.pathsOf;H=O.filter(G=>G.path.length===k.length+1||G.path.length===k.length&&(G.type===p||G.type===u))}else if(L.pathsFrom){const k=L.pathsFrom;H=O.filter(G=>G.path.join(".").startsWith(k))}return H},d=function(L,O){try{L(O)}catch(H){console.error(`failed to notify listener ${L} with ${O}`,H)}},C=function(){const L=this.batches;this.batches=null;for(const[O,H]of L)d(O,H)},_=function(L,O){let H,k,G,D,R,N,X,Y=L;const Z=O.length;do{for(H=Y.observers,R=H.length;R--;)if([k,G]=H[R],D=l(G,O),D.length)if(Y.options.async){Y.batches||(Y.batches=[],queueMicrotask(C.bind(Y)));let ae=Y.batches.find(me=>me[0]===k);ae||(ae=[k,[]],Y.batches.push(ae)),Array.prototype.push.apply(ae[1],D)}else d(k,D);let ie;if(Y.parent){ie=new Array(Z);for(let ae=0;ae<Z;ae++)X=O[ae],N=[Y.ownKey,...X.path],ie[ae]={type:X.type,path:N,value:X.value,oldValue:X.oldValue,object:X.object};O=ie,Y=Y.parent}else Y=null}while(Y)},b=function(L,O,H){return L&&typeof L=="object"?Array.isArray(L)?new M({target:L,ownKey:O,parent:H}).proxy:ArrayBuffer.isView(L)?new K({target:L,ownKey:O,parent:H}).proxy:L instanceof Date||L instanceof Blob||L instanceof Error?L:new I({target:L,ownKey:O,parent:H}).proxy:L},E=function(){const L=this[f],O=L.target;let H,k,G;for(O.reverse(),H=0,k=O.length;H<k;H++)if(G=O[H],G&&typeof G=="object"){const D=G[f];D&&(D.ownKey=H)}return _(L,[{type:p,path:[],object:this}]),this},F=function(L){const O=this[f],H=O.target;let k,G,D;for(H.sort(L),k=0,G=H.length;k<G;k++)if(D=H[k],D&&typeof D=="object"){const R=D[f];R&&(R.ownKey=k)}return _(O,[{type:u,path:[],object:this}]),this},S=function(L,O,H){const k=this[f],G=k.target,D=[],R=G.length,N=G.slice(0);if(O=O===void 0?0:O<0?Math.max(R+O,0):Math.min(O,R),H=H===void 0?R:H<0?Math.max(R+H,0):Math.min(H,R),O<R&&H>O){let X;G.fill(L,O,H);for(let Y,Z,ie=O;ie<H;ie++)Y=G[ie],G[ie]=b(Y,ie,k),N.hasOwnProperty(ie)?(Z=N[ie],Z&&typeof Z=="object"&&(X=Z[f],X&&(Z=X.detach())),D.push({type:g,path:[ie],value:G[ie],oldValue:Z,object:this})):D.push({type:m,path:[ie],value:G[ie],object:this});_(k,D)}return this},U=function(L,O,H){const k=this[f],G=k.target,D=G.length;L=L<0?Math.max(D+L,0):L,O=O===void 0?0:O<0?Math.max(D+O,0):Math.min(O,D),H=H===void 0?D:H<0?Math.max(D+H,0):Math.min(H,D);const R=Math.min(H-O,D-L);if(L<D&&L!==O&&R>0){const N=G.slice(0),X=[];G.copyWithin(L,O,H);for(let Y,Z,ie,ae=L;ae<L+R;ae++)Y=G[ae],Y&&typeof Y=="object"&&(Y=b(Y,ae,k),G[ae]=Y),Z=N[ae],Z&&typeof Z=="object"&&(ie=Z[f],ie&&(Z=ie.detach())),typeof Y!="object"&&Y===Z||X.push({type:g,path:[ae],value:Y,oldValue:Z,object:this});_(k,X)}return this},T={pop:function(){const L=this[f],O=L.target,H=O.length-1;let k=O.pop();if(k&&typeof k=="object"){const G=k[f];G&&(k=G.detach())}return _(L,[{type:w,path:[H],oldValue:k,object:this}]),k},push:function(){const L=this[f],O=L.target,H=arguments.length,k=new Array(H),G=O.length;for(let N=0;N<H;N++)k[N]=b(arguments[N],G+N,L);const D=Reflect.apply(O.push,O,k),R=[];for(let N=G,X=O.length;N<X;N++)R[N-G]={type:m,path:[N],value:O[N],object:this};return _(L,R),D},shift:function(){const L=this[f],O=L.target;let H,k,G,D,R;for(H=O.shift(),H&&typeof H=="object"&&(R=H[f],R&&(H=R.detach())),k=0,G=O.length;k<G;k++)D=O[k],D&&typeof D=="object"&&(R=D[f],R&&(R.ownKey=k));return _(L,[{type:w,path:[0],oldValue:H,object:this}]),H},unshift:function(){const L=this[f],O=L.target,H=arguments.length,k=new Array(H);for(let N=0;N<H;N++)k[N]=b(arguments[N],N,L);const G=Reflect.apply(O.unshift,O,k);for(let N,X=0,Y=O.length;X<Y;X++)if(N=O[X],N&&typeof N=="object"){const Z=N[f];Z&&(Z.ownKey=X)}const D=k.length,R=new Array(D);for(let N=0;N<D;N++)R[N]={type:m,path:[N],value:O[N],object:this};return _(L,R),G},reverse:E,sort:F,fill:S,copyWithin:U,splice:function(){const L=this[f],O=L.target,H=arguments.length,k=new Array(H),G=O.length;for(let se=0;se<H;se++)k[se]=b(arguments[se],se,L);const D=H===0?0:k[0]<0?G+k[0]:k[0],R=H<2?G-D:k[1],N=Math.max(H-2,0),X=Reflect.apply(O.splice,O,k),Y=O.length;let Z,ie,ae,me;for(let se,ye=0;ye<Y;ye++)se=O[ye],se&&typeof se=="object"&&(Z=se[f],Z&&(Z.ownKey=ye));for(ie=0,ae=X.length;ie<ae;ie++)me=X[ie],me&&typeof me=="object"&&(Z=me[f],Z&&(X[ie]=Z.detach()));const we=[];let re;for(re=0;re<R;re++)re<N?we.push({type:g,path:[D+re],value:O[D+re],oldValue:X[re],object:this}):we.push({type:w,path:[D+re],oldValue:X[re],object:this});for(;re<N;re++)we.push({type:m,path:[D+re],value:O[D+re],object:this});return _(L,we),X}},Q={reverse:E,sort:F,fill:S,copyWithin:U,set:function(L,O){const H=this[f],k=H.target,G=L.length,D=k.slice(0);O=O||0,k.set(L,O);const R=new Array(G);for(let N=O;N<G+O;N++)R[N-O]={type:g,path:[N],value:k[N],oldValue:D[N],object:this};_(H,R)}};class P{constructor(O,H){const{target:k,parent:G,ownKey:D}=O;G&&D!==void 0?(this.parent=G,this.ownKey=D):(this.parent=null,this.ownKey=null);const R=H(k,this);this.observers=[],this.revocable=Proxy.revocable(R,this),this.proxy=this.revocable.proxy,this.target=R,this.options=this.processOptions(O.options)}processOptions(O){if(O){if(typeof O!="object")throw new Error(`Observable options if/when provided, MAY only be an object, got '${O}'`);const H=Object.keys(O).filter(k=>!c.hasOwnProperty(k));if(H.length)throw new Error(`'${H.join(", ")}' is/are not a valid Observable option/s`);return Object.assign({},O)}return{}}detach(){return this.parent=null,this.target}set(O,H,k){let G=O[H];if(k!==G){const D=b(k,H,this);if(O[H]=D,G&&typeof G=="object"){const N=G[f];N&&(G=N.detach())}const R=G===void 0?[{type:m,path:[H],value:D,object:this.proxy}]:[{type:g,path:[H],value:D,oldValue:G,object:this.proxy}];_(this,R)}return!0}deleteProperty(O,H){let k=O[H];if(delete O[H],k&&typeof k=="object"){const D=k[f];D&&(k=D.detach())}const G=[{type:w,path:[H],oldValue:k,object:this.proxy}];return _(this,G),!0}}class I extends P{constructor(O){super(O,s)}}class M extends P{constructor(O){super(O,r)}get(O,H){return T.hasOwnProperty(H)?T[H]:O[H]}}class K extends P{constructor(O){super(O,i)}get(O,H){return Q.hasOwnProperty(H)?Q[H]:O[H]}}class W{constructor(){throw new Error('Observable MAY NOT be created via constructor, see "Observable.from" API')}static from(O,H){if(O&&typeof O=="object"){if(O[f])return O;if(Array.isArray(O))return new M({target:O,ownKey:null,parent:null,options:H}).proxy;if(ArrayBuffer.isView(O))return new K({target:O,ownKey:null,parent:null,options:H}).proxy;if(O instanceof Date||O instanceof Blob||O instanceof Error)throw new Error(`${O} found to be one of a on-observable types`);return new I({target:O,ownKey:null,parent:null,options:H}).proxy}throw new Error("observable MAY ONLY be created from a non-null object")}static isObservable(O){return!(!O||!O[f])}}Object.freeze(W)},723:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._inverseTransformation=void 0;var m=h(2731);A._inverseTransformation=function(g,w){var p=g[0],u=g[1],f=g[2],c=g[4],a=g[5],n=g[6],s=g[8],r=g[9],i=g[10],l=g[12],d=g[13],C=g[14],_=-p*l-u*d-f*C,b=-c*l-a*d-n*C,E=-s*l-r*d-i*C;return(w=w||(0,m.createNumbers)(16))[0]=p,w[1]=c,w[2]=s,w[3]=0,w[4]=u,w[5]=a,w[6]=r,w[7]=0,w[8]=f,w[9]=n,w[10]=i,w[11]=0,w[12]=_,w[13]=b,w[14]=E,w[15]=1,w}},733:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.readBits=A.readArray=A.readUnsigned=A.readString=A.peekBytes=A.readBytes=A.peekByte=A.readByte=A.buildStream=void 0,A.buildStream=function(m){return{data:m,pos:0}},A.readByte=function(){return function(m){return m.data[m.pos++]}},A.peekByte=function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return function(g){return g.data[g.pos+m]}};var h=function(m){return function(g){return g.data.subarray(g.pos,g.pos+=m)}};A.readBytes=h,A.peekBytes=function(m){return function(g){return g.data.subarray(g.pos,g.pos+m)}},A.readString=function(m){return function(g){return Array.from(h(m)(g)).map(function(w){return String.fromCharCode(w)}).join("")}},A.readUnsigned=function(m){return function(g){var w=h(2)(g);return m?(w[1]<<8)+w[0]:(w[0]<<8)+w[1]}},A.readArray=function(m,g){return function(w,p,u){for(var f=typeof g=="function"?g(w,p,u):g,c=h(m),a=new Array(f),n=0;n<f;n++)a[n]=c(w);return a}},A.readBits=function(m){return function(g){for(var w=function(f){return f.data[f.pos++]}(g),p=new Array(8),u=0;u<8;u++)p[7-u]=!!(w&1<<u);return Object.keys(m).reduce(function(f,c){var a=m[c];return a.length?f[c]=function(n,s,r){for(var i=0,l=0;l<r;l++)i+=n[s+l]&&Math.pow(2,r-l-1);return i}(p,a.index,a.length):f[c]=p[a.index],f},{})}}},773:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.defaultStartUpdateFunc=A.requestAnimationFrameTimeStampTest=void 0,A.requestAnimationFrameTimeStampTest=function(){return new Promise(function(h,m){var g=performance.now();requestAnimationFrame(function(w){return h(w>g)})})},A.defaultStartUpdateFunc=function(h){var m,g;return g=function(w){w=performance.now(),m=requestAnimationFrame(g),h(w)},m=requestAnimationFrame(g),function(){cancelAnimationFrame(m)}}},921:function(B,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var n,s,r=a.call(f),i=[];try{for(;(c===void 0||c-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i},g=this&&this.__spreadArray||function(f,c,a){if(a||arguments.length===2)for(var n,s=0,r=c.length;s<r;s++)!n&&s in c||(n||(n=Array.prototype.slice.call(c,0,s)),n[s]=c[s]);return f.concat(n||Array.prototype.slice.call(c))};Object.defineProperty(A,"__esModule",{value:!0}),A.createProcessingFromAsyncFuncWithStartValues=A.createProcessingFromAsyncFunc=A.asyncFuncToCancelablePromise=A.cancelFuncToCancelablePromise=A.createProcessingFromPromiseCreateFuncWithStartValues=A.createProcessingFromPromiseCreateFunc=void 0;var w=h(1101),p=h(1148),u=h(9651);A.createProcessingFromPromiseCreateFunc=function(f){return c=function(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];var s=f.apply(void 0,g([],m(a),!1));return(0,u.isPromiseCancelable)(s)?s:(0,u.createCancelablePromise)(s)},new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(a){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];return a.promise(c.apply(void 0,g([],m(n),!1)))}));var c},A.createProcessingFromPromiseCreateFuncWithStartValues=function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];return function(n){for(var s=[],r=1;r<arguments.length;r++)s[r-1]=arguments[r];return new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(i){return i.promise(n.apply(void 0,g([],m(s),!1)))}))}(function(){var n=f.apply(void 0,g([],m(c),!1));return(0,u.isPromiseCancelable)(n)?n:(0,u.createCancelablePromise)(n)})},A.cancelFuncToCancelablePromise=function(f){var c,a=new Promise(function(n,s){c=function(){f(),s()}});return(0,u.setPromiseCancel)(a,c),a},A.asyncFuncToCancelablePromise=function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];var n=new w.CancelsManager,s=f.apply(void 0,g([n],m(c),!1)).finally(function(){return n.destroy()});return(0,u.setPromiseCancel)(s,n.cancel.bind(n)),s},A.createProcessingFromAsyncFunc=function(f){return new p.Processing((0,p.createStartFuncFromAsyncFunc)(f))},A.createProcessingFromAsyncFuncWithStartValues=function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];return new p.Processing((0,p.createStartFuncFromAsyncFunc)(function(n){return f.apply(void 0,g([n],m(c),!1))}))}},985:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(8466),A),g(h(3983),A),g(h(6424),A)},1023:function(B,A,h){var m,g=this&&this.__extends||(m=function(r,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(l[C]=d[C])},m(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function l(){this.constructor=r}m(r,i),r.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),w=this&&this.__read||function(r,i){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,C,_=l.call(r),b=[];try{for(;(i===void 0||i-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){C={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(C)throw C.error}}return b};Object.defineProperty(A,"__esModule",{value:!0}),A.PickColorMananger=A.uint8sToUint32=A.uint32ToUint8s=void 0;var p=h(7372),u=new ArrayBuffer(4),f=new Uint32Array(u),c=new Uint8Array(u);function a(r){if(r>=16777215)throw new Error("uint32 > 0xFFFFFF");return f[0]=r,[c[0],c[1],c[2]]}function n(r,i,l){return c[0]=r,c[1]=i,c[2]=l,c[3]=0,f[0]}A.uint32ToUint8s=a,A.uint8sToUint32=n;var s=function(r){function i(){var l=r!==null&&r.apply(this,arguments)||this;return l._pickColors=new Array(16777215),l._pickColorIndex=0,l}return g(i,r),i.prototype.reset=function(){for(var l=0;l<this._pickColorIndex;++l){var d=this._pickColors[l];if(!d)throw console.error("this._pickColors[i] should not be undefined!"),new Error("this._pickColors[i] should not be undefined!");d.poi=null,d.tag=""}this._pickColorIndex=0},i.prototype.createPickColor=function(l,d){var C=this._pickColorIndex;++this._pickColorIndex;var _=this._pickColors[C];_?(_.poi=l,_.tag=d):this._pickColors[C]={poi:l,tag:d};var b=w(a(C),3);return[b[0],b[1],b[2]]},i.prototype.getPickInfoFromColor=function(l,d,C){var _=n(l,d,C);if(_>=this._pickColorIndex)console.error("index >= this._pickColorIndex");else{var b=this._pickColors[_];if(b)return b;console.error("!this._pickColors[index]")}},i.prototype.destroyImp=function(){this.reset()},i}(p.Destroyable);A.PickColorMananger=s},1047:function(B,A,h){var m=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,c=f&&u[f],a=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&a>=u.length&&(u=void 0),{value:u&&u[a++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r};Object.defineProperty(A,"__esModule",{value:!0}),A.createProps=void 0;var w=h(9359),p=h(3915);A.createProps=function(u){var f,c,a=new w.Destroyable,n=function(l,d){var C,_=a.disposeVar(d instanceof p.ReactiveVariable?d:(0,p.react)(d));Object.defineProperties(a,((C={})[l]={get:function(){return _.value},set:function(b){_.value=b}},C["".concat(l,"Changed")]={get:function(){return _.changed}},C))};try{for(var s=m(Object.entries(u)),r=s.next();!r.done;r=s.next()){var i=g(r.value,2);n(i[0],i[1])}}catch(l){f={error:l}}finally{try{r&&!r.done&&(c=s.return)&&c.call(s)}finally{if(f)throw f.error}}return a}},1085:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ObjPool=void 0;var h=function(){function m(g,w,p){p===void 0&&(p=!1),this._createDefaultFunc=g,this._destroyFunc=w,this._freeElements=[],this._usedElementsCount=0,this._nextCreateID=1,this._scratchObjs=[],p&&(this._usedElements=[])}return Object.defineProperty(m.prototype,"usedElementsCount",{get:function(){return this._usedElementsCount},enumerable:!1,configurable:!0}),Object.defineProperty(m.prototype,"freeElementsCount",{get:function(){return this._freeElements.length},enumerable:!1,configurable:!0}),m.prototype._getCreateID=function(){return this._nextCreateID++},m.prototype._create=function(){var g;return(g=this._freeElements.length>0?this._freeElements.pop():this._createDefaultFunc&&this._createDefaultFunc()||{})._cid=this._getCreateID(),g},m.prototype.create=function(){return this._create()},m.prototype.multiCreate=function(g){this._scratchObjs.length=0;for(var w=0;w<g;++w)this._scratchObjs.push(this._create());return this._scratchObjs},m.prototype._destroy=function(g){this._destroyFunc&&this._destroyFunc(g),g._cid=void 0},m.prototype.destroy=function(){for(var g=[],w=0;w<arguments.length;w++)g[w]=arguments[w];for(var p=g.length,u=0;u<p;++u)this._destroy(g[u])},m}();A.ObjPool=h},1101:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__values||function(n){var s=typeof Symbol=="function"&&Symbol.iterator,r=s&&n[s],i=0;if(r)return r.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CancelsManager=void 0;var p=h(7372),u=h(1662),f=h(4206),c=h(9651),a=function(n){function s(){var r=n.call(this)||this;return r._cancelled=!1,r._promiseSet=new Set,r}return g(s,n),Object.defineProperty(s.prototype,"disposer",{get:function(){return this._disposer=this._disposer||new p.Destroyable,this._disposer},enumerable:!1,configurable:!0}),s.prototype.destroyImp=function(){this.finally()},s.prototype.cancel=function(r){var i,l,d;if(!this._cancelled){this._cancelled=!0,(d=this._disposer)===null||d===void 0||d.destroy(),this._cancelError=r;try{for(var C=w(this._promiseSet),_=C.next();!_.done;_=C.next()){var b=_.value;(0,c.cancelPromise)(b)}}catch(E){i={error:E}}finally{try{_&&!_.done&&(l=C.return)&&l.call(C)}finally{if(i)throw i.error}}this._promiseSet.clear()}},Object.defineProperty(s.prototype,"cancelFuncsNum",{get:function(){return(0,u.reduce)(this._promiseSet,function(r){return r+1},0)},enumerable:!1,configurable:!0}),s.prototype.finally=function(){this._disposer&&!this._disposer.isDestroyed()&&this._disposer.destroy(),this._promiseSet.clear()},s.prototype.check=function(){var r;if(this._cancelled)throw(r=this._cancelError)!==null&&r!==void 0?r:new f.CancelError("cancel from CancelManager!")},s.prototype.promise=function(r){var i=this;return this._promiseSet.add(r),r.finally(function(){return i._promiseSet.delete(r),i.check()})},s.prototype.promiseAny=function(r){var i=this,l=[],d=r.map(function(C){return i._promiseSet.add(C),(0,c.isPromiseCancelable)(C)&&l.push((0,c.getPromiseCancel)(C)),C.finally(function(){return i._promiseSet.delete(C)})});return Promise.any(d).finally(function(){return l.forEach(function(C){return C(new f.CancelError("cancel from promiseAny!"))}),l.length=0})},s.prototype.promiseAll=function(r){var i=this,l=[],d=r.map(function(C){return i._promiseSet.add(C),(0,c.isPromiseCancelable)(C)&&l.push((0,c.getPromiseCancel)(C)),C.finally(function(){return i._promiseSet.delete(C)})});return Promise.all(d).finally(function(){return l.forEach(function(C){return C(new f.CancelError("cancel from promiseAll!"))}),l.length=0})},s.prototype.promiseRace=function(r){var i=this,l=[],d=r.map(function(C){return i._promiseSet.add(C),(0,c.isPromiseCancelable)(C)&&l.push((0,c.getPromiseCancel)(C)),C.finally(function(){return i._promiseSet.delete(C)})});return Promise.race(d).finally(function(){return l.forEach(function(C){return C(new f.CancelError("cancel from promiseRace!"))}),l.length=0})},s}(p.Destroyable);A.CancelsManager=a},1148:function(B,A,h){var m,g=this&&this.__extends||(m=function(r,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(l[C]=d[C])},m(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function l(){this.constructor=r}m(r,i),r.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),w=this&&this.__read||function(r,i){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,C,_=l.call(r),b=[];try{for(;(i===void 0||i-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){C={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(C)throw C.error}}return b},p=this&&this.__spreadArray||function(r,i,l){if(l||arguments.length===2)for(var d,C=0,_=i.length;C<_;C++)!d&&C in i||(d||(d=Array.prototype.slice.call(i,0,C)),d[C]=i[C]);return r.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.createStartFuncFromAsyncFunc=A.Processing=void 0;var u=h(7372),f=h(7372),c=h(4206),a=h(1101),n=h(9651),s=function(r){function i(l){var d=r.call(this)||this;return d._startFunc=l,d._status="Initial",d._runningId=-1,d.dispose(function(){return d.isRunning&&d.cancel()}),d}return g(i,r),Object.defineProperty(i.prototype,"errorEvent",{get:function(){return this._errorEvent||(this._errorEvent=new f.Event),this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"completeEvent",{get:function(){return this._completeEvent||(this._completeEvent=new f.Event),this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"errorFunc",{get:function(){return this._errorFunc},set:function(l){this._errorFunc!==l&&(this._errorFunc=l)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"completeFunc",{get:function(){return this._completeFunc},set:function(l){this._completeFunc!==l&&(this._completeFunc=l)},enumerable:!1,configurable:!0}),i.prototype.start=function(){for(var l=this,d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];if(this._status==="Initial"){var _=++this._runningId;this._status="Running",this._cancelFunc=this._startFunc.apply(this,p([{completeFunc:function(b){var E;_===l._runningId&&l._status==="Running"&&(l._status="Completed",l._completeFunc&&l._completeFunc(b),(E=l._completeEvent)===null||E===void 0||E.emit(b))},errorFunc:function(b){var E;_===l._runningId&&l._status==="Running"&&(l._status="Error",l._errorFunc&&l._errorFunc(b),(E=l._errorEvent)===null||E===void 0||E.emit(b))},runningingID:_}],w(d),!1))}},i.prototype.cancel=function(l){var d;if(l===void 0&&(l=new c.CancelError("")),this._status==="Running"){if(!this._cancelFunc)throw new Error("!this._cancelFunc");this._status="Error",this._errorFunc&&this._errorFunc(l),(d=this._errorEvent)===null||d===void 0||d.emit(l),this._cancelFunc(l),this._cancelFunc=void 0}},i.prototype.reset=function(){this._status==="Running"&&console.error("processing cannot reset while running. you can first cancel it!"),this._status!=="Completed"&&this._status!=="Error"||(this._status="Initial")},Object.defineProperty(i.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isInitial",{get:function(){return this._status==="Initial"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isRunning",{get:function(){return this._status==="Running"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isCompleted",{get:function(){return this._status==="Completed"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"isError",{get:function(){return this._status==="Error"},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"runningId",{get:function(){return this._runningId},enumerable:!1,configurable:!0}),i.prototype.restart=function(l){l===void 0&&(l=new c.CancelError(""));for(var d=[],C=1;C<arguments.length;C++)d[C-1]=arguments[C];this.isRunning&&this.cancel(l),this.reset(),this.start.apply(this,p([],w(d),!1))},i.prototype.restartIfNotRunning=function(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];this.isRunning||(this.reset(),this.start.apply(this,p([],w(l),!1)))},i}(u.Destroyable);A.Processing=s,A.createStartFuncFromAsyncFunc=function(r){return function(i){for(var l=[],d=1;d<arguments.length;d++)l[d-1]=arguments[d];var C=new a.CancelsManager,_=i.completeFunc,b=i.errorFunc,E=r.apply(void 0,p([C],w(l),!1)).then(_).catch(b).finally(function(){return C.destroy()});return(0,n.setPromiseCancel)(E,C.cancel.bind(C)),function(F){return(0,n.cancelPromise)(E,F)}}}},1233:(B,A,h)=>{h.r(A),h.d(A,{LRUMap:()=>w});const m=Symbol("newer"),g=Symbol("older");function w(a,n){typeof a!="number"&&(n=a,a=0),this.size=0,this.limit=a,this.oldest=this.newest=void 0,this._keymap=new Map,n&&(this.assign(n),a<1&&(this.limit=this.size))}function p(a,n){this.key=a,this.value=n,this[m]=void 0,this[g]=void 0}function u(a){this.entry=a}function f(a){this.entry=a}function c(a){this.entry=a}w.prototype._markEntryAsUsed=function(a){a!==this.newest&&(a[m]&&(a===this.oldest&&(this.oldest=a[m]),a[m][g]=a[g]),a[g]&&(a[g][m]=a[m]),a[m]=void 0,a[g]=this.newest,this.newest&&(this.newest[m]=a),this.newest=a)},w.prototype.assign=function(a){let n,s=this.limit||Number.MAX_VALUE;this._keymap.clear();let r=a[Symbol.iterator]();for(let i=r.next();!i.done;i=r.next()){let l=new p(i.value[0],i.value[1]);if(this._keymap.set(l.key,l),n?(n[m]=l,l[g]=n):this.oldest=l,n=l,s--==0)throw new Error("overflow")}this.newest=n,this.size=this._keymap.size},w.prototype.get=function(a){var n=this._keymap.get(a);if(n)return this._markEntryAsUsed(n),n.value},w.prototype.set=function(a,n){var s=this._keymap.get(a);return s?(s.value=n,this._markEntryAsUsed(s),this):(this._keymap.set(a,s=new p(a,n)),this.newest?(this.newest[m]=s,s[g]=this.newest):this.oldest=s,this.newest=s,++this.size,this.size>this.limit&&this.shift(),this)},w.prototype.shift=function(){var a=this.oldest;if(a)return this.oldest[m]?(this.oldest=this.oldest[m],this.oldest[g]=void 0):(this.oldest=void 0,this.newest=void 0),a[m]=a[g]=void 0,this._keymap.delete(a.key),--this.size,[a.key,a.value]},w.prototype.find=function(a){let n=this._keymap.get(a);return n?n.value:void 0},w.prototype.has=function(a){return this._keymap.has(a)},w.prototype.delete=function(a){var n=this._keymap.get(a);if(n)return this._keymap.delete(n.key),n[m]&&n[g]?(n[g][m]=n[m],n[m][g]=n[g]):n[m]?(n[m][g]=void 0,this.oldest=n[m]):n[g]?(n[g][m]=void 0,this.newest=n[g]):this.oldest=this.newest=void 0,this.size--,n.value},w.prototype.clear=function(){this.oldest=this.newest=void 0,this.size=0,this._keymap.clear()},u.prototype[Symbol.iterator]=function(){return this},u.prototype.next=function(){let a=this.entry;return a?(this.entry=a[m],{done:!1,value:[a.key,a.value]}):{done:!0,value:void 0}},f.prototype[Symbol.iterator]=function(){return this},f.prototype.next=function(){let a=this.entry;return a?(this.entry=a[m],{done:!1,value:a.key}):{done:!0,value:void 0}},c.prototype[Symbol.iterator]=function(){return this},c.prototype.next=function(){let a=this.entry;return a?(this.entry=a[m],{done:!1,value:a.value}):{done:!0,value:void 0}},w.prototype.keys=function(){return new f(this.oldest)},w.prototype.values=function(){return new c(this.oldest)},w.prototype.entries=function(){return this},w.prototype[Symbol.iterator]=function(){return new u(this.oldest)},w.prototype.forEach=function(a,n){typeof n!="object"&&(n=this);let s=this.oldest;for(;s;)a.call(n,s.value,s.key,this),s=s[m]},w.prototype.toJSON=function(){for(var a=new Array(this.size),n=0,s=this.oldest;s;)a[n++]={key:s.key,value:s.value},s=s[m];return a},w.prototype.toString=function(){for(var a="",n=this.oldest;n;)a+=String(n.key)+":"+n.value,(n=n[m])&&(a+=" < ");return a}},1291:function(B,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(C[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function C(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),w=this&&this.__awaiter||function(l,d,C,_){return new(C||(C=Promise))(function(b,E){function F(T){try{U(_.next(T))}catch(Q){E(Q)}}function S(T){try{U(_.throw(T))}catch(Q){E(Q)}}function U(T){var Q;T.done?b(T.value):(Q=T.value,Q instanceof C?Q:new C(function(P){P(Q)})).then(F,S)}U((_=_.apply(l,d||[])).next())})},p=this&&this.__generator||function(l,d){var C,_,b,E,F={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return E={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function S(U){return function(T){return function(Q){if(C)throw new TypeError("Generator is already executing.");for(;E&&(E=0,Q[0]&&(F=0)),F;)try{if(C=1,_&&(b=2&Q[0]?_.return:Q[0]?_.throw||((b=_.return)&&b.call(_),0):_.next)&&!(b=b.call(_,Q[1])).done)return b;switch(_=0,b&&(Q=[2&Q[0],b.value]),Q[0]){case 0:case 1:b=Q;break;case 4:return F.label++,{value:Q[1],done:!1};case 5:F.label++,_=Q[1],Q=[0];continue;case 7:Q=F.ops.pop(),F.trys.pop();continue;default:if(!((b=(b=F.trys).length>0&&b[b.length-1])||Q[0]!==6&&Q[0]!==2)){F=0;continue}if(Q[0]===3&&(!b||Q[1]>b[0]&&Q[1]<b[3])){F.label=Q[1];break}if(Q[0]===6&&F.label<b[1]){F.label=b[1],b=Q;break}if(b&&F.label<b[2]){F.label=b[2],F.ops.push(Q);break}b[2]&&F.ops.pop(),F.trys.pop();continue}Q=d.call(l,F)}catch(P){Q=[6,P],_=0}finally{C=b=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([U,T])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.FlvProcessing=A.FlvJsLoading=void 0;var u=h(1662),f=h(8106),c=h(2220),a=h(5819),n=function(l){function d(){var C=l.call(this)||this;return C._loading=!1,C._loadedEvent=C.disposeVar(new u.Event),C._loaded=!1,C._loadedPromise=new Promise(function(_){C._loadedPromiseResolve=_}),C._processing=C.disposeVar((0,a.createProcessingFromAsyncFunc)(function(_){return w(C,void 0,void 0,function(){var b;return p(this,function(E){switch(E.label){case 0:return this._loading=!0,window.flvjs?(console.info("可能系统已经加载flvjs,此处不再加载!"),[3,3]):[3,1];case 1:return b=c.SceneObject.context.getStrFromEnv(d.path),[4,_.promise((0,u.loadJs)(b))];case 2:E.sent(),E.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}})})})),C._processingStart=C._processing.start(),C}return g(d,l),Object.defineProperty(d.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d.instance=function(){return d._instance=d._instance||new d,d._instance},d.path="${xr-utils-script-dir}/xr-static/xr-utils/flvjs/1.6.2/flv.min.js",d}(u.Destroyable);A.FlvJsLoading=n;var s=function(l){function d(C,_){var b=l.call(this)||this;b._complexImage=C,b._videoSrc=_;var E,F=document.createElement("video");return F.src=b._videoSrc,F.style.position="absolute",F.style.top="0px",F.style.left="0px",F.style.zIndex="-100",F.style.visibility="hidden",(E=function(){F.crossOrigin=b._complexImage.crossOrigin})(),b.dispose(b._complexImage.crossOriginChanged.disposableOn(E)),(E=function(){F.autoplay=b._complexImage.autoplay})(),b.dispose(b._complexImage.autoplayChanged.disposableOn(E)),(E=function(){F.loop=b._complexImage.loop})(),b.dispose(b._complexImage.loopChanged.disposableOn(E)),F.muted=!0,document.body.appendChild(F),b._element=F,b.dispose(function(){return document.body.removeChild(F)}),b}return g(d,l),Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),d}(u.Destroyable),r=function(l){function d(C,_){var b=l.call(this)||this;return b._complexImage=C,b._videoSrc=_,b._videoDom=b.disposeVar(new s(b._complexImage,"")),b._processing=b.disposeVar((0,a.createProcessingFromAsyncFunc)(function(E){return w(b,void 0,void 0,function(){var F,S,U,T;return p(this,function(Q){switch(Q.label){case 0:return F=this.videoSrc,S=n.instance(),[4,E.promise(S.loadedPromise)];case 1:return Q.sent(),U=window.flvjs,T=this.element,[4,(0,f.step)(E,function(){return new Promise(function(P,I){if(U.isSupported()){var M=U.createPlayer({type:"flv",url:F});M.attachMediaElement(T),M.load(),M.play(),T.xbsjFlvPlayer=M}else I("flvjs不支持!")})})];case 2:return Q.sent(),[2]}})})})),b._processingStartup=b._processing.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d}(u.Destroyable),i=function(l){function d(C,_){var b=l.call(this)||this;return b._complexImage=C,b._imageUri=_,b._videoDom=b.disposeVar(new r(b._complexImage,b._imageUri)),b._update=b.disposeVar((0,f.createAnimateFrameWithStartValues)(function(){return b.update()})),b._updateStart=b._update.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),d.prototype.update=function(){if(!(this.videoElement.readyState<2)){var C=this._complexImage,_=this.videoElement,b=_.videoWidth,E=_.videoHeight;C.size=[b,E],C.pixelFormat="RGBA",C.copyTexture({source:this.videoElement})}},d}(u.Destroyable);A.FlvProcessing=i},1354:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.forEach=void 0;var m=h(8144);A.forEach=function(g,w){for(var p=(0,m.getIterator)(g),u=0;;){var f=p.next(),c=f.done,a=f.value;if(c)break;w(a,u++)}}},1378:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)});Object.defineProperty(A,"__esModule",{value:!0}),A.DivBoxPicker=A.BoxPicker=void 0;var w=h(7372),p=h(7372),u=h(507),f=h(7372),c=function(n){function s(){var r=n.call(this)||this;r._pickRectEvent=r.disposeVar(new p.Event),r._updateRectEvent=r.disposeVar(new p.Event),r._pointerActionEvent=r.disposeVar(new p.Event),r._active=r.disposeVar((0,f.react)(!1)),r._pickRect={left0:0,top0:0,left1:0,top1:0};var i=0,l=0,d=0,C=0;return r.dispose(r._pointerActionEvent.disposableOn(function(_){var b=_.type,E=_.left,F=_.top;b==="PointerDown"?(r._active.value=!0,i=E,l=F,d=E,C=F,r._setPickRect({left0:i,top0:l,left1:d,top1:C}),r._updateRectEvent.emit(r._pickRect)):b==="PointerMove"?r._active.value&&(d=E,C=F,r._setPickRect({left0:i,top0:l,left1:d,top1:C}),r._updateRectEvent.emit(r._pickRect)):b==="PointerUp"&&r._active.value&&(r._active.value=!1,d=E,C=F,r._setPickRect({left0:i,top0:l,left1:d,top1:C}),r._updateRectEvent.emit(r._pickRect),r._pickRectEvent.emit(r._pickRect))})),r}return g(s,n),s.prototype._setPickRect=function(r){var i=r.left0,l=r.left1,d=r.top0,C=r.top1;this._pickRect.left0=i,this._pickRect.left1=l,this._pickRect.top0=d,this._pickRect.top1=C},s.prototype.pointerDown=function(r,i){this._pointerActionEvent.emit({type:"PointerDown",left:r,top:i})},s.prototype.pointerMove=function(r,i){this._pointerActionEvent.emit({type:"PointerMove",left:r,top:i})},s.prototype.pointerUp=function(r,i){this._pointerActionEvent.emit({type:"PointerUp",left:r,top:i})},s.prototype.reset=function(){this._setPickRect({left0:0,top0:0,left1:0,top1:0}),this._updateRectEvent.emit(this._pickRect),this._pickRectEvent.emit(this._pickRect)},Object.defineProperty(s.prototype,"activeEvent",{get:function(){return this._active.changed},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"updateRectEvent",{get:function(){return this._updateRectEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"pickRectEvent",{get:function(){return this._pickRectEvent},enumerable:!1,configurable:!0}),s.getLeftTopAndSize=function(r,i){i=i||{left:0,top:0,width:0,height:0,forward:!0};var l=r.left0,d=r.top0,C=r.left1,_=r.top1;return i.width=Math.abs(l-C),i.height=Math.abs(d-_),i.left=Math.min(l,C),i.top=Math.min(d,_),i.forward=C>l,i},s.contains=function(r,i,l){var d=l.left,C=l.top,_=l.width,b=l.height;return r>d&&r<=d+_&&i>=C&&i<=C+b},s}(w.Destroyable);A.BoxPicker=c;var a=function(n){function s(r){var i=n.call(this)||this,l=i.disposeVar(new u.PointerClickDeprecated(r));i.dispose(l.downEvent.disposableOn(function(b,E,F){return F.altKey&&i.pointerDown(b,E)})),i.dispose(l.moveEvent.disposableOn(function(b,E){return i.pointerMove(b,E)})),i.dispose(l.upEvent.disposableOn(function(b,E){return i.pointerUp(b,E)}));var d=document.createElement("div");d.style.backgroundColor="rgba(0, 0, 0, 0)",d.style.border="2px dashed red",d.style.position="absolute",d.style.boxSizing="border-box",d.style.pointerEvents="none",d.style.height="0px",d.style.width="0px",d.style.left="0px",d.style.top="0px",d.style.display="none",r.appendChild(d),i.dispose(function(){return r.removeChild(d)}),i.dispose(i.activeEvent.disposableOn(function(b){d.style.display=b?"block":"none"}));var C=function(){i.reset()};r.addEventListener("contextmenu",C),i.dispose(function(){return r.removeEventListener("contextmenu",C)});var _={left:0,top:0,width:0,height:0,forward:!1};return i.dispose(i.updateRectEvent.disposableOn(function(b){if(c.getLeftTopAndSize(b,_)){var E=_.left,F=_.top,S=_.width,U=_.height;d.style.height="".concat(0|U,"px"),d.style.width="".concat(0|S,"px"),d.style.left="".concat(0|E,"px"),d.style.top="".concat(0|F,"px")}})),i}return g(s,n),s}(c);A.DivBoxPicker=a},1412:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(7963),A),g(h(1851),A),g(h(9409),A),g(h(3022),A),g(h(7014),A),g(h(3096),A),g(h(5925),A),g(h(5210),A),g(h(1291),A)},1545:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.RefsManager=void 0;var w=h(1662),p=function(u){function f(c){var a=u.call(this)||this;a._sceneObjRefs=new Map,a._refs={},a._refsChagned=a.disposeVar(new w.Event);var n=function(s,r,i){if(i){var l=a.getLastSceneObject(i);if(_=a._sceneObjRefs.get(i)){var d=_.indexOf(s);d===-1?console.warn("this._sceneObjRefs中不存在当前对象(id: ".concat(s.id," type: ").concat(s.typeName,")!可能系统存在逻辑问题")):(_.splice(d,1),_.length===0&&a._sceneObjRefs.delete(i))}else console.warn("this._sceneObjRefs中不存在ref(".concat(i,"), 可能系统存在逻辑问题"));var C=a.getLastSceneObject(i);a._refs[i]=C,a._refsChagned.emit(C,l)}var _;r&&(l=a.getLastSceneObject(r),(_=a._sceneObjRefs.get(r))?(_.push(s),_.length>0&&console.warn("同时存在多个ref".concat(r,`相同的场景对象!
|
|
2
|
+
`).concat(_.map(function(b){return"".concat(b.id," ").concat(b.typeName,`
|
|
3
|
+
`)}).join(" ")))):a._sceneObjRefs.set(r,[s]),C=a.getLastSceneObject(r),a._refs[r]=C,a._refsChagned.emit(C,l))};return a.dispose(c.sceneObjCreatedEvent.disposableOn(function(s){var r=function(i,l){return n(s,i,l)};s.ref&&r(s.ref,void 0),s.refChanged.disposableOn(r)})),a.dispose(c.sceneObjToDestroyEvent.disposableOn(function(s){s.ref&&n(s,void 0,s.ref)})),a}return g(f,u),Object.defineProperty(f.prototype,"sceneObjRefs",{get:function(){return this._sceneObjRefs},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"refs",{get:function(){return this._refs},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"refsChanged",{get:function(){return this._refsChagned},enumerable:!1,configurable:!0}),f.prototype.getLastSceneObject=function(c){var a=this.getSceneObjects(c);if(a)return a[a.length-1]},f.prototype.getSceneObjects=function(c){var a=this._sceneObjRefs.get(c);if(a&&a.length!==0)return a},f}(w.Destroyable);A.RefsManager=p},1662:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9359),A),g(h(5600),A),g(h(6555),A),g(h(7941),A),g(h(1085),A),g(h(709),A),g(h(2520),A),g(h(3915),A),g(h(9910),A),g(h(5745),A),g(h(773),A),g(h(7132),A),g(h(8835),A),g(h(7793),A),g(h(1047),A),g(h(4775),A),g(h(2967),A),g(h(5785),A),g(h(5505),A),g(h(5986),A),g(h(9631),A),g(h(6469),A),g(h(5236),A),g(h(6301),A),g(h(2267),A),g(h(5015),A),g(h(3457),A),g(h(2968),A),g(h(8144),A),g(h(3735),A),g(h(6655),A),g(h(2168),A),g(h(7418),A),g(h(1662),A),g(h(7427),A),g(h(1354),A),g(h(4969),A),g(h(3280),A),g(h(9131),A),g(h(1233),A),g(h(433),A),g(h(7008),A),g(h(6362),A),g(h(3009),A),g(h(9970),A),g(h(3804),A),g(h(345),A),g(h(6583),A),g(h(4899),A),g(h(2882),A),g(h(3249),A),g(h(1803),A),g(h(9528),A),g(h(6138),A),g(h(9038),A),g(h(476),A),g(h(8992),A),g(h(6558),A),g(h(6432),A),g(h(2999),A),h(3428)},1801:function(B,A,h){var m=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,n){if(n||arguments.length===2)for(var s,r=0,i=a.length;r<i;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.createSleepingWithStartValues=A.createSleeping=A.sleep=void 0;var w=h(5726),p=h(921),u=h(9651);function f(c){for(var a,n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];var r=void 0,i=new Promise(function(l,d){r=d,a=globalThis.setTimeout(function(){a=void 0,l(n)},c)});return(0,u.setPromiseCancel)(i,function(l){a&&(clearTimeout(a),a=void 0),r&&r(l??new w.CancelError("sleep cancel error!"))}),i}A.sleep=f,A.createSleeping=function(){return(0,p.createProcessingFromPromiseCreateFunc)(f)},A.createSleepingWithStartValues=function(c){for(var a=[],n=1;n<arguments.length;n++)a[n-1]=arguments[n];return p.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,g([f,c],m(a),!1))}},1803:function(B,A){var h=this&&this.__values||function(m){var g=typeof Symbol=="function"&&Symbol.iterator,w=g&&m[g],p=0;if(w)return w.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&p>=m.length&&(m=void 0),{value:m&&m[p++],done:!m}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.setValueFromProps=A.getValueFromProps=void 0,A.getValueFromProps=function(m,g){var w,p,u=m;try{for(var f=h(g),c=f.next();!c.done;c=f.next())u=u[c.value]}catch(a){w={error:a}}finally{try{c&&!c.done&&(p=f.return)&&p.call(f)}finally{if(w)throw w.error}}return u},A.setValueFromProps=function(m,g,w){if(g.length===0)throw new Error("props的数量必须大于0");for(var p=g.length-1,u=g[p],f=m,c=0;c<p;++c){var a=g[c];f[a]===void 0&&(f[a]={}),f=f[a]}f[u]=w}},1851:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.complexImageTypes=void 0,A.complexImageTypes=["img","gif","video","flv","hls"]},1895:function(B,A,h){var m=this&&this.__generator||function(c,a){var n,s,r,i,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function d(C){return function(_){return function(b){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,b[0]&&(l=0)),l;)try{if(n=1,s&&(r=2&b[0]?s.return:b[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,b[1])).done)return r;switch(s=0,r&&(b=[2&b[0],r.value]),b[0]){case 0:case 1:r=b;break;case 4:return l.label++,{value:b[1],done:!1};case 5:l.label++,s=b[1],b=[0];continue;case 7:b=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||b[0]!==6&&b[0]!==2)){l=0;continue}if(b[0]===3&&(!r||b[1]>r[0]&&b[1]<r[3])){l.label=b[1];break}if(b[0]===6&&l.label<r[1]){l.label=r[1],r=b;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(b);break}r[2]&&l.ops.pop(),l.trys.pop();continue}b=a.call(c,l)}catch(E){b=[6,E],s=0}finally{n=r=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([C,_])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.DoublyLinkedList=void 0;var g=new(h(1085)).ObjPool(function(){return{item:void 0,previous:void 0,next:void 0}},function(c){c.item=void 0,c.previous=void 0,c.next=void 0},!0);function w(c,a,n){var s=g.create();return s.item=c,s.previous=a,s.next=n,s}function p(c){if(!c)throw new Error("node is undefined!");g.destroy(c)}function u(c,a){a.previous&&a.next?(a.previous.next=a.next,a.next.previous=a.previous):a.previous?(a.previous.next=void 0,c.tail=a.previous):a.next?(a.next.previous=void 0,c.head=a.next):(c.head=void 0,c.tail=void 0),a.next=void 0,a.previous=void 0}var f=function(){function c(a){var n=(a||{needLength:!0}).needLength;this.head=void 0,this.tail=void 0,n&&(this._length=0)}return c.prototype._incrementLength=function(){typeof this._length=="number"&&++this._length},c.prototype._decrementLength=function(){typeof this._length=="number"&&--this._length},c.prototype._setLength=function(a){typeof this._length=="number"&&(this._length=a)},Object.defineProperty(c.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"empty",{get:function(){return!this.head},enumerable:!1,configurable:!0}),c.prototype[Symbol.iterator]=function(){var a;return m(this,function(n){switch(n.label){case 0:a=this.head,n.label=1;case 1:return a?[4,a]:[3,3];case 2:return n.sent(),a=a.next,[3,1];case 3:return[2]}})},c.prototype.remove=function(a){if(!a)throw new Error("node is undefined!");u(this,a),this._decrementLength(),p(a)},c.prototype.getNode=function(a){for(var n=this.head;n!==null;){if(!n)throw new Error("current is undefined!");if(n.item===a)return n;n=n.next}},c.prototype.moveAfter=function(a,n){if(a!==n){u(this,n);var s=a.next;a.next=n,this.tail===a?this.tail=n:s&&(s.previous=n),n.next=s,n.previous=a}},c.prototype.moveBefore=function(a,n){if(a!==n){u(this,n);var s=a.previous;a.previous=n,this.head===a?this.head=n:s&&(s.next=n),n.previous=s,n.next=a}},c.prototype.insertBefore=function(a,n){var s=w(n,a.previous,a);return a.previous&&(a.previous.next=s),a.previous=s,this.head===a&&(this.head=s),this._incrementLength(),s},c.prototype.insertAfter=function(a,n){var s=w(n,a,a.next);return a.next&&(a.next.previous=s),a.next=s,this.tail===a&&(this.tail=s),this._incrementLength(),s},c.prototype._setFirstNode=function(a){if(this.head||this.tail)throw new Error("_setFirstNode error!");var n=w(a,void 0,void 0);if(this.head=n,this.tail=n,this._incrementLength(),this._length!==1)throw new Error("_setFirstNode error! this._length !== 1");return n},c.prototype.push=function(a){return this.tail?this.insertAfter(this.tail,a):this._setFirstNode(a)},c.prototype.pop=function(){if(!this.tail)throw new Error("DoublyLinkedList is empty!");var a=this.tail.item;return this.remove(this.tail),a},c.prototype.shift=function(){if(!this.head)throw new Error("DoublyLinkedList is empty!");var a=this.head.item;return this.remove(this.head),a},c.prototype.unshift=function(a){return this.head?this.insertBefore(this.head,a):this._setFirstNode(a)},c.prototype.removeAll=function(){for(var a=this.head;a;){var n=a.next;p(a),a=n}this.head=void 0,this.tail=void 0,this._setLength(0)},c}();A.DoublyLinkedList=f},1943:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C},p=this&&this.__spreadArray||function(n,s,r){if(r||arguments.length===2)for(var i,l=0,d=s.length;l<d;l++)!i&&l in s||(i||(i=Array.prototype.slice.call(s,0,l)),i[l]=s[l]);return n.concat(i||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A.ThrottlingWithStartValues=A.Throttling=void 0;var u=h(1662),f=h(1148),c=function(n){function s(){var r=n.call(this,function(i,l,d){var C=i.errorFunc;try{var _=w((0,u.throttle)(l,d),2),b=_[0],E=_[1];return r._doFunc=b,E}catch(F){return C(F),function(){}}})||this;return r}return g(s,n),s.prototype.do=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.Throttling=c;var a=function(n){function s(r,i){var l=n.call(this,function(d){var C=d.errorFunc;try{var _=w((0,u.throttle)(r,i),2),b=_[0],E=_[1];return l._doFunc=b,E}catch(F){return C(F),function(){}}})||this;return l}return g(s,n),s.prototype.do=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.ThrottlingWithStartValues=a},1968:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.PointerHover=void 0;var w=h(7372),p=h(7372),u=h(8106),f=function(c){function a(){var n=c.call(this)||this;n._hoverEvent=n.disposeVar(new p.Event),n._hoverOutEvent=n.disposeVar(new p.Event),n._pointerdownEvent=n.disposeVar(new p.Event),n._pointerupEvent=n.disposeVar(new p.Event),n._pointermoveEvent=n.disposeVar(new p.Event),n._pointeroutEvent=n.disposeVar(new p.Event),n.delayTime=800;var s,r=n.disposeVar((0,u.createTimeout)()),i=function(){s?n._hoverEvent.emit(s):console.warn("!lastPointerEvent")};return n.dispose(n._pointerdownEvent.disposableOn(function(l){n._hoverOutEvent.emit()})),n.dispose(n._pointerupEvent.disposableOn(function(l){n._hoverOutEvent.emit()})),n.dispose(n._pointermoveEvent.disposableOn(function(l){s=l,r.restart(void 0,i,n.delayTime),n._hoverOutEvent.emit()})),n.dispose(n._pointeroutEvent.disposableOn(function(l){r.cancel(),n._hoverOutEvent.emit()})),n}return g(a,c),Object.defineProperty(a.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),a.prototype.pointerDown=function(n){this._pointerdownEvent.emit(n)},a.prototype.pointerUp=function(n){this._pointerupEvent.emit(n)},a.prototype.pointerMove=function(n){this._pointermoveEvent.emit(n)},a.prototype.pointerOut=function(n){this._pointeroutEvent.emit(n)},a}(w.Destroyable);A.PointerHover=f},2002:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.sleepDeprecated=void 0;var m=h(5726);A.sleepDeprecated=function(g,w){var p,u=void 0,f=new Promise(function(a,n){u=n,p=globalThis.setTimeout(function(){p=void 0,a()},g)}),c=function(a){p&&(clearTimeout(p),p=void 0),u&&u(a??new m.CancelError("sleep cancel error!"))};return typeof w=="boolean"&&w?[c,f]:w?((0,m._executeSetCancelFuncOrCancelResult)(w,c),f):void 0}},2051:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.Transition=void 0;var w=h(7372),p=h(7372),u=h(2127),f=function(c){function a(n){var s=c.call(this)||this;return s._stop=s.disposeVar((0,p.react)(0)),s._current=s.disposeVar((0,p.react)(0)),s._start=s.disposeVar((0,p.react)(0)),s._player=s.disposeVar(new u.Player(200)),s.dispose(s._player.currentTimeChangedEvent.disposableOn(function(r){var i=r/s._player.duration;i=i>1?1:i<0?0:i;var l=s._start.value,d=s._stop.value;s._current.value=l+(d-l)*i})),s.duration=n,s}return g(a,c),Object.defineProperty(a.prototype,"current",{get:function(){return this._current.value},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"currentChanged",{get:function(){return this._current.changed},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"source",{get:function(){return this._start.value},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"sourceChanged",{get:function(){return this._start.changed},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"target",{get:function(){return this._stop.value},set:function(n){this._start.value=this._current.value,this._stop.value=n,this._player.currentTime=0,this._player.playing=!0},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"targetChanged",{get:function(){return this._stop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"duration",{get:function(){return this._player.duration},set:function(n){this._player.duration=n},enumerable:!1,configurable:!0}),a.prototype.reset=function(n){this._start.value=n,this._current.value=n,this._stop.value=n,this._player.playing=!1},a}(w.Destroyable);A.Transition=f},2075:(B,A,h)=>{h.r(A),h.d(A,{TaskProcessor:()=>r});var m=h(1662),g=h(2243);function w(l,d){return l??d}const p=Error,u=Error;function f(){if(!(0,g.defined)(r._canTransferArrayBuffer)){var l=new Worker(a("transferTypedArrayTest.js"));l.postMessage=w(l.webkitPostMessage,l.postMessage);var d=new Int8Array([99]);try{l.postMessage({array:d},[d.buffer])}catch{return r._canTransferArrayBuffer=!1,r._canTransferArrayBuffer}var C=g.when.defer();l.onmessage=function(_){var b=_.data.array,E=(0,g.defined)(b)&&b[0]===99;C.resolve(E),l.terminate(),r._canTransferArrayBuffer=E},r._canTransferArrayBuffer=C.promise}return r._canTransferArrayBuffer}function c(l,d){--l._activeTasks;var C=d.id;if((0,g.defined)(C)){var _=l._deferreds,b=_[C];if((0,g.defined)(d.error)){var E=d.error;E.name==="RuntimeError"?(E=new u(d.error.message)).stack=d.error.stack:E.name==="DeveloperError"&&((E=new p(d.error.message)).stack=d.error.stack),b.reject(E)}else b.resolve(d.result);delete _[C]}}function a(l){var d=function(E){return E=E.endsWith(".js")?E:E+".js",(0,m.getFinalUri)(E,r.workerBaseAbsoluteUri)}(l);if((0,m.isCrossOriginUrl)(d)){var C,_='importScripts("'+d+'");';try{C=new Blob([_],{type:"application/javascript"})}catch{var b=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder);b.append(_),C=b.getBlob("application/javascript")}d=(window.URL||window.webkitURL).createObjectURL(C)}return d}var n;function s(l){var d=new Worker(((0,g.defined)(n)||(n=a("cesiumWorkerBootstrapper.js")),n));d.postMessage=w(d.webkitPostMessage,d.postMessage);const C=(0,m.isAbsoluteUri)(r.workerBaseAbsoluteUri)?r.workerBaseAbsoluteUri:"";var _={loaderConfig:{paths:{Workers:C},baseUrl:C},workerModule:l._workerName};return d.postMessage(_),d.onmessage=function(b){c(l,b.data)},d}function r(l,d){this._workerName=l,this._maximumActiveTasks=w(d,5),this._activeTasks=0,this._deferreds={},this._nextID=0}var i=[];r.prototype.scheduleTask=function(l,d){if((0,g.defined)(this._worker)||(this._worker=s(this)),!(this._activeTasks>=this._maximumActiveTasks)){++this._activeTasks;var C=this;return(0,g.when)(f(),function(_){(0,g.defined)(d)?_||(d.length=0):d=i;var b=C._nextID++,E=g.when.defer();return C._deferreds[b]=E,C._worker.postMessage({id:b,parameters:l,canTransferArrayBuffer:_},d),E.promise})}},r.prototype.initWebAssemblyModule=function(l){(0,g.defined)(this._worker)||(this._worker=s(this));var d=g.when.defer(),C=this,_=this._worker;return getWebAssemblyLoaderConfig(this,l).then(function(b){return(0,g.when)(f(),function(E){var F,S=b.wasmBinary;(0,g.defined)(S)&&E&&(F=[S]),_.onmessage=function(U){_.onmessage=function(T){c(C,T.data)},d.resolve(U.data)},_.postMessage({webAssemblyConfig:b},F)})}),d},r.prototype.isDestroyed=function(){return!1},r.prototype.destroy=function(){return(0,g.defined)(this._worker)&&this._worker.terminate(),(0,m.destroyObject)(this)},r._defaultWorkerModulePrefix="Workers/",r._workerModulePrefix=r._defaultWorkerModulePrefix,r._canTransferArrayBuffer=void 0,r.workerBaseAbsoluteUri="xr-static/workers/core"},2082:(B,A)=>{function h(){return!0}function m(){throw new Error("throwOnDestroyed")}Object.defineProperty(A,"__esModule",{value:!0}),A.destroyObject=void 0,A.destroyObject=function(g){for(var w in g)typeof g[w]=="function"&&(g[w]=m);g.isDestroyed=h}},2127:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)});Object.defineProperty(A,"__esModule",{value:!0}),A.Player=void 0;var w=h(7372),p=h(7372),u=h(7372),f=h(1662),c=function(a){function n(s,r){s===void 0&&(s=1e3),r===void 0&&(r=f.defaultStartUpdateFunc);var i=a.call(this)||this;return i._currentTime=i.disposeVar((0,u.react)(0)),i._speed=1,i._duration=s,i._loop=!1,i.startUpdateFunc=r,i._updateBindThis=i._update.bind(i),i.dispose(function(){i._cancelStartUpdateFunc&&(i._cancelStartUpdateFunc(),i._cancelStartUpdateFunc=void 0)}),i._startTimeStamp=Number.NaN,i.dispose(function(){i._startPlayingEvent&&i._startPlayingEvent.reset(),i._stopPlayingEvent&&i._stopPlayingEvent.reset()}),i}return g(n,a),Object.defineProperty(n.prototype,"startPlayingEvent",{get:function(){return this._startPlayingEvent=this._startPlayingEvent||new p.Event,this._startPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"stopPlayingEvent",{get:function(){return this._stopPlayingEvent=this._stopPlayingEvent||new p.Event,this._stopPlayingEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"currentTimeChangedEvent",{get:function(){return this._currentTime.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"loopChangedEvent",{get:function(){return this._loopChangedEvent=this._loopChangedEvent||new p.Event,this._loopChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"loop",{get:function(){return this._loop},set:function(s){this._loop!==s&&(this._loop=s,this._loopChangedEvent&&this._loopChangedEvent.emit(this._loop))},enumerable:!1,configurable:!0}),n.prototype._update=function(s){if(Number.isNaN(this._startTimeStamp))console.warn("Number.isNaN(this._startTimeStamp)");else{var r=(s-this._startTimeStamp)*this._speed;this._setCurrentTimeInner(r)}},Object.defineProperty(n.prototype,"currentTime",{get:function(){return this._currentTime.value},set:function(s){this._setCurrentTimeInner(s),this._resetStartTime()},enumerable:!1,configurable:!0}),n.prototype._setCurrentTimeInner=function(s){this._currentTime.value!==s&&(this._duration<=0?this._currentTime.value=0:s<0?this.loop?this._currentTime.value=this._duration+s%this._duration:(this._currentTime.value=0,this.playing&&this._stopPlaying()):s>this._duration?this.loop?this._currentTime.value=s%this._duration:(this._currentTime.value=this._duration,this.playing&&this._stopPlaying()):this._currentTime.value=s)},Object.defineProperty(n.prototype,"durationChangedEvent",{get:function(){return this._durationChangedEvent||(this._durationChangedEvent=new p.Event),this._durationChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"duration",{get:function(){return this._duration},set:function(s){var r;if(s<0)console.warn("duration sholud greater than 0!");else if(this._duration!==s){var i=this._duration;this._duration=s,this._currentTime.value>this._duration&&(this._currentTime.value=this._duration),(r=this._durationChangedEvent)===null||r===void 0||r.emit(this._duration,i)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"speedChangedEvent",{get:function(){return this._speedChangedEvent||(this._speedChangedEvent=new p.Event),this._speedChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"speed",{get:function(){return this._speed},set:function(s){var r;if(this._speed!==s&&s!==0){var i=this._speed;this._speed=s,this._resetStartTime(),(r=this._speedChangedEvent)===null||r===void 0||r.emit(this._speed,i)}},enumerable:!1,configurable:!0}),n.prototype._resetStartTime=function(){this._startTimeStamp=performance.now()-this._currentTime.value/this._speed},n.prototype._startPlaying=function(){var s,r;this._resetStartTime(),this._cancelStartUpdateFunc=this.startUpdateFunc(this._updateBindThis),(s=this._startPlayingEvent)===null||s===void 0||s.emit(this._currentTime.value),(r=this._playingChangedEvent)===null||r===void 0||r.emit(!0)},n.prototype._stopPlaying=function(){var s,r;if(!this._cancelStartUpdateFunc)throw new Error("this._cancelStartUpdateFunc is undefined!");this._cancelStartUpdateFunc(),this._cancelStartUpdateFunc=void 0,(s=this._stopPlayingEvent)===null||s===void 0||s.emit(this._currentTime.value),(r=this._playingChangedEvent)===null||r===void 0||r.emit(!1)},Object.defineProperty(n.prototype,"playingChangedEvent",{get:function(){return this._playingChangedEvent||(this._playingChangedEvent=new p.Event),this._playingChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"playing",{get:function(){return!!this._cancelStartUpdateFunc},set:function(s){!!this._cancelStartUpdateFunc!==s&&(s?this._startPlaying():this._stopPlaying())},enumerable:!1,configurable:!0}),n}(w.Destroyable);A.Player=c},2168:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getReactFuncs=void 0;var m=h(8835),g=h(6583);A.getReactFuncs=function(w){var p=(0,m.getCompleteReactParams)(w);return[function(){return p[0][p[1]]},function(u){try{p[0][p[1]]=u}catch(f){(0,g.oneTimeWarning)("setValue error, obj(".concat(p[0].constructor.name,") prop(").concat(p[1],") error(").concat(f,")"))}},p[0][p[2]]]}},2217:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A.PointerHoverDeprecated=void 0;var p=h(7372),u=h(7372),f=h(109),c=h(2299),a=function(n){function s(r,i){i===void 0&&(i=1500);var l=n.call(this)||this;l._hoverEvent=new u.Event,l._hoverOutEvent=new u.Event;var d=new f.DebouncingDeprecated(i);l.dispose(function(){return d.destroy()});var C,_=0,b=0;d.progressFunc=function(){return l._hoverEvent.emit(_,b,C)};var E=function(T){var Q;!d.isRunning&&d.restart(),C=T,Q=w((0,c.getDomEventCurrentTargetPos)(T),2),_=Q[0],b=Q[1],d.debounce(),l._hoverOutEvent.emit()},F=function(T){var Q;!d.isRunning&&d.restart(),C=T,Q=w((0,c.getDomEventCurrentTargetPos)(C),2),_=Q[0],b=Q[1],d.debounce(),l._hoverOutEvent.emit()},S=function(T){var Q;!d.isRunning&&d.restart(),C=T,Q=w((0,c.getDomEventCurrentTargetPos)(C),2),_=Q[0],b=Q[1],d.debounce(),l._hoverOutEvent.emit()},U=function(T){d.isRunning&&d.cancel(),l._hoverOutEvent.emit()};return r.addEventListener("pointerdown",E),r.addEventListener("pointerup",F),r.addEventListener("pointermove",S),r.addEventListener("pointerout",U),l.dispose(function(){r.removeEventListener("pointerdown",E),r.removeEventListener("pointerup",F),r.removeEventListener("pointermove",S),r.removeEventListener("pointerout",U)}),l}return g(s,n),Object.defineProperty(s.prototype,"hoverEvent",{get:function(){return this._hoverEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"hoverOutEvent",{get:function(){return this._hoverOutEvent},enumerable:!1,configurable:!0}),s}(p.Destroyable);A.PointerHoverDeprecated=a},2220:function(B,A,h){var m,g=this&&this.__extends||(m=function(i,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,C){d.__proto__=C}||function(d,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(d[_]=C[_])},m(i,l)},function(i,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function d(){this.constructor=i}m(i,l),i.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}),w=this&&this.__createBinding||(Object.create?function(i,l,d,C){C===void 0&&(C=d);var _=Object.getOwnPropertyDescriptor(l,d);_&&!("get"in _?!l.__esModule:_.writable||_.configurable)||(_={enumerable:!0,get:function(){return l[d]}}),Object.defineProperty(i,C,_)}:function(i,l,d,C){C===void 0&&(C=d),i[C]=l[d]}),p=this&&this.__exportStar||function(i,l){for(var d in i)d==="default"||Object.prototype.hasOwnProperty.call(l,d)||w(l,i,d)},u=this&&this.__values||function(i){var l=typeof Symbol=="function"&&Symbol.iterator,d=l&&i[l],C=0;if(d)return d.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&C>=i.length&&(i=void 0),{value:i&&i[C++],done:!i}}};throw new TypeError(l?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(i,l){var d=typeof Symbol=="function"&&i[Symbol.iterator];if(!d)return i;var C,_,b=d.call(i),E=[];try{for(;(l===void 0||l-- >0)&&!(C=b.next()).done;)E.push(C.value)}catch(F){_={error:F}}finally{try{C&&!C.done&&(d=b.return)&&d.call(b)}finally{if(_)throw _.error}}return E},c=this&&this.__spreadArray||function(i,l,d){if(d||arguments.length===2)for(var C,_=0,b=l.length;_<b;_++)!C&&_ in l||(C||(C=Array.prototype.slice.call(l,0,_)),C[_]=l[_]);return i.concat(C||Array.prototype.slice.call(l))};Object.defineProperty(A,"__esModule",{value:!0}),A.SceneObject=void 0;var a=h(1662),n=h(3815),s=h(2723),r=function(i){function l(d){var C=i.call(this)||this;return C._components=C.disposeVar(new n.ObservableSet),d!==void 0&&(typeof d!="string"?console.warn("场景对象创建时的ID必须是字符串类型,而这里是id的类型是".concat(typeof d,",值为").concat(d)):d.trim()===""?console.warn("场景对象创建时的ID不能是空字符串!"):d.trim()!==d&&console.warn("id前后有空字符串!id: ".concat(d))),C._id=d??(0,a.createGuid)(),C._setDefaultName(),C}return g(l,i),Object.defineProperty(l,"sceneObjs",{get:function(){return l.context.sceneObjs},enumerable:!1,configurable:!0}),l.getSceneObjById=function(d){return l.context.getSceneObjectById(d)},l.getSceneObjsByDevTags=function(d){return l.context.getSceneObjectsByDevTags(d)},Object.defineProperty(l,"$refs",{get:function(){return l.context.refsManager.refs},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"defaultProps",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"id",{get:function(){return this._id},set:function(d){console.error("当前正在试图修改场景对象(".concat(this.name,"/").concat(this.typeName,")的ID,只有在创建时才可以设置ID!后期修改无效!!!"))},enumerable:!1,configurable:!0}),Object.defineProperty(l.prototype,"components",{get:function(){return this._components},enumerable:!1,configurable:!0}),l.prototype._setDefaultName=function(){this.name="".concat(this.typeName,"_").concat((""+this.id).slice(-4))},l.prototype._innerGetJson=function(d){var C,_;d===void 0&&(d=!0);var b={id:this.id,type:this.typeName};try{for(var E=u(Object.keys(this.defaultProps)),F=E.next();!F.done;F=E.next()){var S=F.value;if(d){var U=this.defaultProps[S];(U instanceof a.ReactiveVariable?U.equals(this[S]):U===this[S])||(b[S]=this[S])}else b[S]=this[S]}}catch(T){C={error:T}}finally{try{F&&!F.done&&(_=E.return)&&_.call(E)}finally{if(C)throw C.error}}return b},l.prototype._innerSetJson=function(d,C,_){var b,E;if(d instanceof Object&&(!d.type||d.type===this.typeName)){d.id&&d.id!==this.id&&console.warn("value.id === undefined || value.id".concat(d.id," !== this.id(").concat(this.id,")"));var F=C||[];F.push("id","type");var S=Object.keys(this.defaultProps).filter(function(I){return!F.includes(I)});try{for(var U=u(S),T=U.next();!T.done;T=U.next()){var Q=T.value;if(Q in d)this[Q]=d[Q]===null?void 0:d[Q];else if(_==null||!_){var P=this.defaultProps[Q];P instanceof a.ReactiveVariable&&(P=P.value),this[Q]=P}}}catch(I){b={error:I}}finally{try{T&&!T.done&&(E=U.return)&&E.call(U)}finally{if(b)throw b.error}}}else console.error("value.type && value.type".concat(d.type," !== this.typeName").concat(this.typeName))},l.prototype.setJsonWithoutDefaults=function(d){this._innerSetJson(d,void 0,!0)},l.prototype.setJsonWithDefaults=function(d){this._innerSetJson(d,void 0,!1)},l.prototype.getJsonWithDefaults=function(){return this._innerGetJson(!1)},l.prototype.getJsonWithoutDefaults=function(){return this._innerGetJson(!0)},Object.defineProperty(l.prototype,"jsonStr",{get:function(){return JSON.stringify(this.json,void 0," ")},set:function(d){try{this.json=d&&JSON.parse(d)||{}}catch(C){console.error("SceneObject解析json数据时发生错误!error: ".concat(C))}},enumerable:!1,configurable:!0}),l.prototype.addDevTag=function(){for(var d=this,C=[],_=0;_<arguments.length;_++)C[_]=arguments[_];if(this.devTags){var b=C.filter(function(E){return!d.devTags.includes(E)});b.length>0&&(this.devTags=c(c([],f(this.devTags),!1),f(b),!1))}else this.devTags=C},l.prototype.deleteDevTag=function(){for(var d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];if(this.devTags){var _=this.devTags.filter(function(b){return!d.includes(b)});this.devTags=_}},Object.defineProperty(l.prototype,"selfCreatedEvent",{get:function(){var d=this;return this._selfCreatedEvent||(this._selfCreatedEvent=this.disposeVar(new a.Event),this.dispose(l.context.sceneObjCreatedEvent.disposableOn(function(C){if(!d._selfCreatedEvent)throw new Error("!this._createdEvent");C===d&&d._selfCreatedEvent.emit()}))),this._selfCreatedEvent},enumerable:!1,configurable:!0}),l.context=new s.SceneObjectsContext,l.register=l.context.register.bind(l.context),l.create=l.context.createSceneObject.bind(l.context),l.createFromClass=l.context.createSceneObjectFromClass.bind(l.context),l.createFromJson=l.context.createSceneObjectFromJson.bind(l.context),l}(a.Destroyable);A.SceneObject=r,function(i){i.createDefaultProps=function(){return{name:"未命名场景对象",ref:void 0,devTags:(0,a.reactArrayWithUndefined)(void 0),extras:(0,a.reactJson)(void 0)}}}(r=A.SceneObject||(A.SceneObject={})),A.SceneObject=r,(0,a.extendClassProps)(r.prototype,r.createDefaultProps),p(h(146),A)},2228:(B,A)=>{function h(E,F){return F===void 0&&(F=[0,0]),F[0]=-E[1],F[1]=E[0],F}function m(E,F,S){return S===void 0&&(S=[0,0]),S[0]=E[0]-F[0],S[1]=E[1]-F[1],S}function g(E,F){F===void 0&&(F=[0,0]);var S=function(U){return Math.sqrt(function(T){return T[0]*T[0]+T[1]*T[1]}(U))}(E);return F[0]=E[0]/S,F[1]=E[1]/S,F}function w(E,F){return F===void 0&&(F=[0,0]),F[0]=-E[0],F[1]=-E[1],F}function p(E,F,S){return S===void 0&&(S=[0,0]),S[0]=E[0]*F,S[1]=E[1]*F,S}function u(E,F,S){return S===void 0&&(S=[0,0]),S[0]=E[0]+F[0],S[1]=E[1]+F[1],S}function f(E,F){var S,U,T=(U=F,(S=E)[0]*U[0]+S[1]*U[1]),Q=Math.acos(T);return 1/Math.cos(Q/2)}function c(E,F,S){return S===void 0&&(S=[0,0]),S[0]=E,S[1]=F,S}Object.defineProperty(A,"__esModule",{value:!0}),A.extrudePolyline=void 0;var a=[0,0],n=[0,0],s=[0,0],r=[0,0],i=[0,0],l=[0,0],d=[0,0],C=[0,0];function _(E,F,S,U,T,Q){var P=m(E,F,C),I=h(g(P,P),r),M=m(S,E,C),K=h(g(M,M),l),W=w(I,i),L=w(K,d),O=u(I,K);g(O,O);var H,k,G=(k=K,(H=I)[0]*k[1]-H[1]*k[0]);if(Math.abs(G)<.1)u(N=p(O,U,C),E,N),Q.push(N[0],N[1]),T.push(Q.length/2),Q.push(E[0],E[1]),T.push(Q.length/2),p(X=w(O,C),U,X),u(X,E,X),Q.push(X[0],X[1]),T.push(Q.length/2);else if(G<0){u(N=p(I,U,C),E,N),Q.push(N[0],N[1]);var D=p(O,U,C);u(D,E,D),Q.push(D[0],D[1]),u(X=p(K,U,C),E,X),Q.push(X[0],X[1]),T.push(Q.length/2),Q.push(E[0],E[1]),T.push(Q.length/2),R=(R=f(L,W))>3?3:R,p(Y=w(O,C),R*U,Y),u(Y,E,Y),Q.push(Y[0],Y[1]),T.push(Q.length/2)}else{var R,N,X;u(N=p(O,(R=(R=f(I,K))>3?3:R)*U,C),E,N),Q.push(N[0],N[1]),T.push(Q.length/2),Q.push(E[0],E[1]),T.push(Q.length/2),u(X=p(W,U,C),E,X),Q.push(X[0],X[1]);var Y,Z=w(O,C);p(Z,U,Z),u(Z,E,Z),Q.push(Z[0],Z[1]),u(Y=p(L,U,C),E,Y),Q.push(Y[0],Y[1]),T.push(Q.length/2)}}var b=[];A.extrudePolyline=function(E,F,S,U,T,Q){S===void 0&&(S=!1),U=U??[],T=T??[],Q=Q??[];var P=b;P.length=0,function(I,M,K,W,L){if(K===void 0&&(K=!1),I.length%2!=0)throw new Error("positions.length % 2 !== 0");W=W??[],L=L??[];var O=I,H=O.length/2;if(!(H<2)){if(K){if(!(H>=3))throw new Error("loop should have >= 3 vertex!");var k=c(O[0],O[1],a),G=c(O[2],O[3],s);_(k,c(O[2*(H-1)+0],O[2*(H-1)+1],n),G,M,L,W)}else{k=c(O[0],O[1],a);var D=m(G=c(O[2],O[3],s),k,C),R=h(g(D,D),l);u(X=p(R,M,C),k,X),W.push(X[0],X[1]),L.push(W.length/2),W.push(k[0],k[1]),L.push(W.length/2),p(Y=w(R,C),M,Y),u(Y,k,Y),W.push(Y[0],Y[1]),L.push(W.length/2)}if(H>=3)for(var N=1;N<H-1;++N)k=c(O[2*N+0],O[2*N+1],a),G=c(O[2*(N+1)+0],O[2*(N+1)+1],s),_(k,c(O[2*(N-1)+0],O[2*(N-1)+1],n),G,M,L,W);if(K){if(!(H>=3))throw new Error("loop should have >= 3 vertex!");k=c(O[2*(H-1)+0],O[2*(H-1)+1],a),G=c(O[0],O[1],s),_(k,c(O[2*(H-2)+0],O[2*(H-2)*1],n),G,M,L,W)}else{var X,Y,Z=m(k=c(O[2*(H-1)+0],O[2*(H-1)+1],a),c(O[2*(H-2)+0],O[2*(H-2)+1],n),C),ie=h(g(Z,Z),r);u(X=p(ie,M,C),k,X),W.push(X[0],X[1]),L.push(W.length/2),W.push(k[0],k[1]),L.push(W.length/2),p(Y=w(ie,C),M,Y),u(Y,k,Y),W.push(Y[0],Y[1]),L.push(W.length/2)}}}(E,.5*F,S,U,P),function(I,M,K,W,L){if(W=W||[],L=L||[],I.length%2!=0)throw new Error("extrudedPositions.length % 2 !== 0");if(K.length%3!=0)throw new Error("extrudesSegments.length % 3 !== 0");for(var O=K.length/3,H=0,k=0;k<O;++k){for(var G=K[3*k+0],D=K[3*k+1],R=K[3*k+2],N=H;N<G;++N)W.push(0,0);if(G-H>=2)for(var X=H+1;X<G;++X)L.push(G,X,X-1);W.push(0,.5);for(var Y=D;Y<R;++Y)W.push(0,1);if(R-D>=2)for(var Z=D+1;Z<R;++Z)L.push(G,Z-1,Z);H=R}for(H=0,k=0;k<O-1;++k){var ie=K[3*k+0]-1,ae=K[3*k+1]-1,me=K[3*k+2]-1,we=K[3*k+2],re=K[3*(k+1)+0],se=K[3*(k+1)+1];L.push(ie,ae,re),L.push(ie,re,we),L.push(ae,me,se),L.push(ae,se,re)}M&&(ie=K[3*(O-1)+0]-1,ae=K[3*(O-1)+1]-1,me=K[3*(O-1)+2]-1,we=0,re=K[0],se=K[1],L.push(ie,ae,re),L.push(ie,re,we),L.push(ae,me,se),L.push(ae,se,re))}(U,S,P,T,Q)}},2243:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(5486),A),g(h(3631),A)},2267:(B,A)=>{function h(m,g){return(new Array(g).join("0")+m).slice(-g)}Object.defineProperty(A,"__esModule",{value:!0}),A.getDateTime=A.formatInterger=void 0,A.formatInterger=h,A.getDateTime=function(){var m=function(n){return h(n,2)},g=new Date,w=g.getFullYear(),p=g.getMonth()+1,u=g.getDate(),f=g.getHours(),c=g.getMinutes(),a=g.getSeconds();return"".concat(w,"-").concat(m(p),"-").concat(m(u)," ").concat(m(f),":").concat(m(c),":").concat(m(a))}},2277:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPrimitive=void 0;var w=h(1662),p=h(7372),u=h(7372),f=function(c){function a(n,s){s===void 0&&(s={});var r=c.call(this)||this;r._canvasPrimitivesContext=n,r._id=(0,w.createGuid)(),r._actived=!1,r._hovered=!1,r._selected=!1,r._opacity=1,r._show=!0;var i=s.needRedraw,l=i===void 0||i,d=s.needPickRedraw,C=d===void 0||d;return l&&(r._needRedrawEvent=new u.Event),C&&(r._needPickRedrawEvent=new u.Event),r._canvasPrimitivesContext.addPoi(r),r.dispose(function(){return r._canvasPrimitivesContext.removePoi(r)}),r.dispose(r.showChanged.disposableOn(function(){r.needRedraw(),r.needPickRedraw()})),r.dispose(r.opacityChanged.disposableOn(function(){return r.needRedraw()})),r}return g(a,c),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"context",{get:function(){return this._canvasPrimitivesContext},enumerable:!1,configurable:!0}),a.prototype.needRedraw=function(){this._needRedrawEvent?this._needRedrawEvent.emit():console.warn("no needRedrawEvent!")},a.prototype.needPickRedraw=function(){this._needPickRedrawEvent?this._needPickRedrawEvent.emit():console.warn("no needPickRedrawEvent!")},a.prototype.hasClickEvent=function(){return!!this._clickEvent},Object.defineProperty(a.prototype,"clickEvent",{get:function(){return this._clickEvent=this._clickEvent||new u.Event,this._clickEvent},enumerable:!1,configurable:!0}),a.prototype.hasClickOutEvent=function(){return!!this._clickOutEvent},Object.defineProperty(a.prototype,"clickOutEvent",{get:function(){return this._clickOutEvent=this._clickOutEvent||new u.Event,this._clickOutEvent},enumerable:!1,configurable:!0}),a.prototype.hasDbclickEvent=function(){return!!this._dbclickEvent},Object.defineProperty(a.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent=this._dbclickEvent||new u.Event,this._dbclickEvent},enumerable:!1,configurable:!0}),a.prototype.hasDbclickOutEvent=function(){return!!this._dbclickOutEvent},Object.defineProperty(a.prototype,"dbclickOutEvent",{get:function(){return this._dbclickOutEvent=this._dbclickOutEvent||new u.Event,this._dbclickOutEvent},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"actived",{get:function(){return this._actived},set:function(n){this._actived!==n&&(this._actived=n,this._activedChanged&&this._activedChanged.emit(n,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"activedChanged",{get:function(){return this._activedChanged=this._activedChanged||new u.Event,this._activedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"hovered",{get:function(){return this._hovered},set:function(n){this._hovered!==n&&(this._hovered=n,this._hoveredChanged&&this._hoveredChanged.emit(n,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"hoveredChanged",{get:function(){return this._hoveredChanged=this._hoveredChanged||new u.Event,this._hoveredChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"selected",{get:function(){return this._selected},set:function(n){this._selected!==n&&(this._selected=n,this._selectedChanged&&this._selectedChanged.emit(n,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"selectedChanged",{get:function(){return this._selectedChanged=this._selectedChanged||new u.Event,this._selectedChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"opacity",{get:function(){return this._opacity},set:function(n){this._opacity!==n&&(this._opacity=n,this._opacityChanged&&this._opacityChanged.emit(n,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new u.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"show",{get:function(){return this._show},set:function(n){this._show!==n&&(this._show=n,this._showChanged&&this._showChanged.emit(n,this))},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new u.Event,this._showChanged},enumerable:!1,configurable:!0}),a}(p.Destroyable);A.CanvasPrimitive=f},2299:(B,A)=>{function h(g,w){w=w||[];var p=g.parentNode;return p?h(p,w.concat(p)):w}function m(g){var w=g.composedPath&&g.composedPath()||g.path,p=g.target;if(w!=null)return w.indexOf(window)<0?w.concat(window):w;if(p===window)return[window];if(p===null)throw new Error("target === null");return[p].concat(h(p),window)}Object.defineProperty(A,"__esModule",{value:!0}),A.getDomEventCurrentTargetPos=void 0,A.getDomEventCurrentTargetPos=function(g,w){w===void 0&&(w=!1);for(var p=g.offsetX,u=g.offsetY,f=m(g),c=0;c<f.length;++c){var a=f[c];if(!(a!==g.currentTarget&&a instanceof HTMLElement))break;p+=a.clientLeft,u+=a.clientTop,p+=a.offsetLeft,u+=a.offsetTop}return w?[p*window.devicePixelRatio,u*window.devicePixelRatio]:[p,u]}},2429:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__values||function(s){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&s[r],l=0;if(i)return i.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&l>=s.length&&(s=void 0),{value:s&&s[l++],done:!s}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.destroyAnimationWithChildren=A.Animation=A.Channel=void 0;var p=h(7372),u=h(1662),f=h(7372),c=0,a=function(s){function r(i,l){i===void 0&&(i=0),l===void 0&&(l=1e3);var d=s.call(this)||this;return d._startTime=Number.NaN,d._enabled=!0,d._animation=new n(l),d.dispose(function(){return d._animation.destroy()}),d.dispose(function(){d._changedEvent&&(d._changedEvent.reset(),d._changedEvent=void 0)}),d.startTime=i,d.dispose(d._animation.changedEvent.disposableOn(function(){d.changedEvent&&d.changedEvent.emit(d)})),d}return g(r,s),Object.defineProperty(r.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new f.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"startTime",{get:function(){return this._startTime},set:function(i){this._startTime!==i&&(this._startTime=i,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"enabled",{get:function(){return this._enabled},set:function(i){this._enabled!==i&&(this._enabled=i,this.changedEvent&&this.changedEvent.emit(this))},enumerable:!1,configurable:!0}),r}(p.Destroyable);A.Channel=a;var n=function(s){function r(i){i===void 0&&(i=0);var l=s.call(this)||this;return l._duration=i,l._currentTime=Number.NaN,l.dispose(function(){l._channels&&(l._channels.destroy(),l._channels=void 0),l.enterFunc=void 0,l.leaveFunc=void 0,l.progressFunc=void 0,l._changedEvent&&(l._changedEvent.reset(),l._changedEvent=void 0)}),l}return g(r,s),Object.defineProperty(r.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new f.Event),this._changedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name||(this._name="Unknown".concat(++c)),this._name},set:function(i){this._name!==i&&(this._name=i,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hasChannels",{get:function(){return!(!this._channels||this._channels.length===0)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"channels",{get:function(){var i=this;if(!this._channels){var l=new WeakMap,d=new u.ObservableArray;this.dispose(d.toChangeEvent.disposableOn(function(C,_){for(var b=C.length,E=0;E<b;++E){var F=C[E];if(F.deleteCount>0)for(var S=F.start;S<F.deleteCount;++S){var U=_.get(S);if(!(M=l.get(U)))throw console.error("!disposeFunc"),new Error("!disposeFunc");M(),l.delete(U)}if(F.items.length>0)for(var T=F.items,Q=T.length,P=0;P<Q;++P){var I=T[P],M=I.changedEvent.disposableOn(function(K){i.recomputeDurationFromChildren(!1),i._changedEvent&&i._changedEvent.emit(i)});l.set(I,M)}}return!0})),this.dispose(d.changedEvent.disposableOn(function(){i.recomputeDurationFromChildren(!1),i._changedEvent&&i._changedEvent.emit(i)})),this._channels=d}return this._channels},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"duration",{get:function(){return this._duration},set:function(i){this._duration!==i&&(this._duration,this._duration=i,this._changedEvent&&this._changedEvent.emit(this))},enumerable:!1,configurable:!0}),r.prototype.recomputeDurationFromChildren=function(i){i===void 0&&(i=!1);var l=this._channels;if(l&&l.length>0){for(var d=0,C=l.length,_=0;_<C;++_){var b=l.get(_),E=b.animation,F=b.startTime;i&&E.recomputeDurationFromChildren();var S=F+E.duration;d<S&&(d=S)}this.duration=d}},r.prototype.valid=function(i){return(i=i??this._currentTime)>=0&&i<=this.duration},Object.defineProperty(r.prototype,"currentTime",{get:function(){return this._currentTime},set:function(i){if(this.valid(i)||(i=Number.NaN),!(Number.isNaN(i)&&Number.isNaN(this._currentTime))){if(this._currentTime!==i){var l=this._currentTime;if(Number.isNaN(i)?this.leaveFunc&&this.leaveFunc(l):Number.isNaN(this._currentTime)&&this.enterFunc&&this.enterFunc(i),this._currentTime=i,Number.isNaN(i)||this.progressFunc&&this.progressFunc(i,l),this._channels)for(var d=this._channels.length,C=0;C<d;++C){var _=this._channels.get(C),b=_.animation,E=_.startTime;if(_.enabled)if(Number.isNaN(i))b.currentTime=Number.NaN;else if(Number.isNaN(l)){var F=i-E;b.currentTime=F}else{var S=E+b.duration;F=i-E,i>l?(i<=E&&(b.currentTime=F),E>l&&E<=i&&(b.currentTime=0),i>E&&i<=S&&(b.currentTime=F),S>l&&S<=i&&(b.currentTime=b.duration),i>S&&(b.currentTime=F)):i<l&&(i>S&&(b.currentTime=F),S>l&&S<=i&&(b.currentTime=b.duration),i>E&&i<=S&&(b.currentTime=F),E>l&&E<=i&&(b.currentTime=0),i<=E&&(b.currentTime=F))}}}}},enumerable:!1,configurable:!0}),r}(p.Destroyable);A.Animation=n,A.destroyAnimationWithChildren=function s(r){var i,l;if(r.hasChannels)try{for(var d=w(r.channels),C=d.next();!C.done;C=d.next())s(C.value.animation)}catch(_){i={error:_}}finally{try{C&&!C.done&&(l=d.return)&&l.call(d)}finally{if(i)throw i.error}}r.destroy()}},2452:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.SmartListenerHandler=void 0;var h=function(){function m(){}return m.prototype._reset=function(g,w){this._listenerHandler=g,this._cid=w},m.prototype.clone=function(g){return(g=g??new m)._reset(this._listenerHandler,this._cid),g},Object.defineProperty(m.prototype,"valid",{get:function(){if(this._listenerHandler!==void 0&&typeof this._cid=="number"){var g=this._listenerHandler._cid;if(g!==void 0&&this._cid===g)return!0}return!1},enumerable:!1,configurable:!0}),m}();A.SmartListenerHandler=h},2520:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},p=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.ObservableArray=void 0;var u=h(9359),f=h(4899),c=function(a){function n(){var s=a.call(this)||this;return s._innerObj=[],s.dispose(function(){if(s.length=0,s._innerObj.length>0)throw new Error("this._innerObj.length > 0");s._toChangeEvent&&s._toChangeEvent.reset(),s._innerObj=void 0}),s}return g(n,a),Object.defineProperty(n.prototype,"toChangeEvent",{get:function(){return this._toChangeEvent||(this._toChangeEvent=new f.Event),this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"changedEvent",{get:function(){return this._changedEvent||(this._changedEvent=new f.Event),this._changedEvent},enumerable:!1,configurable:!0}),n.prototype._resetArray=function(s){this._toChangeEvent&&this._toChangeEvent.emit([{start:0,deleteCount:this._innerObj.length,items:s}],this);var r=s.length;this._innerObj.length=r;for(var i=0;i<r;++i)this._innerObj[i]=s[i];this._changedEvent&&this._changedEvent.emit(this)},n.prototype.splice=function(s,r){for(var i,l=[],d=2;d<arguments.length;d++)l[d-2]=arguments[d];var C=this._innerObj.length;(s=s>this._innerObj.length?this._innerObj.length:s)>C?s=C:s<0&&(s+=C)<0&&(s=0);var _=this._innerObj.length-s;if(r>_?r=_:r<0&&(r=0),arguments.length===1){this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:this._innerObj.length-s,items:[]}],this);var b=this._innerObj.splice(s);return this._changedEvent&&this._changedEvent.emit(this),b}return arguments.length===2?(this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:r,items:[]}],this),b=this._innerObj.splice(s,r),this._changedEvent&&this._changedEvent.emit(this),b):(this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:r,items:l}],this),b=(i=this._innerObj).splice.apply(i,p([s,r],w(l),!1)),this._changedEvent&&this._changedEvent.emit(this),b)},n.prototype.pop=function(){if(this._innerObj.length!==0){if(this._toChangeEvent){var s=this._innerObj.length-1;this._toChangeEvent.emit([{start:s,deleteCount:1,items:[]}],this)}var r=this._innerObj.pop();return this._changedEvent&&this._changedEvent.emit(this),r}},n.prototype.push=function(){for(var s,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(this._toChangeEvent){var l=this._innerObj.length;this._toChangeEvent.emit([{start:l,deleteCount:0,items:r}],this)}var d=(s=this._innerObj).push.apply(s,p([],w(r),!1));return this._changedEvent&&this._changedEvent.emit(this),d},Object.defineProperty(n.prototype,"length",{get:function(){return this._innerObj.length},set:function(s){if(s<0)throw new Error("value < 0");var r=this._innerObj.length;if(r!==s){if(this._toChangeEvent){var i=void 0,l=void 0,d=void 0;r>s?(i=s,l=r-s,d=[]):(i=r,l=0,d=new Array(s-r)),this._toChangeEvent.emit([{start:i,deleteCount:l,items:d}],this)}this._innerObj.length=s,this._changedEvent&&this._changedEvent.emit(this)}},enumerable:!1,configurable:!0}),n.prototype.get=function(s){return this._innerObj[s]},n.prototype.set=function(s,r){var i=this._innerObj.length;if(s<0||s>=i)throw new Error("index < 0 || index >= length");this._toChangeEvent&&this._toChangeEvent.emit([{start:s,deleteCount:1,items:[r]}],this),this._innerObj[s]=r,this._changedEvent&&this._changedEvent.emit(this)},n.prototype.indexOf=function(s){return this._innerObj.indexOf(s)},n.prototype[Symbol.iterator]=function(){return this._innerObj[Symbol.iterator]()},n}(u.Destroyable);A.ObservableArray=c},2601:function(B,A,h){var m=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,n){if(n||arguments.length===2)for(var s,r=0,i=a.length;r<i;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.wrapAsyncFuncToCancelablePromise=A.cancelablePromise=A._executeSetCancelFuncOrCancelResult=void 0;var w=h(8055);function p(c,a){typeof c=="function"?c(a):c.cancelFunc=a}function u(c,a){return a instanceof Promise?function(n,s){var r=void 0,i=s.then(function(l){if(r)throw r;return l});return p(n,function(l){r=l??new w.CancelError("_revocablePromise_forPromise cancel error!")}),i}(c,a):function(n,s){return new Promise(function(r,i){p(n,function(l){i(l??new w.CancelError("_revocablePromise_forExecutor cancel error!"))});try{s(r,i)}catch(l){i(l)}})}(c,a)}function f(c,a){for(var n=[],s=2;s<arguments.length;s++)n[s-2]=arguments[s];var r,i=void 0,l=a.apply(void 0,g([{cancelCheck:function(){if(i)throw i},registerCancelFunc:function(d){(r=r||[]).push(d)}}],m(n),!1));return p(c,function(d){if(i=d??new w.CancelError("wrapAsyncFuncToRevocablePromise cancel error!"),r)for(var C=r.length-1;C>=0;--C)(0,r[C])(d)}),l}A._executeSetCancelFuncOrCancelResult=p,A.cancelablePromise=function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];if(c.length===1){if(c[0]instanceof Promise){var n=u(r={},c[0]),s=r.cancelFunc;if(!s)throw new Error("!cancelResult.cancelFunc");return[s,n]}}else if(c.length===2){var r;if(c[0]instanceof Object)return u(r=c[0],c[1])}throw new Error("args wrong!")},A.wrapAsyncFuncToCancelablePromise=function(){for(var c=[],a=0;a<arguments.length;a++)c[a]=arguments[a];if(c.length>=1){if(typeof c[0]=="function"){var n={},s=f.apply(void 0,g([n],m(c),!1)),r=n.cancelFunc;if(!r)throw new Error("!cancelResult.cancelFunc");return[r,s]}return f.apply(void 0,g([],m(c),!1))}throw new Error("wrapAsyncFuncToCancelablePromise args error!")}},2723:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__values||function(s){var r=typeof Symbol=="function"&&Symbol.iterator,i=r&&s[r],l=0;if(i)return i.call(s);if(s&&typeof s.length=="number")return{next:function(){return s&&l>=s.length&&(s=void 0),{value:s&&s[l++],done:!s}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(s,r){var i=typeof Symbol=="function"&&s[Symbol.iterator];if(!i)return s;var l,d,C=i.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=C.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(i=C.return)&&i.call(C)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.SceneObjectsContext=void 0;var u=h(1662),f=h(9367),c=h(9026),a=h(1545),n=function(s){function r(){var i=s.call(this)||this;return i._sceneObjConstructorsMap=new Map,i._sceneObjs=new Map,i._sceneObjCreatedEvent=new u.Event,i._sceneObjToDestroyEvent=new u.Event,i._refsManager=i.disposeVar(new a.RefsManager(i)),i._environmentVariables={"xr-static":"xr-static"},i._environmentVariablesChanged=i.disposeVar(new u.Event),i}return g(r,s),Object.defineProperty(r.prototype,"typeNames",{get:function(){return this._sceneObjConstructorsMap.keys()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sceneObjs",{get:function(){return this._sceneObjs.values()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sceneObjCreatedEvent",{get:function(){return this._sceneObjCreatedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"sceneObjToDestroyEvent",{get:function(){return this._sceneObjToDestroyEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"refsManager",{get:function(){return this._refsManager},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"$refs",{get:function(){return this._refsManager.refs},enumerable:!1,configurable:!0}),r.prototype.register=function(i,l,d){return this._sceneObjConstructorsMap.has(i)&&(console.warn("register warn: ".concat(i," has registered, object is: ")),console.warn(this._sceneObjConstructorsMap.get(i))),this._sceneObjConstructorsMap.set(i,l),d&&this.setProps(i,d),i},r.prototype._getSceneObjConstructor=function(i){return this._sceneObjConstructorsMap.get(i)||void 0},r.prototype.getProps=function(i){var l=this._getSceneObjConstructor(i);if(l)return(0,u.getExtProp)(l,"__sceneObjExtraInfo");console.warn("cannot get constructor from type: ".concat(i))},r.prototype.setProps=function(i,l){var d=this._getSceneObjConstructor(i);if(d){var C=(0,u.getExtProp)(d,"__sceneObjExtraInfo");C||(C={},(0,u.setExtProp)(d,"__sceneObjExtraInfo",C)),Object.assign(C,l)}else console.warn("cannot get constructor from type: ".concat(i))},r.prototype.getProp=function(i,l){var d=this.getProps(i);return d&&d[l]},r.prototype.setProp=function(i,l,d){var C;this.setProps(i,((C={})[l]=d,C))},r.prototype._addSceneObject=function(i){var l=this;this._sceneObjs.set(i.id,i),this._sceneObjCreatedEvent.emit(i),i.dispose(function(){return l._deleteSceneObject(i)})},r.prototype._deleteSceneObject=function(i){this._sceneObjToDestroyEvent.emit(i),this._sceneObjs.delete(i.id)},r.prototype.createSceneObjectFromClass=function(i,l){if(!l||this._sceneObjs.has(l)){var d=(0,u.createGuid)();l&&console.warn("已存在相同id的对象!id自动变更!".concat(l," -> ").concat(d," 请注意:id变更可能导致引用失效!")),l=d}if(!l)throw new Error("id不能为空!");var C=new i(l);return C.id!==l&&(console.warn("sceneObj.id(".concat(C.id,") !== id(").concat(l,") sceneObjectType: ").concat(C.typeName)),console.warn("出现这种问题有可能是自定义的场景对象,没有在构造函数中传递id参数!示例如下:"),console.warn("class MySceneObj extends ESSceneObject { constructor(id) { super(id); } }")),this._addSceneObject(C),C},r.prototype.createSceneObject=function(i,l){if(typeof i=="string"){var d=this._getSceneObjConstructor(i);return d?this.createSceneObjectFromClass(d,l):void console.warn("Cannot find SceneObjectType: ".concat(i))}return this.createSceneObjectFromClass(i,l)},r.prototype.createSceneObjectFromJson=function(i){var l=this.createSceneObject(i.type,i.id);return l&&(l.json=i),l},r.prototype.getSceneObjectById=function(i){return this._sceneObjs.get(i)},r.prototype.getSceneObjectsByDevTags=function(i){var l,d,C=[],_=function(F){i.some(function(S){return F.devTags&&F.devTags.includes(S)})&&C.push(F)};try{for(var b=w(this.sceneObjs),E=b.next();!E.done;E=b.next())_(E.value)}catch(F){l={error:F}}finally{try{E&&!E.done&&(d=b.return)&&d.call(b)}finally{if(l)throw l.error}}return C},Object.defineProperty(r.prototype,"environmentVariables",{get:function(){return this._environmentVariables},set:function(i){var l,d;try{for(var C=w(Object.entries(i)),_=C.next();!_.done;_=C.next()){var b=p(_.value,2),E=b[0],F=b[1];this.setEnv(E,F)}}catch(S){l={error:S}}finally{try{_&&!_.done&&(d=C.return)&&d.call(C)}finally{if(l)throw l.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"environmentVariablesChanged",{get:function(){return this._environmentVariablesChanged},enumerable:!1,configurable:!0}),r.prototype.setEnv=function(i,l){if(this._environmentVariables[i]!==l){var d=this._environmentVariables[i];this._environmentVariables[i]=l,this._environmentVariablesChanged.emit(i,l,d)}},r.prototype.getEnv=function(i){return this._environmentVariables[i]},r.prototype.getStrFromEnv=function(i){return(0,c.replaceStrWithEnv)(i)},r.prototype.createEnvStrReact=function(i,l){return(0,f.createEnvEvalStrReact)(i,l)},r.prototype.createEvnStrReact=function(i,l){return(0,f.createEnvEvalStrReact)(i,l)},r}(u.Destroyable);A.SceneObjectsContext=n},2731:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ary2Ns=A.xyzw2N4=A.xyz2N3=A.xyz2N2=A.Xyzw2Ns=A.createNumbers=void 0,A.createNumbers=function(g){for(var w,p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];if(g>16)throw new Error("length > 16");for(var f=new Array(g),c=0;c<g;++c)f[c]=(w=p[c])!==null&&w!==void 0?w:0;return f};var h=function(){function g(w,p){this._xyzw=w,this._length=p}return Object.defineProperty(g.prototype,0,{get:function(){var w;return(w=this._xyzw.x)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.x=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,1,{get:function(){var w;return(w=this._xyzw.y)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.y=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,2,{get:function(){var w;return(w=this._xyzw.z)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.z=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,3,{get:function(){var w;return(w=this._xyzw.w)!==null&&w!==void 0?w:0},set:function(w){this._xyzw.w=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),g}();A.Xyzw2Ns=h,A.xyz2N2=function(g){return new h(g,2)},A.xyz2N3=function(g){return new h(g,3)},A.xyzw2N4=function(g){return new h(g,4)};var m=function(){function g(w,p,u,f){this._array=w,this._length=p,this._start=u,this._stride=f}return Object.defineProperty(g.prototype,"length",{get:function(){return this._length},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,0,{get:function(){return this._array[this._start+0*this._stride]},set:function(w){this._array[this._start+0*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,1,{get:function(){return this._array[this._start+1*this._stride]},set:function(w){this._array[this._start+1*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,2,{get:function(){return this._array[this._start+2*this._stride]},set:function(w){this._array[this._start+2*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,3,{get:function(){return this._array[this._start+3*this._stride]},set:function(w){this._array[this._start+3*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,4,{get:function(){return this._array[this._start+4*this._stride]},set:function(w){this._array[this._start+4*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,5,{get:function(){return this._array[this._start+5*this._stride]},set:function(w){this._array[this._start+5*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,6,{get:function(){return this._array[this._start+6*this._stride]},set:function(w){this._array[this._start+6*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,7,{get:function(){return this._array[this._start+7*this._stride]},set:function(w){this._array[this._start+7*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,8,{get:function(){return this._array[this._start+8*this._stride]},set:function(w){this._array[this._start+8*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,9,{get:function(){return this._array[this._start+9*this._stride]},set:function(w){this._array[this._start+9*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,10,{get:function(){return this._array[this._start+10*this._stride]},set:function(w){this._array[this._start+10*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,11,{get:function(){return this._array[this._start+11*this._stride]},set:function(w){this._array[this._start+11*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,12,{get:function(){return this._array[this._start+12*this._stride]},set:function(w){this._array[this._start+12*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,13,{get:function(){return this._array[this._start+13*this._stride]},set:function(w){this._array[this._start+13*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,14,{get:function(){return this._array[this._start+14*this._stride]},set:function(w){this._array[this._start+14*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,15,{get:function(){return this._array[this._start+15*this._stride]},set:function(w){this._array[this._start+15*this._stride]=w},enumerable:!1,configurable:!0}),Object.defineProperty(g.prototype,16,{get:function(){return this._array[this._start+16*this._stride]},set:function(w){this._array[this._start+16*this._stride]=w},enumerable:!1,configurable:!0}),g}();A.ary2Ns=function(g,w,p,u){return p===void 0&&(p=0),u===void 0&&(u=1),new m(g,w,p,u)}},2789:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(2228),A)},2811:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.TimingDeprecated=void 0;var w=h(5726),p=h(1662),u=function(){function c(a,n,s,r,i){a===void 0&&(a=0),n===void 0&&(n=0),s===void 0&&(s=0),this.startTime=a,this.duration=n,this.delay=s,this.proccessFunc=r,this.completeFunc=i,this._lastUpdateTimeStamp=0,this._processData={ratio:0,timeStamp:0,timeStampFromStart:0,timeStampFromLastUpdate:0}}return c.prototype.update=function(a){var n=(a-this.startTime)/this.duration;n>=0&&(this._processData.ratio=n,this._processData.timeStamp=a,this._processData.timeStampFromStart=a-this.startTime,this._processData.timeStampFromLastUpdate=a-this._lastUpdateTimeStamp,this._lastUpdateTimeStamp=a,this.proccessFunc&&this.proccessFunc(this._processData),n>=1&&this.completeFunc&&this.completeFunc())},c.prototype.start=function(){this.startTime=performance.now()+this.delay,this._lastUpdateTimeStamp=this.startTime},c}(),f=function(c){function a(n,s,r){n===void 0&&(n=1e3),s===void 0&&(s=0),r===void 0&&(r=p.defaultStartUpdateFunc);var i,l=this;function d(){i&&i()}return(l=c.call(this,function(C){var _=C.progressFunc,b=C.completeFunc,E=(C.errorFunc,l.startUpdateFunc&&l.startUpdateFunc(l._base.update.bind(l._base))||void 0);return l._base.startTime=performance.now(),l._base.duration=l.duration,l._base.delay=l.delay,l._base.proccessFunc=_,l._base.completeFunc=function(){E&&E(),b()},l._base.start(),i=E,d})||this)._base=new u,l.duration=n,l.delay=s,l.startUpdateFunc=r,l}return g(a,c),Object.defineProperty(a.prototype,"startTime",{get:function(){return this._base.startTime},enumerable:!1,configurable:!0}),a}(w.ProcessingDeprecated);A.TimingDeprecated=f},2830:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._setTranslation=A._getTranslation=void 0;var m=h(2731);A._getTranslation=function(g,w){return(w=w||(0,m.createNumbers)(3))[0]=g[12],w[1]=g[13],w[2]=g[14],w},A._setTranslation=function(g,w,p){return g!==(p=p||(0,m.createNumbers)(16))&&(p[0]=g[0],p[1]=g[1],p[2]=g[2],p[3]=g[3],p[4]=g[4],p[5]=g[5],p[6]=g[6],p[7]=g[7],p[8]=g[8],p[9]=g[9],p[10]=g[10],p[11]=g[11],p[15]=g[15]),p[12]=w[0],p[13]=w[1],p[14]=w[2],p}},2882:function(B,A){var h=this&&this.__values||function(m){var g=typeof Symbol=="function"&&Symbol.iterator,w=g&&m[g],p=0;if(w)return w.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&p>=m.length&&(m=void 0),{value:m&&m[p++],done:!m}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.pluckProperty=void 0,A.pluckProperty=function(m,g){for(var w,p,u=[],f=2;f<arguments.length;f++)u[f-2]=arguments[f];var c=m;try{for(var a=h(u),n=a.next();!n.done;n=a.next()){var s=n.value;if(!c[s]){if(!g)return;c[s]={}}c=c[s]}}catch(r){w={error:r}}finally{try{n&&!n.done&&(p=a.return)&&p.call(a)}finally{if(w)throw w.error}}return c}},2921:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},p=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.Fetching=void 0;var u=h(643),f=h(5726),c=function(a){function n(s){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var l=a.call(this,function(d){for(var C=d.progressFunc,_=d.completeFunc,b=d.errorFunc,E=[],F=1;F<arguments.length;F++)E[F-1]=arguments[F];var S={},U={loaded:0,total:0},T=l._fetchArgs||E;if(T.length===0)throw new Error("fetchArgs.length === 0");if(u.cancelableFetchDeprecated.apply(void 0,p([S,function(Q,P){U.loaded=Q,U.total=P,C(U)}],w(T),!1)).then(s).then(_).catch(function(Q){Q instanceof f.CancelError||b(Q)}),!S.cancelFunc)throw new Error("!cancelResult.cancelFunc");return S.cancelFunc})||this;return r.length>0&&(l._fetchArgs=r),l}return g(n,a),Object.defineProperty(n.prototype,"fetchArgs",{get:function(){return this._fetchArgs},enumerable:!1,configurable:!0}),n}(h(6891).ProcessingDeprecated);A.Fetching=c},2967:(B,A)=>{var h,m;Object.defineProperty(A,"__esModule",{value:!0}),A.encodeString=void 0,A.encodeString=function(g,w){var p,u=h=h||new TextEncoder,f=0;if(u.encodeInto){var c=void 0;w?c=w:(p=3*g.length,(!m||m.byteLength<p)&&(m=new Uint8Array(2*p)),c=new Uint8Array(m.buffer,0,p));var a=u.encodeInto(g,c);if(a.written===void 0)throw new Error("encodedResults.written === 'undefined'");f=a.written}else{var n=u.encode(g);w&&w.set(n),f=n.byteLength}return f}},2968:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getFinalUri=void 0;var m=h(6432);A.getFinalUri=function(g,w){var p=(0,m.isAbsoluteUri)(g),u=g;return(0,m.isBase64Uri)(g)||p||w&&(u=w+"/"+g),u}},2999:function(B,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r};Object.defineProperty(A,"__esModule",{value:!0}),A.withoutUndefinedArray=A.withoutUndefined=void 0;var g=h(2168),w=h(3915);function p(u,f,c,a){var n=m((0,g.getReactFuncs)(u),3),s=n[0],r=n[1],i=n[2],l=(0,w.react)(f,c,a);return l.dispose(l.changed.dwon(function(){l.value!==f?r(l.value):r(void 0)})),s()!==void 0&&(l.value=s()),l.dispose(i.don(function(d){l.value=d!==void 0?d:f})),l}A.withoutUndefined=p,A.withoutUndefinedArray=function(u,f,c,a){return p(u,f,function(n,s){return n.length===s.length&&n.every(function(r,i){return c&&c(r,s[i])||r===s[i]})},function(n,s){for(var r=s||new Array(n.length),i=0;i<n.length;++i)r[i]=a?a(n[i]):n[i];return r.length=n.length,r})}},3009:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.nextPow2=void 0,A.nextPow2=function(h){return h|=0,h--,h|=h>>1,h|=h>>2,h|=h>>4,h|=h>>8,h|=h>>16,++h}},3022:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},3096:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.VideoProcessing=void 0;var w=h(1662),p=h(8106),u=function(c){function a(n,s){var r=c.call(this)||this;r._complexImage=n,r._videoSrc=s;var i,l=document.createElement("video");return l.src=r._videoSrc,l.style.position="absolute",l.style.top="0px",l.style.left="0px",l.style.zIndex="-100",l.style.visibility="hidden",l.style.width="0px",l.style.height="0px",(i=function(){l.crossOrigin=r._complexImage.crossOrigin})(),r.dispose(r._complexImage.crossOriginChanged.disposableOn(i)),(i=function(){l.autoplay=r._complexImage.autoplay})(),r.dispose(r._complexImage.autoplayChanged.disposableOn(i)),(i=function(){l.loop=r._complexImage.loop})(),r.dispose(r._complexImage.loopChanged.disposableOn(i)),l.muted=!0,document.body.appendChild(l),r._element=l,r.dispose(function(){return document.body.removeChild(l)}),r}return g(a,c),Object.defineProperty(a.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),a}(w.Destroyable),f=function(c){function a(n,s){var r=c.call(this)||this;return r._complexImage=n,r._imageUri=s,r._videoDom=r.disposeVar(new u(r._complexImage,r._imageUri)),r._update=r.disposeVar((0,p.createAnimateFrameWithStartValues)(function(){return r.update()})),r._updateStart=r._update.start(),r}return g(a,c),Object.defineProperty(a.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),a.prototype.update=function(){if(!(this.videoElement.readyState<2)){var n=this._complexImage,s=this.videoElement,r=s.videoWidth,i=s.videoHeight;n.size=[r,i],n.pixelFormat="RGBA",n.copyTexture({source:this.videoElement})}},a}(w.Destroyable);A.VideoProcessing=f},3207:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.defineReactiveProp=void 0;var m=h(7372);A.defineReactiveProp=function(g,w,p,u){var f,c="_"+w,a="_"+w+"Changed",n=w+"Changed";Object.defineProperties(g.prototype,((f={})[w]={get:function(){return this[c]===void 0&&p!==void 0&&(this[c]=p),this[c]},set:function(s){if(this[c]===void 0&&p!==void 0&&(this[c]=p),u?!u(this[c],s):this[c]!==s){var r=this[c];this[c]=s,this[a]&&this[a].emit(s,r)}}},f[n]={get:function(){var s=this;return this[a]===void 0&&(this[a]=new m.Event,this.dispose!==void 0&&this.dispose(function(){return s[a].destroy()})),this[a]}},f))}},3249:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.prevPow2=void 0,A.prevPow2=function(h){return h|=0,h|=h>>1,h|=h>>2,h|=h>>4,h|=h>>8,h|=h>>16,++h>>1}},3280:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.length=void 0;var m=h(6138),g=function(w){return++w};A.length=function(w){return(0,m.reduce)(w,g,0)}},3281:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(4416),A),g(h(9122),A),g(h(9812),A),g(h(312),A),g(h(4833),A),g(h(5590),A),g(h(4915),A),g(h(8089),A),g(h(2731),A),g(h(6172),A),g(h(7215),A),g(h(7665),A),g(h(9549),A),g(h(5873),A),g(h(602),A),g(h(9898),A),g(h(5985),A),g(h(7500),A),g(h(7413),A)},3300:function(B,A,h){var m=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C},g=this&&this.__spreadArray||function(n,s,r){if(r||arguments.length===2)for(var i,l=0,d=s.length;l<d;l++)!i&&l in s||(i||(i=Array.prototype.slice.call(s,0,l)),i[l]=s[l]);return n.concat(i||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A._getMaximumScale=A._setScale=A._getScale=void 0;var w=h(2731),p=h(9898),u=h(6021);function f(n,s){return(s=s||(0,w.createNumbers)(3))[0]=p.Vector.magnitude([n[0],n[1],n[2]]),s[1]=p.Vector.magnitude([n[4],n[5],n[6]]),s[2]=p.Vector.magnitude([n[8],n[9],n[10]]),s}A._getScale=f;var c=(0,w.createNumbers)(3);A._setScale=function(n,s,r){var i=f(n,c),l=p.Vector.divide(s,i,c);return(0,u._multiplyByScale)(n,l,r)};var a=(0,w.createNumbers)(3);A._getMaximumScale=function(n){var s=f(n,a);return Math.max.apply(Math,g([],m(p.Vector.itr(s)),!1))}},3315:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__generator||function(a,n){var s,r,i,l,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return l={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function C(_){return function(b){return function(E){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,E[0]&&(d=0)),d;)try{if(s=1,r&&(i=2&E[0]?r.return:E[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,E[1])).done)return i;switch(r=0,i&&(E=[2&E[0],i.value]),E[0]){case 0:case 1:i=E;break;case 4:return d.label++,{value:E[1],done:!1};case 5:d.label++,r=E[1],E=[0];continue;case 7:E=d.ops.pop(),d.trys.pop();continue;default:if(!((i=(i=d.trys).length>0&&i[i.length-1])||E[0]!==6&&E[0]!==2)){d=0;continue}if(E[0]===3&&(!i||E[1]>i[0]&&E[1]<i[3])){d.label=E[1];break}if(E[0]===6&&d.label<i[1]){d.label=i[1],i=E;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(E);break}i[2]&&d.ops.pop(),d.trys.pop();continue}E=n.call(a,d)}catch(F){E=[6,F],r=0}finally{s=i=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([_,b])}}},p=this&&this.__values||function(a){var n=typeof Symbol=="function"&&Symbol.iterator,s=n&&a[n],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.UiTree=void 0;var u=h(1662),f=h(8106),c=function(a){function n(s){var r=a.call(this)||this;r._tree=s,r._redrawEvent=r.disposeVar(new u.Event),r._containerScrollTop=r.disposeVar((0,u.react)(0)),r._containerClientHeight=r.disposeVar((0,u.react)(-1)),r._container=r.disposeVar((0,u.react)(void 0)),r._redrawInfo={topFreeSpaceHeight:0,topUnvisibleItemNum:0,middleTreeItems:[],bottomFreeSpaceHeight:0,bottomUnvisibleItemNum:0};var i,l=r._containerClientHeight,d=r._containerScrollTop,C=r._tree._forceRedrawEvent,_=r.disposeVar((0,u.createNextAnimateFrameEvent)(r._tree.itemDivHeightChanged,r._tree.itemChildrenChanged,r._tree.itemsChanged,l.changed,d.changed,C)),b=r.redrawInfo,E=function(F){var S=F.uiTreeObject;return!(!F.children||S&&S.collapsed)};return r.dispose(_.disposableOn(function(){var F,S,U,T;if(b.topFreeSpaceHeight=0,b.topUnvisibleItemNum=0,b.middleTreeItems.length=0,b.bottomFreeSpaceHeight=0,b.bottomUnvisibleItemNum=0,r._containerClientHeight.value>=0){var Q=(0,u.length)(r._tree.getDescendants(E)),P=r._tree.itemDivHeight,I=P*Q,M=(0,u.max)([(0,u.min)([(0,u.max)([I-l.value,0]),d.value]),0]),K=M/P|0,W=0|Math.ceil((M-K*P+l.value)/P);K>0&&(b.topUnvisibleItemNum=K,b.topFreeSpaceHeight=K*r._tree.itemDivHeight);var L=K+W,O=0;try{for(var H=p(r._tree.getDescendants(E)),k=H.next();!k.done;k=H.next()){var G=k.value;if(O>=L)break;O>=K&&b.middleTreeItems.push(G),++O}}catch(X){F={error:X}}finally{try{k&&!k.done&&(S=H.return)&&S.call(H)}finally{if(F)throw F.error}}var D=Q-K-W;D>0&&(b.bottomUnvisibleItemNum=D,b.bottomFreeSpaceHeight=D*r._tree.itemDivHeight)}else try{for(var R=p(r._tree.getDescendants(E)),N=R.next();!N.done;N=R.next())G=N.value,b.middleTreeItems.push(G)}catch(X){U={error:X}}finally{try{N&&!N.done&&(T=R.return)&&T.call(R)}finally{if(U)throw U.error}}r._redrawEvent.emit(b)})),r.dispose(function(){return i&&(i.destroy(),i=void 0)}),r.dispose(r.containerChanged.disposableOn(function(F){i&&(i.destroy(),i=void 0),F&&(i=(0,f.createAnimateFrame)()).start(function(){var S=F,U=S.scrollTop,T=S.clientHeight;U===void 0||T===void 0?(0,u.oneTimeWarning)("createUiTreeWithContainer error: conainter has no scrollTop or clientHeight property!"):(r.containerScrollTop=U,r.containerClientHeight=T)})})),r}return g(n,a),Object.defineProperty(n.prototype,"container",{get:function(){return this._container.value},set:function(s){this._container.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"containerChanged",{get:function(){return this._container.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"redrawInfo",{get:function(){return this._redrawInfo},enumerable:!1,configurable:!0}),n.prototype.getTreeItemPos=function(s){var r,i,l=0,d=!1;try{for(var C=p(this._tree.getDescendants(function(b){var E=b.uiTreeObject;return!(!b.children||E&&E.collapsed)})),_=C.next();!_.done;_=C.next()){if(_.value===s){d=!0;break}++l}}catch(b){r={error:b}}finally{try{_&&!_.done&&(i=C.return)&&i.call(C)}finally{if(r)throw r.error}}return d?[l,l*this._tree.itemDivHeight]:void 0},n.prototype.collapseAll=function(){var s,r;console.log("collapseAll");try{for(var i=p(this.tree.root.getDescendants()),l=i.next();!l.done;l=i.next())l.value.uiTreeObject.collapsed=!0}catch(d){s={error:d}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}},Object.defineProperty(n.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"redrawEvent",{get:function(){return this._redrawEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"containerScrollTop",{get:function(){return this._containerScrollTop.value},set:function(s){this._containerScrollTop.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"containerScrollTopChanged",{get:function(){return this._containerScrollTop.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"containerClientHeight",{get:function(){return this._containerClientHeight.value},set:function(s){this._containerClientHeight.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"containerClientHeightChanged",{get:function(){return this._containerClientHeight.changed},enumerable:!1,configurable:!0}),n.prototype.getAllItems=function(s){var r,i,l,d,C,_;return w(this,function(b){switch(b.label){case 0:b.trys.push([0,5,6,7]),r=p(this._tree.getDescendants()),i=r.next(),b.label=1;case 1:return i.done?[3,4]:(l=i.value,s&&!s(l)?[3,3]:[4,l]);case 2:b.sent(),b.label=3;case 3:return i=r.next(),[3,1];case 4:return[3,7];case 5:return d=b.sent(),C={error:d},[3,7];case 6:try{i&&!i.done&&(_=r.return)&&_.call(r)}finally{if(C)throw C.error}return[7];case 7:return[2]}})},n.prototype.getAllSelectedItems=function(){return this.getAllItems(function(s){return s.uiTreeObject.selected})},n.prototype.getAllCheckedLeafItems=function(){return this.getAllItems(function(s){return!s.children&&s.uiTreeObject.checkedStatus==="checked"})},n.prototype.clearAllSelectedItems=function(s){var r,i;try{for(var l=p(this.getAllSelectedItems()),d=l.next();!d.done;d=l.next()){var C=d.value;s&&s.includes(C)||(C.uiTreeObject.selected=!1)}}catch(_){r={error:_}}finally{try{d&&!d.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}},n}(u.Destroyable);A.UiTree=c},3428:()=>{ArrayBuffer.transfer||(ArrayBuffer.transfer=function(B,A){B=Object(B);var h=new ArrayBuffer(A);if(!(B instanceof ArrayBuffer&&h instanceof ArrayBuffer))throw new TypeError("Source and destination must be ArrayBuffer instances");if(h.byteLength>=B.byteLength){var m=0,g=B.byteLength;[8,4,2,1].forEach(function(w){if(g>=w){var p=function(u,f,c,a,n){var s=Uint8Array;switch(u){case 8:s=Float64Array;break;case 4:s=Float32Array;break;case 2:s=Uint16Array;break;default:s=Uint8Array}for(var r=new s(f,a,Math.trunc(n/u)),i=new s(c,a,Math.trunc(n/u)),l=0;l<i.length;l++)i[l]=r[l];return{nextOffset:r.byteOffset+r.byteLength,leftBytes:f.byteLength-(r.byteOffset+r.byteLength)}}(w,B,h,m,g);m=p.nextOffset,g=p.leftBytes}})}return h})},3457:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getBaseUri=void 0,A.getBaseUri=function(h){return h.substr(0,h.lastIndexOf("/"))}},3526:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},3631:(B,A)=>{function h(m,g){return m instanceof Promise?m.then(g):Promise.resolve(m).then(g)}Object.defineProperty(A,"__esModule",{value:!0}),A.when=void 0,A.when=h,h.defer=function(){var m={},g=new Promise(function(w,p){m.resolve=w,m.reject=p});return m.promise=g,m},h.resolve=function(m){return Promise.resolve(m)}},3639:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__values||function(n){var s=typeof Symbol=="function"&&Symbol.iterator,r=s&&n[s],i=0;if(r)return r.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.AnimationPlayer=void 0;var p=h(2429),u=h(7372),f=h(7372),c=h(2127),a=function(n){function s(r){r===void 0&&(r=5e3);var i=n.call(this)||this;return i._animation=new p.Animation(r),i.dispose(function(){i.destroyAllChannels(),i._animation.destroy()}),i._player=new c.Player(r),i.dispose(function(){return i._player.destroy()}),i._initAnimation(),i._selectedChannelChanged=new f.Event,i}return g(s,n),Object.defineProperty(s.prototype,"animation",{get:function(){return this._animation},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"selectedChannelChanged",{get:function(){return this._selectedChannelChanged||(this._selectedChannelChanged=new f.Event),this._selectedChannelChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"selectedChannel",{get:function(){return this._selectedChannel},set:function(r){if(this._selectedChannel!==r){var i=this._selectedChannel;this._selectedChannel=r,this._selectedChannelChanged&&this._selectedChannelChanged.emit(r,i)}},enumerable:!1,configurable:!0}),s.prototype._initAnimation=function(){var r=this,i=this._animation,l=this._player;i.progressFunc=function(d){},this.dispose(function(){i.progressFunc=void 0,i.enterFunc=void 0,i.leaveFunc=void 0}),this.dispose(l.currentTimeChangedEvent.disposableOn(function(d,C){l.playing?i.currentTime=d:(i.currentTime=d,i.currentTime=Number.NaN)})),this.dispose(l.startPlayingEvent.disposableOn(function(d){i.currentTime=d})),this.dispose(l.stopPlayingEvent.disposableOn(function(d){i.currentTime=Number.NaN})),this.dispose(this._animation.changedEvent.disposableOn(function(d){r._player.duration=d.duration}))},s.prototype.addChannel=function(){var r=new p.Channel(1e3,2e3);if(this._selectedChannel){var i=this._animation.channels.indexOf(this._selectedChannel);this._animation.channels.splice(i+1,0,r)}else this._animation.channels.push(r);return r},s.prototype.removeChannel=function(){if(this._selectedChannel){var r=this._animation.channels.indexOf(this._selectedChannel);r!==-1&&(this._animation.channels.splice(r,1),this._selectedChannel.destroy()),this._selectedChannel=void 0}else console.warn("请先选择需要删除的Channel.")},s.prototype.raiseChannel=function(r){var i=this._animation.channels.indexOf(r);if(i===-1)console.warn("-1 === index");else if(i===0)console.warn("cannot raise current channel!");else{if(!(i>0))throw new Error("should not be here!");this._animation.channels.splice(i,1),this._animation.channels.splice(i-1,0,r)}},s.prototype.lowerChannel=function(r){var i=this._animation.channels.indexOf(r);if(i===-1)console.warn("-1 === index");else if(i===this._animation.channels.length-1)console.warn("cannot lower current channel!");else{if(!(i>=0))throw new Error("should not be here!");this._animation.channels.splice(i,1),this._animation.channels.splice(i+1,0,r)}},s.prototype.destroyAllChannels=function(){var r,i,l=this._animation;if(l.hasChannels){try{for(var d=w(l.channels),C=d.next();!C.done;C=d.next()){var _=C.value;(0,p.destroyAnimationWithChildren)(_.animation)}}catch(b){r={error:b}}finally{try{C&&!C.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}l.channels.length=0,this._selectedChannel=void 0}},s}(u.Destroyable);A.AnimationPlayer=a},3735:function(B,A,h){var m=this&&this.__generator||function(w,p){var u,f,c,a,n={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(r){return function(i){return function(l){if(u)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(n=0)),n;)try{if(u=1,f&&(c=2&l[0]?f.return:l[0]?f.throw||((c=f.return)&&c.call(f),0):f.next)&&!(c=c.call(f,l[1])).done)return c;switch(f=0,c&&(l=[2&l[0],c.value]),l[0]){case 0:case 1:c=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,f=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(!((c=(c=n.trys).length>0&&c[c.length-1])||l[0]!==6&&l[0]!==2)){n=0;continue}if(l[0]===3&&(!c||l[1]>c[0]&&l[1]<c[3])){n.label=l[1];break}if(l[0]===6&&n.label<c[1]){n.label=c[1],c=l;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(l);break}c[2]&&n.ops.pop(),n.trys.pop();continue}l=p.call(w,n)}catch(d){l=[6,d],f=0}finally{u=c=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([r,i])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.getMinMaxPosition=void 0;var g=h(6362);A.getMinMaxPosition=function(w,p){var u,f,c,a,n,s,r,i;if(w.length%3!=0)throw new Error("positions.length % 3 !== 0");var l=w.length/3;function d(b){var E;return m(this,function(F){switch(F.label){case 0:E=0,F.label=1;case 1:return E<l?[4,w[3*E+b]]:[3,4];case 2:F.sent(),F.label=3;case 3:return++E,[3,1];case 4:return[2]}})}var C=(u=p==null?void 0:p.min)!==null&&u!==void 0?u:[NaN,NaN,NaN],_=(f=p==null?void 0:p.max)!==null&&f!==void 0?f:[NaN,NaN,NaN];return C[0]=(c=(0,g.min)(d(0)))!==null&&c!==void 0?c:NaN,C[1]=(a=(0,g.min)(d(1)))!==null&&a!==void 0?a:NaN,C[2]=(n=(0,g.min)(d(2)))!==null&&n!==void 0?n:NaN,_[0]=(s=(0,g.max)(d(0)))!==null&&s!==void 0?s:NaN,_[1]=(r=(0,g.max)(d(1)))!==null&&r!==void 0?r:NaN,_[2]=(i=(0,g.max)(d(2)))!==null&&i!==void 0?i:NaN,{min:C,max:_}}},3804:function(B,A,h){var m=this&&this.__generator||function(p,u){var f,c,a,n,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return n={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function r(i){return function(l){return function(d){if(f)throw new TypeError("Generator is already executing.");for(;n&&(n=0,d[0]&&(s=0)),s;)try{if(f=1,c&&(a=2&d[0]?c.return:d[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,d[1])).done)return a;switch(c=0,a&&(d=[2&d[0],a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,c=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||d[0]!==6&&d[0]!==2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=u.call(p,s)}catch(C){d=[6,C],c=0}finally{f=a=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([i,l])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.objsIterator=void 0;var g=h(1803),w=h(8144);A.objsIterator=function(p,u){var f,c,a,n;return m(this,function(s){switch(s.label){case 0:f=(0,w.getIterator)(p),s.label=1;case 1:return c=f.next(),a=c.done,n=c.value,a?[3,3]:[4,(0,g.getValueFromProps)(n,u)];case 2:return s.sent(),[3,1];case 3:return[2]}})}},3815:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9355),A),g(h(4344),A)},3915:function(B,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(C[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function C(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),w=this&&this.__assign||function(){return w=Object.assign||function(l){for(var d,C=1,_=arguments.length;C<_;C++)for(var b in d=arguments[C])Object.prototype.hasOwnProperty.call(d,b)&&(l[b]=d[b]);return l},w.apply(this,arguments)},p=this&&this.__read||function(l,d){var C=typeof Symbol=="function"&&l[Symbol.iterator];if(!C)return l;var _,b,E=C.call(l),F=[];try{for(;(d===void 0||d-- >0)&&!(_=E.next()).done;)F.push(_.value)}catch(S){b={error:S}}finally{try{_&&!_.done&&(C=E.return)&&C.call(E)}finally{if(b)throw b.error}}return F},u=this&&this.__spreadArray||function(l,d,C){if(C||arguments.length===2)for(var _,b=0,E=d.length;b<E;b++)!_&&b in d||(_||(_=Array.prototype.slice.call(d,0,b)),_[b]=d[b]);return l.concat(_||Array.prototype.slice.call(d))};Object.defineProperty(A,"__esModule",{value:!0}),A.reactPosition2DsSet=A.reactPositionsSet=A.reactPositions=A.reactJsonCollectionWithUndefined=A.reactJsonCollection=A.reactArrayCollectionWithUndefined=A.reactArrayCollection=A.reactPlainObjectWithUndefined=A.reactPlainObject=A.reactJsonWithUndefined=A.reactJson=A.reactDeepArrayWithUndefined=A.reactDeepArray=A.reactArrayWithUndefined=A.reactArray=A.react=A.ReactiveVariable=void 0;var f=h(9359),c=h(4899),a=function(l){function d(C,_,b){var E=l.call(this)||this;return E._equalsFunc=_,E._assignFunc=b,E._value=E._assignFunc&&E._assignFunc(C,void 0)||C,E}return g(d,l),Object.defineProperty(d.prototype,"assignFunc",{get:function(){return this._assignFunc},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"equalsFunc",{get:function(){return this._equalsFunc},enumerable:!1,configurable:!0}),d.prototype.equals=function(C){return this._equalsFunc?this._equalsFunc(this._value,C):this._value===C},Object.defineProperty(d.prototype,"value",{get:function(){return this._value},set:function(C){if(this._equalsFunc?!this._equalsFunc(this._value,C):this._value!==C){if(this.toChangeFunc&&!this.toChangeFunc(C,this._value))return;this._assignFunc?(this._oldValue=this._assignFunc(this._value,this._oldValue),this._value=this._assignFunc(C,this._value)):(this._oldValue=this._value,this._value=C),this._changed&&this._changed.emit(C,this._oldValue)}},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"changed",{get:function(){return this._changed||(this._changed=this.disposeVar(new c.Event)),this._changed},enumerable:!1,configurable:!0}),d.prototype.forceChange=function(){this._changed&&this._changed.emit(this._value,this._value)},d}(f.Destroyable);function n(l,d,C){return new a(l,d,C)}function s(l,d,C){return n(l,function(_,b){return _.length===b.length&&_.every(function(E,F){return d&&d(E,b[F])||E===b[F]})},function(_,b){var E=b||new Array(_.length);return E.length=_.length,_.forEach(function(F,S){E[S]=C?C(F):F}),E})}function r(l,d,C){return n(l,function(_,b){return _===void 0||b===void 0?_===void 0&&b===void 0:_.length===b.length&&_.every(function(E,F){return d&&d(E,b[F])||E===b[F]})},function(_,b){if(_){var E=b||new Array(_.length);return E.length=_.length,_.forEach(function(F,S){E[S]=C?C(F):F}),E}})}function i(l){return r(l,function(d,C){return d.every(function(_,b){return _===C[b]})},function(d){return u([],p(d),!1)})}A.ReactiveVariable=a,A.react=n,A.reactArray=function(l){return new a(l,function(d,C){return d.length===C.length&&d.every(function(_,b){return _===C[b]})},function(d,C){var _=C||new Array(d.length);return _.length=d.length,d.forEach(function(b,E){return _[E]=b}),_})},A.reactArrayWithUndefined=function(l){return n(l,function(d,C){return d===void 0||C===void 0?d===void 0&&C===void 0:d.length===C.length&&d.every(function(_,b){return _===C[b]})},function(d,C){if(d){var _=C||new Array(d.length);return _.length=d.length,d.forEach(function(b,E){return _[E]=b}),_}})},A.reactDeepArray=s,A.reactDeepArrayWithUndefined=r,A.reactJson=function(l){return new a(l,function(d,C){return d===C||d!==void 0&&C!==void 0&&JSON.stringify(d)===JSON.stringify(C)},function(d,C){if(d!==void 0)return JSON.parse(JSON.stringify(d))})},A.reactJsonWithUndefined=function(l){return new a(l,function(d,C){return d===C||d!==void 0&&C!==void 0&&JSON.stringify(d)===JSON.stringify(C)},function(d,C){if(d!==void 0)return JSON.parse(JSON.stringify(d))})},A.reactPlainObject=function(l){return new a(l,function(d,C){if(d===C)return!0;if(d===void 0||C===void 0)return!1;var _=Object.keys(d),b=Object.keys(C);return _.length===b.length&&_.every(function(E,F){return E===b[F]&&d[E]===C[E]})},function(d,C){return d&&w({},d)})},A.reactPlainObjectWithUndefined=function(l){return new a(l,function(d,C){if(d===C)return!0;if(d===void 0||C===void 0)return!1;var _=Object.keys(d),b=Object.keys(C);return _.length===b.length&&_.every(function(E,F){return E===b[F]&&d[E]===C[E]})},function(d,C){return d&&w({},d)})},A.reactArrayCollection=function(l){return s(l,function(d,C){return d.every(function(_,b){return _===C[b]})},function(d){return u([],p(d),!1)})},A.reactArrayCollectionWithUndefined=i,A.reactJsonCollection=function(l){return s(l,function(d,C){return JSON.stringify(d)===JSON.stringify(C)},function(d){return JSON.parse(JSON.stringify(d))})},A.reactJsonCollectionWithUndefined=function(l){return r(l,function(d,C){return JSON.stringify(d)===JSON.stringify(C)},function(d){return JSON.parse(JSON.stringify(d))})},A.reactPositions=function(l){return i(l)},A.reactPositionsSet=function(l){return r(l,function(d,C){return d.length===C.length&&d.every(function(_,b){return _.every(function(E,F){return E===C[b][F]})})},function(d){return d.map(function(C){return u([],p(C),!1)})})},A.reactPosition2DsSet=function(l){return r(l,function(d,C){return d.length===C.length&&d.every(function(_,b){return _.every(function(E,F){return E===C[b][F]})})},function(d){return d.map(function(C){return u([],p(C),!1)})})}},3951:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.IFrameBorderedPosFloatDiv=void 0;var w=h(7372),p=function(u){function f(){var c=u.call(this)||this,a=document.createElement("iframe");a.style.cssText="width: 100%; height: 100%; border-width: 0px; border-radius: 5px; display: block;",a.src="http://www.weather.com.cn/live/index.shtml",c._iframe=a,c.innerContentDiv.appendChild(a);var n=function(s){s.source===c._iframe.contentWindow&&(c._iframeMessageEvent?c._iframeMessageEvent.emit(s):console.warn("iframe消息接收到未处理!data: ".concat(s.data)))};return window.addEventListener("message",n),c.dispose(function(){window.removeEventListener("message",n)}),c}return g(f,u),f.prototype.reset=function(){u.prototype.reset.call(this),this.src=""},Object.defineProperty(f.prototype,"src",{get:function(){return this._iframe.src},set:function(c){this._iframe.src!==c&&(this._iframe.src=c)},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"iframe",{get:function(){return this._iframe},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"iframeMessageEvent",{get:function(){return this._iframeMessageEvent=this._iframeMessageEvent||new w.Event,this._iframeMessageEvent},enumerable:!1,configurable:!0}),f}(h(4143).BorderedPosFloatDiv);A.IFrameBorderedPosFloatDiv=p},3983:(B,A)=>{function h(m,g,w){for(var p=0;p<w;++p)if(m[p]!==g[p])return!1;return!0}Object.defineProperty(A,"__esModule",{value:!0}),A.equalsPenSplineVertexType=void 0,A.equalsPenSplineVertexType=function(m,g,w){return h(m.position,g.position,w)&&(m.leftPosition===g.leftPosition===void 0||m.leftPosition&&g.leftPosition&&h(m.leftPosition,g.leftPosition,w)||!1)&&(m.rightPosition===g.rightPosition===void 0||m.rightPosition&&g.rightPosition&&h(m.rightPosition,g.rightPosition,w)||!1)}},4123:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A.CursorInfo=A.CursorFloatDiv=void 0;var p=h(7372),u=h(4621),f=h(7445),c=function(n){function s(){var r=n.call(this)||this;return r.contentDiv.style.backgroundColor="rgba(0, 0, 0, 0.8)",r.contentDiv.style.borderRadius="3px",r.contentDiv.style.color="rgb(255, 255, 255)",r.contentDiv.style.padding="1px 5px 1px 5px",r.contentDiv.style.fontSize="12px",r.contentDiv.style.whiteSpace="nowrap",r.contentDiv.innerText="未定义光标信息!",r.originRatioX=0,r.originRatioY=0,r.originOffsetX=-16,r}return g(s,n),s}(f.PosFloatDiv);A.CursorFloatDiv=c;var a=function(n){function s(r,i){var l=n.call(this)||this;l._pointerOut=l.disposeVar((0,p.react)(!1)),l._show=l.disposeVar((0,p.react)(!0)),l._cursorDiv=new f.DivPoi(i,r),l.dispose(function(){return l._cursorDiv.destroy()});var d=function(_){var b=w((0,u.getDomEventCurrentTargetPos)(_),2),E=b[0],F=b[1];l._cursorDiv.floatDiv.winPos=[E,F]};r.addEventListener("pointermove",d),l.dispose(function(){return r.removeEventListener("pointermove",d)});var C=function(){l._cursorDiv.show=l.show&&l._pointerOut.value};return C(),l.dispose(l.showChanged.disposableOn(C)),l.dispose(l._pointerOut.changed.disposableOn(C)),l}return g(s,n),Object.defineProperty(s.prototype,"show",{get:function(){return this._show.value},set:function(r){this._show.value=r},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"showChanged",{get:function(){return this._show.changed},enumerable:!1,configurable:!0}),s.prototype.reset=function(){this._pointerOut.value=!1},Object.defineProperty(s.prototype,"cursorDiv",{get:function(){return this._cursorDiv},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"text",{get:function(){return this._cursorDiv.floatDiv.contentDiv.innerText},set:function(r){this._cursorDiv.floatDiv.contentDiv.innerText=r},enumerable:!1,configurable:!0}),s}(p.Destroyable);A.CursorInfo=a},4143:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__read||function(s,r){var i=typeof Symbol=="function"&&s[Symbol.iterator];if(!i)return s;var l,d,C=i.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=C.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(i=C.return)&&i.call(C)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.BorderedPosFloatDiv=A.createBottomTriangleElement=A.createCloseDiv=void 0;var p=h(7372),u=h(9986),f=["top","bottom","left","right"];function c(s,r,i){var l,d=document.createElement("div");return d.style.cssText="position: absolute; ".concat((l=i,Object.entries(l).map(function(C){var _=w(C,2),b=_[0],E=_[1];return f.includes(b)?"".concat(b,": ").concat(E,"px; "):""}).join(""))," background-color: ").concat(s,"; border-radius: ").concat(r,"px;"),d.innerHTML='<svg viewBox="0 0 1024 1024" style="display: block;" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2420" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><defs><style type="text/css"></style></defs><path d="M512 128C300.8 128 128 300.8 128 512s172.8 384 384 384 384-172.8 384-384S723.2 128 512 128zM512 832c-179.2 0-320-140.8-320-320s140.8-320 320-320 320 140.8 320 320S691.2 832 512 832z" p-id="2421" fill="#ffffff"></path><path d="M672 352c-12.8-12.8-32-12.8-44.8 0L512 467.2 396.8 352C384 339.2 364.8 339.2 352 352S339.2 384 352 396.8L467.2 512 352 627.2c-12.8 12.8-12.8 32 0 44.8s32 12.8 44.8 0L512 556.8l115.2 115.2c12.8 12.8 32 12.8 44.8 0s12.8-32 0-44.8L556.8 512l115.2-115.2C684.8 384 684.8 364.8 672 352z" p-id="2422" fill="#ffffff"></path></svg>',d}function a(s,r,i){i===void 0&&(i="rgba(0,0,0,0.7)");var l=document.createElement("div");l.style.cssText="margin: 0 auto; width: ".concat(s,"px; height: ").concat(r,"px; position: relative; pointer-events: none;");var d=document.createElement("div");return d.style.cssText="position: absolute; left: 0px; top: 0px; width: 0; height: 0; border-left: ".concat(.5*s,"px solid transparent; border-right: ").concat(.5*s,"px solid transparent; border-top: ").concat(r,"px solid ").concat(i,";"),l.appendChild(d),[l,d]}A.createCloseDiv=c,A.createBottomTriangleElement=a;var n=function(s){function r(){var i=s.call(this)||this;i._colorStr="rgba(0, 0, 0, 0.7)",i._divColorChanged=new p.Event,i._borderRadius=10;var l=document.createElement("div");l.style.cssText="position: relative; background-color: ".concat(i._colorStr,"; border-radius: ").concat(i._borderRadius,"px; padding: 5px; pointer-events: all;"),i._borderDiv=l;var d=c(i._colorStr,10,{top:3,right:3}),C=w(a(2*i._borderRadius,2*i._borderRadius,i._colorStr),2),_=C[0],b=C[1],E=document.createElement("div");i._innerContentDiv=E,l.appendChild(E),l.appendChild(d),i.contentDiv.appendChild(l),i.contentDiv.appendChild(_),d.style.opacity="0.1",d.onmouseenter=function(){d.style.opacity="1.0"},d.onmouseleave=function(){d.style.opacity="0.1"},d.onclick=function(){i._closeEvent&&i._closeEvent.emit()},i._closeDiv=d,i.dispose(i._divColorChanged.disposableOn(function(){b.style.borderTopColor=i._colorStr,l.style.backgroundColor=i._colorStr,_.style.width="".concat(2*i._borderRadius,"px"),_.style.height="".concat(2*i._borderRadius,"px"),b.style.borderLeft="".concat(i._borderRadius,"px"),b.style.borderRight="".concat(i._borderRadius,"px"),b.style.borderTop="".concat(2*i._borderRadius,"px")}));var F=function(S){S.key==="Escape"&&i._closeEvent&&i._closeEvent.emit()};return document.body.addEventListener("keydown",F,!0),i.dispose(function(){document.removeEventListener("keydown",F,!0)}),i}return g(r,s),Object.defineProperty(r.prototype,"borderDiv",{get:function(){return this._borderDiv},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"innerContentDiv",{get:function(){return this._innerContentDiv},enumerable:!1,configurable:!0}),r.prototype.reset=function(){this.show=!1,this.opacity=0,this._closeDiv.style.opacity="0.1",s.prototype.reset.call(this)},Object.defineProperty(r.prototype,"colorStr",{get:function(){return this._colorStr},set:function(i){this._colorStr!==i&&(this._colorStr=i,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"borderRadius",{get:function(){return this._borderRadius},set:function(i){this._borderRadius!==i&&(this._borderRadius=i,this._divColorChanged.emit())},enumerable:!1,configurable:!0}),r}(u.PosFloatDiv);A.BorderedPosFloatDiv=n},4206:function(B,A){var h,m=this&&this.__extends||(h=function(w,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(u[c]=f[c])},h(w,p)},function(w,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function u(){this.constructor=w}h(w,p),w.prototype=p===null?Object.create(p):(u.prototype=p.prototype,new u)});Object.defineProperty(A,"__esModule",{value:!0}),A.CancelError=void 0;var g=function(w){function p(){return w!==null&&w.apply(this,arguments)||this}return m(p,w),p}(Error);A.CancelError=g},4209:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.inverse=void 0;var m=h(8089),g=h(2731),w=h(9898),p=(0,g.createNumbers)(9),u=(0,g.createNumbers)(9),f=(0,g.createNumbers)(4),c=(0,g.createNumbers)(4,0,0,0,1);A.inverse=function(a,n){var s=a[0],r=a[4],i=a[8],l=a[12],d=a[1],C=a[5],_=a[9],b=a[13],E=a[2],F=a[6],S=a[10],U=a[14],T=a[3],Q=a[7],P=a[11],I=a[15],M=S*I,K=U*P,W=F*I,L=U*Q,O=F*P,H=S*Q,k=E*I,G=U*T,D=E*P,R=S*T,N=E*Q,X=F*T,Y=M*C+L*_+O*b-(K*C+W*_+H*b),Z=K*d+k*_+R*b-(M*d+G*_+D*b),ie=W*d+G*C+N*b-(L*d+k*C+X*b),ae=H*d+D*C+X*_-(O*d+R*C+N*_),me=K*r+W*i+H*l-(M*r+L*i+O*l),we=M*s+G*i+D*l-(K*s+k*i+R*l),re=L*s+k*r+X*l-(W*s+G*r+N*l),se=O*s+R*r+N*i-(H*s+D*r+X*i),ye=(M=i*b)*Q+(L=l*C)*P+(O=r*_)*I-((K=l*_)*Q+(W=r*b)*P+(H=i*C)*I),be=K*T+(k=s*b)*P+(R=i*d)*I-(M*T+(G=l*d)*P+(D=s*_)*I),ue=W*T+G*Q+(N=s*C)*I-(L*T+k*Q+(X=r*d)*I),ne=H*T+D*Q+X*P-(O*T+R*Q+N*P),Oe=W*S+H*U+K*F-(O*U+M*F+L*S),tt=D*U+M*E+G*S-(k*S+R*U+K*E),HA=k*F+X*U+L*E-(N*U+W*E+G*F),Ke=N*S+O*E+R*F-(D*F+X*S+H*E),he=s*Y+r*Z+i*ie+l*ae;if(n=n||(0,g.createNumbers)(16),Math.abs(he)<1e-21){if(w.Vector.equalsEpsilon(m.Matrix4.getMatrix3(a,p),u,1e-7)&&w.Vector.equals(m.Matrix4.getRow(a,3,f),c))return n[0]=0,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=0,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=0,n[11]=0,n[12]=-a[12],n[13]=-a[13],n[14]=-a[14],n[15]=1,n;throw new Error("matrix is not invertible because its determinate is zero.")}return he=1/he,n[0]=Y*he,n[1]=Z*he,n[2]=ie*he,n[3]=ae*he,n[4]=me*he,n[5]=we*he,n[6]=re*he,n[7]=se*he,n[8]=ye*he,n[9]=be*he,n[10]=ue*he,n[11]=ne*he,n[12]=Oe*he,n[13]=tt*he,n[14]=HA*he,n[15]=Ke*he,n}},4221:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(4292),A),g(h(1662),A),g(h(3281),A),g(h(6356),A)},4235:(B,A,h)=>{A.A=void 0;var m=h(4638),g=h(733),w={blocks:function(s){for(var r=[],i=s.data.length,l=0,d=(0,g.readByte)()(s);d!==0&&d;d=(0,g.readByte)()(s)){if(s.pos+d>=i){var C=i-s.pos;r.push((0,g.readBytes)(C)(s)),l+=C;break}r.push((0,g.readBytes)(d)(s)),l+=d}for(var _=new Uint8Array(l),b=0,E=0;E<r.length;E++)_.set(r[E],b),b+=r[E].length;return _}},p=(0,m.conditional)({gce:[{codes:(0,g.readBytes)(2)},{byteSize:(0,g.readByte)()},{extras:(0,g.readBits)({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:(0,g.readUnsigned)(!0)},{transparentColorIndex:(0,g.readByte)()},{terminator:(0,g.readByte)()}]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===249}),u=(0,m.conditional)({image:[{code:(0,g.readByte)()},{descriptor:[{left:(0,g.readUnsigned)(!0)},{top:(0,g.readUnsigned)(!0)},{width:(0,g.readUnsigned)(!0)},{height:(0,g.readUnsigned)(!0)},{lct:(0,g.readBits)({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},(0,m.conditional)({lct:(0,g.readArray)(3,function(s,r,i){return Math.pow(2,i.descriptor.lct.size+1)})},function(s,r,i){return i.descriptor.lct.exists}),{data:[{minCodeSize:(0,g.readByte)()},w]}]},function(s){return(0,g.peekByte)()(s)===44}),f=(0,m.conditional)({text:[{codes:(0,g.readBytes)(2)},{blockSize:(0,g.readByte)()},{preData:function(s,r,i){return(0,g.readBytes)(i.text.blockSize)(s)}},w]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===1}),c=(0,m.conditional)({application:[{codes:(0,g.readBytes)(2)},{blockSize:(0,g.readByte)()},{id:function(s,r,i){return(0,g.readString)(i.blockSize)(s)}},w]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===255}),a=(0,m.conditional)({comment:[{codes:(0,g.readBytes)(2)},w]},function(s){var r=(0,g.peekBytes)(2)(s);return r[0]===33&&r[1]===254}),n=[{header:[{signature:(0,g.readString)(3)},{version:(0,g.readString)(3)}]},{lsd:[{width:(0,g.readUnsigned)(!0)},{height:(0,g.readUnsigned)(!0)},{gct:(0,g.readBits)({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:(0,g.readByte)()},{pixelAspectRatio:(0,g.readByte)()}]},(0,m.conditional)({gct:(0,g.readArray)(3,function(s,r){return Math.pow(2,r.lsd.gct.size+1)})},function(s,r){return r.lsd.gct.exists}),{frames:(0,m.loop)([p,c,a,u,f],function(s){var r=(0,g.peekByte)()(s);return r===33||r===44})}];A.A=n},4292:(B,A)=>{var h;Object.defineProperty(A,"__esModule",{value:!0}),A.copyright=void 0;var m=(h="".concat("xbsj-base"))!==null&&h!==void 0?h:"-",g="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",w=((Date.now()-1743502596e3)/36e5).toFixed(1),p="%c🌏 ".concat(m,"%c ").concat("1.0.1"," ").concat("6a6f3869f41c8db67af383a267b45147c29ee2b5".slice(0,8)," ").concat("2025-04-01T10:16:36.000Z"," (距今").concat(w,`个小时)
|
|
4
|
+
%c`).concat(g+`
|
|
5
|
+
`,"当前网站正在使用").concat(m,",此开发包版权归").concat("北京西部世界科技有限公司","所有。");A.copyright=Object.seal({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){},get info(){return p},get date(){return"2025-04-01T10:16:36.000Z"},get author(){return"vtxf,suplyang"},get version(){return"1.0.1"},get name(){return"xbsj-base"},get commitId(){return"6a6f3869f41c8db67af383a267b45147c29ee2b5"},print:function(){console.info(this.info,`
|
|
6
|
+
font-size: 18px;
|
|
7
|
+
font-weight: 1000;
|
|
8
|
+
line-height: 1;
|
|
9
|
+
color: rgb(0, 120, 215);
|
|
10
|
+
padding-top: 20px;
|
|
11
|
+
padding-bottom: 10px;
|
|
12
|
+
`,`
|
|
13
|
+
font-size: 10px;
|
|
14
|
+
font-weight: 1000;
|
|
15
|
+
color: rgb(0, 120, 215);
|
|
16
|
+
`,`
|
|
17
|
+
font-size: 10px;
|
|
18
|
+
line-height: 1.5;
|
|
19
|
+
color: rgb(0, 120, 215);
|
|
20
|
+
padding-bottom: 2px;
|
|
21
|
+
padding-left: 35px;
|
|
22
|
+
`)}})},4344:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__values||function(a){var n=typeof Symbol=="function"&&Symbol.iterator,s=n&&a[n],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},u=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.ObservableSet=void 0;var f=h(1662),c=function(a){function n(){var s=a.call(this)||this;return s._set=new Set,s._toChangeEvent=s.disposeVar(new f.Event),s._changedEvent=s.disposeVar(new f.Event),s.dispose(function(){s._set.size!==0&&(n.warnOnDestroying&&console.warn("this._set.size > 0"),s.clear())}),s}return g(n,a),Object.defineProperty(n.prototype,"toChange",{get:function(){return this._toChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"changed",{get:function(){return this._changedEvent},enumerable:!1,configurable:!0}),n.prototype.add=function(){for(var s,r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];try{for(var d=w(i),C=d.next();!C.done;C=d.next()){var _=C.value;this._toChangeEvent.emit([],[_]),this._set.add(_),this._changedEvent.emit([],[_])}}catch(b){s={error:b}}finally{try{C&&!C.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}},n.prototype.delete=function(){for(var s,r,i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];try{for(var d=w(i),C=d.next();!C.done;C=d.next()){var _=C.value;this._toChangeEvent.emit([_],[]),this._set.delete(_),this._changedEvent.emit([_],[])}}catch(b){s={error:b}}finally{try{C&&!C.done&&(r=d.return)&&r.call(d)}finally{if(s)throw s.error}}},n.prototype.disposableAdd=function(){for(var s=this,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return this.add.apply(this,u([],p(r),!1)),function(){return s.delete.apply(s,u([],p(r),!1))}},Object.defineProperty(n.prototype,"size",{get:function(){return this._set.size},enumerable:!1,configurable:!0}),n.prototype.clear=function(){var s=u([],p(this._set),!1);this._toChangeEvent.emit([],s),this._set.clear(),this._changedEvent.emit([],s)},n.prototype.values=function(){return this._set.values()},n.warnOnDestroying=!0,n}(f.Destroyable);A.ObservableSet=c},4416:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.BoundingSphere=void 0;var m=h(312),g=h(8089),w=h(2731),p=h(7215),u=h(9898);(function(f){function c(F,S){return S=S||(0,w.createNumbers)(3),u.Vector.set(S,F[0],F[1],F[2]),S}function a(F){return F[3]}function n(F,S){return F[0]=S[0],F[1]=S[1],F[2]=S[2],F}function s(F,S){F[3]=S}f.getCenter=c,f.getRadius=a,f.setCenter=n,f.setRadius=s,f.fromCenterRadius=function(F,S,U){return u.Vector.set(U,F[0],F[1],F[2],S)};var r=(0,w.createNumbers)(3),i=(0,w.createNumbers)(3);f.intersectPlane=function(F,S){var U=c(F,r),T=a(F),Q=p.Plane.getNormal(S,i),P=u.Vector.dot(Q,U)+p.Plane.getDistance(S);return P<-T?m.Intersect.OUTSIDE:P<T?m.Intersect.INTERSECTING:m.Intersect.INSIDE};var l=(0,w.createNumbers)(3);f.transform=function(F,S,U){U=U||(0,w.createNumbers)(4);var T=c(F,l),Q=a(F);return g.Matrix4.affineMultiplyByPoint(S,T,T),Q*=g.Matrix4.getMaximumScale(S),n(U,T),s(U,Q),U};var d=(0,w.createNumbers)(3),C=(0,w.createNumbers)(3),_=(0,w.createNumbers)(3),b=(0,w.createNumbers)(3);f.union=function(F,S,U){U=U||(0,w.createNumbers)(4);var T=u.Vector.set(d,F[0],F[1],F[2]),Q=F[3],P=u.Vector.set(C,S[0],S[1],S[2]),I=S[3],M=u.Vector.subtract(P,T,_),K=u.Vector.magnitude(M);if(Q>=K+I)return u.Vector.clone(F,U),U;if(I>=K+Q)return u.Vector.clone(S,U),U;var W=.5*(Q+K+I),L=u.Vector.multiplyByScalar(M,(-Q+W)/K,b);return u.Vector.add(L,T,L),u.Vector.set(U,L[0],L[1],L[2],W),U};var E=(0,w.createNumbers)(3);f.fromCornerPoints=function(F,S,U){var T=u.Vector.lerp(F,S,.5,E),Q=u.Vector.distance(T,S);return u.Vector.set(U,T[0],T[1],T[2],Q)}})(A.BoundingSphere||(A.BoundingSphere={}))},4471:function(B,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var n,s,r=a.call(f),i=[];try{for(;(c===void 0||c-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i},g=this&&this.__spreadArray||function(f,c,a){if(a||arguments.length===2)for(var n,s=0,r=c.length;s<r;s++)!n&&s in c||(n||(n=Array.prototype.slice.call(c,0,s)),n[s]=c[s]);return f.concat(n||Array.prototype.slice.call(c))};Object.defineProperty(A,"__esModule",{value:!0}),A.ListenerPipe=void 0;var w=h(1895),p=new(h(1085)).ObjPool(function(){return{func:void 0,scope:void 0,_hasRemoved:!1,_once:!1}},function(f){f.func=void 0,f.scope=void 0,f._hasRemoved=!1,f._once=!1},!0),u=function(){function f(){}return Object.defineProperty(f.prototype,"_dll",{get:function(){var c;return this.__dll=(c=this.__dll)!==null&&c!==void 0?c:new w.DoublyLinkedList({needLength:!0}),this.__dll},enumerable:!1,configurable:!0}),f.prototype._pushCurrentListener=function(c){this.__currentListenerStack?Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.push(c):this.__currentListenerStack=[this.__currentListenerStack,c]:this.__currentListenerStack=c},f.prototype._popCurrentListener=function(){if(!this.__currentListenerStack)throw new Error("cannot pop!");Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.pop():this.__currentListenerStack=void 0},f.prototype._hasCurrentListener=function(c){return!!this.__currentListenerStack&&(Array.isArray(this.__currentListenerStack)?this.__currentListenerStack.indexOf(c)!==-1:this.__currentListenerStack===c)},f.prototype.do=function(){for(var c,a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];if(this.__dll&&!this._dll.empty)for(var s=this._dll.head;s;){var r=s.item;r._hasRemoved||(this._pushCurrentListener(r),(c=r.func).call.apply(c,g([r.scope],m(a),!1)),this._popCurrentListener());var i=s.next;r._once&&!r._hasRemoved&&(this.remove(s),s=void 0),s&&this._clearHasRemoved(s),s=i}},Object.defineProperty(f.prototype,"empty",{get:function(){if(!this.__dll||this._dll.empty)return!0;for(var c=!0,a=this._dll.head;a;){if(!a.item._hasRemoved){c=!1;break}a=a.next}return c},enumerable:!1,configurable:!0}),f.prototype.isHandlerValid=function(c){return!c.item._hasRemoved},f.prototype.nextHandler=function(c){if(!c.item._hasRemoved)throw new Error("handler has removed!");for(var a=c.next;a&&a.item._hasRemoved;)a=a.next;return a},f.prototype.prevHandler=function(c){if(!c.item._hasRemoved)throw new Error("handler has removed!");for(var a=c.previous;a&&a.item._hasRemoved;)a=a.previous;return a},f.prototype.moveAfter=function(c,a){if(c.item._hasRemoved||a.item._hasRemoved)throw new Error("handler or nextHandler has removed!");return this._dll.moveAfter(c,a)},f.prototype.moveBefore=function(c,a){if(c.item._hasRemoved||a.item._hasRemoved)throw new Error("handler or prevHandler has removed!");return this._dll.moveBefore(c,a)},f.prototype.insertBefore=function(c,a,n,s){if(s===void 0&&(s=!1),c.item._hasRemoved)throw new Error("handler has removed!");var r=p.create();return r.func=a,r.scope=n,r._once=s,this._dll.insertBefore(c,r)},f.prototype.insertAfter=function(c,a,n,s){if(s===void 0&&(s=!1),c.item._hasRemoved)throw new Error("handler has removed!");var r=p.create();return r.func=a,r.scope=n,r._once=s,this._dll.insertAfter(c,r)},f.prototype._clearHasRemoved=function(c){c.item._hasRemoved&&!this._hasCurrentListener(c.item)&&(p.destroy(c.item),this._dll.remove(c))},f.prototype.remove=function(c){if(!c.item||c.item._hasRemoved)throw new Error("handler has removed!");this._hasCurrentListener(c.item)?c.item._hasRemoved=!0:(p.destroy(c.item),this._dll.remove(c))},f.prototype.removeAll=function(){if(this.__dll&&!this._dll.empty)for(var c=this._dll.head;c;){var a=c.next;c.item._hasRemoved||this.remove(c),c=a}},f.prototype.destroy=function(){if(this.__dll){for(var c=this._dll.head;c;){var a=c.next,n=c;this._hasCurrentListener(n.item)||(console.warn("Event has remove item that on current stack!"),console.warn("".concat(n.item.func.toString()))),p.destroy(n.item),this._dll.remove(n),c=a}this.__dll=void 0,this.__currentListenerStack=void 0}},f.prototype.push=function(c,a,n){n===void 0&&(n=!1);var s=p.create();return s.func=c,s.scope=a,s._once=n,this._dll.push(s)},f.prototype.pop=function(){var c=this.tail;if(!c)throw new Error("pop error!");this.remove(c)},f.prototype.shift=function(){var c=this.head;if(!c)throw new Error("shift error!");this.remove(c)},f.prototype.unshift=function(c,a,n){n===void 0&&(n=!1);var s=p.create();return s.func=c,s.scope=a,s._once=n,this._dll.unshift(s)},Object.defineProperty(f.prototype,"tail",{get:function(){for(var c=this._dll.tail;c&&c.item._hasRemoved;)c=c.previous;return c},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"head",{get:function(){for(var c=this._dll.head;c&&c.item._hasRemoved;)c=c.previous;return c},enumerable:!1,configurable:!0}),f}();A.ListenerPipe=u},4499:function(B,A){var h=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,n=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=n.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=n.return)&&f.call(n)}finally{if(a)throw a.error}}return s};function m(p,u,f,c){var a=h(p,2),n=a[0],s=a[1],r=h(c,4),i=r[0],l=r[1],d=r[2],C=r[3],_=u[0]*f[0],b=u[1]*f[1],E=n-(_*i+d),F=s-(b*l+C);return{left:E,top:F,right:E+_,bottom:F+b}}function g(p,u,f,c,a,n){p.beginPath(),p.moveTo(u+n,f),p.lineTo(u+c-n,f),p.arcTo(u+c,f,u+c,f+n,n),p.lineTo(u+c,f+a-n),p.arcTo(u+c,f+a,u+c-n,f+a,n),p.lineTo(u+n,f+a),p.arcTo(u,f+a,u,f+a-n,n),p.lineTo(u,f+n),p.arcTo(u,f,u+n,f,n)}function w(p){return("00"+p.toString(16).toUpperCase()).substr(-2)}Object.defineProperty(A,"__esModule",{value:!0}),A.getColorHexStr=A.uint8ToHexStr=A.drawTextBlock=A.setCanvasUniformColor=A.imageToCanvas=A.drawText=A.drawRoundRectPath=A.drawPoint=A.getDrawRect=void 0,A.getDrawRect=m,A.drawPoint=function(p,u,f,c,a){p.beginPath(),p.moveTo(u,f),p.lineTo(u-.5*c,f-.5*c),p.arc(u,f-c,.7071067811865475*c,.75*Math.PI,.25*Math.PI),p.lineTo(u,f),p.fillStyle=a,p.fill()},A.drawRoundRectPath=g,A.drawText=function(p,u,f,c,a,n){p.font=a;var s=p.measureText(c),r=s.actualBoundingBoxLeft+s.actualBoundingBoxRight,i=Number.isFinite(s.fontBoundingBoxAscent)?s.fontBoundingBoxAscent:s.actualBoundingBoxAscent,l=Number.isFinite(s.fontBoundingBoxDescent)?s.fontBoundingBoxDescent:s.actualBoundingBoxDescent,d=i+l;p.fillStyle=n,p.fillText(c,u-.5*r,f+.5*d-l)},A.imageToCanvas=function(p){var u=p.width,f=p.height,c=u instanceof SVGAnimatedLength?u.baseVal.SVG_LENGTHTYPE_PX:u,a=f instanceof SVGAnimatedLength?f.baseVal.SVG_LENGTHTYPE_PX:f,n=document.createElement("canvas");n.width=c,n.height=a;var s=n.getContext("2d");if(!s)throw new Error("!cavnasCtx");return s.drawImage(p,0,0,c,a),n},A.setCanvasUniformColor=function(p,u){var f=p.width,c=p.height,a=p.getContext("2d");if(!a)throw new Error("!cavnasCtx");for(var n=h(u.map(function(_){return 255*_|0}),3),s=n[0],r=n[1],i=n[2],l=a.getImageData(0,0,f,c),d=l.data,C=0;C<d.length;C+=4)d[C]=s,d[C+1]=r,d[C+2]=i;a.putImageData(l,0,0)},A.drawTextBlock=function(p,u,f,c,a,n,s,r,i){c===void 0&&(c=[.5,1,0,0]),n===void 0&&(n="12px Arial"),s===void 0&&(s=2),r===void 0&&(r="#FFF"),i===void 0&&(i="#000A"),p.font=n;var l=p.measureText(a),d=l.actualBoundingBoxLeft+l.actualBoundingBoxRight+2*s,C=l.fontBoundingBoxAscent+l.fontBoundingBoxDescent+2*s,_=m([u,f],[d,C],[1,1],c),b=_.left,E=_.top,F=_.bottom;p.fillStyle=i,g(p,b,E,d,C,s),p.fill(),p.fillStyle=r,p.fillText(a,b+s,F-s-l.fontBoundingBoxDescent)},A.uint8ToHexStr=w,A.getColorHexStr=function(p){var u=h(p.map(function(s){return 255*s|0}),4),f=u[0],c=u[1],a=u[2],n=u[3];return"#".concat(w(f)).concat(w(c)).concat(w(a)).concat(w(n))}},4601:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._setRow=A._getRow=void 0;var m=h(2731),g=h(9898);A._getRow=function(w,p,u){if(p<0||p>3)throw new Error("index < 0 || index > 3");u=u||(0,m.createNumbers)(4);var f=w[p],c=w[p+4],a=w[p+8],n=w[p+12];return u[0]=f,u[1]=c,u[2]=a,u[3]=n,u},A._setRow=function(w,p,u,f){if(p<0||p>3)throw new Error("index < 0 || index > 3");return(f=g.Vector.clone(w,f))[p]=u[0],f[p+4]=u[1],f[p+8]=u[2],f[p+12]=u[3],f}},4621:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(1378),A),g(h(9369),A),g(h(9597),A),g(h(5010),A),g(h(507),A),g(h(1968),A),g(h(2217),A),g(h(2299),A)},4638:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loop=A.conditional=A.parse=void 0,A.parse=function h(m,g){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:w;if(Array.isArray(g))g.forEach(function(f){return h(m,f,w,p)});else if(typeof g=="function")g(m,w,p,h);else{var u=Object.keys(g)[0];Array.isArray(g[u])?(p[u]={},h(m,g[u],w,p[u])):p[u]=g[u](m,w,p,h)}return w},A.conditional=function(h,m){return function(g,w,p,u){m(g,w,p)&&u(g,h,w,p)}},A.loop=function(h,m){return function(g,w,p,u){for(var f=[],c=g.pos;m(g,w,p);){var a={};if(u(g,h,w,a),g.pos===c)break;c=g.pos,f.push(a)}return f}}},4661:function(B,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r},g=this&&this.__spreadArray||function(u,f,c){if(c||arguments.length===2)for(var a,n=0,s=f.length;n<s;n++)!a&&n in f||(a||(a=Array.prototype.slice.call(f,0,n)),a[n]=f[n]);return u.concat(a||Array.prototype.slice.call(f))};Object.defineProperty(A,"__esModule",{value:!0}),A.stepProcessing=void 0;var w=h(5819),p=h(9374);A.stepProcessing=function(u,f){for(var c=[],a=2;a<arguments.length;a++)c[a-2]=arguments[a];return u.promise((0,w.pairToPromise)(p.getPromiseFromProcessing.apply(void 0,g([f],m(c),!1))))}},4775:function(B,A){var h=this&&this.__read||function(g,w){var p=typeof Symbol=="function"&&g[Symbol.iterator];if(!p)return g;var u,f,c=p.call(g),a=[];try{for(;(w===void 0||w-- >0)&&!(u=c.next()).done;)a.push(u.value)}catch(n){f={error:n}}finally{try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(f)throw f.error}}return a},m=this&&this.__spreadArray||function(g,w,p){if(p||arguments.length===2)for(var u,f=0,c=w.length;f<c;f++)!u&&f in w||(u||(u=Array.prototype.slice.call(w,0,f)),u[f]=w[f]);return g.concat(u||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.debounce=void 0,A.debounce=function(g,w){if(!window||!window.setTimeout||!window.clearTimeout)throw new Error("目前只适合在浏览器中使用!");var p=0;function u(){p>0&&(window.clearTimeout(p),p=0)}return[function(){for(var f=[],c=0;c<arguments.length;c++)f[c]=arguments[c];u(),p=window.setTimeout.apply(window,m([g,w],h(f),!1))},u]}},4833:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.InverseViewMatrix=void 0;var m=h(9898),g=function(){function w(){}return w.getDirection=function(p,u){return m.Vector.set(u,-p[8],-p[9],-p[10])},w.getRight=function(p,u){return m.Vector.set(u,p[0],p[1],p[2])},w.getUp=function(p,u){return m.Vector.set(u,p[4],p[5],p[6])},w.getEye=function(p,u){return m.Vector.set(u,p[12],p[13],p[14])},w}();A.InverseViewMatrix=g},4899:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(1895),A),g(h(9067),A),g(h(4471),A),g(h(2452),A),g(h(5774),A)},4915:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Matrix3=void 0;var m,g=h(2731),w=h(9898);(m=A.Matrix3||(A.Matrix3={})).multiply=function(p,u,f){var c=p[0]*u[0]+p[3]*u[1]+p[6]*u[2],a=p[1]*u[0]+p[4]*u[1]+p[7]*u[2],n=p[2]*u[0]+p[5]*u[1]+p[8]*u[2],s=p[0]*u[3]+p[3]*u[4]+p[6]*u[5],r=p[1]*u[3]+p[4]*u[4]+p[7]*u[5],i=p[2]*u[3]+p[5]*u[4]+p[8]*u[5],l=p[0]*u[6]+p[3]*u[7]+p[6]*u[8],d=p[1]*u[6]+p[4]*u[7]+p[7]*u[8],C=p[2]*u[6]+p[5]*u[7]+p[8]*u[8];return(f=f||(0,g.createNumbers)(9))[0]=c,f[1]=a,f[2]=n,f[3]=s,f[4]=r,f[5]=i,f[6]=l,f[7]=d,f[8]=C,f},m.multiplyByVector=function(p,u,f){var c=u[0],a=u[1],n=u[2],s=p[0]*c+p[3]*a+p[6]*n,r=p[1]*c+p[4]*a+p[7]*n,i=p[2]*c+p[5]*a+p[8]*n;return w.Vector.set(f,s,r,i)},m.fromQuaternion=function(p,u){var f=p[0]*p[0],c=p[0]*p[1],a=p[0]*p[2],n=p[0]*p[3],s=p[1]*p[1],r=p[1]*p[2],i=p[1]*p[3],l=p[2]*p[2],d=p[2]*p[3],C=p[3]*p[3],_=f-s-l+C,b=2*(c-d),E=2*(a+i),F=2*(c+d),S=-f+s-l+C,U=2*(r-n),T=2*(a-i),Q=2*(r+n),P=-f-s+l+C;return u=u||(0,g.createNumbers)(9),w.Vector.set(u,_,F,T,b,S,Q,E,U,P),u},m.getScale=function(p,u){return(u=u||(0,g.createNumbers)(3))[0]=w.Vector.magnitude([p[0],p[1],p[2]]),u[1]=w.Vector.magnitude([p[3],p[4],p[5]]),u[2]=w.Vector.magnitude([p[6],p[7],p[8]]),u},m.getElementIndex=function(p,u){return 3*p+u},m.IDENTITY=Object.freeze([1,0,0,0,1,0,0,0,1]),m.COLUMN0ROW0=0,m.COLUMN0ROW1=1,m.COLUMN0ROW2=2,m.COLUMN1ROW0=3,m.COLUMN1ROW1=4,m.COLUMN1ROW2=5,m.COLUMN2ROW0=6,m.COLUMN2ROW1=7,m.COLUMN2ROW2=8},4969:(B,A)=>{function h(m){return JSON.stringify(m,void 0," ")}Object.defineProperty(A,"__esModule",{value:!0}),A.printJson=A.toJsonStr=void 0,A.toJsonStr=h,A.printJson=function(m){console.log(h(m))}},4990:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loadCRN=void 0;var m=h(9928),g=h(2075),w=h(3631),p=h(5486),u=h(1662),f=Error,c=new g.TaskProcessor("transcodeCRNToDXT",Number.POSITIVE_INFINITY);A.loadCRN=function(a){if(!(0,p.defined)(a))throw new f("resourceOrUrlOrBuffer is required.");var n;if(n=a instanceof ArrayBuffer||ArrayBuffer.isView(a)?w.when.resolve(a):(0,u.fetchArrayBuffer)(a),(0,p.defined)(n))return n.then(function(s){if((0,p.defined)(s)){var r=[];return s instanceof ArrayBuffer?r.push(s):(s.byteOffset===0&&s.byteLength===s.buffer.byteLength||(s=s.slice(0,s.length)),r.push(s.buffer)),c.scheduleTask(s,r)}}).then(function(s){return s||console.error("compressedTextureBuffer is undefined!"),m.CompressedTextureBuffer.clone(s)})}},5010:function(B,A,h){var m,g=this&&this.__extends||(m=function(d,C){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(_[E]=b[E])},m(d,C)},function(d,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function _(){this.constructor=d}m(d,C),d.prototype=C===null?Object.create(C):(_.prototype=C.prototype,new _)}),w=this&&this.__awaiter||function(d,C,_,b){return new(_||(_=Promise))(function(E,F){function S(Q){try{T(b.next(Q))}catch(P){F(P)}}function U(Q){try{T(b.throw(Q))}catch(P){F(P)}}function T(Q){var P;Q.done?E(Q.value):(P=Q.value,P instanceof _?P:new _(function(I){I(P)})).then(S,U)}T((b=b.apply(d,C||[])).next())})},p=this&&this.__generator||function(d,C){var _,b,E,F,S={label:0,sent:function(){if(1&E[0])throw E[1];return E[1]},trys:[],ops:[]};return F={next:U(0),throw:U(1),return:U(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function U(T){return function(Q){return function(P){if(_)throw new TypeError("Generator is already executing.");for(;F&&(F=0,P[0]&&(S=0)),S;)try{if(_=1,b&&(E=2&P[0]?b.return:P[0]?b.throw||((E=b.return)&&E.call(b),0):b.next)&&!(E=E.call(b,P[1])).done)return E;switch(b=0,E&&(P=[2&P[0],E.value]),P[0]){case 0:case 1:E=P;break;case 4:return S.label++,{value:P[1],done:!1};case 5:S.label++,b=P[1],P=[0];continue;case 7:P=S.ops.pop(),S.trys.pop();continue;default:if(!((E=(E=S.trys).length>0&&E[E.length-1])||P[0]!==6&&P[0]!==2)){S=0;continue}if(P[0]===3&&(!E||P[1]>E[0]&&P[1]<E[3])){S.label=P[1];break}if(P[0]===6&&S.label<E[1]){S.label=E[1],E=P;break}if(E&&S.label<E[2]){S.label=E[2],S.ops.push(P);break}E[2]&&S.ops.pop(),S.trys.pop();continue}P=C.call(d,S)}catch(I){P=[6,I],b=0}finally{_=E=0}if(5&P[0])throw P[1];return{value:P[0]?P[1]:void 0,done:!0}}([T,Q])}}},u=this&&this.__read||function(d,C){var _=typeof Symbol=="function"&&d[Symbol.iterator];if(!_)return d;var b,E,F=_.call(d),S=[];try{for(;(C===void 0||C-- >0)&&!(b=F.next()).done;)S.push(b.value)}catch(U){E={error:U}}finally{try{b&&!b.done&&(_=F.return)&&_.call(F)}finally{if(E)throw E.error}}return S};Object.defineProperty(A,"__esModule",{value:!0}),A.PointerClick=void 0;var f=h(7372),c=h(7372),a=h(7372),n=h(8106),s=h(5819),r=h(9597),i=h(2299),l=function(d){function C(){var _=d.call(this)||this;_._clickEvent=_.disposeVar(new c.Event),_._dbclickEvent=_.disposeVar(new c.Event),_._pointerdownEvent=_.disposeVar(new c.Event),_._pointerupEvent=_.disposeVar(new c.Event),_._pointermoveEvent=_.disposeVar(new c.Event),_._pointeroutEvent=_.disposeVar(new c.Event),_.dbClickDelayTime=300,_.nativeClickDelayTime=500,_.clickMovementTolerantPixelSize=3,_.debugging=!1,_._enabled=_.disposeVar((0,a.react)(!0));var b=_.disposeVar((0,s.createProcessingFromAsyncFunc)(function(F){return w(_,void 0,void 0,function(){var S,U,T=this;return p(this,function(Q){switch(Q.label){case 0:S=function(){var P,I,M;return p(this,function(K){switch(K.label){case 0:return[4,(0,n.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O),W.disposer.dispose(r.DomElementEvent.on(T._pointerdownEvent,L))})})];case 1:return P=K.sent(),I=(0,i.getDomEventCurrentTargetPos)(P),U.debugging&&console.log("鼠标按下 ".concat(I.toString())),[4,(0,n.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O);var H=setTimeout(function(){return L(!0)},T.nativeClickDelayTime);W.disposer.dispose(function(){return clearTimeout(H)}),W.disposer.dispose(r.DomElementEvent.on(T._pointermoveEvent,function(k){var G=u((0,i.getDomEventCurrentTargetPos)(k),2),D=G[0],R=G[1],N=u(I,2),X=N[0],Y=N[1];(Math.abs(D-X)>3||Math.abs(R-Y)>3)&&L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointeroutEvent,function(){return L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointerupEvent,function(){return L(!0)}))})})];case 2:return K.sent()?[4,(0,n.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O);var H=setTimeout(function(){return L("timeout")},T.dbClickDelayTime);W.disposer.dispose(function(){return clearTimeout(H)}),W.disposer.dispose(r.DomElementEvent.on(T._pointermoveEvent,function(k){var G=u((0,i.getDomEventCurrentTargetPos)(k),2),D=G[0],R=G[1],N=u(I,2),X=N[0],Y=N[1];(Math.abs(D-X)>3||Math.abs(R-Y)>3)&&L("moved")})),W.disposer.dispose(r.DomElementEvent.on(T._pointerdownEvent,L)),W.disposer.dispose(r.DomElementEvent.on(T._pointeroutEvent,function(){return L("pointouted")})),W.disposer.dispose(r.DomElementEvent.on(T._pointerupEvent,function(){return L("pointuped")}))})})]:(U.debugging&&console.log("取消1"),[2,"continue"]);case 3:return typeof(M=K.sent())=="string"?(U.debugging&&console.log("触发单击事件!取消双击监听!error: ".concat(M)),U._clickEvent.emit(P),[2,"continue"]):[4,(0,n.step)(F,function(W){return new Promise(function(L,O){W.disposer.dispose(O);var H=setTimeout(function(){return L(!1)},T.nativeClickDelayTime);W.disposer.dispose(function(){return clearTimeout(H)}),W.disposer.dispose(r.DomElementEvent.on(T._pointermoveEvent,function(k){var G=u((0,i.getDomEventCurrentTargetPos)(k),2),D=G[0],R=G[1],N=u(I,2),X=N[0],Y=N[1];(Math.abs(D-X)>3||Math.abs(R-Y)>3)&&L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointeroutEvent,function(){return L(!1)})),W.disposer.dispose(r.DomElementEvent.on(T._pointerupEvent,function(){return L(!0)}))})})];case 4:return K.sent()?(U.debugging&&console.log("触发双击事件!"),U._dbclickEvent.emit(M),[2]):(U.debugging&&console.log("取消2"),[2,"continue"])}})},U=this,Q.label=1;case 1:return[5,S()];case 2:Q.sent(),Q.label=3;case 3:return[3,1];case 4:return[2]}})})})),E=function(F){F?b.restart():b.isRunning&&b.cancel()};return E(_.enabled),_.dispose(_.enabledChanged.disposableOn(E)),_}return g(C,d),Object.defineProperty(C.prototype,"clickEvent",{get:function(){return this._clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"dbclickEvent",{get:function(){return this._dbclickEvent},enumerable:!1,configurable:!0}),C.prototype.pointerDown=function(_){this._pointerdownEvent.emit(_)},C.prototype.pointerUp=function(_){this._pointerupEvent.emit(_)},C.prototype.pointerMove=function(_){this._pointermoveEvent.emit(_)},C.prototype.pointerOut=function(_){this._pointeroutEvent.emit(_)},Object.defineProperty(C.prototype,"enabled",{get:function(){return this._enabled.value},set:function(_){this._enabled.value=_},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"enabledChanged",{get:function(){return this._enabled.changed},enumerable:!1,configurable:!0}),C}(f.Destroyable);A.PointerClick=l},5015:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getBase64UriData=void 0;var h=/^data:(.*?)(;base64)?,(.*)$/;function m(p,u){var f=decodeURIComponent(u);return p?atob(f):f}function g(p,u){for(var f=m(p,u),c=new ArrayBuffer(f.length),a=new Uint8Array(c),n=0;n<f.length;n++)a[n]=f.charCodeAt(n);return c}function w(p,u){u===void 0&&(u="text");var f=p[1],c=!!p[2],a=p[3];switch(u){case"text":return[m(c,a),f];case"arraybuffer":return[g(c,a),f];case"blob":var n=g(c,a);return[new Blob([n],{type:f}),f];case"document":return[new DOMParser().parseFromString(m(c,a),f),f];case"json":return[JSON.parse(m(c,a)),f];default:throw new Error("Unhandled responseType: "+u)}}A.getBase64UriData=function(p,u){u===void 0&&(u="text");var f=h.exec(p);if(f!==null){if(u==="document"||u==="blob"||u==="arraybuffer"||u==="text"||u==="json")return w(f,u);throw new Error("responseType error!")}}},5210:function(B,A,h){var m,g=this&&this.__extends||(m=function(l,d){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,_){C.__proto__=_}||function(C,_){for(var b in _)Object.prototype.hasOwnProperty.call(_,b)&&(C[b]=_[b])},m(l,d)},function(l,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");function C(){this.constructor=l}m(l,d),l.prototype=d===null?Object.create(d):(C.prototype=d.prototype,new C)}),w=this&&this.__awaiter||function(l,d,C,_){return new(C||(C=Promise))(function(b,E){function F(T){try{U(_.next(T))}catch(Q){E(Q)}}function S(T){try{U(_.throw(T))}catch(Q){E(Q)}}function U(T){var Q;T.done?b(T.value):(Q=T.value,Q instanceof C?Q:new C(function(P){P(Q)})).then(F,S)}U((_=_.apply(l,d||[])).next())})},p=this&&this.__generator||function(l,d){var C,_,b,E,F={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return E={next:S(0),throw:S(1),return:S(2)},typeof Symbol=="function"&&(E[Symbol.iterator]=function(){return this}),E;function S(U){return function(T){return function(Q){if(C)throw new TypeError("Generator is already executing.");for(;E&&(E=0,Q[0]&&(F=0)),F;)try{if(C=1,_&&(b=2&Q[0]?_.return:Q[0]?_.throw||((b=_.return)&&b.call(_),0):_.next)&&!(b=b.call(_,Q[1])).done)return b;switch(_=0,b&&(Q=[2&Q[0],b.value]),Q[0]){case 0:case 1:b=Q;break;case 4:return F.label++,{value:Q[1],done:!1};case 5:F.label++,_=Q[1],Q=[0];continue;case 7:Q=F.ops.pop(),F.trys.pop();continue;default:if(!((b=(b=F.trys).length>0&&b[b.length-1])||Q[0]!==6&&Q[0]!==2)){F=0;continue}if(Q[0]===3&&(!b||Q[1]>b[0]&&Q[1]<b[3])){F.label=Q[1];break}if(Q[0]===6&&F.label<b[1]){F.label=b[1],b=Q;break}if(b&&F.label<b[2]){F.label=b[2],F.ops.push(Q);break}b[2]&&F.ops.pop(),F.trys.pop();continue}Q=d.call(l,F)}catch(P){Q=[6,P],_=0}finally{C=b=0}if(5&Q[0])throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}([U,T])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.HlsProcessing=A.HlsJsLoading=void 0;var u=h(1662),f=h(8106),c=h(2220),a=h(5819),n=function(l){function d(){var C=l.call(this)||this;return C._loading=!1,C._loadedEvent=C.disposeVar(new u.Event),C._loaded=!1,C._loadedPromise=new Promise(function(_){C._loadedPromiseResolve=_}),C._processing=C.disposeVar((0,a.createProcessingFromAsyncFunc)(function(_){return w(C,void 0,void 0,function(){var b;return p(this,function(E){switch(E.label){case 0:return this._loading=!0,window.Hls?(console.info("可能系统已经加载hlsjs,此处不再加载!"),[3,3]):[3,1];case 1:return b=c.SceneObject.context.getStrFromEnv(d.path),[4,_.promise((0,u.loadJs)(b))];case 2:E.sent(),E.label=3;case 3:return this._loading=!1,this._loaded=!0,this._loadedEvent.emit(),this._loadedPromiseResolve(),[2]}})})})),C._processingStart=C._processing.start(),C}return g(d,l),Object.defineProperty(d.prototype,"loading",{get:function(){return this._loading},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedEvent",{get:function(){return this._loadedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loaded",{get:function(){return this._loaded},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"loadedPromise",{get:function(){return this._loadedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d.instance=function(){return d._instance=d._instance||new d,d._instance},d.path="${xr-utils-script-dir}/xr-static/xr-utils/hlsjs/1.4.12/hls.min.js",d}(u.Destroyable);A.HlsJsLoading=n;var s=function(l){function d(C,_){var b=l.call(this)||this;b._complexImage=C,b._videoSrc=_;var E,F=document.createElement("video");return F.src=b._videoSrc,F.style.position="absolute",F.style.top="0px",F.style.left="0px",F.style.zIndex="-100",F.style.visibility="hidden",(E=function(){F.crossOrigin=b._complexImage.crossOrigin})(),b.dispose(b._complexImage.crossOriginChanged.disposableOn(E)),(E=function(){F.autoplay=b._complexImage.autoplay})(),b.dispose(b._complexImage.autoplayChanged.disposableOn(E)),(E=function(){F.loop=b._complexImage.loop})(),b.dispose(b._complexImage.loopChanged.disposableOn(E)),F.muted=!0,document.body.appendChild(F),b._element=F,b.dispose(function(){return document.body.removeChild(F)}),b}return g(d,l),Object.defineProperty(d.prototype,"element",{get:function(){return this._element},enumerable:!1,configurable:!0}),d}(u.Destroyable),r=function(l){function d(C,_){var b=l.call(this)||this;return b._complexImage=C,b._videoSrc=_,b._videoDom=b.disposeVar(new s(b._complexImage,"")),b._processing=b.disposeVar((0,a.createProcessingFromAsyncFunc)(function(E){return w(b,void 0,void 0,function(){var F,S,U,T,Q;return p(this,function(P){switch(P.label){case 0:return F=this.videoSrc,S=n.instance(),[4,E.promise(S.loadedPromise)];case 1:return P.sent(),U=window.Hls,T=new U,Q=this.element,[4,(0,f.step)(E,function(){return new Promise(function(I,M){Q.xbsjHLS=T,T.attachMedia(Q),T.on(U.Events.MEDIA_ATTACHED,function(){T.loadSource(F),T.on(U.Events.MANIFEST_PARSED,function(K,W){Q.play(),I()})}),T.on(U.Events.ERROR,function(K,W){W.type;var L=W.details;W.fatal&&(T.destroy(),M(L))})})})];case 2:return P.sent(),[2]}})})})),b._processingStartup=b._processing.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoSrc",{get:function(){return this._videoSrc},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"element",{get:function(){return this.videoDom.element},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),d}(u.Destroyable),i=function(l){function d(C,_){var b=l.call(this)||this;return b._complexImage=C,b._imageUri=_,b._videoDom=b.disposeVar(new r(b._complexImage,b._imageUri)),b._update=b.disposeVar((0,f.createAnimateFrameWithStartValues)(function(){return b.update()})),b._updateStart=b._update.start(),b}return g(d,l),Object.defineProperty(d.prototype,"videoDom",{get:function(){return this._videoDom},enumerable:!1,configurable:!0}),Object.defineProperty(d.prototype,"videoElement",{get:function(){return this._videoDom.element},enumerable:!1,configurable:!0}),d.prototype.update=function(){if(!(this.videoElement.readyState<2)){var C=this._complexImage,_=this.videoElement,b=_.videoWidth,E=_.videoHeight;C.size=[b,E],C.pixelFormat="RGBA",C.copyTexture({source:this.videoElement})}},d}(u.Destroyable);A.HlsProcessing=i},5236:function(B,A){var h=this&&this.__awaiter||function(g,w,p,u){return new(p||(p=Promise))(function(f,c){function a(r){try{s(u.next(r))}catch(i){c(i)}}function n(r){try{s(u.throw(r))}catch(i){c(i)}}function s(r){var i;r.done?f(r.value):(i=r.value,i instanceof p?i:new p(function(l){l(i)})).then(a,n)}s((u=u.apply(g,w||[])).next())})},m=this&&this.__generator||function(g,w){var p,u,f,c,a={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return c={next:n(0),throw:n(1),return:n(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function n(s){return function(r){return function(i){if(p)throw new TypeError("Generator is already executing.");for(;c&&(c=0,i[0]&&(a=0)),a;)try{if(p=1,u&&(f=2&i[0]?u.return:i[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,i[1])).done)return f;switch(u=0,f&&(i=[2&i[0],f.value]),i[0]){case 0:case 1:f=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,u=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((f=(f=a.trys).length>0&&f[f.length-1])||i[0]!==6&&i[0]!==2)){a=0;continue}if(i[0]===3&&(!f||i[1]>f[0]&&i[1]<f[3])){a.label=i[1];break}if(i[0]===6&&a.label<f[1]){a.label=f[1],f=i;break}if(f&&a.label<f[2]){a.label=f[2],a.ops.push(i);break}f[2]&&a.ops.pop(),a.trys.pop();continue}i=w.call(g,a)}catch(l){i=[6,l],u=0}finally{p=f=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([s,r])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.fetchJson=void 0,A.fetchJson=function(g,w){return w===void 0&&(w=fetch),h(this,void 0,void 0,function(){var p;return m(this,function(u){switch(u.label){case 0:return[4,w(g)];case 1:return(p=u.sent()).ok?[4,p.json()]:[2,void 0];case 2:return[2,u.sent()]}})})}},5252:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPoi=void 0;var w=h(7372),p=function(u){function f(c,a,n){a===void 0&&(a=[0,0]),n===void 0&&(n=0);var s=u.call(this,c)||this;return s._winPos=a,s._depth=n,s.dispose(s.winPosAndDepthChanged.disposableOn(function(){s.needRedraw(),s.needPickRedraw()})),s}return g(f,u),Object.defineProperty(f.prototype,"winPos",{get:function(){return this._winPos},set:function(c){this._winPos[0]===c[0]&&this._winPos[1]===c[1]||(this._winPos[0]=c[0],this._winPos[1]=c[1],this._winPosAndDepthChanged&&this._winPosAndDepthChanged.emit(this._winPos,this._depth))},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"depth",{get:function(){return this._depth},set:function(c){this._depth!==c&&(this._depth=c,this._winPosAndDepthChanged&&this._winPosAndDepthChanged.emit(this._winPos,this._depth))},enumerable:!1,configurable:!0}),Object.defineProperty(f.prototype,"winPosAndDepthChanged",{get:function(){return this._winPosAndDepthChanged||(this._winPosAndDepthChanged=new w.Event),this._winPosAndDepthChanged},enumerable:!1,configurable:!0}),f}(h(2277).CanvasPrimitive);A.CanvasPoi=p},5260:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPointPoi=void 0;var p=h(8106),u=h(7372),f=h(5252),c=h(4499),a=function(n){function s(r){var i=n.call(this,r)||this;i._width=16,i._text="",i._fillStyle="#0F0",i._scale=1,i.dispose(i.scaleChanged.disposableOn(function(_){i.needRedraw(),i.needPickRedraw()}));var l=i.disposeVar(new p.Transition(100)),d=i.disposeVar(new p.Transition(100)),C=function(){i._clickEvent&&!i._clickEvent.empty&&(i.scale=(1+.1*d.current)*(1+.2*l.current))};return i.dispose(d.currentChanged.disposableOn(C)),i.dispose(l.currentChanged.disposableOn(C)),i.dispose(i.activedChanged.disposableOn(function(_){d.target=_?1:0,i.needRedraw()})),i.dispose(i.hoveredChanged.disposableOn(function(_){l.target=_?1:0,i.needRedraw()})),i.dispose(i.selectedChanged.disposableOn(function(_){i.needRedraw()})),i}return g(s,n),Object.defineProperty(s.prototype,"scale",{get:function(){return this._scale},set:function(r){this._scale!==r&&(this._scale=r,this._scaleChanged&&this._scaleChanged.emit(r,this))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleChanged",{get:function(){return this._scaleChanged||(this._scaleChanged=new u.Event),this._scaleChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"width",{get:function(){return this._width},set:function(r){this._width!==r&&(this._width=r,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"text",{get:function(){return this._text},set:function(r){this._text!==r&&(this._text=r,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"fillStyle",{get:function(){return this._fillStyle},set:function(r){this._fillStyle!==r&&(this._fillStyle=r,this.needRedraw())},enumerable:!1,configurable:!0}),s.prototype.draw=function(r){if(this._show){var i=w(this._winPos,2),l=i[0],d=i[1],C=r.globalAlpha;r.globalAlpha=this.opacity;var _=this._width*this._scale;this.selected&&(0,c.drawPoint)(r,l,d+3,_+3,"#F00"),this.actived&&this._clickEvent&&!this._clickEvent.empty&&(0,c.drawPoint)(r,l,d+5,_+5,"#FFF"),this.hovered?(0,c.drawPoint)(r,l,d+3,_+3,"#000A"):(0,c.drawPoint)(r,l,d+1,_+1,"#000A"),(0,c.drawPoint)(r,l,d,_,this._fillStyle);var b=this._scale>1.2?"bold 14px Arial":"bold 10px Arial";(0,c.drawText)(r,l,d-_,this._text,b,"#000"),r.globalAlpha=C}},s.prototype.drawForPick=function(r,i){if(this._show){var l=w(this._winPos,2),d=l[0],C=l[1],_=this._width*this._scale,b=i("default");(0,c.drawPoint)(r,d,C,_,b)}},s}(f.CanvasPoi);A.CanvasPointPoi=a},5281:function(B,A,h){var m=this&&this.__awaiter||function(p,u,f,c){return new(f||(f=Promise))(function(a,n){function s(l){try{i(c.next(l))}catch(d){n(d)}}function r(l){try{i(c.throw(l))}catch(d){n(d)}}function i(l){var d;l.done?a(l.value):(d=l.value,d instanceof f?d:new f(function(C){C(d)})).then(s,r)}i((c=c.apply(p,u||[])).next())})},g=this&&this.__generator||function(p,u){var f,c,a,n,s={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return n={next:r(0),throw:r(1),return:r(2)},typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function r(i){return function(l){return function(d){if(f)throw new TypeError("Generator is already executing.");for(;n&&(n=0,d[0]&&(s=0)),s;)try{if(f=1,c&&(a=2&d[0]?c.return:d[0]?c.throw||((a=c.return)&&a.call(c),0):c.next)&&!(a=a.call(c,d[1])).done)return a;switch(c=0,a&&(d=[2&d[0],a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,c=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(!((a=(a=s.trys).length>0&&a[a.length-1])||d[0]!==6&&d[0]!==2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){s.label=d[1];break}if(d[0]===6&&s.label<a[1]){s.label=a[1],a=d;break}if(a&&s.label<a[2]){s.label=a[2],s.ops.push(d);break}a[2]&&s.ops.pop(),s.trys.pop();continue}d=u.call(p,s)}catch(C){d=[6,C],c=0}finally{f=a=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}([i,l])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.loadGifFrames=void 0;var w=h(9704);A.loadGifFrames=function(p){return m(this,void 0,void 0,function(){var u,f,c;return g(this,function(a){switch(a.label){case 0:return[4,fetch(p)];case 1:return[4,a.sent().arrayBuffer()];case 2:return u=a.sent(),f=(0,w.parseGIF)(u),c=(0,w.decompressFrames)(f,!0),[2,{gif:f,gifFrames:c,arrayBuffer:u}]}})})}},5486:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.defined=void 0,A.defined=function(h){return h!=null}},5505:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.every=void 0;var m=h(6301);A.every=function(g,w){return!(0,m.forEachWithBreak)(g,function(p,u){return!w(p,u)})}},5544:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.IntervalDeprecated=void 0;var w=h(3207),p=function(u){function f(c,a){a===void 0&&(a=!0);var n=u.call(this,function(s){var r=s.progressFunc;return s.completeFunc,s.errorFunc,n._intervalFunc=r,n._intervalID&&console.error("this._intervalID should be undefined!"),n.leading&&r(),n._intervalID=setInterval(r,n.intervalTime),function(){if(!n._intervalID)throw console.error("this._intervalID should not be undefined!"),new Error("this._intervalID should not be undefined!");clearInterval(n._intervalID),n._intervalID=void 0}})||this;return n.intervalTime=c,n.leading=a,n.dispose(n.intervalTimeChanged.disposableOn(function(){n._intervalID&&n._intervalFunc&&(clearInterval(n._intervalID),n._intervalID=setInterval(n._intervalFunc,n.intervalTime))})),n}return g(f,u),f}(h(6891).ProcessingDeprecated);A.IntervalDeprecated=p,(0,w.defineReactiveProp)(p,"leading",!0),(0,w.defineReactiveProp)(p,"intervalTime",500)},5582:function(B,A,h){var m=this&&this.__awaiter||function(c,a,n,s){return new(n||(n=Promise))(function(r,i){function l(_){try{C(s.next(_))}catch(b){i(b)}}function d(_){try{C(s.throw(_))}catch(b){i(b)}}function C(_){var b;_.done?r(_.value):(b=_.value,b instanceof n?b:new n(function(E){E(b)})).then(l,d)}C((s=s.apply(c,a||[])).next())})},g=this&&this.__generator||function(c,a){var n,s,r,i,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function d(C){return function(_){return function(b){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,b[0]&&(l=0)),l;)try{if(n=1,s&&(r=2&b[0]?s.return:b[0]?s.throw||((r=s.return)&&r.call(s),0):s.next)&&!(r=r.call(s,b[1])).done)return r;switch(s=0,r&&(b=[2&b[0],r.value]),b[0]){case 0:case 1:r=b;break;case 4:return l.label++,{value:b[1],done:!1};case 5:l.label++,s=b[1],b=[0];continue;case 7:b=l.ops.pop(),l.trys.pop();continue;default:if(!((r=(r=l.trys).length>0&&r[r.length-1])||b[0]!==6&&b[0]!==2)){l=0;continue}if(b[0]===3&&(!r||b[1]>r[0]&&b[1]<r[3])){l.label=b[1];break}if(b[0]===6&&l.label<r[1]){l.label=r[1],r=b;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(b);break}r[2]&&l.ops.pop(),l.trys.pop();continue}b=a.call(c,l)}catch(E){b=[6,E],s=0}finally{n=r=0}if(5&b[0])throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}([C,_])}}},w=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},p=this&&this.__spreadArray||function(c,a,n){if(n||arguments.length===2)for(var s,r=0,i=a.length;r<i;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.step=void 0;var u=h(5819),f=h(9374);A.step=function(c,a){for(var n=this,s=[],r=2;r<arguments.length;r++)s[r-2]=arguments[r];return c.promise((0,u.pairToPromise)(f.getPromiseFromProcessing.apply(void 0,p([(0,u.createProcessingFromAsyncFunc)(function(i){for(var l=[],d=1;d<arguments.length;d++)l[d-1]=arguments[d];return m(n,void 0,void 0,function(){return g(this,function(C){switch(C.label){case 0:return c.disposer.dispose(function(){i.isDestroyed()||i.cancel()}),[4,a.apply(void 0,p([i],w(l),!1))];case 1:return[2,C.sent()]}})})})],w(s),!1))))}},5590:function(B,A,h){this&&this.__read,this&&this.__spreadArray,Object.defineProperty(A,"__esModule",{value:!0}),A.Kriging=void 0;var m=h(1662);function g(E,F){return E.resize(8*F),new Float64Array(E.arrayBuffer,0,F)}function w(E,F,S){var U=S;if(U.length!==F*F)throw new Error("Z.length !== n * n");U.fill(0);for(var T=0;T<F;T++)U[T*F+T]=E;return U}function p(E,F,S,U,T){var Q,P,I=T;if(I.length!==S*U)throw new Error("Z.length !== n * m");for(Q=0;Q<S;Q++)for(P=0;P<U;P++)I[Q*U+P]=E[Q*U+P]+F[Q*U+P];return I}function u(E,F,S,U,T,Q){var P,I,M,K=Q;if(K.length!==S*T)throw new Error("Z.length !== n * p");for(P=0;P<S;P++)for(I=0;I<T;I++)for(K[P*T+I]=0,M=0;M<U;M++)K[P*T+I]+=E[P*U+M]*F[M*T+I];return K}var f=new m.ScalableBuffer;function c(E,F){var S,U,T,Q=g(f,F);for(S=0;S<F;S++)Q[S]=E[S*F+S];for(S=0;S<F;S++){for(U=0;U<S;U++)Q[S]-=E[S*F+U]*E[S*F+U];if(Q[S]<=0)return!1;for(Q[S]=Math.sqrt(Q[S]),U=S+1;U<F;U++){for(T=0;T<S;T++)E[U*F+S]-=E[U*F+T]*E[S*F+T];E[U*F+S]/=Q[S]}}for(S=0;S<F;S++)E[S*F+S]=Q[S];return!0}function a(E,F){var S,U,T,Q;for(S=0;S<F;S++)for(E[S*F+S]=1/E[S*F+S],U=S+1;U<F;U++){for(Q=0,T=S;T<U;T++)Q-=E[U*F+T]*E[T*F+S];E[U*F+S]=Q/E[U*F+U]}for(S=0;S<F;S++)for(U=S+1;U<F;U++)E[S*F+U]=0;for(S=0;S<F;S++){for(E[S*F+S]*=E[S*F+S],T=S+1;T<F;T++)E[S*F+S]+=E[T*F+S]*E[T*F+S];for(U=S+1;U<F;U++)for(T=U;T<F;T++)E[S*F+U]+=E[T*F+S]*E[T*F+U]}for(S=0;S<F;S++)for(U=0;U<S;U++)E[S*F+U]=E[U*F+S]}var n=new m.ScalableBuffer,s=new m.ScalableBuffer,r=new m.ScalableBuffer,i=new m.ScalableBuffer;function l(E,F){var S,U,T,Q,P,I,M,K,W,L=F,O=g(n,F*F),H=g(s,F),k=g(r,F),G=g(i,F),D=0,R=0;for(S=0;S<F;S++)for(U=0;U<F;U++)O[S*F+U]=S==U?1:0;for(U=0;U<F;U++)G[U]=0;for(S=0;S<F;S++){for(I=0,U=0;U<F;U++)if(G[U]!=1)for(T=0;T<F;T++)G[T]==0&&Math.abs(E[U*F+T])>=I&&(I=Math.abs(E[U*F+T]),R=U,D=T);if(++G[D],R!=D){for(Q=0;Q<F;Q++)W=E[R*F+Q],E[R*F+Q]=E[D*F+Q],E[D*F+Q]=W;for(Q=0;Q<L;Q++)W=O[R*F+Q],O[R*F+Q]=O[D*F+Q],O[D*F+Q]=W}if(k[S]=R,H[S]=D,E[D*F+D]==0)return!1;for(K=1/E[D*F+D],E[D*F+D]=1,Q=0;Q<F;Q++)E[D*F+Q]*=K;for(Q=0;Q<L;Q++)O[D*F+Q]*=K;for(P=0;P<F;P++)if(P!=D){for(M=E[P*F+D],E[P*F+D]=0,Q=0;Q<F;Q++)E[P*F+Q]-=E[D*F+Q]*M;for(Q=0;Q<L;Q++)O[P*F+Q]-=O[D*F+Q]*M}}for(Q=F-1;Q>=0;Q--)if(k[Q]!=H[Q])for(T=0;T<F;T++)W=E[T*F+k[Q]],E[T*F+k[Q]]=E[T*F+H[Q]],E[T*F+H[Q]]=W;return!0}function d(E,F,S,U,T){return F+(U-F)/S*(1-Math.exp(-1/T*Math.pow(E/S,2)))}function C(E,F,S,U,T){return F+(U-F)/S*(1-Math.exp(-1/T*(E/S)))}function _(E,F,S,U,T){return E>S?F+(U-F)/S:F+(U-F)/S*(E/S*1.5-.5*Math.pow(E/S,3))}function b(E,F){var S=E[0]-F[0],U=E[1]-F[1],T=E[2]-F[2];return Math.sqrt(S*S+U*U+T*T)}(function(E){var F=new m.ScalableBuffer,S=new m.ScalableBuffer,U=new m.ScalableBuffer,T=new m.ScalableBuffer,Q=new m.ScalableBuffer,P=new m.ScalableBuffer,I=new m.ScalableBuffer,M=new m.ScalableBuffer,K=new m.ScalableBuffer,W=new m.ScalableBuffer,L=new m.ScalableBuffer,O=new m.ScalableBuffer,H=new m.ScalableBuffer,k=[];E.train=function(R,N,X,Y,Z,ie,ae,me){var we;switch(Z){case"gaussian":we=d;break;case"exponential":we=C;break;case"spherical":we=_}var re,se,ye,be,ue={t:R,x:N,y:X,z:Y,nugget:0,range:0,sill:0,A:1/3,n:0,model:we},ne=R.length,Oe=k;for(Oe.length=(ne*ne-ne)/2,re=0,ye=0;re<ne;re++)for(se=0;se<re;se++,ye++)Oe[ye]=Oe[ye]||[0,0],Oe[ye][0]=b([N[re],X[re],Y[re]],[N[se],X[se],Y[se]]),Oe[ye][1]=Math.abs(R[re]-R[se]);Oe.sort(function(bs,RA){return bs[0]-RA[0]}),ue.range=Oe[(ne*ne-ne)/2-1][0];var tt=(ne*ne-ne)/2>30?30:(ne*ne-ne)/2,HA=ue.range/tt,Ke=g(O,tt);Ke.fill(0);var he=g(H,tt);if(he.fill(0),tt<30)for(be=0;be<tt;be++)Ke[be]=Oe[be][0],he[be]=Oe[be][1];else{for(re=0,se=0,ye=0,be=0;re<tt&&se<(ne*ne-ne)/2;re++,ye=0){for(;Oe[se][0]<=(re+1)*HA&&(Ke[be]+=Oe[se][0],he[be]+=Oe[se][1],ye++,!(++se>=(ne*ne-ne)/2)););ye>0&&(Ke[be]/=ye,he[be]/=ye,be++)}if(be<2)return ue}ne=be,ue.range=Ke[ne-1]-Ke[0];var wt=g(F,2*ne);wt.fill(1);var Jn=g(S,ne),Xn=ue.A;for(re=0;re<ne;re++){switch(Z){case"gaussian":wt[2*re+1]=1-Math.exp(-1/Xn*Math.pow(Ke[re]/ue.range,2));break;case"exponential":wt[2*re+1]=1-Math.exp(-1/Xn*Ke[re]/ue.range);break;case"spherical":wt[2*re+1]=Ke[re]/ue.range*1.5-.5*Math.pow(Ke[re]/ue.range,3)}Jn[re]=he[re]}var Yn=function(bs,RA,Hy,xy){var kA,KA,_s=xy;if(_s.length!==2*RA)throw new Error("Z.length !== m * n");for(kA=0;kA<RA;kA++)for(KA=0;KA<2;KA++)_s[KA*RA+kA]=bs[2*kA+KA];return _s}(wt,ne,0,g(U,2*ne)),Bt=u(Yn,wt,2,ne,2,g(T,4)),Mu=(Bt=p(Bt,w(1/ae,2,g(I,4)),2,2,g(Q,4))).slice(0);c(Bt,2)?a(Bt,2):(l(Mu,2),Bt=Mu);var Hu=u(u(Bt,Yn,2,2,ne,g(K,2*ne)),Jn,2,ne,1,g(M,2));ue.nugget=Hu[0],ue.sill=Hu[1]*ue.range+ue.nugget,ue.n=N.length,ne=N.length;var LA=g(P,ne*ne);for(re=0;re<ne;re++){for(se=0;se<re;se++)LA[re*ne+se]=ue.model(Math.pow(Math.pow(N[re]-N[se],2)+Math.pow(X[re]-X[se],2),.5),ue.nugget,ue.range,ue.sill,ue.A),LA[se*ne+re]=LA[re*ne+se];LA[re*ne+re]=ue.model(0,ue.nugget,ue.range,ue.sill,ue.A)}var DA=p(LA,w(ie,ne,g(L,ne*ne)),ne,ne,g(W,ne*ne)),Lu=DA.slice(0);if(c(DA,ne)?a(DA,ne):(l(Lu,ne),DA=Lu),me.length!==ne)throw new Error("mResult.length !== n");return ue.M=u(DA,R,ne,ne,1,me),ue};var G=new m.ScalableBuffer,D=new m.ScalableBuffer;E.predict=function(R,N,X,Y){var Z,ie=g(G,Y.n);for(Z=0;Z<Y.n;Z++){var ae=b([R,N,X],[Y.x[Z],Y.y[Z],Y.z[Z]]);ie[Z]=Y.model(ae,Y.nugget,Y.range,Y.sill,Y.A)}if(!Y.M)throw new Error("!variogram.M");return u(ie,Y.M,1,Y.n,1,g(D,1))[0]}})(A.Kriging||(A.Kriging={}))},5600:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getExtProp=A.setExtProp=void 0;var h=new WeakMap;A.setExtProp=function(m,g,w){h.has(m)||h.set(m,{}),h.get(m)[g]=w},A.getExtProp=function(m,g){if(h.has(m))return h.get(m)[g]}},5675:function(B,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r},g=this&&this.__spreadArray||function(u,f,c){if(c||arguments.length===2)for(var a,n=0,s=f.length;n<s;n++)!a&&n in f||(a||(a=Array.prototype.slice.call(f,0,n)),a[n]=f[n]);return u.concat(a||Array.prototype.slice.call(f))};Object.defineProperty(A,"__esModule",{value:!0}),A.createProcessing=void 0;var w=h(6891),p=h(8196);A.createProcessing=function(u){return new w.ProcessingDeprecated(function(f){for(var c=[],a=1;a<arguments.length;a++)c[a-1]=arguments[a];var n=new p.ProcessingStarter(f);return u.apply(void 0,g([n],m(c),!1)).then(n.complete.bind(n)).catch(n.error.bind(n)),n.cancel.bind(n)})}},5726:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(5675),A),g(h(6891),A),g(h(8196),A),g(h(8055),A),g(h(8995),A),g(h(2601),A)},5745:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.scalableBufferPool=A.ScalableBuffer=void 0;var m=h(3009),g=h(1085);h(3428);var w=function(){function p(){this._arrayBuffer=new ArrayBuffer(1024)}return Object.defineProperty(p.prototype,"byteLength",{get:function(){return this._arrayBuffer.byteLength},enumerable:!1,configurable:!0}),p.prototype.resize=function(u){if(this._arrayBuffer.byteLength<u){var f=(0,m.nextPow2)(u);this._arrayBuffer=ArrayBuffer.transfer(this._arrayBuffer,f)}},Object.defineProperty(p.prototype,"arrayBuffer",{get:function(){return this._arrayBuffer},enumerable:!1,configurable:!0}),p}();A.ScalableBuffer=w,A.scalableBufferPool=new g.ObjPool(function(){return new w})},5774:function(B,A,h){var m=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,n){if(n||arguments.length===2)for(var s,r=0,i=a.length;r<i;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.SmartListenerPipe=void 0;var w=h(4471),p=h(2452);function u(c,a){return(a=a??new p.SmartListenerHandler)._reset(c,c._cid),a}var f=function(){function c(){}return Object.defineProperty(c.prototype,"_pipe",{get:function(){var a;return this.__pipe=(a=this.__pipe)!==null&&a!==void 0?a:new w.ListenerPipe,this.__pipe},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"empty",{get:function(){return!this.__pipe||this._pipe.empty},enumerable:!1,configurable:!0}),c.prototype.do=function(){for(var a,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return(a=this._pipe).do.apply(a,g([],m(n),!1))},c.prototype.isHandlerValid=function(a){return!!a.valid&&this._pipe.isHandlerValid(a._listenerHandler)},c.prototype.moveAfter=function(a,n){if(!a.valid||!n.valid)throw new Error("handler or nextHander is not valid!");return this._pipe.moveAfter(a._listenerHandler,n._listenerHandler)},c.prototype.moveBefore=function(a,n){if(!a.valid||!n.valid)throw new Error("handler or nextHander is not valid!");return this._pipe.moveAfter(a._listenerHandler,n._listenerHandler)},c.prototype.insertBefore=function(a,n,s,r,i){if(r===void 0&&(r=!1),!a.valid)throw new Error("handler is not valid!");return u(this._pipe.insertBefore(a._listenerHandler,n,s,r),i)},c.prototype.insertAfter=function(a,n,s,r,i){if(r===void 0&&(r=!1),!a.valid)throw new Error("handler is not valid!");return u(this._pipe.insertAfter(a._listenerHandler,n,s,r),i)},c.prototype.remove=function(a){if(!a.valid)throw new Error("handler is not valid!");return this._pipe.remove(a._listenerHandler)},c.prototype.removeAll=function(){return this._pipe.removeAll()},c.prototype.push=function(a,n,s,r){return s===void 0&&(s=!1),u(this._pipe.push(a,n,s),r)},c.prototype.pop=function(){return this._pipe.pop()},c.prototype.shift=function(){return this._pipe.shift()},c.prototype.unshift=function(a,n,s,r){return s===void 0&&(s=!1),u(this._pipe.unshift(a,n,s),r)},c.prototype.getTail=function(a){var n=this._pipe.tail;return n?u(n,a):void 0},c.prototype.getHead=function(a){var n=this._pipe.head;return n?u(n,a):void 0},c}();A.SmartListenerPipe=f},5785:function(B,A,h){var m,g=this&&this.__extends||(m=function(i,l){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,C){d.__proto__=C}||function(d,C){for(var _ in C)Object.prototype.hasOwnProperty.call(C,_)&&(d[_]=C[_])},m(i,l)},function(i,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");function d(){this.constructor=i}m(i,l),i.prototype=l===null?Object.create(l):(d.prototype=l.prototype,new d)}),w=this&&this.__read||function(i,l){var d=typeof Symbol=="function"&&i[Symbol.iterator];if(!d)return i;var C,_,b=d.call(i),E=[];try{for(;(l===void 0||l-- >0)&&!(C=b.next()).done;)E.push(C.value)}catch(F){_={error:F}}finally{try{C&&!C.done&&(d=b.return)&&d.call(b)}finally{if(_)throw _.error}}return E},p=this&&this.__spreadArray||function(i,l,d){if(d||arguments.length===2)for(var C,_=0,b=l.length;_<b;_++)!C&&_ in l||(C||(C=Array.prototype.slice.call(l,0,_)),C[_]=l[_]);return i.concat(C||Array.prototype.slice.call(l))};Object.defineProperty(A,"__esModule",{value:!0}),A.createNextAnimateFrameWeakEvent=A.NextAnimateFrameWeakEvent=A.createNextAnimateFrameEvent=A.NextAnimateFrameEvent=A.createNextMicroTaskWeakEvent=A.NextMicroTaskWeakEvent=A.createNextMicroTaskEvent=A.NextMicroTaskEvent=void 0;var u=h(4899),f=h(6558),c=function(i){function l(d,C){for(var _=[],b=2;b<arguments.length;b++)_[b-2]=arguments[b];var E=i.call(this)||this;return E._nextFunc=d,E.dispose(function(){E._cancellFunc&&(E._cancellFunc(),E._cancellFunc=void 0)}),_.forEach(function(F){return E.dispose(F[C?"dwon":"don"](function(){E.next()}))}),E}return g(l,i),l.prototype.next=function(){var d=this;this._cancellFunc||(this._cancellFunc=this._nextFunc(function(){return d._cancellFunc=void 0,d.emit()}))},l.prototype.flush=function(){this._cancellFunc&&(this._cancellFunc(),this._cancellFunc=void 0,this.emit())},l}(u.Event),a=function(i){function l(){for(var d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];return i.apply(this,p([f.nextMicroTask,!1],w(d),!1))||this}return g(l,i),l}(c);A.NextMicroTaskEvent=a,A.createNextMicroTaskEvent=function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(a.bind.apply(a,p([void 0],w(i),!1)))};var n=function(i){function l(){for(var d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];return i.apply(this,p([f.nextMicroTask,!0],w(d),!1))||this}return g(l,i),l}(c);A.NextMicroTaskWeakEvent=n,A.createNextMicroTaskWeakEvent=function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(a.bind.apply(a,p([void 0],w(i),!1)))};var s=function(i){function l(){for(var d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];return i.apply(this,p([f.nextAnimateFrame,!1],w(d),!1))||this}return g(l,i),l}(c);A.NextAnimateFrameEvent=s,A.createNextAnimateFrameEvent=function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(s.bind.apply(s,p([void 0],w(i),!1)))};var r=function(i){function l(){for(var d=[],C=0;C<arguments.length;C++)d[C]=arguments[C];return i.apply(this,p([f.nextAnimateFrame,!0],w(d),!1))||this}return g(l,i),l}(c);A.NextAnimateFrameWeakEvent=r,A.createNextAnimateFrameWeakEvent=function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return new(r.bind.apply(r,p([void 0],w(i),!1)))}},5819:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9651),A),g(h(921),A),g(h(1148),A),g(h(1101),A),g(h(4206),A)},5873:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Ray=void 0;var m,g=h(9898);(m=A.Ray||(A.Ray={})).getOrigin=function(w,p){return g.Vector.set(p,w[0],w[1],w[2])},m.getDirection=function(w,p){return g.Vector.set(p,w[3],w[4],w[5])}},5925:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.GifProcessing=void 0;var w=h(7029),p=h(7372),u=h(8106),f=function(c){function a(n,s){var r=c.call(this)||this;return r._complexImage=n,r._imageUri=s,r._gif=r.disposeVar(new w.Gif),r._update=r.disposeVar((0,u.createAnimateFrameWithStartValues)(function(){return r.update()})),r._updateStart=r._update.start(),r._gif.url=r._imageUri,r}return g(a,c),Object.defineProperty(a.prototype,"gif",{get:function(){return this._gif},enumerable:!1,configurable:!0}),a.prototype.update=function(){var n=this,s=this._gif.player;if(s.gifFrames){var r,i=this._complexImage,l=s.gifCanvas,d=l.width,C=l.height;i.size=[d,C],i.pixelFormat="RGBA",i.copyTexture({source:s.gifCanvas}),(r=function(){s.autoPlayOnLoad=n._complexImage.autoplay})(),this.dispose(this._complexImage.autoplayChanged.disposableOn(r)),(r=function(){s.loop=n._complexImage.loop})(),this.dispose(this._complexImage.loopChanged.disposableOn(r))}},a}(p.Destroyable);A.GifProcessing=f},5985:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Vector3=void 0;var m,g=h(2731),w=h(9898);(m=A.Vector3||(A.Vector3={})).cross=function(p,u,f){var c=p[0],a=p[1],n=p[2],s=u[0],r=u[1],i=u[2],l=a*i-n*r,d=n*s-c*i,C=c*r-a*s;return w.Vector.set(f,l,d,C)},m.getOrthogonalityVector=function(p,u,f,c){if(!w.Vector.isNormalized(p))throw new Error("!Vector.isNormalized(constVector)");if(!(f=w.Vector.isNormalized(u)?w.Vector.clone(u,f):w.Vector.normalize(u,f)))throw new Error("vectorToFix is [0, 0, 0]!");return f=m.cross(p,f,f),w.Vector.normalize(f,f),c&&w.Vector.clone(f,c),m.cross(f,p,f),w.Vector.normalize(f,f)},m.UNIT_X=Object.freeze([1,0,0]),m.UNIT_Y=Object.freeze([0,1,0]),m.UNIT_Z=Object.freeze([0,0,1]),m.ZERO=Object.freeze([0,0,0]),m.ONE=Object.freeze([1,1,1]),m.SCRATCH0=(0,g.createNumbers)(3),m.SCRATCH1=(0,g.createNumbers)(3),m.SCRATCH2=(0,g.createNumbers)(3),m.SCRATCH3=(0,g.createNumbers)(3),m.SCRATCH4=(0,g.createNumbers)(3),m.SCRATCH5=(0,g.createNumbers)(3),m.SCRATCH6=(0,g.createNumbers)(3),m.SCRATCH7=(0,g.createNumbers)(3),m.SCRATCH8=(0,g.createNumbers)(3),m.SCRATCH9=(0,g.createNumbers)(3)},5986:function(B,A,h){var m=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r},g=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,c=f&&u[f],a=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&a>=u.length&&(u=void 0),{value:u&&u[a++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.extendClassProps=void 0;var w=h(3915);function p(u,f,c,a){var n=u;if(!n[f]){var s=a(),r=Object.fromEntries(Object.entries(s).filter(function(i){var l=m(i,2),d=l[0],C=l[1],_=d in Object.getPrototypeOf(c);if(_){var b=C instanceof w.ReactiveVariable?C.value:C;u[d]=b}return!_}).map(function(i){var l=m(i,2),d=l[0],C=l[1];return C instanceof w.ReactiveVariable?[d,C]:[d,Array.isArray(C)?(0,w.reactArrayWithUndefined)(C):(0,w.react)(C)]}));n[f]=r}return n[f]}A.extendClassProps=function(u,f){var c,a,n,s=Symbol("".concat((n=u==null?void 0:u.constructor)===null||n===void 0?void 0:n.name,"-createDefaultProps"));u.constructor.__xbsj_dpSymbol=s,u.constructor.__xbsj_createDefaultProps=f;var r=function(_,b){var E;if(!Reflect.has(u,_)){var F=function(S){var U,T;if(!S[s]){for(var Q=[],P=Object.getPrototypeOf(S);P;)Q.push(P),P=Object.getPrototypeOf(P);Q.reverse();try{for(var I=g(Q),M=I.next();!M.done;M=I.next()){var K=M.value,W=K.constructor.__xbsj_dpSymbol;if(W){var L=K.constructor.__xbsj_createDefaultProps;L&&p(S,W,K,L)}}}catch(O){U={error:O}}finally{try{M&&!M.done&&(T=I.return)&&T.call(I)}finally{if(U)throw U.error}}}};Object.defineProperties(u,((E={})[_]={get:function(){return F(this),p(this,s,u,f)[_].value},set:function(S){F(this);var U=p(this,s,u,f)[_];U||console.error("!propObj"),U.value=S}},E["".concat(_,"Changed")]={get:function(){return F(this),p(this,s,u,f)[_].changed}},E["".concat(_,"React")]={get:function(){return F(this),p(this,s,u,f)[_]}},E))}};try{for(var i=g(Object.entries(f())),l=i.next();!l.done;l=i.next()){var d=m(l.value,2),C=d[0];d[1],r(C)}}catch(_){c={error:_}}finally{try{l&&!l.done&&(a=i.return)&&a.call(i)}finally{if(c)throw c.error}}}},6021:function(B,A,h){var m=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A._continuousMultiply=A._multiplyByPoint=A._affineMultiplyByPoint=A._multiplyByPointAsVector=A._multiplyByVector=A._multiplyByScale=A._multiplyByUniformScale=A._multiplyByTranslation=A._multiplyByMatrix3=A._multiplyTransformation=A._multiply=void 0;var g=h(2731),w=h(9898);function p(n,s,r){var i=n[0],l=n[1],d=n[2],C=n[3],_=n[4],b=n[5],E=n[6],F=n[7],S=n[8],U=n[9],T=n[10],Q=n[11],P=n[12],I=n[13],M=n[14],K=n[15],W=s[0],L=s[1],O=s[2],H=s[3],k=s[4],G=s[5],D=s[6],R=s[7],N=s[8],X=s[9],Y=s[10],Z=s[11],ie=s[12],ae=s[13],me=s[14],we=s[15],re=i*W+_*L+S*O+P*H,se=l*W+b*L+U*O+I*H,ye=d*W+E*L+T*O+M*H,be=C*W+F*L+Q*O+K*H,ue=i*k+_*G+S*D+P*R,ne=l*k+b*G+U*D+I*R,Oe=d*k+E*G+T*D+M*R,tt=C*k+F*G+Q*D+K*R,HA=i*N+_*X+S*Y+P*Z,Ke=l*N+b*X+U*Y+I*Z,he=d*N+E*X+T*Y+M*Z,wt=C*N+F*X+Q*Y+K*Z,Jn=i*ie+_*ae+S*me+P*we,Xn=l*ie+b*ae+U*me+I*we,Yn=d*ie+E*ae+T*me+M*we,Bt=C*ie+F*ae+Q*me+K*we;return(r=r||(0,g.createNumbers)(16))[0]=re,r[1]=se,r[2]=ye,r[3]=be,r[4]=ue,r[5]=ne,r[6]=Oe,r[7]=tt,r[8]=HA,r[9]=Ke,r[10]=he,r[11]=wt,r[12]=Jn,r[13]=Xn,r[14]=Yn,r[15]=Bt,r}A._multiply=p,A._multiplyTransformation=function(n,s,r){var i=n[0],l=n[1],d=n[2],C=n[4],_=n[5],b=n[6],E=n[8],F=n[9],S=n[10],U=n[12],T=n[13],Q=n[14],P=s[0],I=s[1],M=s[2],K=s[4],W=s[5],L=s[6],O=s[8],H=s[9],k=s[10],G=s[12],D=s[13],R=s[14],N=i*P+C*I+E*M,X=l*P+_*I+F*M,Y=d*P+b*I+S*M,Z=i*K+C*W+E*L,ie=l*K+_*W+F*L,ae=d*K+b*W+S*L,me=i*O+C*H+E*k,we=l*O+_*H+F*k,re=d*O+b*H+S*k,se=i*G+C*D+E*R+U,ye=l*G+_*D+F*R+T,be=d*G+b*D+S*R+Q;return(r=r||(0,g.createNumbers)(16))[0]=N,r[1]=X,r[2]=Y,r[3]=0,r[4]=Z,r[5]=ie,r[6]=ae,r[7]=0,r[8]=me,r[9]=we,r[10]=re,r[11]=0,r[12]=se,r[13]=ye,r[14]=be,r[15]=1,r},A._multiplyByMatrix3=function(n,s,r){var i=n[0],l=n[1],d=n[2],C=n[4],_=n[5],b=n[6],E=n[8],F=n[9],S=n[10],U=s[0],T=s[1],Q=s[2],P=s[3],I=s[4],M=s[5],K=s[6],W=s[7],L=s[8],O=i*U+C*T+E*Q,H=l*U+_*T+F*Q,k=d*U+b*T+S*Q,G=i*P+C*I+E*M,D=l*P+_*I+F*M,R=d*P+b*I+S*M,N=i*K+C*W+E*L,X=l*K+_*W+F*L,Y=d*K+b*W+S*L;return(r=r||(0,g.createNumbers)(16))[0]=O,r[1]=H,r[2]=k,r[3]=0,r[4]=G,r[5]=D,r[6]=R,r[7]=0,r[8]=N,r[9]=X,r[10]=Y,r[11]=0,r[12]=n[12],r[13]=n[13],r[14]=n[14],r[15]=n[15],r},A._multiplyByTranslation=function(n,s,r){var i=s[0],l=s[1],d=s[2],C=i*n[0]+l*n[4]+d*n[8]+n[12],_=i*n[1]+l*n[5]+d*n[9]+n[13],b=i*n[2]+l*n[6]+d*n[10]+n[14];return(r=r||(0,g.createNumbers)(16))[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],r[4]=n[4],r[5]=n[5],r[6]=n[6],r[7]=n[7],r[8]=n[8],r[9]=n[9],r[10]=n[10],r[11]=n[11],r[12]=C,r[13]=_,r[14]=b,r[15]=n[15],r};var u=(0,g.createNumbers)(3);function f(n,s,r){if(n[15]!==1)throw new Error("_multiplyByScale error: it should be affine matrix!");var i=s[0],l=s[1],d=s[2];return r=r||(0,g.createNumbers)(16),i===1&&l===1&&d===1?n!==r?w.Vector.clone(n,r):n:(r[0]=i*n[0],r[1]=i*n[1],r[2]=i*n[2],r[3]=0,r[4]=l*n[4],r[5]=l*n[5],r[6]=l*n[6],r[7]=0,r[8]=d*n[8],r[9]=d*n[9],r[10]=d*n[10],r[11]=0,r[12]=n[12],r[13]=n[13],r[14]=n[14],r[15]=1,r)}function c(n,s,r){var i=s[0],l=s[1],d=s[2],C=s[3],_=n[0]*i+n[4]*l+n[8]*d+n[12]*C,b=n[1]*i+n[5]*l+n[9]*d+n[13]*C,E=n[2]*i+n[6]*l+n[10]*d+n[14]*C,F=n[3]*i+n[7]*l+n[11]*d+n[15]*C;return(r=r||(0,g.createNumbers)(4))[0]=_,r[1]=b,r[2]=E,r[3]=F,r}A._multiplyByUniformScale=function(n,s,r){return u[0]=s,u[1]=s,u[2]=s,f(n,u,r)},A._multiplyByScale=f,A._multiplyByVector=c,A._multiplyByPointAsVector=function(n,s,r){var i=s[0],l=s[1],d=s[2],C=n[0]*i+n[4]*l+n[8]*d,_=n[1]*i+n[5]*l+n[9]*d,b=n[2]*i+n[6]*l+n[10]*d;return(r=r||(0,g.createNumbers)(3))[0]=C,r[1]=_,r[2]=b,r},A._affineMultiplyByPoint=function(n,s,r){if(n[15]!==1)throw new Error("matrix[15] !== 1");var i=s[0],l=s[1],d=s[2],C=n[0]*i+n[4]*l+n[8]*d+n[12],_=n[1]*i+n[5]*l+n[9]*d+n[13],b=n[2]*i+n[6]*l+n[10]*d+n[14];return(r=r||(0,g.createNumbers)(3))[0]=C,r[1]=_,r[2]=b,r};var a=(0,g.createNumbers)(4);A._multiplyByPoint=function(n,s,r){w.Vector.set(a,s[0],s[1],s[2],1),c(n,a,a),r=r||(0,g.createNumbers)(3);var i=m(w.Vector.itr(a),4),l=i[0],d=i[1],C=i[2],_=i[3];return w.Vector.set(r,l/_,d/_,C/_),r},A._continuousMultiply=function(n,s){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];var l=r.length;n!==s&&w.Vector.clone(s,n);for(var d=0;d<l;++d)Array.isArray(r[d])&&typeof r[d][0]=="function"?(0,r[d][0])(n,r[d][1],n):r[d].length===16&&p(n,r[d],n);return n}},6138:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.reduce=void 0;var m=h(8144);A.reduce=function(g,w,p){for(var u=(0,m.getIterator)(g),f=p,c=0;;){var a=u.next(),n=a.done,s=a.value;if(n)break;f=w(f,s,c++)}return f}},6148:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C},p=this&&this.__spreadArray||function(n,s,r){if(r||arguments.length===2)for(var i,l=0,d=s.length;l<d;l++)!i&&l in s||(i||(i=Array.prototype.slice.call(s,0,l)),i[l]=s[l]);return n.concat(i||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A.DebouncingWithStartValues=A.Debouncing=void 0;var u=h(1662),f=h(1148),c=function(n){function s(){var r=n.call(this,function(i,l,d){var C=i.errorFunc;try{var _=w((0,u.debounce)(l,d),2),b=_[0],E=_[1];return r._doFunc=b,E}catch(F){return C(F),function(){}}})||this;return r}return g(s,n),s.prototype.do=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.Debouncing=c;var a=function(n){function s(r,i){var l=n.call(this,function(d){var C=d.errorFunc;try{var _=w((0,u.debounce)(r,i),2),b=_[0],E=_[1];return l._doFunc=b,E}catch(F){return C(F),function(){}}})||this;return l}return g(s,n),s.prototype.do=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];this._doFunc&&this._doFunc.apply(this,p([],w(r),!1))},s}(f.Processing);A.DebouncingWithStartValues=a},6172:function(B,A,h){var m=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},g=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.OrientedBoundingBox=void 0;var w=h(2731),p=h(9898),u=h(7215),f=h(312),c=h(4915);(function(a){function n(b,E){return E=E||(0,w.createNumbers)(3),p.Vector.set(E,b[0],b[1],b[2]),E}function s(b,E){E=E||(0,w.createNumbers)(9);var F=b;return p.Vector.set(E,F[3],F[4],F[5],F[6],F[7],F[8],F[9],F[10],F[11]),E}a.getCenter=n,a.getHalfAxes=s,a.setCenter=function(b,E){for(var F=0;F<3;++F)b[F]=E[F];return b},a.setHalfAxes=function(b,E){for(var F=0;F<9;++F)b[F+3]=E[F];return b};var r=(0,w.createNumbers)(3),i=(0,w.createNumbers)(9);a.getModelMatrix=function(b,E){var F=s(b,i),S=n(b,r);return p.Vector.set(E,F[0],F[1],F[2],0,F[3],F[4],F[5],0,F[6],F[7],F[8],0,S[0],S[1],S[2],1)};var l=(0,w.createNumbers)(3),d=(0,w.createNumbers)(3),C=(0,w.createNumbers)(9);a.intersectPlane=function(b,E){var F=n(b,l),S=u.Plane.getNormal(E,d),U=u.Plane.getDistance(E),T=s(b,C),Q=S[0],P=S[1],I=S[2],M=Math.abs(Q*T[0]+P*T[1]+I*T[2])+Math.abs(Q*T[3]+P*T[4]+I*T[5])+Math.abs(Q*T[6]+P*T[7]+I*T[8]),K=p.Vector.dot(S,F)+U;return K<=-M?f.Intersect.OUTSIDE:K>=M?f.Intersect.INSIDE:f.Intersect.INTERSECTING};var _=(0,w.createNumbers)(3);a.getBoundingSphere=function(b,E){E=E||(0,w.createNumbers)(4);var F=s(b,C),S=c.Matrix3.getScale(F,_),U=Math.max.apply(Math,g([],m(p.Vector.itr(S)),!1));return E[0]=b[0],E[1]=b[1],E[2]=b[2],E[3]=U,E}})(A.OrientedBoundingBox||(A.OrientedBoundingBox={}))},6270:function(B,A,h){var m=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l},g=this&&this.__spreadArray||function(c,a,n){if(n||arguments.length===2)for(var s,r=0,i=a.length;r<i;r++)!s&&r in a||(s||(s=Array.prototype.slice.call(a,0,r)),s[r]=a[r]);return c.concat(s||Array.prototype.slice.call(a))};Object.defineProperty(A,"__esModule",{value:!0}),A.ColorStops=void 0;var w=h(3281),p=h(7372),u=[0,0,0,0],f=function(){function c(){this._value=[],this._valueStr="[]",this.value=[{ratio:0,rgba:[0,0,1,1]},{ratio:.2,rgba:[0,1,0,1]},{ratio:.8,rgba:[1,1,0,1]},{ratio:1,rgba:[1,0,0,1]}]}return Object.defineProperty(c.prototype,"valueChanged",{get:function(){return this._valueChanged||(this._valueChanged=new p.Event),this._valueChanged},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"value",{get:function(){return JSON.parse(JSON.stringify(this._value))},set:function(a){if(a.length!==0){var n;if(this._value.length===a.length){var s=g([],m(a),!1).sort(function(i,l){return i.ratio-l.ratio});if(n=JSON.stringify(s),this._valueStr===n)return}n=n||JSON.stringify(g([],m(a),!1).sort(function(i,l){return i.ratio-l.ratio}));var r=this._value;if(this._value=JSON.parse(n),this._value.length===0)throw console.error("this._colorStops.length === 0"),new Error("this._colorStops.length === 0");this._valueChanged&&this._valueChanged.emit(this._value,r)}else console.error("value.length === 0")},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"valueStr",{get:function(){return this._valueStr},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"minRatio",{get:function(){return this._value[0].ratio},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"maxRatio",{get:function(){return this._value[this._value.length-1].ratio},enumerable:!1,configurable:!0}),c.prototype._getRatioIndex=function(a){if(a<this._value[0].ratio||a>this._value[this._value.length-1].ratio)throw console.error("ratio <= this._colorStops[0].ratio || ratio >= this._colorStops[this._colorStops.length - 1].ratio"),new Error("ratio <= this._colorStops[0].ratio || ratio >= this._colorStops[this._colorStops.length - 1].ratio");for(var n=this._value.length,s=0;s<n-1;++s)if(a>=this._value[s].ratio&&a<=this._value[s+1].ratio)return s;throw console.error("shoud not be here!"),new Error("shoud not be here!")},c.prototype.getRatioColor=function(a,n){a=(0,w.clamp)(a,this.minRatio,this.maxRatio);for(var s=this._getRatioIndex(a),r=this._value[s],i=this._value[s+1],l=(a-r.ratio)/(i.ratio-r.ratio),d=0;d<4;++d)n[d]=r.rgba[d]*(1-l)+i.rgba[d]*l;if(!n.some(Number.isNaN))return n;console.error("result NaN")},c.prototype.getColorsInUint8=function(a){if(a.length%4!=0)throw console.error("result.length % 4 !== 0"),new Error("result.length % 4 !== 0");for(var n=a.length/4,s=1/n,r=0;r<n;++r){var i=u;this.getRatioColor((r+.5)*s,i)||i.splice(0,4,0,0,0,0);for(var l=0;l<4;++l)a[4*r+l]=255*i[l]|0}return a},c}();A.ColorStops=f},6301:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.forEachWithBreak=void 0;var m=h(8144);A.forEachWithBreak=function(g,w){for(var p=!1,u=(0,m.getIterator)(g),f=-1;;){var c=u.next(),a=c.done,n=c.value;if(a)break;if(w(n,++f)){p=!0;break}}return p}},6356:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(2429),A),g(h(3639),A),g(h(6613),A),g(h(6270),A),g(h(2127),A),g(h(4621),A),g(h(8106),A),g(h(6405),A),g(h(5819),A),g(h(1148),A),g(h(2220),A),g(h(3815),A),g(h(2243),A),g(h(8576),A),g(h(8453),A),g(h(4990),A),g(h(172),A),g(h(2075),A),g(h(7529),A),g(h(1412),A),g(h(8997),A),g(h(8421),A),g(h(2789),A),g(h(985),A),g(h(9412),A),g(h(7029),A)},6362:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.min=A.max=void 0;var m=h(6138);A.max=function(g){return(0,m.reduce)(g,function(w,p){return w>p?w:p},Number.NEGATIVE_INFINITY)},A.min=function(g){return(0,m.reduce)(g,function(w,p){return w<p?w:p},Number.POSITIVE_INFINITY)}},6405:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(109),A),g(h(2921),A),g(h(5544),A),g(h(2002),A),g(h(2811),A),g(h(6946),A),g(h(643),A)},6424:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.vertexArrayToBezierSpline3Positions=void 0;var m=h(8466),g=(0,m.computBezierSpline3BaseFactors)(20);A.vertexArrayToBezierSpline3Positions=function(w,p,u,f){var c,a,n=w.length;if(n<=1)return w.map(function(T){return T.position});for(var s=f===20?g:(0,m.computBezierSpline3BaseFactors)(f),r=u?n:n-1,i=new Array(r*f+1),l=0;l<r;++l){var d=w[l],C=w[l+1===n?0:l+1],_=d.position,b=(c=d.rightPosition)!==null&&c!==void 0?c:d.position,E=(a=C.leftPosition)!==null&&a!==void 0?a:C.position,F=C.position,S=l*f;i[S]=_;for(var U=1;U<f;++U)i[S+U]=(0,m.bezierSpline3WithBaseFactor)(s[U],p,_,b,E,F)}return i[r*f]=w[u?0:n-1].position,i}},6432:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.isBase64Uri=A.isAbsoluteUri=void 0,A.isAbsoluteUri=function(h){return h.startsWith("http:")||h.startsWith("https:")},A.isBase64Uri=function(h){return h.startsWith("data:")}},6469:function(B,A){var h=this&&this.__awaiter||function(g,w,p,u){return new(p||(p=Promise))(function(f,c){function a(r){try{s(u.next(r))}catch(i){c(i)}}function n(r){try{s(u.throw(r))}catch(i){c(i)}}function s(r){var i;r.done?f(r.value):(i=r.value,i instanceof p?i:new p(function(l){l(i)})).then(a,n)}s((u=u.apply(g,w||[])).next())})},m=this&&this.__generator||function(g,w){var p,u,f,c,a={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return c={next:n(0),throw:n(1),return:n(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function n(s){return function(r){return function(i){if(p)throw new TypeError("Generator is already executing.");for(;c&&(c=0,i[0]&&(a=0)),a;)try{if(p=1,u&&(f=2&i[0]?u.return:i[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,i[1])).done)return f;switch(u=0,f&&(i=[2&i[0],f.value]),i[0]){case 0:case 1:f=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,u=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((f=(f=a.trys).length>0&&f[f.length-1])||i[0]!==6&&i[0]!==2)){a=0;continue}if(i[0]===3&&(!f||i[1]>f[0]&&i[1]<f[3])){a.label=i[1];break}if(i[0]===6&&a.label<f[1]){a.label=f[1],f=i;break}if(f&&a.label<f[2]){a.label=f[2],a.ops.push(i);break}f[2]&&a.ops.pop(),a.trys.pop();continue}i=w.call(g,a)}catch(l){i=[6,l],u=0}finally{p=f=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([s,r])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.fetchImage=void 0,A.fetchImage=function(g,w){return w===void 0&&(w=""),h(this,void 0,void 0,function(){return m(this,function(p){return[2,new Promise(function(u,f){var c=new Image;c.crossOrigin=w,c.src=g,c.onload=function(){return u(c)},c.onerror=function(a){return f(a)}})]})})}},6555:function(B,A,h){var m,g=this&&this.__extends||(m=function(p,u){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,c){f.__proto__=c}||function(f,c){for(var a in c)Object.prototype.hasOwnProperty.call(c,a)&&(f[a]=c[a])},m(p,u)},function(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Class extends value "+String(u)+" is not a constructor or null");function f(){this.constructor=p}m(p,u),p.prototype=u===null?Object.create(u):(f.prototype=u.prototype,new f)});Object.defineProperty(A,"__esModule",{value:!0}),A.HasOwner=void 0;var w=function(p){function u(f){var c=p.call(this)||this;return c._owner=f,c}return g(u,p),Object.defineProperty(u.prototype,"owner",{get:function(){return this._owner},enumerable:!1,configurable:!0}),u}(h(9359).Destroyable);A.HasOwner=w},6558:function(B,A){var h=this&&this.__read||function(g,w){var p=typeof Symbol=="function"&&g[Symbol.iterator];if(!p)return g;var u,f,c=p.call(g),a=[];try{for(;(w===void 0||w-- >0)&&!(u=c.next()).done;)a.push(u.value)}catch(n){f={error:n}}finally{try{u&&!u.done&&(p=c.return)&&p.call(c)}finally{if(f)throw f.error}}return a},m=this&&this.__spreadArray||function(g,w,p){if(p||arguments.length===2)for(var u,f=0,c=w.length;f<c;f++)!u&&f in w||(u||(u=Array.prototype.slice.call(w,0,f)),u[f]=w[f]);return g.concat(u||Array.prototype.slice.call(w))};Object.defineProperty(A,"__esModule",{value:!0}),A.nextMicroTask=A.nextAnimateFrame=A.animateFrame=A.timeout=A.interval=void 0,A.interval=function(g,w){for(var p=[],u=2;u<arguments.length;u++)p[u-2]=arguments[u];var f=setInterval.apply(void 0,m([g,w],h(p),!1));return function(){return clearInterval(f)}},A.timeout=function(g,w){for(var p=[],u=2;u<arguments.length;u++)p[u-2]=arguments[u];var f=setTimeout.apply(void 0,m([g,w],h(p),!1));return function(){return clearTimeout(f)}},A.animateFrame=function(g){for(var w,p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];var f=function(){var c=performance.now();g.apply(void 0,m([c],h(p),!1)),w=requestAnimationFrame(f)};return f(),function(){return w!==void 0&&(cancelAnimationFrame(w),w=void 0)}},A.nextAnimateFrame=function(g){for(var w,p=[],u=1;u<arguments.length;u++)p[u-1]=arguments[u];return w=requestAnimationFrame(function(){var f=performance.now();g.apply(void 0,m([f],h(p),!1))}),function(){return w!==void 0&&(cancelAnimationFrame(w),w=void 0)}},A.nextMicroTask=function(g){for(var w=[],p=1;p<arguments.length;p++)w[p-1]=arguments[p];var u,f=!1;return new Promise(function(c,a){u=a,c()}).then(function(){!f&&g.apply(void 0,m([],h(w),!1))}).catch(function(c){console.error(c)}),function(){return(f=!0)&&u&&(u("nextMicroTask cancelled!"),u=void 0)}}},6583:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.oneTimeWarning=void 0;var h=new Set;A.oneTimeWarning=function(m,g){g===void 0&&(g=m),h.has(g)||(h.add(g),console.warn(m))}},6613:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},6655:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getPaddingByteLength=void 0,A.getPaddingByteLength=function(h,m){return m!==1&&m!==2&&m!==4&&m!==8&&console.warn("getPaddingByteLength boundaryByteLength(".concat(m,") is not 2^")),(m-h%m)%m}},6680:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._fromDirectionUpRightAndTranslation=A._fromMatrix3AndTranslation=A._fromTranslation=void 0;var m=h(2731),g=h(9898),w=h(5985);A._fromTranslation=function(p,u){return(u=u||(0,m.createNumbers)(16))[0]=1,u[1]=0,u[2]=0,u[3]=0,u[4]=0,u[5]=1,u[6]=0,u[7]=0,u[8]=0,u[9]=0,u[10]=1,u[11]=0,u[12]=p[0],u[13]=p[1],u[14]=p[2],u[15]=1,u},A._fromMatrix3AndTranslation=function(p,u,f){return u=u||w.Vector3.ZERO,(f=f||(0,m.createNumbers)(16))[0]=p[0],f[1]=p[1],f[2]=p[2],f[3]=0,f[4]=p[3],f[5]=p[4],f[6]=p[5],f[7]=0,f[8]=p[6],f[9]=p[7],f[10]=p[8],f[11]=0,f[12]=u[0],f[13]=u[1],f[14]=u[2],f[15]=1,f},A._fromDirectionUpRightAndTranslation=function(p,u,f,c,a){var n=c??w.Vector3.ZERO;return g.Vector.set(a,f[0],f[1],f[2],0,u[0],u[1],u[2],0,-p[0],-p[1],-p[2],0,n[0],n[1],n[2],1)}},6888:function(B,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var n,s,r=a.call(f),i=[];try{for(;(c===void 0||c-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i},g=this&&this.__spreadArray||function(f,c,a){if(a||arguments.length===2)for(var n,s=0,r=c.length;s<r;s++)!n&&s in c||(n||(n=Array.prototype.slice.call(c,0,s)),n[s]=c[s]);return f.concat(n||Array.prototype.slice.call(c))};Object.defineProperty(A,"__esModule",{value:!0}),A.createAnimateFrameWithStartValues=A.createAnimateFrame=A.createIntervalWithStartValues=A.createInterval=A.createTimeoutWithStartValues=A.createTimeout=A.createNextMicroTaskWithStartValues=A.createNextMicroTask=A.createNextAnimateFrameWithStartValues=A.createNextAnimateFrame=void 0;var w=h(1662),p=h(5819);function u(f,c){for(var a=[],n=2;n<arguments.length;n++)a[n-2]=arguments[n];try{return c.apply(void 0,g([],m(a),!1))}catch(s){f(s)}}A.createNextAnimateFrame=function(){return new p.Processing(function(f,c){var a=f.completeFunc,n=f.errorFunc;return(0,w.nextAnimateFrame)(function(){return u(n,function(){c&&c(),a()})})})},A.createNextAnimateFrameWithStartValues=function(f){return new p.Processing(function(c){var a=c.completeFunc,n=c.errorFunc;return(0,w.nextAnimateFrame)(function(){return u(n,function(){f&&f(),a()})})})},A.createNextMicroTask=function(){return new p.Processing(function(f,c){var a=f.completeFunc,n=f.errorFunc;return(0,w.nextMicroTask)(function(){u(n,function(){c&&c(),a()})})})},A.createNextMicroTaskWithStartValues=function(f){return new p.Processing(function(c){var a=c.completeFunc,n=c.errorFunc;return(0,w.nextMicroTask)(function(){u(n,function(){f&&f(),a()})})})},A.createTimeout=function(){return new p.Processing(function(f,c,a){var n=f.completeFunc,s=f.errorFunc;return(0,w.timeout)(function(){u(s,function(){c&&c(),n()})},a??1e3)})},A.createTimeoutWithStartValues=function(f,c){return new p.Processing(function(a){var n=a.completeFunc,s=a.errorFunc;return(0,w.timeout)(function(){u(s,function(){f&&f(),n()})},c??1e3)})},A.createInterval=function(){return new p.Processing(function(f,c,a){var n=f.errorFunc;return a===void 0&&(a=1e3),(0,w.interval)(function(){return u(n,c)},a)})},A.createIntervalWithStartValues=function(f,c){return c===void 0&&(c=1e3),new p.Processing(function(a){var n=a.errorFunc;return(0,w.interval)(function(){return u(n,f)},c)})},A.createAnimateFrame=function(){return new p.Processing(function(f,c){var a=f.errorFunc;return(0,w.animateFrame)(function(n){return u(a,c,n)})})},A.createAnimateFrameWithStartValues=function(f){return new p.Processing(function(c){var a=c.errorFunc;return(0,w.animateFrame)(function(n){return u(a,f,n)})})}},6891:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},p=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.ProcessingDeprecated=void 0;var u=h(7372),f=h(7372),c=function(a){function n(s,r,i,l,d,C,_,b){var E=a.call(this)||this;return E._startProcessingFunc=s,E.startFunc=r,E.progressFunc=i,E.completeFunc=l,E.cancelFunc=d,E.cancelledFunc=C,E.errorFunc=_,E.finishedFunc=b,E._processingID=-1,E._status="Initial",E.dispose(function(){var F;return(F=E._statusChangedEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._startEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._progressEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._completeEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._cancelEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._cancelledEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._errorEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){var F;return(F=E._finishedEvent)===null||F===void 0?void 0:F.destroy()}),E.dispose(function(){return E.reset()}),E}return g(n,a),Object.defineProperty(n.prototype,"startEvent",{get:function(){return this._startEvent=this._startEvent||new f.Event,this._startEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"progressEvent",{get:function(){return this._progressEvent=this._progressEvent||new f.Event,this._progressEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"completeEvent",{get:function(){return this._completeEvent=this._completeEvent||new f.Event,this._completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cancelEvent",{get:function(){return this._cancelEvent=this._cancelEvent||new f.Event,this._cancelEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"cancelledEvent",{get:function(){return this._cancelledEvent=this._cancelledEvent||new f.Event,this._cancelledEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"errorEvent",{get:function(){return this._errorEvent=this._errorEvent||new f.Event,this._errorEvent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"finishedEvent",{get:function(){return this._finishedEvent=this._finishedEvent||new f.Event,this._finishedEvent},enumerable:!1,configurable:!0}),n.prototype._completeFunc=function(s,r){this.processingID===s&&this._status==="Running"&&(this._status="Completed",this.completeFunc&&this.completeFunc(r),this._completeEvent&&this._completeEvent.emit(r),this.finishedFunc&&this.finishedFunc({status:"Completed",value:r}),this._finishedEvent&&this._finishedEvent.emit({status:"Completed",value:r}))},n.prototype._cancelFunc=function(s){this._status==="Running"&&(this._status="Cancelling",this.cancelFunc&&this.cancelFunc(s),this._cancelEvent&&this._cancelEvent.emit(s))},n.prototype._cancelledFunc=function(s){this._status==="Cancelling"&&(this._status="Cancelled",this.cancelledFunc&&this.cancelledFunc(s),this._cancelledEvent&&this._cancelledEvent.emit(s),this.finishedFunc&&this.finishedFunc({status:"Cancelled",cancelError:s}),this._finishedEvent&&this._finishedEvent.emit({status:"Cancelled",cancelError:s}))},n.prototype._errorFunc=function(s,r){this.processingID===s&&this._status==="Running"&&(this._status="Error",this.errorFunc&&this.errorFunc(r),this._errorEvent&&this._errorEvent.emit(r),this.finishedFunc&&this.finishedFunc({status:"Error",error:r}),this._finishedEvent&&this._finishedEvent.emit({status:"Error",error:r}))},n.prototype._progressFunc=function(s,r){this.processingID===s&&this._status==="Running"&&(this.progressFunc&&this.progressFunc(r),this._progressEvent&&this._progressEvent.emit(r))},n.prototype._startFunc=function(){for(var s,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(this._status==="Initial"){this._status="Running";var l=++this._processingID,d={completeFunc:this._completeFunc.bind(this,l),errorFunc:this._errorFunc.bind(this,l),progressFunc:this._progressFunc.bind(this,l),cancelFunc:this._cancel.bind(this,l),processingID:l},C=this._startProcessingFunc.apply(this,p([d],w(r),!1));return this._forceCancelFunc=C,this.startFunc&&this.startFunc.apply(this,p([],w(r),!1)),this._startEvent&&(s=this._startEvent).emit.apply(s,p([],w(r),!1)),l}return console.warn("this._status !== 'Initial' but start again!"),-1},Object.defineProperty(n.prototype,"_status",{get:function(){return this.__status},set:function(s){if(this.__status!==s){var r=this.__status;this.__status=s,this._statusChangedEvent&&this._statusChangedEvent.emit(s,r)}},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"processingID",{get:function(){return this._processingID},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"statusChangedEvent",{get:function(){return this._statusChangedEvent||(this._statusChangedEvent=new f.Event),this._statusChangedEvent},enumerable:!1,configurable:!0}),n.prototype.reset=function(s){this._status==="Running"&&this.cancel(s),this._status==="Cancelled"||this._status==="Error"||this._status==="Completed"?this._status="Initial":this._status==="Cancelling"&&console.warn("Cannot reset! (this._status === 'Cancelling')")},Object.defineProperty(n.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),n.prototype.cancel=function(s,r){return r===void 0&&(r=this.processingID),this._cancel(r,s)},n.prototype._cancel=function(s,r){var i=this;if(this.processingID===s)if(this._status==="Running"){if(!this._forceCancelFunc)throw new Error("this._forceCancelFunc is undefined!");this._cancelFunc(r);var l=this._forceCancelFunc(r);if(this._forceCancelFunc=void 0,l&&l instanceof Promise)return l.then(function(){i._cancelledFunc(r)});this._cancelledFunc(r)}else console.warn("this._status !== 'Running' but cancel")},n.prototype.start=function(){for(var s=[],r=0;r<arguments.length;r++)s[r]=arguments[r];try{return this._startFunc.apply(this,p([],w(s),!1))}catch(i){console.error("processing start error: ".concat(i))}},n.prototype.restart=function(s){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];try{return this.isRunning&&this.cancel(s),this.isFinished&&this.reset(s),this.isInitial?this._startFunc.apply(this,p([],w(r),!1)):(console.warn("restart failed!"),-1)}catch(l){console.error("processing restart error: ".concat(l))}},Object.defineProperty(n.prototype,"isCompleted",{get:function(){return this._status==="Completed"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCancelled",{get:function(){return this._status==="Cancelled"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isCancelling",{get:function(){return this._status==="Cancelling"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isError",{get:function(){return this._status==="Error"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isInitial",{get:function(){return this._status==="Initial"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isRunning",{get:function(){return this._status==="Running"},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"isFinished",{get:function(){return this.isCancelled||this.isCompleted||this.isError},enumerable:!1,configurable:!0}),n}(u.Destroyable);A.ProcessingDeprecated=c},6928:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(7521),A),g(h(5252),A),g(h(5260),A),g(h(2277),A),g(h(9181),A),g(h(4499),A),g(h(1023),A)},6946:function(B,A,h){var m,g=this&&this.__extends||(m=function(c,a){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var r in s)Object.prototype.hasOwnProperty.call(s,r)&&(n[r]=s[r])},m(c,a)},function(c,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");function n(){this.constructor=c}m(c,a),c.prototype=a===null?Object.create(a):(n.prototype=a.prototype,new n)});Object.defineProperty(A,"__esModule",{value:!0}),A.TransitionDeprecated=void 0;var w=h(7372),p=h(7372),u=h(2811),f=function(c){function a(n){var s=c.call(this)||this;return s._duration=n,s._target=0,s._current=0,s._start=0,s._timing=new u.TimingDeprecated(Number.POSITIVE_INFINITY),s._timing.progressFunc=function(r){var i=r.ratio;i=i<0?0:i>1?1:i;var l=s._start*(1-i)+s._target*i;s._current=l,s._currentChanged&&s._currentChanged.emit(s._target,s._current)},s.dispose(function(){s._timing.isRunning&&s._timing.cancel(),s._timing.destroy()}),s}return g(a,c),a.prototype.reset=function(n,s){s===void 0&&(s=n),this._timing.isRunning&&this._timing.cancel(),this._target=n,this._current=s,this._start=n},Object.defineProperty(a.prototype,"target",{get:function(){return this._target},set:function(n){if(this._target!==n){this._target=n,this._timing.isRunning&&this._timing.cancel(),this._timing.reset(),this._start=this._current;var s=Math.abs(this._target-this._start);this._timing.duration=s*this._duration,this._timing.start()}},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"current",{get:function(){return this._current},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"currentChanged",{get:function(){return this._currentChanged||(this._currentChanged=new p.Event),this._currentChanged},enumerable:!1,configurable:!0}),a}(w.Destroyable);A.TransitionDeprecated=f},7008:(B,A,h)=>{function m(C,_){var b=(65535&C)+(65535&_);return(C>>16)+(_>>16)+(b>>16)<<16|65535&b}function g(C,_,b,E,F,S){return m((U=m(m(_,C),m(E,S)))<<(T=F)|U>>>32-T,b);var U,T}function w(C,_,b,E,F,S,U){return g(_&b|~_&E,C,_,F,S,U)}function p(C,_,b,E,F,S,U){return g(_&E|b&~E,C,_,F,S,U)}function u(C,_,b,E,F,S,U){return g(_^b^E,C,_,F,S,U)}function f(C,_,b,E,F,S,U){return g(b^(_|~E),C,_,F,S,U)}function c(C,_){var b,E,F,S,U;C[_>>5]|=128<<_%32,C[14+(_+64>>>9<<4)]=_;var T=1732584193,Q=-271733879,P=-1732584194,I=271733878;for(b=0;b<C.length;b+=16)E=T,F=Q,S=P,U=I,T=w(T,Q,P,I,C[b],7,-680876936),I=w(I,T,Q,P,C[b+1],12,-389564586),P=w(P,I,T,Q,C[b+2],17,606105819),Q=w(Q,P,I,T,C[b+3],22,-1044525330),T=w(T,Q,P,I,C[b+4],7,-176418897),I=w(I,T,Q,P,C[b+5],12,1200080426),P=w(P,I,T,Q,C[b+6],17,-1473231341),Q=w(Q,P,I,T,C[b+7],22,-45705983),T=w(T,Q,P,I,C[b+8],7,1770035416),I=w(I,T,Q,P,C[b+9],12,-1958414417),P=w(P,I,T,Q,C[b+10],17,-42063),Q=w(Q,P,I,T,C[b+11],22,-1990404162),T=w(T,Q,P,I,C[b+12],7,1804603682),I=w(I,T,Q,P,C[b+13],12,-40341101),P=w(P,I,T,Q,C[b+14],17,-1502002290),T=p(T,Q=w(Q,P,I,T,C[b+15],22,1236535329),P,I,C[b+1],5,-165796510),I=p(I,T,Q,P,C[b+6],9,-1069501632),P=p(P,I,T,Q,C[b+11],14,643717713),Q=p(Q,P,I,T,C[b],20,-373897302),T=p(T,Q,P,I,C[b+5],5,-701558691),I=p(I,T,Q,P,C[b+10],9,38016083),P=p(P,I,T,Q,C[b+15],14,-660478335),Q=p(Q,P,I,T,C[b+4],20,-405537848),T=p(T,Q,P,I,C[b+9],5,568446438),I=p(I,T,Q,P,C[b+14],9,-1019803690),P=p(P,I,T,Q,C[b+3],14,-187363961),Q=p(Q,P,I,T,C[b+8],20,1163531501),T=p(T,Q,P,I,C[b+13],5,-1444681467),I=p(I,T,Q,P,C[b+2],9,-51403784),P=p(P,I,T,Q,C[b+7],14,1735328473),T=u(T,Q=p(Q,P,I,T,C[b+12],20,-1926607734),P,I,C[b+5],4,-378558),I=u(I,T,Q,P,C[b+8],11,-2022574463),P=u(P,I,T,Q,C[b+11],16,1839030562),Q=u(Q,P,I,T,C[b+14],23,-35309556),T=u(T,Q,P,I,C[b+1],4,-1530992060),I=u(I,T,Q,P,C[b+4],11,1272893353),P=u(P,I,T,Q,C[b+7],16,-155497632),Q=u(Q,P,I,T,C[b+10],23,-1094730640),T=u(T,Q,P,I,C[b+13],4,681279174),I=u(I,T,Q,P,C[b],11,-358537222),P=u(P,I,T,Q,C[b+3],16,-722521979),Q=u(Q,P,I,T,C[b+6],23,76029189),T=u(T,Q,P,I,C[b+9],4,-640364487),I=u(I,T,Q,P,C[b+12],11,-421815835),P=u(P,I,T,Q,C[b+15],16,530742520),T=f(T,Q=u(Q,P,I,T,C[b+2],23,-995338651),P,I,C[b],6,-198630844),I=f(I,T,Q,P,C[b+7],10,1126891415),P=f(P,I,T,Q,C[b+14],15,-1416354905),Q=f(Q,P,I,T,C[b+5],21,-57434055),T=f(T,Q,P,I,C[b+12],6,1700485571),I=f(I,T,Q,P,C[b+3],10,-1894986606),P=f(P,I,T,Q,C[b+10],15,-1051523),Q=f(Q,P,I,T,C[b+1],21,-2054922799),T=f(T,Q,P,I,C[b+8],6,1873313359),I=f(I,T,Q,P,C[b+15],10,-30611744),P=f(P,I,T,Q,C[b+6],15,-1560198380),Q=f(Q,P,I,T,C[b+13],21,1309151649),T=f(T,Q,P,I,C[b+4],6,-145523070),I=f(I,T,Q,P,C[b+11],10,-1120210379),P=f(P,I,T,Q,C[b+2],15,718787259),Q=f(Q,P,I,T,C[b+9],21,-343485551),T=m(T,E),Q=m(Q,F),P=m(P,S),I=m(I,U);return[T,Q,P,I]}function a(C){var _,b="",E=32*C.length;for(_=0;_<E;_+=8)b+=String.fromCharCode(C[_>>5]>>>_%32&255);return b}function n(C){var _,b=[];for(b[(C.length>>2)-1]=void 0,_=0;_<b.length;_+=1)b[_]=0;var E=8*C.length;for(_=0;_<E;_+=8)b[_>>5]|=(255&C.charCodeAt(_/8))<<_%32;return b}function s(C){var _,b,E="0123456789abcdef",F="";for(b=0;b<C.length;b+=1)_=C.charCodeAt(b),F+=E.charAt(_>>>4&15)+E.charAt(15&_);return F}function r(C){return unescape(encodeURIComponent(C))}function i(C){return function(_){return a(c(n(_),8*_.length))}(r(C))}function l(C,_){return function(b,E){var F,S,U=n(b),T=[],Q=[];for(T[15]=Q[15]=void 0,U.length>16&&(U=c(U,8*b.length)),F=0;F<16;F+=1)T[F]=909522486^U[F],Q[F]=1549556828^U[F];return S=c(T.concat(n(E)),512+8*E.length),a(c(Q.concat(S),640))}(r(C),r(_))}function d(C,_,b){return _?b?l(_,C):s(l(_,C)):b?i(C):s(i(C))}h.r(A),h.d(A,{md5:()=>d})},7014:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__awaiter||function(a,n,s,r){return new(s||(s=Promise))(function(i,l){function d(b){try{_(r.next(b))}catch(E){l(E)}}function C(b){try{_(r.throw(b))}catch(E){l(E)}}function _(b){var E;b.done?i(b.value):(E=b.value,E instanceof s?E:new s(function(F){F(E)})).then(d,C)}_((r=r.apply(a,n||[])).next())})},p=this&&this.__generator||function(a,n){var s,r,i,l,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return l={next:C(0),throw:C(1),return:C(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function C(_){return function(b){return function(E){if(s)throw new TypeError("Generator is already executing.");for(;l&&(l=0,E[0]&&(d=0)),d;)try{if(s=1,r&&(i=2&E[0]?r.return:E[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,E[1])).done)return i;switch(r=0,i&&(E=[2&E[0],i.value]),E[0]){case 0:case 1:i=E;break;case 4:return d.label++,{value:E[1],done:!1};case 5:d.label++,r=E[1],E=[0];continue;case 7:E=d.ops.pop(),d.trys.pop();continue;default:if(!((i=(i=d.trys).length>0&&i[i.length-1])||E[0]!==6&&E[0]!==2)){d=0;continue}if(E[0]===3&&(!i||E[1]>i[0]&&E[1]<i[3])){d.label=E[1];break}if(E[0]===6&&d.label<i[1]){d.label=i[1],i=E;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(E);break}i[2]&&d.ops.pop(),d.trys.pop();continue}E=n.call(a,d)}catch(F){E=[6,F],r=0}finally{s=i=0}if(5&E[0])throw E[1];return{value:E[0]?E[1]:void 0,done:!0}}([_,b])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.ImageProcessing=void 0;var u=h(1662),f=h(5819),c=function(a){function n(s,r){var i=a.call(this)||this;return i._complexImage=s,i._imageUri=r,i._processing=i.disposeVar((0,f.createProcessingFromAsyncFunc)(function(l){return w(i,void 0,void 0,function(){var d,C;return p(this,function(_){switch(_.label){case 0:return d=this._complexImage,[4,l.promise((0,u.fetchImage)(this._imageUri,this._complexImage.crossOrigin))];case 1:return(C=_.sent())?(C instanceof HTMLImageElement&&(d.size=[C.naturalWidth,C.naturalHeight],d.pixelFormat="RGBA",d.copyTexture({source:C})),[2]):[2]}})})})),i._processingStart=i._processing.start(),i}return g(n,a),Object.defineProperty(n.prototype,"processing",{get:function(){return this._processing},enumerable:!1,configurable:!0}),n}(u.Destroyable);A.ImageProcessing=c},7029:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(5281),A),g(h(7118),A),g(h(9815),A)},7118:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},p=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.GifPlayer=void 0;var u=h(1662);function f(a,n,s){return a<n?n:a>s?s:a}var c=function(a){function n(s,r,i){r===void 0&&(r=!0);var l=a.call(this)||this;l._container=s,l._gifFrames=l.disposeVar((0,u.react)(void 0)),l._gifDurations=[],l._gifDuration=l.disposeVar((0,u.react)(0)),l._gifSize=l.disposeVar((0,u.react)([0,0],function(E,F){return E.every(function(S,U){return S===F[U]})},function(E){return p([],w(E),!1)})),l._autoPlayOnLoad=l.disposeVar((0,u.react)(!0)),l.loop=!0;var d=document.createElement("canvas");l._gifCanvas=d,d.style.width="100%",d.style.height="100%";var C,_=d.getContext("2d");l._container&&l._container.appendChild(d),l.dispose(function(){return l._container&&l._container.removeChild(d)}),l.dispose(l._gifFrames.changed.disposableOn(function(E){if(!E||E.length===0)return d.width=0,void(d.height=0);var F=E[0].dims,S=F.width,U=F.height;l._gifSize.value=[S,U];var T=E.length,Q=0;l._gifDurations.length=0;for(var P=0;P<T;++P)Q+=E[P].delay,l._gifDurations.push(Q);l._gifDuration.value=l._gifDurations[l._gifDurations.length-1],d.width=S,d.height=U,C=_.createImageData(S,U),l.currentTimeChangedEvent.emit(l.currentTime,l.currentTime),l._autoPlayOnLoad.value&&(l.currentTime=0,l.playing=!0)}));var b=-1;return l.dispose(l.currentTimeChangedEvent.disposableOn(function(E){var F=f(E/l.duration,0,1),S=l.gifDuration*F,U=l._gifFrames.value;if(U&&U.length>0){var T=l._getFrame(S);if(T===b)return;b=T;var Q=U[T];if(Q.disposalType!==0&&Q.disposalType!==1&&Q.disposalType!==2&&(0,u.oneTimeWarning)("gif parsed get disposalType ".concat(Q.disposalType,"... frame: ").concat(T," size: ").concat(JSON.stringify(Q.dims)),"gif parsed get disposalType ".concat(Q.disposalType,"...")),!C||T!==0&&Q.disposalType!==2||C.data.fill(0),C){var P=w(l._gifSize.value,2),I=P[0],M=P[1],K=Q.dims,W=K.width,L=K.height,O=K.left,H=K.top;if(L>M)throw new Error("height > canvasHeight");for(var k=0;k<L;++k)for(var G=0;G<W;++G){var D=k*W+G,R=(H+k)*I+(O+G),N=C.data,X=Q.patch,Y=X[4*D+3]/255;N[4*R+0]=N[4*R+0]*(1-Y)+X[4*D+0]*Y|0,N[4*R+1]=N[4*R+1]*(1-Y)+X[4*D+1]*Y|0,N[4*R+2]=N[4*R+2]*(1-Y)+X[4*D+2]*Y|0,N[4*R+3]=0|f(N[4*R+3]+X[4*D+3],0,255)}_.putImageData(C,0,0)}}else(0,u.oneTimeWarning)("gif资源未加载!无法播放!")})),l.dispose(l._gifDuration.changed.disposableOn(function(){l.duration=l.gifDuration})),l._autoPlayOnLoad.value=r,l._gifFrames.value=i,l}return g(n,a),Object.defineProperty(n.prototype,"gifCanvas",{get:function(){return this._gifCanvas},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifFrames",{get:function(){return this._gifFrames.value},set:function(s){this._gifFrames.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifFramesChanged",{get:function(){return this._gifFrames.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifSize",{get:function(){return this._gifSize.value},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifSizeChanged",{get:function(){return this._gifSize.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifDuration",{get:function(){return this._gifDuration.value},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"gifDurationChanged",{get:function(){return this._gifDuration.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"autoPlayOnLoad",{get:function(){return this._autoPlayOnLoad.value},set:function(s){this._autoPlayOnLoad.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"autoPlayOnLoadChanged",{get:function(){return this._autoPlayOnLoad.changed},enumerable:!1,configurable:!0}),n.prototype._getFrame=function(s){for(var r=this._gifDurations.length,i=0;i<r;++i)if(s<=this._gifDurations[i])return i;throw new Error("should not be here")},n}(h(2127).Player);A.GifPlayer=c},7132:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.addClassStyle=void 0,A.addClassStyle=function(h){var m=document.createElement("style");return m.innerText=h,document.head.appendChild(m)}},7215:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Plane=void 0;var m=h(2731),g=h(9898),w=h(5873),p=h(8089);(function(u){var f=(0,m.createNumbers)(3);function c(d,C){g.Vector.set(f,d[0],d[1],d[2]);var _=g.Vector.magnitudeSquared(f);if(Math.abs(_-1)>1e-9)throw new Error("plane必须是单位向量!");return g.Vector.dot(f,C)+d[3]}function a(d,C){return C=C||(0,m.createNumbers)(3),g.Vector.set(C,d[0],d[1],d[2]),C}u.distancePlaneToPoint=c,u.projectPointOntoPlane=function(d,C,_){_=_||(0,m.createNumbers)(3);var b=c(C,d);return g.Vector.set(f,C[0],C[1],C[2]),g.Vector.multiplyByScalar(f,-b,_),g.Vector.add(_,d,_),_},u.getNormal=a,u.getDistance=function(d){return d[3]},u.setNormal=function(d,C){for(var _=0;_<3;++_)d[_]=C[_];return d},u.setDistance=function(d,C){return d[3]=C,d};var n=(0,m.createNumbers)(3),s=(0,m.createNumbers)(3);u.distanceRayToPlane=function(d,C,_){_===void 0&&(_=1e-5);var b=w.Ray.getDirection(d,n),E=a(C,s),F=-g.Vector.dot(b,E);if(!(Math.abs(F)<_))return c(C,w.Ray.getOrigin(d,n))/F};var r=(0,m.createNumbers)(16),i=(0,m.createNumbers)(4),l=(0,m.createNumbers)(3);u.transform=function(d,C,_){_=_||(0,m.createNumbers)(4);var b=p.Matrix4.inverse(p.Matrix4.transpose(C,r),r),E=p.Matrix4.multiplyByVector(b,d,i),F=a(d,l);return g.Vector.multiplyByScalar(E,1/g.Vector.magnitude(F),_),_},u.fromPointNormal=function(d,C,_){if(Math.abs(1-g.Vector.magnitude(C))>1e-6)throw new Error("Math.abs(1 - Vector.magnitude(normal)) > 0.000001");var b=-g.Vector.dot(C,d);return _=_||(0,m.createNumbers)(4),g.Vector.set(_,C[0],C[1],C[2],b)},u.UNIT_X=(0,m.createNumbers)(4,1,0,0,0),u.UNIT_Y=(0,m.createNumbers)(4,0,1,0,0),u.UNIT_Z=(0,m.createNumbers)(4,0,0,1,0)})(A.Plane||(A.Plane={}))},7324:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)}),w=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C};Object.defineProperty(A,"__esModule",{value:!0}),A.getFloatDivPool=A.FloatDiv=void 0;var p=h(7372),u=h(7372),f=h(7372),c=function(n){function s(){var r=n!==null&&n.apply(this,arguments)||this;return r._show=!0,r._opacity=1,r._winPos=[0,0],r}return g(s,n),Object.defineProperty(s.prototype,"winPos",{get:function(){return this._winPos},set:function(r){var i=w(r,2),l=i[0],d=i[1],C=w(this._winPos,2),_=C[0],b=C[1];l===_&&d===b||(this._winPos[0]=l,this._winPos[1]=d,this._winPosChanged&&this._winPosChanged.emit(this._winPos))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"winPosChanged",{get:function(){return this._winPosChanged=this._winPosChanged||new p.Event,this._winPosChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"opacity",{get:function(){return this._opacity},set:function(r){this._opacity!==r&&(this._opacity=r,this._opacityChanged&&this._opacityChanged.emit(this._opacity))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"opacityChanged",{get:function(){return this._opacityChanged=this._opacityChanged||new p.Event,this._opacityChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"show",{get:function(){return this._show},set:function(r){this._show!==r&&(this._show=r,this._showChanged&&this._showChanged.emit(this._show))},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"showChanged",{get:function(){return this._showChanged=this._showChanged||new p.Event,this._showChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"closeEvent",{get:function(){return this._closeEvent||(this._closeEvent=new p.Event),this._closeEvent},enumerable:!1,configurable:!0}),s}(u.Destroyable);A.FloatDiv=c;var a=new WeakMap;A.getFloatDivPool=function(n){if(!a.has(n)){var s=new f.ObjPool(function(){return new n},function(r){return r.reset()});a.set(n,s)}return a.get(n)}},7372:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.SmartListenerPipe=A.SmartListenerHandler=A.ListenerPipe=A.Event=A.EventListenerHandler=A.DoublyLinkedList=A.react=A.ReactiveVariable=A.ObjPool=A.Destroyable=void 0;var m=h(1662);Object.defineProperty(A,"Destroyable",{enumerable:!0,get:function(){return m.Destroyable}});var g=h(1662);Object.defineProperty(A,"ObjPool",{enumerable:!0,get:function(){return g.ObjPool}});var w=h(1662);Object.defineProperty(A,"ReactiveVariable",{enumerable:!0,get:function(){return w.ReactiveVariable}}),Object.defineProperty(A,"react",{enumerable:!0,get:function(){return w.react}});var p=h(1662);Object.defineProperty(A,"DoublyLinkedList",{enumerable:!0,get:function(){return p.DoublyLinkedList}}),Object.defineProperty(A,"EventListenerHandler",{enumerable:!0,get:function(){return p.EventListenerHandler}}),Object.defineProperty(A,"Event",{enumerable:!0,get:function(){return p.Event}}),Object.defineProperty(A,"ListenerPipe",{enumerable:!0,get:function(){return p.ListenerPipe}}),Object.defineProperty(A,"SmartListenerHandler",{enumerable:!0,get:function(){return p.SmartListenerHandler}}),Object.defineProperty(A,"SmartListenerPipe",{enumerable:!0,get:function(){return p.SmartListenerPipe}})},7413:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ViewMatrix=void 0;var m=h(4915),g=h(8089),w=h(2731),p=h(9549),u=h(9898),f=h(5985),c=(0,w.createNumbers)(3),a=(0,w.createNumbers)(3),n=(0,w.createNumbers)(3);(function(s){function r(I,M,K,W,L){return(L=L||(0,w.createNumbers)(16))[0]=W[0],L[1]=K[0],L[2]=-M[0],L[3]=0,L[4]=W[1],L[5]=K[1],L[6]=-M[1],L[7]=0,L[8]=W[2],L[9]=K[2],L[10]=-M[2],L[11]=0,L[12]=-u.Vector.dot(W,I),L[13]=-u.Vector.dot(K,I),L[14]=u.Vector.dot(M,I),L[15]=1,L}s.computeView=r;var i=(0,w.createNumbers)(3),l=(0,w.createNumbers)(3),d=(0,w.createNumbers)(3);function C(I,M,K){var W=i,L=l,O=d,H=M;return u.Vector.set(W,-H[6],-H[7],-H[8]),u.Vector.set(L,H[3],H[4],H[5]),u.Vector.set(O,H[0],H[1],H[2]),r(I,W,L,O,K)}s.fromRotationMatrix3AndPosition=C;var _=(0,w.createNumbers)(9);s.fromRotationQuatAndPosition=function(I,M,K){return m.Matrix3.fromQuaternion(M,_),C(I,_,K)},s.lookAt=function(I,M,K,W){var L=u.Vector.subtract(M,I,c);if(!u.Vector.normalize(L,L))throw new Error("direction is undefined!");return f.Vector3.getOrthogonalityVector(L,K,n,a),s.computeView(I,L,n,a,W)},s.lookAtWithDirection=function(I,M,K,W){if(Math.abs(u.Vector.magnitudeSquared(M)-1)>1e-5)throw new Error("direction is not normalized!");return f.Vector3.getOrthogonalityVector(M,K,n,a),s.computeView(I,M,n,a,W)},s.getDirection=function(I,M){return u.Vector.set(M,-I[2],-I[6],-I[10])},s.getRight=function(I,M){return u.Vector.set(M,I[0],I[4],I[8])},s.getUp=function(I,M){return u.Vector.set(M,I[1],I[5],I[9])};var b=(0,w.createNumbers)(9);function E(I,M){(M=M||(0,w.createNumbers)(9))[0]=I[0],M[1]=I[4],M[2]=I[8],M[3]=I[1],M[4]=I[5],M[5]=I[9],M[6]=I[2],M[7]=I[6],M[8]=I[10]}s.getRotationQuat=function(I,M){return E(I,b),p.Quaternion.fromRotationMatrix3(b,M)},s.getRotationMatrix=E,s.getEye=function(I,M){var K=I,W=-K[0]*K[12]-K[1]*K[13]-K[2]*K[14],L=-K[4]*K[12]-K[5]*K[13]-K[6]*K[14],O=-K[8]*K[12]-K[9]*K[13]-K[10]*K[14];return u.Vector.set(M,W,L,O)};var F=(0,w.createNumbers)(3);s.distanceFromEye=function(I,M){return-g.Matrix4.affineMultiplyByPoint(I,M,F)[2]},s.ratioScreenToWorldSpace=function(I,M,K){return M[3]*I[5]*.5/K};var S=(0,w.createNumbers)(4),U=(0,w.createNumbers)(3),T=(0,w.createNumbers)(16),Q=(0,w.createNumbers)(16),P=(0,w.createNumbers)(16);s.rotateWithAxis=function(I,M,K,W,L){return L=L||(0,w.createNumbers)(16),g.Matrix4.fromTranslation(M,T),u.Vector.negate(M,U),g.Matrix4.fromTranslation(U,Q),p.Quaternion.fromAxisAngle(K,-W,S),g.Matrix4.fromRotateQuatAndTranslation(S,void 0,P),g.Matrix4.continuousMultiply(L,I,T,P,Q)},s.computeOrthographicOffCenter=function(I,M,K,W,L,O,H){var k=1/(M-I),G=1/(W-K),D=1/(O-L),R=-(M+I)*k,N=-(W+K)*G,X=-(O+L)*D;return k*=2,G*=2,D*=-2,(H=H||(0,w.createNumbers)(16))[0]=k,H[1]=0,H[2]=0,H[3]=0,H[4]=0,H[5]=G,H[6]=0,H[7]=0,H[8]=0,H[9]=0,H[10]=D,H[11]=0,H[12]=R,H[13]=N,H[14]=X,H[15]=1,H}})(A.ViewMatrix||(A.ViewMatrix={}))},7418:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getValueFromRatio=A.defaultLerpFunc=void 0;var m=h(8144);A.defaultLerpFunc=function(g,w,p){return g*(1-p)+w*p},A.getValueFromRatio=function(g,w,p,u,f){for(var c,a,n,s,r=(0,m.getIterator)(w);;){var i=r.next(),l=i.done,d=i.value;if(l)break;if(d===void 0)throw new Error("typeof value === 'undefined'");var C=d.ratio,_=d.value;if(c=n,a=s&&u?u(s,f??a):s,n=C,s=_,(c===void 0||g>=c)&&(n===void 0||g<=n)){if(c===void 0)return s&&u?u(s,f):s;if(n===void 0||s===void 0)throw new Error("typeof rightRatio === 'undefined'");return p(a,s,(g-c)/(n-c),f)}s=s&&u?u(s,f):s}if(n===void 0)throw new Error("typeof rightRatio === 'undefined'");if(g>n)return s;throw new Error("!(ratio > rightRatio)")}},7427:(B,A)=>{var h;Object.defineProperty(A,"__esModule",{value:!0}),A.isCrossOriginUrl=void 0,A.isCrossOriginUrl=function(m){(h=h??document.createElement("a")).href=window.location.href;var g=h.host,w=h.protocol;return h.href=m,h.href=h.href,w!==h.protocol||g!==h.host}},7445:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9986),A),g(h(200),A),g(h(7324),A),g(h(4143),A),g(h(3951),A),g(h(8193),A),g(h(4123),A)},7500:function(B,A,h){var m=this&&this.__read||function(n,s){var r=typeof Symbol=="function"&&n[Symbol.iterator];if(!r)return n;var i,l,d=r.call(n),C=[];try{for(;(s===void 0||s-- >0)&&!(i=d.next()).done;)C.push(i.value)}catch(_){l={error:_}}finally{try{i&&!i.done&&(r=d.return)&&r.call(d)}finally{if(l)throw l.error}}return C},g=this&&this.__spreadArray||function(n,s,r){if(r||arguments.length===2)for(var i,l=0,d=s.length;l<d;l++)!i&&l in s||(i||(i=Array.prototype.slice.call(s,0,l)),i[l]=s[l]);return n.concat(i||Array.prototype.slice.call(s))};Object.defineProperty(A,"__esModule",{value:!0}),A.Vector4=void 0;var w=h(2731),p=h(9898),u=(0,w.createNumbers)(4,1,255,65025,16581375),f=(0,w.createNumbers)(4,1/255,1/255,1/255,0),c=(0,w.createNumbers)(4,1,1/255,1/65025,1/16581375),a=(0,w.createNumbers)(4);(function(n){n.packDepth=function(i,l){if(i<0||i>1)throw new Error("depth < 0 || depth > 1");if(i===1)return p.Vector.set(l,1,0,0,0);l=p.Vector.multiplyByScalar(u,i,l),p.Vector.fract(l,l);var d=p.Vector.set(a,l[1],l[2],l[3],l[3]);return p.Vector.multiply(d,f,d),p.Vector.subtract(l,d,l)},n.unpackDepth=function(i){return p.Vector.dot(i,c)};var s=new Uint32Array(1),r=new Uint8Array(s.buffer);n.uint32ToFourUint8s=function(i,l){if(i>4294967295)throw new Error("uint32Number(".concat(i,") > 0xFFFFFFFF"));return s[0]=i,p.Vector.set.apply(p.Vector,g([l],m(r),!1))},n.fourUint8sToUint32=function(i){return p.Vector.clone(i,r),s[0]},n.ONE=(0,w.createNumbers)(4,1,1,1,1),n.ZERO=(0,w.createNumbers)(4,0,0,0,0)})(A.Vector4||(A.Vector4={}))},7521:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__read||function(s,r){var i=typeof Symbol=="function"&&s[Symbol.iterator];if(!i)return s;var l,d,C=i.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=C.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(i=C.return)&&i.call(C)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasImagePoi=void 0;var p=h(1662),u=h(8106),f=h(5252),c=h(4499);function a(s,r){var i=w(r,3),l=i[0],d=i[1],C=i[2],_="".concat(l,"-").concat(d,"-").concat(C),b=(0,p.getExtProp)(s,_);return b||(b=(0,c.imageToCanvas)(s),(0,c.setCanvasUniformColor)(b,r),(0,p.setExtProp)(s,_,b)),b}var n=function(s){function r(i,l,d,C,_){d===void 0&&(d=[32,32]),C===void 0&&(C=[.5,1,0,0]),_===void 0&&(_="#F00F");var b=s.call(this,i)||this;b._image=l,b._size=d,b._originRatioAndOffset=C,b._defaultColorStr=_,b._tooltip="",b._title="",b.__scale=[1,1],b._tooltipAlpha=0,b._bgColor=[.3,.3,.3,.8],b._bgColorHexStr=(0,c.getColorHexStr)(b._bgColor),b._fgColor=[1,1,1,1],b._fgColorHexStr=(0,c.getColorHexStr)(b._fgColor);var E=new u.Transition(100),F=new u.Transition(100);b.dispose(function(){E.destroy(),F.destroy()});var S=function(){if(b._clickEvent&&!b._clickEvent.empty){var U=(1+.08*F.current)*(1+.08*E.current);b._scale=[U,U],b._tooltipAlpha=E.current}};return b.dispose(b.activedChanged.disposableOn(function(U){F.target=U?1:0,b.needRedraw()})),b.dispose(b.hoveredChanged.disposableOn(function(U){E.target=U?1:0,b.needRedraw()})),b.dispose(b.selectedChanged.disposableOn(function(){b.needRedraw()})),b.dispose(F.currentChanged.disposableOn(S)),b.dispose(E.currentChanged.disposableOn(S)),b}return g(r,s),Object.defineProperty(r.prototype,"size",{get:function(){return this._size},set:function(i){var l=w(i,2),d=l[0],C=l[1],_=w(this._size,2),b=_[0],E=_[1];b===d&&E===C||(this._size[0]=d,this._size[1]=C,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"_scale",{get:function(){return this.__scale},set:function(i){var l=w(i,2),d=l[0],C=l[1],_=w(this.__scale,2),b=_[0],E=_[1];b===d&&E===C||(this.__scale[0]=d,this.__scale[1]=C,this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"fgColor",{get:function(){return this._fgColor},set:function(i){if(!this._fgColor.every(function(E,F){return i[F]===E})){var l=w(i,4),d=l[0],C=l[1],_=l[2],b=l[3];this._fgColor.splice(0,4,d,C,_,b),this._fgColorHexStr=(0,c.getColorHexStr)(this._fgColor),this.needRedraw()}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"bgColor",{get:function(){return this._bgColor},set:function(i){if(!this._bgColor.every(function(E,F){return i[F]===E})){var l=w(i,4),d=l[0],C=l[1],_=l[2],b=l[3];this._bgColor.splice(0,4,d,C,_,b),this._bgColorHexStr=(0,c.getColorHexStr)(this._bgColor),this.needRedraw()}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"originRatioAndOffset",{get:function(){return this._originRatioAndOffset},set:function(i){var l=w(this._originRatioAndOffset,4),d=l[0],C=l[1],_=l[2],b=l[3],E=w(i,4),F=E[0],S=E[1],U=E[2],T=E[3];d===F&&C===S&&_===U&&b===T||(this._originRatioAndOffset.splice(0,4,F,S,U,T),this.needRedraw(),this.needPickRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"image",{get:function(){return this._image},set:function(i){this._image!==i&&(this._image=i,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"defaultColorStr",{get:function(){return this._defaultColorStr},set:function(i){this._defaultColorStr!==i&&(this._defaultColorStr=i,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tooltip",{get:function(){return this._tooltip},set:function(i){this._tooltip!==i&&(this._tooltip=i,this.needRedraw())},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"title",{get:function(){return this._title},set:function(i){this._title!==i&&(this._title=i,this.needRedraw())},enumerable:!1,configurable:!0}),r.prototype.draw=function(i){if(this._show){var l=w(this._winPos,2),d=l[0],C=l[1],_=this._size[0]*this.__scale[0],b=this._size[1]*this.__scale[1],E=(0,c.getDrawRect)([d,C],this._size,this.__scale,this._originRatioAndOffset),F=E.left,S=E.top,U=i.globalAlpha;if(i.globalAlpha=this.opacity,this._image){if(this.selected){var T=a(this._image,[1,0,0]),Q=(0,c.getDrawRect)([d,C+3],[_+6,b+6],[1,1],this._originRatioAndOffset),P=Q.left,I=Q.top;i.drawImage(T,P,I,_+6,b+6)}if(this.actived){var M=w(this._fgColor,4),K=M[0],W=M[1],L=M[2],O=(M[3],T=a(this._image,[K,W,L]),(0,c.getDrawRect)([d,C+4],[_+8,b+8],[1,1],this._originRatioAndOffset)),H=O.left,k=O.top;i.drawImage(T,H,k,_+8,b+8)}if(this.hovered){var G=w(this._bgColor,4),D=(K=G[0],W=G[1],L=G[2],G[3],a(this._image,[K,W,L])),R=(0,c.getDrawRect)([d,C+2],[_+4,b+4],[1,1],this._originRatioAndOffset),N=R.left,X=R.top;i.drawImage(D,N,X,_+4,b+4)}i.drawImage(this._image,F,S,_,b)}else i.fillStyle=this._fgColorHexStr,i.fillRect(F,S,_,b);if(this._title!==""&&(0,c.drawTextBlock)(i,d+20,C-16,[0,.5,0,0],this._title,"14px Arial",4,this._fgColorHexStr,this._bgColorHexStr),i.globalAlpha=U,this._hovered&&this._tooltip!==""){var Y=i.globalAlpha;i.globalAlpha=this._tooltipAlpha,(0,c.drawTextBlock)(i,d,C-42,[.5,1,0,0],this._tooltip,"12px Arial",4,this._fgColorHexStr,this._bgColorHexStr),i.globalAlpha=Y}}},r.prototype.drawForPick=function(i,l){if(this._show){var d=w(this._winPos,2),C=d[0],_=d[1],b=l("default"),E=this._size[0]*this.__scale[0],F=this._size[1]*this.__scale[1],S=(0,c.getDrawRect)([C,_],this._size,this.__scale,this._originRatioAndOffset),U=S.left,T=S.top;i.fillStyle=b,i.fillRect(U,T,E,F)}},r}(f.CanvasPoi);A.CanvasImagePoi=n},7529:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(3526),A),g(h(8368),A),g(h(8614),A),g(h(8301),A),g(h(9082),A),g(h(3315),A),g(h(7720),A)},7665:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.ProjectionMatrix=void 0;var m,g,w=h(2731);m=A.ProjectionMatrix||(A.ProjectionMatrix={}),(g=m.Perspective||(m.Perspective={})).compute=function(p,u,f,c,a){if(f<=0||c<=0||p<=0||p>=Math.PI)throw new Error("near <= 0 || far <= 0 || fovY <= 0 || fovY >= Math.PI");var n=1/Math.tan(.5*p),s=n/u,r=(c+f)/(f-c),i=2*c*f/(f-c);return(a=a||(0,w.createNumbers)(16))[0]=s,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=n,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=r,a[11]=-1,a[12]=0,a[13]=0,a[14]=i,a[15]=0,a},g.getSseDenominator=function(p){return 2/p[5]},g.getPerspectiveParams=function(p){var u=p,f=u[10],c=(f-1)/(f+1),a=u[14]*(c-1)/(-2*c),n=c*a,s=2*a/u[0],r=(s+u[8]*s)/2,i=r-s,l=2*a/u[5],d=(l+u[9]*l)/2;return{n:a,f:n,r,l:i,t:d,b:d-l}},g.resetNearFar=function(p,u,f,c,a,n,s,r){var i=p/s;return{l:f*=i,r:c*=i,b:a*=i,t:n*=i,n:s=p,f:u}},g.getFovAndAspectRatio=function(p,u,f,c,a,n){var s=(p+u)/2,r=(f+c)/2,i=u-s,l=c-r,d=2*Math.atan(i/a),C=2*Math.atan(l/a);return{xOffset:s,yOffset:r,fov:d>C?d:C,hFov:d,vFov:C,aspectRatio:i/l}}},7720:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__values||function(a){var n=typeof Symbol=="function"&&Symbol.iterator,s=n&&a[n],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.UiTreeObject=void 0;var p=h(1662),u={checked:1,unchecked:2,indeterminate:3},f=["checked","unchecked","indeterminate"],c=function(a){function n(s){var r=a.call(this)||this;r._treeItem=s,r._collapsed=r.disposeVar((0,p.react)(!1)),r._checkedStatus=r.disposeVar((0,p.react)("unchecked")),r._selected=r.disposeVar((0,p.react)(!1)),r._moveToPositionMode=r.disposeVar((0,p.react)("none")),r._updateCheckedStatusFromChildrenEvent=r.disposeVar(new p.Event);var i=function(){return r._treeItem.tree&&r._treeItem.tree.itemsChanged.emit([r._treeItem])};r.dispose(r._collapsed.changed.disposableOn(i)),r.dispose(r._checkedStatus.changed.disposableOn(i)),r.dispose(r._selected.changed.disposableOn(i)),r.dispose(r._moveToPositionMode.changed.disposableOn(i)),r.dispose(r._checkedStatus.changed.disposableOn(function(){return r._treeItem.parent&&r._treeItem.parent.uiTreeObject.updateCheckedStatusFromChildren()})),r.dispose(r._treeItem.childrenChangedEvent.disposableOn(function(){r.updateCheckedStatusFromChildren()}));var l=r.disposeVar((0,p.createNextAnimateFrameEvent)(r._updateCheckedStatusFromChildrenEvent));return r.dispose(l.disposableOn(function(){if(r._treeItem.children){var d=0;(0,p.forEachWithBreak)(r._treeItem.children,function(C){return(d|=u[C.uiTreeObject.checkedStatus])==3}),d>0&&(r._checkedStatus.value=f[d-1])}})),r.dispose(r._treeItem.childrenResetedEvent.disposableOn(function(d){d||r.checkedStatus!=="indeterminate"||(r._checkedStatus.value="unchecked")})),r.dispose(r._selected.changed.disposableOn(function(d){var C=r._treeItem.tree;C&&function(_,b,E){if(E===void 0&&(E=!0),b)_.selectedItems.push(r._treeItem);else{var F=_.selectedItems.indexOf(r._treeItem);F===-1?E&&console.error("selectedItems index -1"):_.selectedItems.splice(F,1)}}(C,d)})),r.dispose(function(){return r.selected=!1}),r}return g(n,a),Object.defineProperty(n.prototype,"treeItem",{get:function(){return this._treeItem},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"collapsed",{get:function(){return this._collapsed.value},set:function(s){this._collapsed.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"collapsedChanged",{get:function(){return this._collapsed.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"checkedStatus",{get:function(){return this._checkedStatus.value},enumerable:!1,configurable:!0}),n.prototype.check=function(s){var r,i,l=s?"checked":"unchecked";if(this._checkedStatus.value!==l&&(this._checkedStatus.value=l,this._treeItem.children))try{for(var d=w(this._treeItem.children),C=d.next();!C.done;C=d.next())C.value.uiTreeObject.check(s)}catch(_){r={error:_}}finally{try{C&&!C.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}},n.prototype.updateCheckedStatusFromChildren=function(){this._updateCheckedStatusFromChildrenEvent.emit()},Object.defineProperty(n.prototype,"checkedStatusChanged",{get:function(){return this._checkedStatus.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected.value},set:function(s){this._selected.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selectedChanged",{get:function(){return this._selected.changed},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"moveToPositionMode",{get:function(){return this._moveToPositionMode.value},set:function(s){this._moveToPositionMode.value=s},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"moveToPositionModeChanged",{get:function(){return this._moveToPositionMode.changed},enumerable:!1,configurable:!0}),n}(p.Destroyable);A.UiTreeObject=c},7793:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.createGuid=void 0,A.createGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(h){var m=16*Math.random()|0;return(h==="x"?m:3&m|8).toString(16)})}},7941:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},7963:function(B,A,h){var m,g=this&&this.__extends||(m=function(C,_){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var F in E)Object.prototype.hasOwnProperty.call(E,F)&&(b[F]=E[F])},m(C,_)},function(C,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function b(){this.constructor=C}m(C,_),C.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)});Object.defineProperty(A,"__esModule",{value:!0}),A.ComplexImage=A.getTypeFromImageUri=void 0;var w=h(1662),p=h(1662),u=h(3815),f=h(7014),c=h(9409),a=h(1851),n=h(3096),s=h(5925),r=h(5210),i=h(1291);function l(C){var _=C.substring(C.lastIndexOf(".")+1);return d.suffixTypes[_]}A.getTypeFromImageUri=l;var d=function(C){function _(){var b=C.call(this)||this;return b._enabled=b.disposeVar((0,p.react)(!1)),b._uri=b.disposeVar((0,p.react)("")),b._type=b.disposeVar((0,p.react)(void 0)),b._size=b.disposeVar((0,p.reactArrayWithUndefined)(void 0)),b._pixelFormat=b.disposeVar((0,p.react)("RGBA")),b._flipY=b.disposeVar((0,p.react)(!0)),b._crossOriginReact=b.disposeVar((0,p.react)("")),b._autoplayReact=b.disposeVar((0,p.react)(!0)),b._loopReact=b.disposeVar((0,p.react)(!0)),b._copyTextureEvent=b.disposeVar(new w.Event),b._imageProcessingResettingEvent=b.disposeVar((0,w.createNextAnimateFrameEvent)(b.enabledChanged,b.uriChanged,b.typeChanged)),b._imageProcessingResetting=b.disposeVar(new u.ObjResettingWithEvent(b._imageProcessingResettingEvent,function(){do{if(!b.enabled||!b.uri)break;var E=b.type;if(E||(E=l(b.uri)),!E)break;if(E==="img")return new f.ImageProcessing(b,b.uri);if(E==="video")return new n.VideoProcessing(b,b.uri);if(E==="gif")return new s.GifProcessing(b,b.uri);if(E==="hls")return new r.HlsProcessing(b,b.uri);if(E==="flv")return new i.FlvProcessing(b,b.uri)}while(!1)})),b._createNativeTextureEvent=b.disposeVar((0,w.createNextAnimateFrameEvent)(b.enabledChanged,b.sizeChanged,b.pixelFormatChanged,b.flipYChanged)),b}return g(_,C),Object.defineProperty(_.prototype,"enabled",{get:function(){return this._enabled.value},set:function(b){this._enabled.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"enabledChanged",{get:function(){return this._enabled.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"uri",{get:function(){return this._uri.value},set:function(b){this._uri.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"uriChanged",{get:function(){return this._uri.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"type",{get:function(){return this._type.value},set:function(b){this._type.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"typeChanged",{get:function(){return this._type.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"size",{get:function(){return this._size.value},set:function(b){this._size.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"sizeChanged",{get:function(){return this._size.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"pixelFormat",{get:function(){return this._pixelFormat.value},set:function(b){this._pixelFormat.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"pixelFormatChanged",{get:function(){return this._pixelFormat.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"flipY",{get:function(){return this._flipY.value},set:function(b){this._flipY.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"flipYChanged",{get:function(){return this._flipY.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"crossOrigin",{get:function(){return this._crossOriginReact.value},set:function(b){this._crossOriginReact.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"crossOriginChanged",{get:function(){return this._crossOriginReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"autoplay",{get:function(){return this._autoplayReact.value},set:function(b){this._autoplayReact.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"autoplayChanged",{get:function(){return this._autoplayReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loop",{get:function(){return this._loopReact.value},set:function(b){this._loopReact.value=b},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loopChanged",{get:function(){return this._loopReact.changed},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"copyTextureEvent",{get:function(){return this._copyTextureEvent},enumerable:!1,configurable:!0}),_.prototype.copyTexture=function(b){this._createNativeTextureEvent.flush(),this._copyTextureEvent.emit(b)},Object.defineProperty(_.prototype,"imageProcessingResetting",{get:function(){return this._imageProcessingResetting},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"createNativeTextureEvent",{get:function(){return this._createNativeTextureEvent},enumerable:!1,configurable:!0}),_.prototype.copyFromCanvas=function(b){b.width<=0||b.height<=0?console.warn("canvas.width <= 0 || canvas.height <= 0"):(this.size=[b.width,b.height],this.pixelFormat="RGBA",this.copyTexture({source:b}))},_.types=a.complexImageTypes,_.czmPixelFormats=c.czmPixelFormats,_.suffixTypes={png:"img",jpg:"img",svg:"img",webp:"img",gif:"gif",mp4:"video",mov:"video",webm:"video",flv:"flv",m3u8:"hls"},_}(w.Destroyable);A.ComplexImage=d},8042:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._transpose=void 0;var m=h(2731);A._transpose=function(g,w){var p=g[1],u=g[2],f=g[3],c=g[6],a=g[7],n=g[11];return(w=w||(0,m.createNumbers)(16))[0]=g[0],w[1]=g[4],w[2]=g[8],w[3]=g[12],w[4]=p,w[5]=g[5],w[6]=g[9],w[7]=g[13],w[8]=u,w[9]=c,w[10]=g[10],w[11]=g[14],w[12]=f,w[13]=a,w[14]=n,w[15]=g[15],w}},8055:function(B,A){var h,m=this&&this.__extends||(h=function(w,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,f){u.__proto__=f}||function(u,f){for(var c in f)Object.prototype.hasOwnProperty.call(f,c)&&(u[c]=f[c])},h(w,p)},function(w,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");function u(){this.constructor=w}h(w,p),w.prototype=p===null?Object.create(p):(u.prototype=p.prototype,new u)});Object.defineProperty(A,"__esModule",{value:!0}),A.CancelError=void 0;var g=function(w){function p(){return w!==null&&w.apply(this,arguments)||this}return m(p,w),p}(Error);A.CancelError=g},8089:function(B,A,h){var m=this&&this.__read||function(b,E){var F=typeof Symbol=="function"&&b[Symbol.iterator];if(!F)return b;var S,U,T=F.call(b),Q=[];try{for(;(E===void 0||E-- >0)&&!(S=T.next()).done;)Q.push(S.value)}catch(P){U={error:P}}finally{try{S&&!S.done&&(F=T.return)&&F.call(T)}finally{if(U)throw U.error}}return Q},g=this&&this.__spreadArray||function(b,E,F){if(F||arguments.length===2)for(var S,U=0,T=E.length;U<T;U++)!S&&U in E||(S||(S=Array.prototype.slice.call(E,0,U)),S[U]=E[U]);return b.concat(S||Array.prototype.slice.call(E))};Object.defineProperty(A,"__esModule",{value:!0}),A.Matrix4=void 0;var w=h(4915),p=h(2731),u=h(9549),f=h(9898),c=h(5985),a=h(8533),n=h(4209),s=h(6021),r=h(4601),i=h(2830),l=h(8042),d=h(6680),C=h(723),_=h(3300);(function(b){function E(P,I,M){return(0,d._fromMatrix3AndTranslation)(P,I,M)}b.getElementIndex=function(P,I){if(P<0||P>3||I<0||I>3)throw new Error("column < 0 || column > 3 || row < 0 || row > 3");return 4*P+I},b.getColumn=function(P,I,M){return(0,a._getColumn)(P,I,M)},b.setColumn=function(P,I,M,K){return(0,a._setColumn)(P,I,M,K)},b.getRow=function(P,I,M){return(0,r._getRow)(P,I,M)},b.setRow=function(P,I,M,K){(0,r._setRow)(P,I,M,K)},b.getTranslation=function(P,I){return(0,i._getTranslation)(P,I)},b.setTranslation=function(P,I,M){return(0,i._setTranslation)(P,I,M)},b.getScale=function(P,I){return(0,_._getScale)(P,I)},b.setScale=function(P,I,M){return(0,_._setScale)(P,I,M)},b.getMaximumScale=function(P){return(0,_._getMaximumScale)(P)},b.multiply=function(P,I,M){return(0,s._multiply)(P,I,M)},b.multiplyTransformation=function(P,I,M){return(0,s._multiplyTransformation)(P,I,M)},b.multiplyByMatrix3=function(P,I,M){return(0,s._multiplyByMatrix3)(P,I,M)},b.multiplyByTranslation=function(P,I,M){return(0,s._multiplyByTranslation)(P,I,M)},b.multiplyByUniformScale=function(P,I,M){(0,s._multiplyByUniformScale)(P,I,M)},b.multiplyByScale=function(P,I,M){return(0,s._multiplyByScale)(P,I,M)},b.multiplyByVector=function(P,I,M){return(0,s._multiplyByVector)(P,I,M)},b.multiplyByPointAsVector=function(P,I,M){return(0,s._multiplyByPointAsVector)(P,I,M)},b.affineMultiplyByPoint=function(P,I,M){return(0,s._affineMultiplyByPoint)(P,I,M)},b.multiplyByPoint=function(P,I,M){return(0,s._multiplyByPoint)(P,I,M)},b.continuousMultiply=function(P,I){for(var M=[],K=2;K<arguments.length;K++)M[K-2]=arguments[K];return s._continuousMultiply.apply(void 0,g([P,I],m(M),!1))},b.transpose=function(P,I){return(0,l._transpose)(P,I)},b.getMatrix3=function(P,I){return(I=I||(0,p.createNumbers)(9))[0]=P[0],I[1]=P[1],I[2]=P[2],I[3]=P[4],I[4]=P[5],I[5]=P[6],I[6]=P[8],I[7]=P[9],I[8]=P[10],I},b.setMatrix3=function(P,I){(I=I||f.Vector.clone(b.IDENTITY))[0]=P[0],I[1]=P[1],I[2]=P[2],I[4]=P[3],I[5]=P[4],I[6]=P[5],I[8]=P[6],I[9]=P[7],I[10]=P[8]},b.inverse=function(P,I){return(0,n.inverse)(P,I)},b.inverseTransformation=function(P,I){return(0,C._inverseTransformation)(P,I)},b.IDENTITY=Object.freeze([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),b.ZERO=Object.freeze([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),b.fromTranslation=function(P,I){return(0,d._fromTranslation)(P,I)},b.fromMatrix3AndTranslation=E;var F=(0,p.createNumbers)(9);b.fromRotateQuatAndTranslation=function(P,I,M){return w.Matrix3.fromQuaternion(P,F),E(F,I,M)},b.fromDirectionUpRightAndTranslation=function(P,I,M,K,W){return(0,d._fromDirectionUpRightAndTranslation)(P,I,M,K,W)},b.fromScale=function(P,I){return f.Vector.set(I,P[0],0,0,0,0,P[1],0,0,0,0,P[2],0,0,0,0,1)};var S=u.Quaternion.fromAxisAngle([1,0,0],.5*Math.PI),U=w.Matrix3.fromQuaternion(S);b.Z2NY=b.fromMatrix3AndTranslation(U);var T=(0,p.createNumbers)(4),Q=(0,p.createNumbers)(9);b.fromAxisAngle=function(P,I,M){return u.Quaternion.fromAxisAngle(P,I,T),w.Matrix3.fromQuaternion(T,Q),b.fromMatrix3AndTranslation(Q,c.Vector3.ZERO,M)}})(A.Matrix4||(A.Matrix4={}))},8106:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(6148),A),g(h(9972),A),g(h(9374),A),g(h(6888),A),g(h(1801),A),g(h(5582),A),g(h(4661),A),g(h(1943),A),g(h(2051),A)},8144:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.getIterator=void 0,A.getIterator=function(h){var m;if(typeof h.next=="function")m=h;else{if(typeof h[Symbol.iterator]!="function")throw new Error("iteratorOrIterable error!");m=h[Symbol.iterator]()}return m}},8193:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)}),w=this&&this.__read||function(u,f){var c=typeof Symbol=="function"&&u[Symbol.iterator];if(!c)return u;var a,n,s=c.call(u),r=[];try{for(;(f===void 0||f-- >0)&&!(a=s.next()).done;)r.push(a.value)}catch(i){n={error:i}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(n)throw n.error}}return r};Object.defineProperty(A,"__esModule",{value:!0}),A.ToolTipDiv=void 0;var p=function(u){function f(){var c=u.call(this)||this;c._text="";var a=document.createElement("div");c._div=a,a.style.cssText="width: 0px; height: 0px; position: absolute; opacity: 1.0; visibility: visible; transition: opacity 0.5s;";var n=document.createElement("div");n.style.cssText="position: absolute; left: 0px; bottom: 0px; transform: translateX(-50%); margin: 0; padding: 0; pointer-events: none;";var s=document.createElement("div");return s.style.cssText="position: relative; background-color: rgba(0, 0, 0, 0.7); border-radius: 5px; padding: 3px; pointer-events: all; color: white; white-space: nowrap;",s.innerText=c._text,c._div.appendChild(n),n.appendChild(s),c._contentContainer=s,c._div=a,c.dispose(c.winPosChanged.disposableOn(function(r){var i=w(r,2),l=i[0],d=i[1];c._div.style.left="".concat(l,"px"),c._div.style.top="".concat(d-50,"px")})),c.dispose(c.opacityChanged.disposableOn(function(r){c._div.style.opacity="".concat(r)})),c.dispose(c.showChanged.disposableOn(function(r){c._div.style.visibility=r?"visible":"hidden"})),c}return g(f,u),Object.defineProperty(f.prototype,"element",{get:function(){return this._div},enumerable:!1,configurable:!0}),f.prototype.reset=function(){this.opacity=1,this.show=!0},Object.defineProperty(f.prototype,"text",{get:function(){return this._text},set:function(c){this._text!==c&&(this._text=c,this._contentContainer.innerText=c)},enumerable:!1,configurable:!0}),f}(h(7324).FloatDiv);A.ToolTipDiv=p},8196:function(B,A,h){var m=this&&this.__values||function(c){var a=typeof Symbol=="function"&&Symbol.iterator,n=a&&c[a],s=0;if(n)return n.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&s>=c.length&&(c=void 0),{value:c&&c[s++],done:!c}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__read||function(c,a){var n=typeof Symbol=="function"&&c[Symbol.iterator];if(!n)return c;var s,r,i=n.call(c),l=[];try{for(;(a===void 0||a-- >0)&&!(s=i.next()).done;)l.push(s.value)}catch(d){r={error:d}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return l};Object.defineProperty(A,"__esModule",{value:!0}),A.ProcessingStarter=void 0;var w=h(7372),p=h(1662),u=h(8055),f=function(){function c(a){this._startParams=a,this._cancelled=!1,this._cancelsMap=new Map}return Object.defineProperty(c.prototype,"disposer",{get:function(){var a=this;return this._disposer||(this._disposer=new w.Destroyable,this._disposer.dispose(function(){return a._disposer=void 0})),this._disposer},enumerable:!1,configurable:!0}),c.prototype.cancel=function(a){var n,s,r;if(!this._cancelled){this._cancelled=!0,(r=this._disposer)===null||r===void 0||r.destroy(),this._cancelError=a;try{for(var i=m(this._cancelsMap.values()),l=i.next();!l.done;l=i.next())(0,l.value)(a)}catch(d){n={error:d}}finally{try{l&&!l.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}this._cancelsMap.clear()}},c.prototype.check=function(){var a;if(this._cancelled)throw(a=this._cancelError)!==null&&a!==void 0?a:new u.CancelError("cancel from CancelManager!")},Object.defineProperty(c.prototype,"cancelFuncsNum",{get:function(){return(0,p.reduce)(this._cancelsMap.keys(),function(a){return a+1},0)},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"processingID",{get:function(){return this._startParams.processingID},enumerable:!1,configurable:!0}),c.prototype.promises=function(){for(var a=this,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return n.map(function(r){var i=g(r,2),l=i[0],d=i[1];return a._cancelsMap.set(d,l),d.finally(function(){return a._cancelsMap.delete(d)})})},c.prototype.promise=function(a){var n=this,s=g(a,2),r=s[0],i=s[1];return this._cancelsMap.set(i,r),i.finally(function(){return n._cancelsMap.delete(i)})},c.prototype.promiseAny=function(a){var n=this,s=[],r=a.map(function(i){var l=g(i,2),d=l[0],C=l[1];return n._cancelsMap.set(C,d),s.push(d),C.finally(function(){return n._cancelsMap.delete(C)})});return Promise.any(r).finally(function(){return s.forEach(function(i){return i(new u.CancelError("cancel from promiseAny!"))})})},c.prototype.promiseAll=function(a){var n=this,s=[],r=a.map(function(i){var l=g(i,2),d=l[0],C=l[1];return n._cancelsMap.set(C,d),s.push(d),C.finally(function(){return n._cancelsMap.delete(C)})});return Promise.all(r).finally(function(){return s.forEach(function(i){return i(new u.CancelError("cancel from promiseAll!"))})})},c.prototype.promiseRace=function(a){var n=this,s=[],r=a.map(function(i){var l=g(i,2),d=l[0],C=l[1];return n._cancelsMap.set(C,d),s.push(d),C.finally(function(){return n._cancelsMap.delete(C)})});return Promise.race(r).finally(function(){return s.forEach(function(i){return i(new u.CancelError("cancel from promiseRace!"))})})},c.prototype.checkAndPromises=function(){for(var a=this,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];return n.map(function(r){var i=g(r,2),l=i[0],d=i[1];return a._cancelsMap.set(d,l),d.finally(function(){return a._cancelsMap.delete(d),a.check()})})},c.prototype.checkAndPromise=function(a){var n=this;return a instanceof Promise?a.finally(function(){return n.check()}):this.promise(a).finally(function(){return n.check()})},c.prototype.complete=function(a){var n;this.cancelFuncsNum!==0&&console.warn("complete: this.cancelFuncsNum(".concat(this.cancelFuncsNum,")不为0!")),(n=this._disposer)===null||n===void 0||n.destroy(),this._cancelsMap.clear(),this._startParams.completeFunc(a)},c.prototype.error=function(a){var n;(n=this._disposer)===null||n===void 0||n.destroy(),this._cancelsMap.clear(),this._startParams.errorFunc(a)},c.prototype.progressFunc=function(a){this._startParams.progressFunc(a)},c.prototype.forceCancel=function(a){return this._startParams.cancelFunc(a)},c}();A.ProcessingStarter=f},8301:function(B,A,h){var m,g=this&&this.__extends||(m=function(r,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(l[C]=d[C])},m(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function l(){this.constructor=r}m(r,i),r.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),w=this&&this.__values||function(r){var i=typeof Symbol=="function"&&Symbol.iterator,l=i&&r[i],d=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&d>=r.length&&(r=void 0),{value:r&&r[d++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(r,i){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,C,_=l.call(r),b=[];try{for(;(i===void 0||i-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){C={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(C)throw C.error}}return b},u=this&&this.__spreadArray||function(r,i,l){if(l||arguments.length===2)for(var d,C=0,_=i.length;C<_;C++)!d&&C in i||(d||(d=Array.prototype.slice.call(i,0,C)),d[C]=i[C]);return r.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.Tree=void 0;var f=h(1662),c=h(9082),a=h(3315),n=h(8368),s=function(r){function i(l){var d=r.call(this)||this;return d._root=d.disposeVar(new c.TreeItem(d,!0,"_ROOT")),d._itemChildrenChanged=d.disposeVar(new f.Event),d._itemChildrenToChange=d.disposeVar(new f.Event),d._itemsAdded=d.disposeVar(new f.Event),d._itemsDeleted=d.disposeVar(new f.Event),d._itemsChanged=d.disposeVar(new f.Event),d._transactionStack=0,d._addedItems=new Set,d._deletedItems=new Set,d._selectedItems=d.disposeVar(new f.ObservableArray),d._itemDivHeight=d.disposeVar((0,f.react)(i.defaultItemDivHeight)),d._forceRedrawEvent=d.disposeVar(new f.Event),d._uiTree=d.disposeVar(new a.UiTree(d)),d._root._tree.value=d,d.dispose(d._itemChildrenToChange.disposableOn(function(C,_){var b,E,F,S;if(C.children){try{for(var U=w(_),T=U.next();!T.done;T=U.next()){for(var Q=T.value,P=Q.start,I=Q.deleteCount,M=Q.items,K=P;K<P+I;++K){var W=C.children.get(K);d._deletedItems.has(W)?console.error("this._deletedItems.has(currentItem(".concat(W.id,"))")):d._deletedItems.add(W)}try{for(var L=(F=void 0,w(M)),O=L.next();!O.done;O=L.next())W=O.value,d._deletedItems.has(W)?d._deletedItems.delete(W):d._addedItems.add(W)}catch(H){F={error:H}}finally{try{O&&!O.done&&(S=L.return)&&S.call(L)}finally{if(F)throw F.error}}}}catch(H){b={error:H}}finally{try{T&&!T.done&&(E=U.return)&&E.call(U)}finally{if(b)throw b.error}}d._execTransaction()}else console.error("!item.children")})),l!==void 0&&(d.itemDivHeight=l),d}return g(i,r),Object.defineProperty(i.prototype,"selectedItems",{get:function(){return this._selectedItems},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"lastSelectedItem",{get:function(){return this._selectedItems.length>0?this._selectedItems.get(this._selectedItems.length-1):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemDivHeight",{get:function(){return this._itemDivHeight.value},set:function(l){this._itemDivHeight.value=l},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemDivHeightChanged",{get:function(){return this._itemDivHeight.changed},enumerable:!1,configurable:!0}),i.prototype.forceRedraw=function(){this._forceRedrawEvent.emit()},Object.defineProperty(i.prototype,"uiTree",{get:function(){return this._uiTree},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"root",{get:function(){return this._root},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"children",{get:function(){return this._root.children},enumerable:!1,configurable:!0}),i.prototype.getDescendants=function(l){return this._root.getDescendants(l)},i.prototype.getTreeItemFromId=function(l){var d,C,_=void 0;try{for(var b=w(this.getDescendants()),E=b.next();!E.done;E=b.next()){var F=E.value;if(F.id===l){_=F;break}}}catch(S){d={error:S}}finally{try{E&&!E.done&&(C=b.return)&&C.call(b)}finally{if(d)throw d.error}}return _},i.prototype._startTransaction=function(){this._transactionStack===0&&(this._deletedItems.size>0&&(console.warn("this._deletedItems.size > 0"),this._deletedItems.clear()),this._addedItems.size>0&&(console.warn("this._addedItems.size > 0"),this._addedItems.clear())),++this._transactionStack},i.prototype._stopTransaction=function(){--this._transactionStack,this._execTransaction()},i.prototype._execTransaction=function(){this._transactionStack===0&&(this._deletedItems.size>0&&(this._itemsDeleted.emit(u([],p(this._deletedItems),!1)),this._deletedItems.clear()),this._addedItems.size>0&&(this._itemsAdded.emit(u([],p(this._addedItems),!1)),this._addedItems.clear()))},Object.defineProperty(i.prototype,"itemChildrenChanged",{get:function(){return this._itemChildrenChanged},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemChildrenToChange",{get:function(){return this._itemChildrenToChange},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemsChanged",{get:function(){return this._itemsChanged},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemsAdded",{get:function(){return this._itemsAdded},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"itemsDeleted",{get:function(){return this._itemsDeleted},enumerable:!1,configurable:!0}),i.defaultItemDivHeight=24,i.canMoveToTreeItem=n.canMoveToTreeItem,i.moveToTreeItem=n.moveToTreeItem,i.canMoveToTreeItems=n.canMoveToTreeItems,i.moveToTreeItems=n.moveToTreeItems,i}(f.Destroyable);A.Tree=s},8368:function(B,A,h){var m=this&&this.__values||function(u){var f=typeof Symbol=="function"&&Symbol.iterator,c=f&&u[f],a=0;if(c)return c.call(u);if(u&&typeof u.length=="number")return{next:function(){return u&&a>=u.length&&(u=void 0),{value:u&&u[a++],done:!u}}};throw new TypeError(f?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.moveToTreeItems=A.canMoveToTreeItems=A.moveToTreeItem=A.canMoveToTreeItem=void 0;var g=h(1662);function w(u,f,c){if(u.tree!==f.tree||u===f||u.isAncestorOf(f)||u.tree!==f.tree||!u.parent)return!1;if(!u.parent.children)throw console.error("当前节点的父节点没有子节点?这是不可能的!"),new Error("当前节点的父节点没有子节点?这是不可能的!");return!(f===u||u.isAncestorOf(f)||c!=="inner"&&!f.parent||c==="inner"&&!f.children)}function p(u,f,c){if(u.tree&&f.tree&&u.tree===f.tree)if(u.parent){if(!u.parent.children)throw console.error("当前节点的父节点没有子节点?这是不可能的!"),new Error("当前节点的父节点没有子节点?这是不可能的!");if(f!==u)if(u.isAncestorOf(f))console.warn("当前节点不能拖放到它自身的后代节点之上!");else if(c==="inner"||f.parent)if(c!=="inner"||f.children){u.tree._startTransaction();var a=u.parent.children.indexOf(u);if(u.parent.children.splice(a,1),c!=="inner"){var n=f.parent;if(!n||!n.children)throw new Error("!parent");var s=n.children.indexOf(f);c==="before"?n.children.splice(s,0,u):c==="after"&&n.children.splice(s+1,0,u)}else f.children.push(u);u.tree._stopTransaction()}else console.warn("无法移动到目标节点的子节点中,因为目标节点不是组节点!");else console.warn("目标节点没有父节点,无法拖放!");else console.warn("自身不能拖放到自身!")}else console.warn("当前节点没有父节点,那么该节点无法被移动!")}A.canMoveToTreeItem=w,A.moveToTreeItem=p,A.canMoveToTreeItems=function(u,f,c){return(0,g.every)(u,function(a){return w(a,f,c)})},A.moveToTreeItems=function(u,f,c){var a,n;try{for(var s=m(u),r=s.next();!r.done;r=s.next()){var i=r.value;w(i,f,c)?p(i,f,c):console.warn("treeItem(id: ".concat(i.id,") cannot move..."))}}catch(l){a={error:l}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}}},8421:function(B,A,h){var m,g=this&&this.__extends||(m=function(u,f){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(c[n]=a[n])},m(u,f)},function(u,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");function c(){this.constructor=u}m(u,f),u.prototype=f===null?Object.create(f):(c.prototype=f.prototype,new c)});Object.defineProperty(A,"__esModule",{value:!0}),A.unLoading=A.UnLoading=void 0;var w=h(1662),p=function(u){function f(){var c=u.call(this)||this;return c._unloadEvent=c.disposeVar(new w.Event),window.addEventListener("beforeunload",function(){c._unloadEvent.emit(),c.destroy()}),c}return g(f,u),f.prototype.unload=function(c){this.dispose(this._unloadEvent.disposableOn(c,unescape,!0))},f}(w.Destroyable);A.UnLoading=p,A.unLoading=new p},8453:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loadBASIS=A.CompressedTextureBuffer=void 0;var m=h(9928);Object.defineProperty(A,"CompressedTextureBuffer",{enumerable:!0,get:function(){return m.CompressedTextureBuffer}});var g=h(2075),w=h(3631),p=h(5486),u=h(1662),f=Error,c=new g.TaskProcessor("transcodeBASISToTexture",Number.POSITIVE_INFINITY);A.loadBASIS=function(a,n){if(!a)throw new f("resourceOrUrlOrBuffer is required.");var s;if(s=a instanceof ArrayBuffer||ArrayBuffer.isView(a)?w.when.resolve(a):(0,u.fetchArrayBuffer)(a),(0,p.defined)(s))return s.then(function(r){if((0,p.defined)(r)){var i=[];r instanceof ArrayBuffer?i.push(r):(r.byteOffset===0&&r.byteLength===r.buffer.byteLength||(r=r.slice(0,r.length)),i.push(r.buffer));var l={data:r,textureFormat:n};return c.scheduleTask(l,i)}}).then(function(r){return r||console.error("compressedTextureBuffer is undefined!"),m.CompressedTextureBuffer.clone(r)})}},8466:(B,A)=>{function h(m,g){var w=m*m,p=w*m,u=m+m+m,f=w+w+w,c=p+p+p,a=1-u+f-p,n=u-(f+f)+c,s=f-c,r=p;return g?(g[0]=a,g[1]=n,g[2]=s,g[3]=r,g):[a,n,s,r]}Object.defineProperty(A,"__esModule",{value:!0}),A.computBezierSpline3BaseFactors=A.bezierSpline3=A.bezierSpline3WithBaseFactor=A.getBezierSpline3BaseFactor=void 0,A.getBezierSpline3BaseFactor=h,A.bezierSpline3WithBaseFactor=function(m,g,w,p,u,f,c){for(var a=c??new Array(g),n=0;n<g;++n)a[n]=m[0]*w[n]+m[1]*p[n]+m[2]*u[n]+m[3]*f[n];return a},A.bezierSpline3=function(m,g,w,p,u,f,c){for(var a=h(m),n=c??new Array(g),s=0;s<g;++s)n[s]=a[0]*w[s]+a[1]*p[s]+a[2]*u[s]+a[3]*f[s];return n},A.computBezierSpline3BaseFactors=function(m){for(var g=new Array(m+1),w=1/m,p=0,u=0;u<m;++u)g[u]=h(p),p+=w;return g}},8533:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A._setColumn=A._getColumn=void 0;var m=h(2731),g=h(9898);A._getColumn=function(w,p,u){if(p<0||p>3)throw new Error("index < 0 || index > 3");var f=4*p,c=w[f],a=w[f+1],n=w[f+2],s=w[f+3];return(u=u||(0,m.createNumbers)(4))[0]=c,u[1]=a,u[2]=n,u[3]=s,u},A._setColumn=function(w,p,u,f){if(p<0||p>3)throw new Error("index < 0 || index > 3");var c=4*p;return(f=g.Vector.clone(w,f))[c]=u[0],f[c+1]=u[1],f[c+2]=u[2],f[c+3]=u[3],f}},8576:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(3207),A)},8584:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.downloadLink=void 0,A.downloadLink=function(h,m){var g=document.createElement("a"),w=new MouseEvent("click");g.download=m||"下载",g.href=h,g.dispatchEvent(w)}},8614:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0})},8703:function(B,A,h){var m=this&&this.__values||function(c){var a=typeof Symbol=="function"&&Symbol.iterator,n=a&&c[a],s=0;if(n)return n.call(c);if(c&&typeof c.length=="number")return{next:function(){return c&&s>=c.length&&(c=void 0),{value:c&&c[s++],done:!c}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},g=this&&this.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(A,"__esModule",{value:!0}),A._getCullingVolumeFromProjectionMatrix=void 0;var w=g(h(9812)),p=h(2731),u=h(9898);function f(c,a,n){return c[4*(n-1)+(a-1)]}A._getCullingVolumeFromProjectionMatrix=function(c,a){var n,s,r=c;if((a=a||new w.default([(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4),(0,p.createNumbers)(4)])).planes.length!==6)throw new Error("!target.planes || target.planes.length !== 6");u.Vector.set(a.planes[0],f(r,4,1)+f(r,1,1),f(r,4,2)+f(r,1,2),f(r,4,3)+f(r,1,3),f(r,4,4)+f(r,1,4)),u.Vector.set(a.planes[1],f(r,4,1)-f(r,1,1),f(r,4,2)-f(r,1,2),f(r,4,3)-f(r,1,3),f(r,4,4)-f(r,1,4)),u.Vector.set(a.planes[2],f(r,4,1)+f(r,2,1),f(r,4,2)+f(r,2,2),f(r,4,3)+f(r,2,3),f(r,4,4)+f(r,2,4)),u.Vector.set(a.planes[3],f(r,4,1)-f(r,2,1),f(r,4,2)-f(r,2,2),f(r,4,3)-f(r,2,3),f(r,4,4)-f(r,2,4)),u.Vector.set(a.planes[4],f(r,4,1)+f(r,3,1),f(r,4,2)+f(r,3,2),f(r,4,3)+f(r,3,3),f(r,4,4)+f(r,3,4)),u.Vector.set(a.planes[5],f(r,4,1)-f(r,3,1),f(r,4,2)-f(r,3,2),f(r,4,3)-f(r,3,3),f(r,4,4)-f(r,3,4));try{for(var i=m(a.planes),l=i.next();!l.done;l=i.next()){var d=l.value;u.Vector.normalize(d,d)}}catch(C){n={error:C}}finally{try{l&&!l.done&&(s=i.return)&&s.call(i)}finally{if(n)throw n.error}}return a}},8835:function(B,A,h){var m=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},g=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.bindu=A.bind=A.track=A.getCompleteReactParams=void 0;var w=h(2168),p=h(3915);function u(a){var n=a instanceof p.ReactiveVariable?[a,"value","changed"]:g([],m(a),!1);return n[2]=n[2]||n[1]+"Changed",n}function f(a,n,s,r){r===void 0&&(r=!1),n[2]=n[2]||n[1]+"Changed";var i=function(){var l=n[0][n[1]];a[0][a[1]]=s?s(l):l};return i(),r?n[0][n[2]].disposableWeakOn(i):n[0][n[2]].disposableOn(i)}function c(a,n,s,r,i){return i===void 0&&(i=!1),function(l,d,C,_,b){b===void 0&&(b=!1);var E=f(l,d,C,b),F=f(d,l,_,b);return function(){return E(),F()}}(u(a),u(n),s,r,i)}A.getCompleteReactParams=u,A.track=function(a,n,s,r){return r===void 0&&(r=!1),f(a instanceof p.ReactiveVariable?[a,"value","changed"]:a,n instanceof p.ReactiveVariable?[n,"value","changed"]:n,s,r)},A.bind=c,A.bindu=function(a,n,s,r){r===void 0&&(r=!1);var i=m((0,w.getReactFuncs)(n),1)[0];return c(a,n,function(l){return l??s},function(l){return l===s&&i()===void 0?void 0:l},r)}},8992:function(B,A,h){var m=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,n=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=n.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=n.return)&&f.call(n)}finally{if(a)throw a.error}}return s},g=this&&this.__spreadArray||function(p,u,f){if(f||arguments.length===2)for(var c,a=0,n=u.length;a<n;a++)!c&&a in u||(c||(c=Array.prototype.slice.call(u,0,a)),c[a]=u[a]);return p.concat(c||Array.prototype.slice.call(u))};Object.defineProperty(A,"__esModule",{value:!0}),A.throttle=void 0;var w=h(773);A.throttle=function(p,u,f){f===void 0&&(f=w.defaultStartUpdateFunc);var c=Number.NEGATIVE_INFINITY,a=void 0;return[function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];a=n},f&&f(function(n){n-c>u&&a&&(p.apply(void 0,g([],m(a),!1)),a=void 0,c=n)})||void 0]}},8995:function(B,A,h){var m,g=this&&this.__extends||(m=function(d,C){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(_,b){_.__proto__=b}||function(_,b){for(var E in b)Object.prototype.hasOwnProperty.call(b,E)&&(_[E]=b[E])},m(d,C)},function(d,C){if(typeof C!="function"&&C!==null)throw new TypeError("Class extends value "+String(C)+" is not a constructor or null");function _(){this.constructor=d}m(d,C),d.prototype=C===null?Object.create(C):(_.prototype=C.prototype,new _)}),w=this&&this.__read||function(d,C){var _=typeof Symbol=="function"&&d[Symbol.iterator];if(!_)return d;var b,E,F=_.call(d),S=[];try{for(;(C===void 0||C-- >0)&&!(b=F.next()).done;)S.push(b.value)}catch(U){E={error:U}}finally{try{b&&!b.done&&(_=F.return)&&_.call(F)}finally{if(E)throw E.error}}return S},p=this&&this.__spreadArray||function(d,C,_){if(_||arguments.length===2)for(var b,E=0,F=C.length;E<F;E++)!b&&E in C||(b||(b=Array.prototype.slice.call(C,0,E)),b[E]=C[E]);return d.concat(b||Array.prototype.slice.call(C))},u=this&&this.__values||function(d){var C=typeof Symbol=="function"&&Symbol.iterator,_=C&&d[C],b=0;if(_)return _.call(d);if(d&&typeof d.length=="number")return{next:function(){return d&&b>=d.length&&(d=void 0),{value:d&&d[b++],done:!d}}};throw new TypeError(C?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.NextMicroTaskEvent=A.NextMicroTask=A.NextAnimationFrame=A.getPromiseFromAsyncFunc=A.getPromiseFromProcessing=A.getProcessingFromPromise=void 0;var f=h(7372),c=h(7372),a=h(5675),n=h(6891);function s(d){for(var C=[],_=1;_<arguments.length;_++)C[_-1]=arguments[_];var b=-1;return[function(E){return b===d.processingID&&d.isRunning&&d.cancel(E)},new Promise(function(E,F){d.isRunning&&d.cancel(),d.reset();var S=d.finishedEvent.disposableOn(function(U){U.status==="Error"?F(U.error):U.status==="Cancelled"?F(U.cancelError):U.status==="Completed"&&E(U.value),S()});d.start.apply(d,p([],w(C),!1)),b=d.processingID})]}A.getProcessingFromPromise=function(d){return new n.ProcessingDeprecated(function(C){var _=C.completeFunc,b=C.errorFunc,E=!1;return d.then(function(F){E||_(F)}).catch(function(F){E||b(F)}),function(){E=!0}})},A.getPromiseFromProcessing=s,A.getPromiseFromAsyncFunc=function(d){for(var C=[],_=1;_<arguments.length;_++)C[_-1]=arguments[_];var b=(0,a.createProcessing)(d),E=w(s.apply(void 0,p([b],w(C),!1)),2);return[E[0],E[1].finally(function(){return b.destroy()})]};var r=function(d){function C(_){return d.call(this,function(b){for(var E=b.completeFunc,F=b.errorFunc,S=[],U=1;U<arguments.length;U++)S[U-1]=arguments[U];var T=requestAnimationFrame(function(Q){try{var P=_.apply(void 0,p([],w(S),!1));E(P)}catch(I){F(I)}});return function(){return cancelAnimationFrame(T)}})||this}return g(C,d),C}(n.ProcessingDeprecated);A.NextAnimationFrame=r;var i=function(d){function C(_){return d.call(this,function(b){for(var E,F=b.completeFunc,S=b.errorFunc,U=[],T=1;T<arguments.length;T++)U[T-1]=arguments[T];return new Promise(function(Q,P){E=P,Q()}).then(function(){F(_.apply(void 0,p([],w(U),!1)))}).catch(S),function(){E&&E()}})||this}return g(C,d),C}(n.ProcessingDeprecated);A.NextMicroTask=i;var l=function(d){function C(){for(var _,b,E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];var S=d.call(this)||this;S._event=new c.Event;try{for(var U=u(E),T=U.next();!T.done;T=U.next()){var Q=T.value;S.dispose(Q.disposableOn(function(){!P.isRunning&&P.restart()}))}}catch(I){_={error:I}}finally{try{T&&!T.done&&(b=U.return)&&b.call(U)}finally{if(_)throw _.error}}var P=new i(function(){S._event.emit()});return S.dispose(function(){return P.destroy()}),S}return g(C,d),Object.defineProperty(C.prototype,"event",{get:function(){return this._event},enumerable:!1,configurable:!0}),C}(f.Destroyable);A.NextMicroTaskEvent=l},8997:function(B,A,h){var m,g=this&&this.__extends||(m=function(C,_){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,E){b.__proto__=E}||function(b,E){for(var F in E)Object.prototype.hasOwnProperty.call(E,F)&&(b[F]=E[F])},m(C,_)},function(C,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");function b(){this.constructor=C}m(C,_),C.prototype=_===null?Object.create(_):(b.prototype=_.prototype,new b)}),w=this&&this.__awaiter||function(C,_,b,E){return new(b||(b=Promise))(function(F,S){function U(P){try{Q(E.next(P))}catch(I){S(I)}}function T(P){try{Q(E.throw(P))}catch(I){S(I)}}function Q(P){var I;P.done?F(P.value):(I=P.value,I instanceof b?I:new b(function(M){M(I)})).then(U,T)}Q((E=E.apply(C,_||[])).next())})},p=this&&this.__generator||function(C,_){var b,E,F,S,U={label:0,sent:function(){if(1&F[0])throw F[1];return F[1]},trys:[],ops:[]};return S={next:T(0),throw:T(1),return:T(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function T(Q){return function(P){return function(I){if(b)throw new TypeError("Generator is already executing.");for(;S&&(S=0,I[0]&&(U=0)),U;)try{if(b=1,E&&(F=2&I[0]?E.return:I[0]?E.throw||((F=E.return)&&F.call(E),0):E.next)&&!(F=F.call(E,I[1])).done)return F;switch(E=0,F&&(I=[2&I[0],F.value]),I[0]){case 0:case 1:F=I;break;case 4:return U.label++,{value:I[1],done:!1};case 5:U.label++,E=I[1],I=[0];continue;case 7:I=U.ops.pop(),U.trys.pop();continue;default:if(!((F=(F=U.trys).length>0&&F[F.length-1])||I[0]!==6&&I[0]!==2)){U=0;continue}if(I[0]===3&&(!F||I[1]>F[0]&&I[1]<F[3])){U.label=I[1];break}if(I[0]===6&&U.label<F[1]){U.label=F[1],F=I;break}if(F&&U.label<F[2]){U.label=F[2],U.ops.push(I);break}F[2]&&U.ops.pop(),U.trys.pop();continue}I=_.call(C,U)}catch(M){I=[6,M],E=0}finally{b=F=0}if(5&I[0])throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}([Q,P])}}},u=this&&this.__asyncValues||function(C){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var _,b=C[Symbol.asyncIterator];return b?b.call(C):(C=typeof c=="function"?c(C):C[Symbol.iterator](),_={},E("next"),E("throw"),E("return"),_[Symbol.asyncIterator]=function(){return this},_);function E(F){_[F]=C[F]&&function(S){return new Promise(function(U,T){(function(Q,P,I,M){Promise.resolve(M).then(function(K){Q({value:K,done:I})},P)})(U,T,(S=C[F](S)).done,S.value)})}}},f=this&&this.__read||function(C,_){var b=typeof Symbol=="function"&&C[Symbol.iterator];if(!b)return C;var E,F,S=b.call(C),U=[];try{for(;(_===void 0||_-- >0)&&!(E=S.next()).done;)U.push(E.value)}catch(T){F={error:T}}finally{try{E&&!E.done&&(b=S.return)&&b.call(S)}finally{if(F)throw F.error}}return U},c=this&&this.__values||function(C){var _=typeof Symbol=="function"&&Symbol.iterator,b=_&&C[_],E=0;if(b)return b.call(C);if(C&&typeof C.length=="number")return{next:function(){return C&&E>=C.length&&(C=void 0),{value:C&&C[E++],done:!C}}};throw new TypeError(_?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.defaultGetLocalFilePath=A.defaultLocalFileServer=A.LocalFileServer=A.LocalRootDir=A.getFileArrayBuffer=A.getFileJson=A.getFileText=A.getSubEntriesFromDir=void 0;var a=h(7372);function n(C){var _,b,E,F;return w(this,void 0,void 0,function(){var S,U,T,Q,P,I,M,K,W,L,O;return p(this,function(H){switch(H.label){case 0:S=[],U=[],T=C.entries(),H.label=1;case 1:H.trys.push([1,6,7,12]),Q=!0,P=u(T),H.label=2;case 2:return[4,P.next()];case 3:if(I=H.sent(),_=I.done)return[3,5];F=I.value,Q=!1;try{M=f(F,2),K=M[0],W=M[1],(L=W).kind==="file"?S.push(K):L.kind==="directory"&&U.push(K)}finally{Q=!0}H.label=4;case 4:return[3,2];case 5:return[3,12];case 6:return O=H.sent(),b={error:O},[3,12];case 7:return H.trys.push([7,,10,11]),Q||_||!(E=P.return)?[3,9]:[4,E.call(P)];case 8:H.sent(),H.label=9;case 9:return[3,11];case 10:if(b)throw b.error;return[7];case 11:return[7];case 12:return[2,{files:S,dirs:U}]}})})}function s(C){return w(this,void 0,void 0,function(){return p(this,function(_){switch(_.label){case 0:return[4,C.getFile()];case 1:return[4,_.sent().text()];case 2:return[2,_.sent()]}})})}function r(C){return w(this,void 0,void 0,function(){var _;return p(this,function(b){switch(b.label){case 0:return[4,s(C)];case 1:_=b.sent();try{return[2,JSON.parse(_)]}catch{return[2,void 0]}return[2]}})})}function i(C){return w(this,void 0,void 0,function(){return p(this,function(_){switch(_.label){case 0:return[4,C.getFile()];case 1:return[4,_.sent().arrayBuffer()];case 2:return[2,_.sent()]}})})}A.getSubEntriesFromDir=n,A.getFileText=s,A.getFileJson=r,A.getFileArrayBuffer=i;var l=function(C){function _(b){var E=C.call(this)||this;return E._rootDirHandle=b,E}return g(_,C),Object.defineProperty(_.prototype,"rootDirHandle",{get:function(){return this._rootDirHandle},enumerable:!1,configurable:!0}),_.prototype.getSubFilesAndDirs=function(){return w(this,void 0,void 0,function(){return p(this,function(b){switch(b.label){case 0:return[4,n(this._rootDirHandle)];case 1:return[2,b.sent()]}})})},_.prototype.getDir=function(b){return w(this,void 0,void 0,function(){var E,F,S,U,T,Q,P;return p(this,function(I){switch(I.label){case 0:E=this._rootDirHandle,I.label=1;case 1:I.trys.push([1,6,7,8]),F=c(b),S=F.next(),I.label=2;case 2:return S.done?[3,5]:(U=S.value,[4,E==null?void 0:E.getDirectoryHandle(U)]);case 3:if(!(E=I.sent()))return console.log("getDirectoryHandle ".concat(U," failed")),[2,void 0];I.label=4;case 4:return S=F.next(),[3,2];case 5:return[3,8];case 6:return T=I.sent(),Q={error:T},[3,8];case 7:try{S&&!S.done&&(P=F.return)&&P.call(F)}finally{if(Q)throw Q.error}return[7];case 8:return[2,E]}})})},_.prototype.getFile=function(b,E){return w(this,void 0,void 0,function(){var F,S;return p(this,function(U){switch(U.label){case 0:return[4,this.getDir(b)];case 1:if(!(F=U.sent()))return[2,void 0];U.label=2;case 2:return U.trys.push([2,4,,5]),[4,F.getFileHandle(E)];case 3:return[2,U.sent()];case 4:return S=U.sent(),console.error("未能获取当前文件 ".concat(b.join("/"),"/").concat(E," error: ").concat(S),S),[2,void 0];case 5:return[2]}})})},_}(a.Destroyable);A.LocalRootDir=l;var d=function(C){function _(b){var E=C.call(this)||this;return E._prefix=b,E._startRootDirId=0,E._dirMap=new Map,E}return g(_,C),Object.defineProperty(_.prototype,"prefix",{get:function(){return this._prefix},enumerable:!1,configurable:!0}),_.prototype.getRootDirId=function(b){return w(this,void 0,void 0,function(){var E,F,S,U;return p(this,function(T){switch(T.label){case 0:return T.trys.push([0,2,,3]),console.log("window.showDirectoryPicker begin"),[4,window.showDirectoryPicker({id:b,mode:"read"})];case 1:return E=T.sent(),console.log("window.showDirectoryPicker end",E),[3,3];case 2:return F=T.sent(),console.error("LocalFileServer getRootDirId failed: ".concat(F),F),[2,void 0];case 3:return E?(S=++this._startRootDirId,U="".concat(this._prefix).concat(S),this._dirMap.set(U,new l(E)),[2,U]):[2]}})})},_.prototype.getRootDir=function(b){return this._dirMap.get(b)},_.prototype.getFile=function(b){return w(this,void 0,void 0,function(){var E,F,S,U,T,Q;return p(this,function(P){switch(P.label){case 0:return(E=b.split("/")).length<2?(console.warn("LocalFileServer getFile failed: ".concat(b)),[2,void 0]):(F=E[0],(S=this._dirMap.get(F))?(U=E.slice(1,E.length-1),T=E[E.length-1],[4,S.getFile(U,T)]):(console.warn("LocalFileServer getFile failed: ".concat(b)),[2,void 0]));case 1:return(Q=P.sent())?[2,Q]:(console.warn("LocalFileServer getFile failed: ".concat(b)),[2,void 0])}})})},_.prototype.getText=function(b){return w(this,void 0,void 0,function(){var E;return p(this,function(F){switch(F.label){case 0:return[4,this.getFile(b)];case 1:return(E=F.sent())?[4,s(E)]:[2,void 0];case 2:return[2,F.sent()]}})})},_.prototype.getArrayBuffer=function(b){return w(this,void 0,void 0,function(){var E;return p(this,function(F){switch(F.label){case 0:return[4,this.getFile(b)];case 1:return(E=F.sent())?[4,i(E)]:[2,void 0];case 2:return[2,F.sent()]}})})},_.prototype.getJson=function(b){return w(this,void 0,void 0,function(){var E;return p(this,function(F){switch(F.label){case 0:return[4,this.getFile(b)];case 1:return(E=F.sent())?[4,r(E)]:[2,void 0];case 2:return[2,F.sent()]}})})},_.prototype.getLocalFilePath=function(b,E,F){return w(this,void 0,void 0,function(){var S,U,T,Q;return p(this,function(P){switch(P.label){case 0:return[4,this.getRootDirId(E)];case 1:return(S=P.sent())?(U=this.getRootDir(S))?[4,U.getSubFilesAndDirs()]:(console.warn("getRootDir error!"),[2,void 0]):(console.warn("getRootDirId error!"),[2,void 0]);case 2:return(T=P.sent()).files?(Q=b?T.files.filter(function(I){return b.some(function(M){return I.endsWith(M)})}):T.files).length===0?(console.warn("找不到符合要求的文件!"),[2,void 0]):[2,"https://".concat(S,"/").concat(Q[0])]:(console.warn("getSubFilesAndDirs error! 找不到符合要求的文件!"),[2,void 0])}})})},_}(a.Destroyable);A.LocalFileServer=d,A.defaultLocalFileServer=new d("xe2_local"),A.defaultGetLocalFilePath=function(C,_,b){return w(this,void 0,void 0,function(){return p(this,function(E){switch(E.label){case 0:return[4,A.defaultLocalFileServer.getLocalFilePath(C,_,b)];case 1:return[2,E.sent()]}})})}},9026:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.replaceStrWithEnv=void 0;var m=h(2220);A.replaceStrWithEnv=function(g){for(;;){var w=g.replace(/\${(.*?)\}/,function(p,u){var f=m.SceneObject.context.getEnv(u);return f===void 0?(console.warn("环境变量(".concat(u,")不存在,无法进行转换")),"{env-error}"):f});if(w===g)break;g=w}return g}},9038:function(B,A,h){var m=this&&this.__createBinding||(Object.create?function(w,p,u,f){f===void 0&&(f=u);var c=Object.getOwnPropertyDescriptor(p,u);c&&!("get"in c?!p.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return p[u]}}),Object.defineProperty(w,f,c)}:function(w,p,u,f){f===void 0&&(f=u),w[f]=p[u]}),g=this&&this.__exportStar||function(w,p){for(var u in w)u==="default"||Object.prototype.hasOwnProperty.call(p,u)||m(p,w,u)};Object.defineProperty(A,"__esModule",{value:!0}),g(h(9486),A),g(h(8584),A)},9067:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__read||function(s,r){var i=typeof Symbol=="function"&&s[Symbol.iterator];if(!i)return s;var l,d,C=i.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=C.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(i=C.return)&&i.call(C)}finally{if(d)throw d.error}}return _},p=this&&this.__spreadArray||function(s,r,i){if(i||arguments.length===2)for(var l,d=0,C=r.length;d<C;d++)!l&&d in r||(l||(l=Array.prototype.slice.call(r,0,d)),l[d]=r[d]);return s.concat(l||Array.prototype.slice.call(r))};Object.defineProperty(A,"__esModule",{value:!0}),A.Event=A.EventListenerHandler=void 0;var u=h(9359),f=h(6583),c=h(4471),a=function(s){function r(){return s!==null&&s.apply(this,arguments)||this}return g(r,s),r}(h(2452).SmartListenerHandler);A.EventListenerHandler=a;var n=function(s){function r(){return s!==null&&s.apply(this,arguments)||this}return g(r,s),Object.defineProperty(r.prototype,"_pipe",{get:function(){var i;return this.__pipe=(i=this.__pipe)!==null&&i!==void 0?i:new c.ListenerPipe,this.__pipe},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"empty",{get:function(){return!this.__pipe||this._pipe.empty},enumerable:!1,configurable:!0}),r.prototype.emit=function(){for(var i,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];!this.isDestroyed()&&this.beforeCallback&&this.beforeCallback.apply(this,p([],w(l),!1)),!this.isDestroyed()&&(i=this._pipe).do.apply(i,p([],w(l),!1)),!this.isDestroyed()&&this.afterCallback&&this.afterCallback.apply(this,p([],w(l),!1))},r.prototype.on=function(i,l,d,C){d===void 0&&(d=!1);var _=d?this._pipe.unshift(i,l,!1):this._pipe.push(i,l,!1);return(C=C??new a)._reset(_,_._cid),C},r.prototype.disposableOn=function(i,l,d,C){var _=this;d===void 0&&(d=!1);var b=this.on(i,l,d,C);return function(){b.valid&&_.off(b)}},r.prototype.don=function(i,l,d,C){return d===void 0&&(d=!1),this.disposableOn(i,l,d,C)},r.prototype.disposableWeakOn=function(i,l,d,C){d===void 0&&(d=!1);var _=new u.Destroyable,b=function(){!_.isDestroyed()&&_.destroy()};return _.dispose(this.disposableOn(i,l,d,C)),_.dispose(this.toDestroyEvent.disposableOn(b)),b},r.prototype.dwon=function(i,l,d,C){return d===void 0&&(d=!1),this.disposableWeakOn(i,l,d,C)},r.prototype.once=function(i,l,d,C){d===void 0&&(d=!1);var _=d?this._pipe.unshift(i,l,!0):this._pipe.push(i,l,!0);return(C=C??new a)._reset(_,_._cid),C},r.prototype.disposableOnce=function(i,l,d,C){var _=this;d===void 0&&(d=!1);var b=this.once(i,l,d,C);return function(){return b.valid&&_.off(b)}},r.prototype.donce=function(i,l,d,C){var _=this;d===void 0&&(d=!1);var b=this.once(i,l,d,C);return function(){return b.valid&&_.off(b)}},r.prototype.off=function(i){if(!i.valid)throw new Error("handler is not valid!");this._pipe.remove(i._listenerHandler),i._reset()},r.prototype.reset=function(){this._pipe.removeAll()},r.prototype.destroyImp=function(){this.empty||((0,f.oneTimeWarning)("The event is destroying with listeners!"),this._pipe.removeAll())},r}(u.Destroyable);A.Event=n},9082:function(B,A,h){var m,g=this&&this.__extends||(m=function(r,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(l[C]=d[C])},m(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function l(){this.constructor=r}m(r,i),r.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),w=this&&this.__generator||function(r,i){var l,d,C,_,b={label:0,sent:function(){if(1&C[0])throw C[1];return C[1]},trys:[],ops:[]};return _={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function E(F){return function(S){return function(U){if(l)throw new TypeError("Generator is already executing.");for(;_&&(_=0,U[0]&&(b=0)),b;)try{if(l=1,d&&(C=2&U[0]?d.return:U[0]?d.throw||((C=d.return)&&C.call(d),0):d.next)&&!(C=C.call(d,U[1])).done)return C;switch(d=0,C&&(U=[2&U[0],C.value]),U[0]){case 0:case 1:C=U;break;case 4:return b.label++,{value:U[1],done:!1};case 5:b.label++,d=U[1],U=[0];continue;case 7:U=b.ops.pop(),b.trys.pop();continue;default:if(!((C=(C=b.trys).length>0&&C[C.length-1])||U[0]!==6&&U[0]!==2)){b=0;continue}if(U[0]===3&&(!C||U[1]>C[0]&&U[1]<C[3])){b.label=U[1];break}if(U[0]===6&&b.label<C[1]){b.label=C[1],C=U;break}if(C&&b.label<C[2]){b.label=C[2],b.ops.push(U);break}C[2]&&b.ops.pop(),b.trys.pop();continue}U=i.call(r,b)}catch(T){U=[6,T],d=0}finally{l=C=0}if(5&U[0])throw U[1];return{value:U[0]?U[1]:void 0,done:!0}}([F,S])}}},p=this&&this.__values||function(r){var i=typeof Symbol=="function"&&Symbol.iterator,l=i&&r[i],d=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&d>=r.length&&(r=void 0),{value:r&&r[d++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},u=this&&this.__read||function(r,i){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,C,_=l.call(r),b=[];try{for(;(i===void 0||i-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){C={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(C)throw C.error}}return b},f=this&&this.__spreadArray||function(r,i,l){if(l||arguments.length===2)for(var d,C=0,_=i.length;C<_;C++)!d&&C in i||(d||(d=Array.prototype.slice.call(i,0,C)),d[C]=i[C]);return r.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.TreeItem=void 0;var c=h(1662),a=h(8368),n=h(7720),s=function(r){function i(l,d,C){d===void 0&&(d=!1);var _=r.call(this)||this;return _._tree=l,_._hasChildren=d,_._parent=_.disposeVar((0,c.react)(void 0)),_._level=_.disposeVar((0,c.react)(0)),_._uiTreeObject=_.disposeVar(new n.UiTreeObject(_)),_._id=C??(0,c.createGuid)(),_._id!=="_ROOT"&&i.wm.has(_._id)&&console.warn("创建了id(".concat(_._id,")相同的树节点,会导致之前的树节点无法索引!")),i.wm.set(_._id,_),_.dispose(function(){_._id==="_ROOT"||i.wm.has(_._id)?i.wm.delete(_._id):console.warn("树节点(".concat(_._id,")不在wm树上!"))}),_.dispose(_._parent.changed.disposableOn(function(){_._updateLevel()})),_.dispose(_._level.changed.disposableOn(function(){var b,E;if(_.children)try{for(var F=p(_.children),S=F.next();!S.done;S=F.next())S.value._updateLevel()}catch(U){b={error:U}}finally{try{S&&!S.done&&(E=F.return)&&E.call(F)}finally{if(b)throw b.error}}})),i.allTreeItems.set(_._id,_),_.dispose(function(){i.allTreeItems.delete(_._id)}),_}return g(i,r),i.getFromId=function(l){return i.wm.get(l)},Object.defineProperty(i.prototype,"uiTreeObject",{get:function(){return this._uiTreeObject},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),i.prototype._updateLevel=function(){this.parent&&(this._level.value=this.parent.level+1)},Object.defineProperty(i.prototype,"parent",{get:function(){return this._parent.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"parentChanged",{get:function(){return this._parent.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"children",{get:function(){var l=this;if(this._hasChildren){if(!this._children){var d=this.disposeVar(new c.ObservableArray);this._children=d,this.dispose(d.toChangeEvent.disposableOn(function(b,E){var F,S,U,T;try{for(var Q=p(b),P=Q.next();!P.done;P=Q.next()){for(var I=P.value,M=I.start,K=I.deleteCount,W=I.items,L=M;L<M+K;++L)E.get(L)._parent.value=void 0;try{for(var O=(U=void 0,p(W)),H=O.next();!H.done;H=O.next()){var k=H.value;if(k.parent)throw console.error("请检查新增的treeItem是否正在使用!"),new Error("item.parent should not exist!");k._parent.value=l}}catch(G){U={error:G}}finally{try{H&&!H.done&&(T=O.return)&&T.call(O)}finally{if(U)throw U.error}}}}catch(G){F={error:G}}finally{try{P&&!P.done&&(S=Q.return)&&S.call(Q)}finally{if(F)throw F.error}}}));var C=new Set,_=new Set;this.dispose(d.toChangeEvent.disposableOn(function(b,E){var F,S,U,T,Q,P,I;if(l.tree){C.clear(),_.clear();try{for(var M=p(b),K=M.next();!K.done;K=M.next()){for(var W=K.value,L=W.start,O=W.deleteCount,H=W.items,k=L;k<L+O;++k)C.add(E.get(k));try{for(var G=(U=void 0,p(H)),D=G.next();!D.done;D=G.next()){var R=D.value;_.add(R)}}catch(Y){U={error:Y}}finally{try{D&&!D.done&&(T=G.return)&&T.call(G)}finally{if(U)throw U.error}}}}catch(Y){F={error:Y}}finally{try{K&&!K.done&&(S=M.return)&&S.call(M)}finally{if(F)throw F.error}}try{for(var N=p(C),X=N.next();!X.done;X=N.next())R=X.value,_.has(R)&&(C.delete(R),_.delete(R))}catch(Y){Q={error:Y}}finally{try{X&&!X.done&&(P=N.return)&&P.call(N)}finally{if(Q)throw Q.error}}(I=l.tree)===null||I===void 0||I.itemChildrenToChange.emit(l,b,C,_)}})),this.dispose(d.changedEvent.disposableOn(function(){var b;(b=l.tree)===null||b===void 0||b.itemChildrenChanged.emit(l)})),this.dispose(d.toChangeEvent.disposableOn(function(){for(var b,E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];return l._childrenToChangeEvent&&(b=l._childrenToChangeEvent).emit.apply(b,f([],u(E),!1))})),this.dispose(d.changedEvent.disposableOn(function(){for(var b,E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];return l._childrenChangedEvent&&(b=l._childrenChangedEvent).emit.apply(b,f([],u(E),!1))}))}return this._children}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"childrenResetedEvent",{get:function(){return this._childrenResetedEvent||(this._childrenResetedEvent=new c.Event),this._childrenResetedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"childrenToChangeEvent",{get:function(){return this._childrenToChangeEvent||(this._childrenToChangeEvent=new c.Event),this._childrenToChangeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"childrenChangedEvent",{get:function(){return this._childrenChangedEvent||(this._childrenChangedEvent=new c.Event),this._childrenChangedEvent},enumerable:!1,configurable:!0}),i.prototype.resetChildren=function(l){l===void 0&&(l=!1),this._children&&(this._children.length=0),this._hasChildren=l,this._childrenResetedEvent&&this._childrenResetedEvent.emit(l)},i.prototype.getDescendants=function(l){var d,C,_,b,E,F;return w(this,function(S){switch(S.label){case 0:C=[],_=[],(d=this).children&&d.children.length>0&&(!l||l(d))&&(C.push(0),_.push(d.children)),S.label=1;case 1:return C.length>0?(b=C[C.length-1],E=_[_.length-1],[4,F=E.get(b)]):[3,3];case 2:return S.sent(),b<E.length-1?++C[C.length-1]:(_.pop(),C.pop()),F.children&&F.children.length>0&&(!l||l(F))&&(C.push(0),_.push(F.children)),[3,1];case 3:return[2]}})},i.prototype.getAncestors=function(l){var d;return w(this,function(C){switch(C.label){case 0:d=this.parent,C.label=1;case 1:return d?[4,d]:[3,3];case 2:return C.sent(),l&&!l(d)?[3,3]:(d=d.parent,[3,1]);case 3:return[2]}})},i.prototype.isDescendantOf=function(l){var d,C;try{for(var _=p(this.getAncestors()),b=_.next();!b.done;b=_.next())if(b.value===l)return!0}catch(E){d={error:E}}finally{try{b&&!b.done&&(C=_.return)&&C.call(_)}finally{if(d)throw d.error}}return!1},i.prototype.isAncestorOf=function(l){return l.isDescendantOf(this)},Object.defineProperty(i.prototype,"level",{get:function(){return this._level.value},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"levelChanged",{get:function(){return this._level.changed},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tree",{get:function(){return this._tree},enumerable:!1,configurable:!0}),i.prototype.canMoveTo=function(l,d){return(0,a.canMoveToTreeItem)(this,l,d)},i.prototype.moveTo=function(l,d){(0,a.moveToTreeItem)(this,l,d)},i.prototype.detachFromParent=function(){if(this.parent&&this.parent.children){var l=this.parent.children.indexOf(this);this.parent.children.splice(l,1)}},i.prototype.insertNewTreeItem=function(l,d){if(d&&d.tree!==this.tree)return console.warn("newTreeItem.tree !== this.tree"),!1;if(this.children&&l.startsWith("Inner"))return d&&this.children.push(d),!0;if(l==="Inner")return!1;var C=this.parent;if(!C||!C.children)return!1;var _=C.children.indexOf(this);return l.endsWith("Before")?d&&C.children.splice(_,0,d):l.endsWith("After")&&d&&C.children.splice(_+1,0,d),!0},i.wm=new Map,i.allTreeItems=new Map,i}(c.Destroyable);A.TreeItem=s},9122:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.clamp=void 0,A.clamp=function(h,m,g){return m===void 0&&(m=0),g===void 0&&(g=1),h<m?m:h>g?g:h}},9131:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.loadJs=void 0;var h=[];function m(g,w,p){if(h.includes(g))return console.warn("_loadJs ".concat(g," has loaded before!")),void(w&&w());var u=document.getElementsByTagName("head")[0],f=document.createElement("script");f.setAttribute("type","text/javascript"),f.setAttribute("src",g),f.onload=f.onreadystatechange=function(){this.readyState&&this.readyState!=="complete"||(h.push(g),w&&w(),f.onload=f.onreadystatechange=null)},f.onerror=function(c,a,n,s,r){p(r)},u.appendChild(f)}A.loadJs=function(g,w){if(w===void 0&&(w=!0),w){var p=window.L;window.L&&(window.L=void 0);var u=window.define;return window.define&&(window.define=void 0),new Promise(function(f,c){m(g,f,c)}).then(function(){return window.define=u,window.L=p,Promise.resolve()})}return new Promise(function(f,c){m(g,f,c)})}},9181:function(B,A,h){var m,g=this&&this.__extends||(m=function(s,r){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(i[d]=l[d])},m(s,r)},function(s,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function i(){this.constructor=s}m(s,r),s.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}),w=this&&this.__read||function(s,r){var i=typeof Symbol=="function"&&s[Symbol.iterator];if(!i)return s;var l,d,C=i.call(s),_=[];try{for(;(r===void 0||r-- >0)&&!(l=C.next()).done;)_.push(l.value)}catch(b){d={error:b}}finally{try{l&&!l.done&&(i=C.return)&&i.call(C)}finally{if(d)throw d.error}}return _};Object.defineProperty(A,"__esModule",{value:!0}),A.CanvasPrimitivesContext=void 0;var p=h(1662),u=h(8106),f=h(7372),c=h(1023),a=function(s,r){return r.depth-s.depth},n=function(s){function r(){var i=s.call(this)||this;i._pois=[],i._size=[0,0],i._needRedraw=!1,i._needPickRedraw=!1,i._pickColorManager=new c.PickColorMananger;var l=document.createElement("canvas");l.style.width="100%",l.style.height="100%",i._canvasElement=l;var d=l.getContext("2d");if(d===null)throw new Error("cannot get context 2d!");return i._ctx=d,i._offscreenCanvasElement=document.createElement("canvas"),i._offscreenCtx=i._offscreenCanvasElement.getContext("2d"),i._offscreenCtx.imageSmoothingEnabled=!1,i._offscreenCanvasElement2=document.createElement("canvas"),i._offscreenCtx2=i._offscreenCanvasElement2.getContext("2d"),i._offscreenCtx2.imageSmoothingEnabled=!1,i.disposeVar((0,u.createAnimateFrameWithStartValues)(function(){var C=w(i._size,2),_=C[0],b=C[1],E=i._canvasElement,F=E.clientWidth,S=E.clientHeight;_===F&&b===S||(i._size[0]=F,i._size[1]=S,i._canvasElement.width=F,i._canvasElement.height=S,i._offscreenCanvasElement.width=F,i._offscreenCanvasElement.height=S,i._offscreenCanvasElement2.width=F,i._offscreenCanvasElement2.height=S,i._dirty()),i._needRedraw&&(i._needRedraw=!1,i._draw())})).start(),i}return g(r,s),Object.defineProperty(r.prototype,"element",{get:function(){return this._canvasElement},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"pois",{get:function(){return this._pois},enumerable:!1,configurable:!0}),r.prototype._dirty=function(){this._needRedraw=!0,this._needPickRedraw=!0},Object.defineProperty(r.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),r.prototype.addPoi=function(i){var l=this;if((0,p.getExtProp)(i,"listenHandler")===void 0)if(this._pois.indexOf(i)===-1){this._pois.push(i),this._dirty();var d=i._needRedrawEvent;if(d){var C=d.on(function(){l._needRedraw=!0});(0,p.setExtProp)(i,"needRedrawEventHandler",C)}var _=i._needPickRedrawEvent;if(_){var b=_.on(function(){l._needPickRedraw=!0});(0,p.setExtProp)(i,"needPickRedrawEventHandler",b)}}else console.error("同一个poi加了多次!");else console.error("可能有poi重复加载poiManager中!")},r.prototype.removePoi=function(i){var l=this._pois.indexOf(i);if(l!==-1){this._pois.splice(l,1),this._dirty();var d=i._needRedrawEvent;if(d){var C=(0,p.getExtProp)(i,"needRedrawEventHandler");C?d.off(C):console.error("poi没有listenHandler!")}var _=i._needPickRedrawEvent;if(_){var b=(0,p.getExtProp)(i,"needPickRedrawEventHandler");b?_.off(b):console.error("poi没有listenHandler!")}}else console.error("删除一个不存在的poi!")},r.prototype._draw=function(){var i=this;this._pois.sort(a);var l=w(this._size,2),d=l[0],C=l[1];this._ctx.clearRect(0,0,d,C),this._pois.forEach(function(_){return _.draw(i._ctx)})},r.prototype.pick=function(i,l,d,C){return this._needPickRedraw&&(this._needPickRedraw=!1,this._pickDraw()),this._getPickInfo(i,l,d,C)},r.prototype._pickDraw=function(){var i=this;this._pickColorManager.reset(),this._pois.sort(a);var l=w(this._size,2),d=l[0],C=l[1];this._offscreenCtx.clearRect(0,0,d,C),this._pois.forEach(function(_){_.drawForPick(i._offscreenCtx,function(b){var E=w(i._pickColorManager.createPickColor(_,b),3),F=E[0],S=E[1],U=E[2];return"rgb(".concat(F,", ").concat(S,", ").concat(U,")")})})},r.prototype._getPickInfo=function(i,l,d,C){for(var _=this._offscreenCtx.getImageData(i,l,d,C),b=[],E=_.data.length/4,F=0;F<E;++F){var S=_.data[4*F+0],U=_.data[4*F+1],T=_.data[4*F+2];if(_.data[4*F+3]===255){var Q=this._pickColorManager.getPickInfoFromColor(S,U,T);if(Q&&Q.poi&&!b.includes(Q)){var P=!0,I=w(this._size,2),M=I[0],K=I[1];this._offscreenCtx2.clearRect(0,0,M,K),Q.poi.drawForPick(this._offscreenCtx2,function(k){return"rgb(255, 255, 255)"});var W=this._offscreenCtx2.getImageData(i,l,d,C),L=W.data[4*F+0],O=W.data[4*F+1],H=W.data[4*F+2];W.data[4*F+3],L===255&&O===255&&H===255||(P=!1),P&&b.push(Q)}}}return b},r}(f.Destroyable);A.CanvasPrimitivesContext=n},9355:function(B,A,h){var m,g=this&&this.__extends||(m=function(a,n){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,r){s.__proto__=r}||function(s,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=r[i])},m(a,n)},function(a,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=a}m(a,n),a.prototype=n===null?Object.create(n):(s.prototype=n.prototype,new s)}),w=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},p=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.ObjResetting=A.ObjResettingWithEvent=void 0;var u=h(1662),f=function(a){function n(s,r,i,l){i===void 0&&(i=!0);var d=a.call(this)||this;d._resetEvent=s,d._createFunc=r,d._obj=d.disposeVar((0,u.react)(void 0));var C=d._resetEvent,_=d._createFunc,b=function(){d._obj.value&&(d._obj.value.destroy(),d._obj.value=void 0)};return d.dispose(b),i&&(d._obj.value=l?_.apply(void 0,p([],w(l),!1)):_()),d.dispose(C.disposableOn(function(){for(var E=[],F=0;F<arguments.length;F++)E[F]=arguments[F];b(),d._obj.value=_.apply(void 0,p([],w(E),!1))})),d}return g(n,a),Object.defineProperty(n.prototype,"obj",{get:function(){return this._obj.value},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"objChanged",{get:function(){return this._obj.changed},enumerable:!1,configurable:!0}),n}(u.Destroyable);A.ObjResettingWithEvent=f;var c=function(a){function n(s,r,i){r===void 0&&(r=!0);var l=a.call(this)||this;return l._createFunc=s,l._execOnInit=r,l._initParams=i,l._event=l.disposeVar(new u.Event),l._objResettingWithEvent=l.disposeVar(new f(l._event,l._createFunc,l._execOnInit,l._initParams)),l}return g(n,a),Object.defineProperty(n.prototype,"obj",{get:function(){return this._objResettingWithEvent.obj},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"objChanged",{get:function(){return this._objResettingWithEvent.objChanged},enumerable:!1,configurable:!0}),n.prototype.reset=function(){for(var s,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];(s=this._event).emit.apply(s,p([],w(r),!1))},n}(u.Destroyable);A.ObjResetting=c},9359:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Destroyable=A.destroyObject=void 0;var m=h(2082);Object.defineProperty(A,"destroyObject",{enumerable:!0,get:function(){return m.destroyObject}});var g=function(){function p(){this._memId=++p._lastMemId}return Object.defineProperty(p.prototype,"__v_skip",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"memId",{get:function(){return this._memId},enumerable:!1,configurable:!0}),Object.defineProperty(p.prototype,"disposers",{get:function(){return this._disposers||(this._disposers=[]),this._disposers},enumerable:!1,configurable:!0}),p.prototype.dispose=function(u){return this.disposers.push(u),u},p.prototype.d=function(u){return this.dispose(u)},p.prototype.disposeVar=function(u){return this.disposers.push(function(){return u.destroy()}),u},p.prototype.dv=function(u){return this.disposeVar(u)},p.prototype.tryDisposeVar=function(u){return this.disposers.push(function(){return u.tryDestroy()}),u},p.prototype.tdv=function(u){return this.tryDisposeVar(u)},p.prototype.autoDispose=function(u){return typeof u=="function"?this.dispose(u):this.disposeVar(u)},p.prototype.ad=function(u){return typeof u=="function"?this.dispose(u):this.disposeVar(u)},p.prototype.isDestroyed=function(){return!1},p.prototype.destroyImp=function(){},p.prototype.destroy=function(){if(this._toDestroyEvent&&this._toDestroyEvent.emit(),this.destroyImp(),this._disposers)try{for(var u=this._disposers,f=u.length-1;f>=0;--f)u[f]();u.length=0,this._disposers=void 0}catch(c){console.error("destroy get error! ".concat(c))}return(0,m.destroyObject)(this)},p.prototype.tryDestory=function(){if(!this.isDestroyed())return this.destroy()},p._lastMemId=-1,p}();A.Destroyable=g;var w=h(4899);Object.defineProperties(g.prototype,{toDestroyEvent:{get:function(){return this._toDestroyEvent===void 0&&(this._toDestroyEvent=this.disposeVar(new w.Event)),this._toDestroyEvent}}})},9367:function(B,A,h){var m=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,n=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=n.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=n.return)&&f.call(n)}finally{if(a)throw a.error}}return s};Object.defineProperty(A,"__esModule",{value:!0}),A.createEnvEvalStrReact=void 0;var g=h(1662),w=h(2220);A.createEnvEvalStrReact=function(p,u){var f=m((0,g.getReactFuncs)(p),3),c=f[0],a=(f[1],f[2]),n=(0,g.react)(void 0),s=function(){var r,i=(r=c())!==null&&r!==void 0?r:u;n.value=i&&w.SceneObject.context.getStrFromEnv(i)};return s(),a&&n.dispose(a.disposableOn(s)),n.dispose(w.SceneObject.context.environmentVariablesChanged.disposableOn(s)),n}},9369:function(B,A,h){var m,g=this&&this.__extends||(m=function(f,c){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])},m(f,c)},function(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function a(){this.constructor=f}m(f,c),f.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)});Object.defineProperty(A,"__esModule",{value:!0}),A.DivPointerClick=void 0;var w=h(7372),p=h(5010),u=function(f){function c(a,n){var s=f.call(this)||this;s._div=a,s._pointerClick=s.disposeVar(new p.PointerClick);var r=s,i=r.div,l=r.pointerClick,d=function(E){return l.pointerDown(E)},C=function(E){return l.pointerMove(E)},_=function(E){return l.pointerOut(E)},b=function(E){return l.pointerUp(E)};return i.addEventListener("pointerdown",d,n),i.addEventListener("pointermove",C,n),i.addEventListener("pointerout",_,n),i.addEventListener("pointerup",b,n),s.dispose(function(){i.removeEventListener("pointerdown",d,n),i.removeEventListener("pointermove",C,n),i.removeEventListener("pointerout",_,n),i.removeEventListener("pointerup",b,n)}),s}return g(c,f),Object.defineProperty(c.prototype,"div",{get:function(){return this._div},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"pointerClick",{get:function(){return this._pointerClick},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"clickEvent",{get:function(){return this.pointerClick.clickEvent},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"dbclickEvent",{get:function(){return this.pointerClick.dbclickEvent},enumerable:!1,configurable:!0}),c}(w.Destroyable);A.DivPointerClick=u},9374:function(B,A,h){var m=this&&this.__read||function(p,u){var f=typeof Symbol=="function"&&p[Symbol.iterator];if(!f)return p;var c,a,n=f.call(p),s=[];try{for(;(u===void 0||u-- >0)&&!(c=n.next()).done;)s.push(c.value)}catch(r){a={error:r}}finally{try{c&&!c.done&&(f=n.return)&&f.call(n)}finally{if(a)throw a.error}}return s},g=this&&this.__spreadArray||function(p,u,f){if(f||arguments.length===2)for(var c,a=0,n=u.length;a<n;a++)!c&&a in u||(c||(c=Array.prototype.slice.call(u,0,a)),c[a]=u[a]);return p.concat(c||Array.prototype.slice.call(u))};Object.defineProperty(A,"__esModule",{value:!0}),A.getPromiseFromProcessing=void 0;var w=h(7372);A.getPromiseFromProcessing=function(p){for(var u=[],f=1;f<arguments.length;f++)u[f-1]=arguments[f];var c=-1;return[function(a){return c===p.runningId&&p.isRunning&&p.cancel(a)},new Promise(function(a,n){p.isRunning&&p.cancel(),p.reset();var s=new w.Destroyable;s.dispose(p.completeEvent.disposableOn(function(r){a(r),s.isDestroyed()?console.error("disposer is destroyed! ".concat(s)):s.destroy()})),s.dispose(p.errorEvent.disposableOn(function(r){n(r),s.isDestroyed()?console.error("disposer is destroyed! ".concat(s)):s.destroy()})),p.start.apply(p,g([],m(u),!1)),c=p.runningId})]}},9409:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.czmPixelFormats=void 0,A.czmPixelFormats=["DEPTH_COMPONENT","DEPTH_STENCIL","ALPHA","RED","RG","RGB","RGBA","LUMINANCE","LUMINANCE_ALPHA","RGB_DXT1","RGBA_DXT1","RGBA_DXT3","RGBA_DXT5","RGB_PVRTC_4BPPV1","RGB_PVRTC_2BPPV1","RGBA_PVRTC_4BPPV1","RGBA_PVRTC_2BPPV1","RGBA_ASTC","RGB_ETC1","RGB8_ETC2","RGBA8_ETC2_EAC","RGBA_BC7"]},9412:function(B,A,h){var m,g=this&&this.__extends||(m=function(r,i){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,d){l.__proto__=d}||function(l,d){for(var C in d)Object.prototype.hasOwnProperty.call(d,C)&&(l[C]=d[C])},m(r,i)},function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function l(){this.constructor=r}m(r,i),r.prototype=i===null?Object.create(i):(l.prototype=i.prototype,new l)}),w=this&&this.__values||function(r){var i=typeof Symbol=="function"&&Symbol.iterator,l=i&&r[i],d=0;if(l)return l.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&d>=r.length&&(r=void 0),{value:r&&r[d++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},p=this&&this.__read||function(r,i){var l=typeof Symbol=="function"&&r[Symbol.iterator];if(!l)return r;var d,C,_=l.call(r),b=[];try{for(;(i===void 0||i-- >0)&&!(d=_.next()).done;)b.push(d.value)}catch(E){C={error:E}}finally{try{d&&!d.done&&(l=_.return)&&l.call(_)}finally{if(C)throw C.error}}return b},u=this&&this.__spreadArray||function(r,i,l){if(l||arguments.length===2)for(var d,C=0,_=i.length;C<_;C++)!d&&C in i||(d||(d=Array.prototype.slice.call(i,0,C)),d[C]=i[C]);return r.concat(d||Array.prototype.slice.call(i))};Object.defineProperty(A,"__esModule",{value:!0}),A.SmartWorker=A.findTransferableObjectsFromArgs=void 0;var f=h(1662),c=h(7372);function a(r,i){var l,d,C,_,b,E,F,S;if(!(typeof r=="number"||typeof r=="string"||typeof r=="boolean"||r===void 0)){if(!(r instanceof String||r instanceof Boolean||r instanceof Date||r instanceof RegExp||r instanceof Blob||r instanceof File||r instanceof FileList)){if(r instanceof ArrayBuffer)i.indexOf(r)===-1&&i.push(r);else if(ArrayBuffer.isView(r))i.indexOf(r.buffer)===-1&&i.push(r.buffer);else if(r instanceof ImageBitmap)i.indexOf(r)===-1&&i.push(r);else if(!(r instanceof ImageData))if(r instanceof Map)try{for(var U=w(r),T=U.next();!T.done;T=U.next())a(T.value,i)}catch(O){l={error:O}}finally{try{T&&!T.done&&(d=U.return)&&d.call(U)}finally{if(l)throw l.error}}else if(r instanceof Set)try{for(var Q=w(r),P=Q.next();!P.done;P=Q.next())a(P.value,i)}catch(O){C={error:O}}finally{try{P&&!P.done&&(_=Q.return)&&_.call(Q)}finally{if(C)throw C.error}}else if(Array.isArray(r))try{for(var I=w(r),M=I.next();!M.done;M=I.next())a(M.value,i)}catch(O){b={error:O}}finally{try{M&&!M.done&&(E=I.return)&&E.call(I)}finally{if(b)throw b.error}}else{if(!(r instanceof Object))throw console.error("有不可使用的传递的类型!"),new Error("有不可使用的传递的类型!");try{for(var K=w(Object.entries(r)),W=K.next();!W.done;W=K.next()){var L=p(W.value,2);L[0],a(L[1],i)}}catch(O){F={error:O}}finally{try{W&&!W.done&&(S=K.return)&&S.call(K)}finally{if(F)throw F.error}}}}}}function n(){for(var r,i,l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];try{var C=[];try{for(var _=w(l),b=_.next();!b.done;b=_.next())a(b.value,C)}catch(E){r={error:E}}finally{try{b&&!b.done&&(i=_.return)&&i.call(_)}finally{if(r)throw r.error}}return C}catch{return}}A.findTransferableObjectsFromArgs=n;var s=function(r){function i(){var l=r.call(this)||this;l._resultEvent=new f.Event,l._lastExecId=-1;var d=URL.createObjectURL(new Blob([`
|
|
23
|
+
|
|
24
|
+
function _findTransferableObjectsFromArg(arg, transferableObjects) {
|
|
25
|
+
if (typeof arg === 'number' || typeof arg === 'string' || typeof arg === 'boolean' || typeof arg === 'undefined') {
|
|
26
|
+
}
|
|
27
|
+
else if (arg instanceof String ||
|
|
28
|
+
arg instanceof Boolean ||
|
|
29
|
+
arg instanceof Date ||
|
|
30
|
+
arg instanceof RegExp ||
|
|
31
|
+
arg instanceof Blob ||
|
|
32
|
+
arg instanceof File ||
|
|
33
|
+
arg instanceof FileList) {
|
|
34
|
+
}
|
|
35
|
+
else if (arg instanceof ArrayBuffer) {
|
|
36
|
+
if (-1 === transferableObjects.indexOf(arg)) {
|
|
37
|
+
transferableObjects.push(arg);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
else if (ArrayBuffer.isView(arg)) {
|
|
41
|
+
if (-1 === transferableObjects.indexOf(arg.buffer)) {
|
|
42
|
+
transferableObjects.push(arg.buffer);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else if (arg instanceof ImageBitmap) {
|
|
46
|
+
if (-1 === transferableObjects.indexOf(arg)) {
|
|
47
|
+
transferableObjects.push(arg);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
else if (arg instanceof ImageData) {
|
|
51
|
+
}
|
|
52
|
+
else if (arg instanceof Map) {
|
|
53
|
+
for (let a of arg) {
|
|
54
|
+
_findTransferableObjectsFromArg(a, transferableObjects);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
else if (arg instanceof Set) {
|
|
58
|
+
for (let a of arg) {
|
|
59
|
+
_findTransferableObjectsFromArg(a, transferableObjects);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
else if (Array.isArray(arg)) {
|
|
63
|
+
for (let a of arg) {
|
|
64
|
+
_findTransferableObjectsFromArg(a, transferableObjects);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else if (arg instanceof Object) {
|
|
68
|
+
for (let [k, v] of Object.entries(arg)) {
|
|
69
|
+
_findTransferableObjectsFromArg(v, transferableObjects);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
console.error(\`有不可使用的传递的类型!\`);
|
|
74
|
+
throw new Error(\`有不可使用的传递的类型!\`);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function findTransferableObjectsFromArgs(...args) {
|
|
79
|
+
try {
|
|
80
|
+
const transferableObjects = [];
|
|
81
|
+
for (let arg of args) {
|
|
82
|
+
_findTransferableObjectsFromArg(arg, transferableObjects);
|
|
83
|
+
}
|
|
84
|
+
return transferableObjects;
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function progressFunc(execId, value) {
|
|
92
|
+
// @ts-ignore
|
|
93
|
+
const workerGlobal = globalThis;
|
|
94
|
+
const transferableObjects = findTransferableObjectsFromArgs(value);
|
|
95
|
+
const finalResult = {
|
|
96
|
+
type: 'function_progress',
|
|
97
|
+
execId,
|
|
98
|
+
progress: value,
|
|
99
|
+
};
|
|
100
|
+
if (transferableObjects) {
|
|
101
|
+
workerGlobal.postMessage(finalResult, transferableObjects);
|
|
102
|
+
}
|
|
103
|
+
else {
|
|
104
|
+
workerGlobal.postMessage(finalResult);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
onmessage = function onmessageFunc(messageEvent) {
|
|
109
|
+
// DedicatedWorkerGlobalScope
|
|
110
|
+
// @ts-ignore
|
|
111
|
+
const workerGlobal = globalThis;
|
|
112
|
+
const { execId, type, name, args } = messageEvent.data;
|
|
113
|
+
if (type === 'function' || type === 'progressFunc') {
|
|
114
|
+
try {
|
|
115
|
+
// @ts-ignore
|
|
116
|
+
const func = workerGlobal[name];
|
|
117
|
+
if (typeof func !== 'function') {
|
|
118
|
+
console.error(\`typeof func !== 'function'\`);
|
|
119
|
+
throw new Error(\`typeof func !== 'function'\`);
|
|
120
|
+
}
|
|
121
|
+
let resultOrResultPromise;
|
|
122
|
+
if (type === 'progressFunc') {
|
|
123
|
+
// @ts-ignore
|
|
124
|
+
workerGlobal._cancelFuncsMap = workerGlobal._cancelFuncsMap || new Map();
|
|
125
|
+
// @ts-ignore
|
|
126
|
+
const cancelFuncsMap = workerGlobal._cancelFuncsMap;
|
|
127
|
+
const localProgressFunc = (value) => {
|
|
128
|
+
progressFunc(execId, value);
|
|
129
|
+
};
|
|
130
|
+
let resolve_;
|
|
131
|
+
let reject_;
|
|
132
|
+
resultOrResultPromise = new Promise((resolve, reject) => {
|
|
133
|
+
resolve_ = resolve;
|
|
134
|
+
reject_ = reject;
|
|
135
|
+
});
|
|
136
|
+
let finished = false;
|
|
137
|
+
const completeFunc = (value) => {
|
|
138
|
+
finished = true;
|
|
139
|
+
if (cancelFuncsMap.has(execId)) {
|
|
140
|
+
cancelFuncsMap.delete(execId);
|
|
141
|
+
}
|
|
142
|
+
resolve_(value);
|
|
143
|
+
};
|
|
144
|
+
const errorFunc = (error) => {
|
|
145
|
+
finished = true;
|
|
146
|
+
if (cancelFuncsMap.has(execId)) {
|
|
147
|
+
cancelFuncsMap.delete(execId);
|
|
148
|
+
}
|
|
149
|
+
reject_(error);
|
|
150
|
+
};
|
|
151
|
+
const cancelFunc = func(localProgressFunc, completeFunc, errorFunc, ...args);
|
|
152
|
+
if (typeof cancelFunc === 'function') {
|
|
153
|
+
if (!finished) {
|
|
154
|
+
cancelFuncsMap.set(execId, cancelFunc);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
console.warn(\`typeof cancelFunc !== 'function'\`);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
else if (type === 'function') {
|
|
162
|
+
resultOrResultPromise = func(...args);
|
|
163
|
+
}
|
|
164
|
+
if (resultOrResultPromise instanceof Promise) {
|
|
165
|
+
resultOrResultPromise.then(result => {
|
|
166
|
+
const transferableObjects = findTransferableObjectsFromArgs(result);
|
|
167
|
+
const finalResult = {
|
|
168
|
+
type: 'function_result',
|
|
169
|
+
execId,
|
|
170
|
+
result,
|
|
171
|
+
};
|
|
172
|
+
transferableObjects && workerGlobal.postMessage(finalResult, transferableObjects) || workerGlobal.postMessage(finalResult);
|
|
173
|
+
}).catch(error => {
|
|
174
|
+
const finalResult = {
|
|
175
|
+
type: 'function_result',
|
|
176
|
+
execId,
|
|
177
|
+
error,
|
|
178
|
+
};
|
|
179
|
+
workerGlobal.postMessage(finalResult);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
else {
|
|
183
|
+
const result = resultOrResultPromise;
|
|
184
|
+
const finalResult = {
|
|
185
|
+
type: 'function_result',
|
|
186
|
+
execId,
|
|
187
|
+
result,
|
|
188
|
+
};
|
|
189
|
+
const transferableObjects = findTransferableObjectsFromArgs(result);
|
|
190
|
+
transferableObjects && workerGlobal.postMessage(finalResult, transferableObjects) || workerGlobal.postMessage(finalResult);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
catch (error) {
|
|
194
|
+
const finalResult = {
|
|
195
|
+
type: 'function_result',
|
|
196
|
+
execId,
|
|
197
|
+
error,
|
|
198
|
+
};
|
|
199
|
+
workerGlobal.postMessage(finalResult);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
else if (type === 'progressFunc_cancel') {
|
|
203
|
+
// @ts-ignore
|
|
204
|
+
workerGlobal._cancelFuncsMap = workerGlobal._cancelFuncsMap || new Map();
|
|
205
|
+
// @ts-ignore
|
|
206
|
+
const cancelFuncsMap = workerGlobal._cancelFuncsMap;
|
|
207
|
+
// const execId = args[0];
|
|
208
|
+
if (typeof execId !== 'number') {
|
|
209
|
+
console.error(\`typeof execId !== 'number'\`);
|
|
210
|
+
}
|
|
211
|
+
else {
|
|
212
|
+
const cancelFunc = cancelFuncsMap.get(execId);
|
|
213
|
+
if (cancelFunc) {
|
|
214
|
+
cancelFunc(\`progressFunc cancel execId: \${execId}\`);
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
// 找不到的原因可能是:
|
|
218
|
+
// 1 进度函数的返回值不对,不是一个取消函数!
|
|
219
|
+
// 2 进度函数已经被取消,再次执行取消时,就会警告!
|
|
220
|
+
console.warn(\`cancelFuncsMap cannot find execId: \${execId}\`);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
else {
|
|
225
|
+
console.error('未知type!');
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
`]));return l.dispose(function(){return URL.revokeObjectURL(d)}),l._worker=new Worker(d),l.dispose(function(){return l._worker.terminate()}),l._worker.onmessage=function(C){l._resultEvent.emit(C)},l}return g(i,r),i.prototype.execWorkerFunc=function(l){for(var d=[],C=1;C<arguments.length;C++)d[C-1]=arguments[C];var _=n(d);if(_)return this.execWorkerFuncWithTransferableObjects.apply(this,u([l,_],p(d),!1));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},i.prototype.execWorkerFuncWithTransferableObjects=function(l,d){var C=this;d===void 0&&(d=[]);for(var _=[],b=2;b<arguments.length;b++)_[b-2]=arguments[b];if(d)return new Promise(function(E,F){C._execWorkerFuncWithTransferableObjects.apply(C,u([l,E,F,d],p(_),!1))});throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},i.prototype._execWorkerFuncWithTransferableObjects=function(l,d,C,_){_===void 0&&(_=[]);for(var b=[],E=4;E<arguments.length;E++)b[E-4]=arguments[E];var F=++this._lastExecId,S={execId:F,type:"function",name:l,args:b};this._worker.postMessage(S,_);var U=this._resultEvent.disposableOn(function(T){var Q=T.data;Q.execId===F&&(Q.type==="function_result"?(U(),"error"in Q?C(Q.error):d(Q.result)):Q.type==="function_progress"&&console.error("messageData.type === 'function_progress'"))})},i.prototype.execWorkerProgressFunc=function(l,d,C,_){for(var b=[],E=4;E<arguments.length;E++)b[E-4]=arguments[E];var F=n(b);if(F)return this.execWorkerProgressFuncWithTransferableObjects.apply(this,u([l,d,C,_,F],p(b),!1));throw console.error("存在无法传递的数据,请检查参数!"),new Error("存在无法传递的数据,请检查参数!")},i.prototype.execWorkerProgressFuncWithTransferableObjects=function(l,d,C,_,b){b===void 0&&(b=[]);for(var E=[],F=5;F<arguments.length;F++)E[F-5]=arguments[F];return this._execWorkerProgressFuncWithTransferableObjects.apply(this,u([l,d,C,_,b],p(E),!1))},i.prototype._execWorkerProgressFuncWithTransferableObjects=function(l,d,C,_,b){var E=this;b===void 0&&(b=[]);for(var F=[],S=5;S<arguments.length;S++)F[S-5]=arguments[S];var U=++this._lastExecId,T={execId:U,type:"progressFunc",name:l,args:F};this._worker.postMessage(T,b);var Q=this._resultEvent.disposableOn(function(P){var I=P.data;I.execId===U&&(I.type==="function_result"?(Q&&(Q(),Q=void 0),"error"in I?_(I.error):C(I.result)):I.type==="function_progress"&&d&&d(I.progress))});return function(){Q&&(Q(),Q=void 0),E._worker.postMessage({execId:U,type:"progressFunc_cancel",name:"funcName",args:[]})}},i.prototype.eval=function(l){return this.execWorkerFuncWithTransferableObjects("eval",[],l)},i.prototype.importScripts=function(l){return this.execWorkerFuncWithTransferableObjects("importScripts",[],l)},i.prototype.createGlobalFunc=function(l,d){return this.execWorkerFuncWithTransferableObjects("eval",[],"globalThis['".concat(d??l.name,"'] = ").concat(l.toString(),";undefined;"))},i}(c.Destroyable);A.SmartWorker=s},9486:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.saveOnBrowser=void 0,A.saveOnBrowser=function(h,m,g){g===void 0&&(m.endsWith(".gltf")?g="model/gltf+json":m.endsWith(".bin")?g="application/octet-stream":m.endsWith(".glb")?g="model/gltf-binary":m.endsWith(".jpg")||m.endsWith(".jpeg")?g="image/jpeg":m.endsWith(".png")?g="image/png":m.endsWith(".glsl")?g="text/plain":m.endsWith(".json")?g="application/json":m.endsWith(".b3dm")||m.endsWith(".i3dm")?g="application/octet-stream":console.warn("save ".concat(m,": MimeType无法确定!")));var w=new Blob([h],{type:g||""}),p=URL.createObjectURL(w),u=document.createElement("a"),f=new MouseEvent("click");u.download=m,u.href=p,u.dispatchEvent(f),URL.revokeObjectURL(p)}},9528:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.readFileFromBrowser=void 0,A.readFileFromBrowser=function(){return new Promise(function(h,m){var g=document.createElement("input");g.type="file",g.style.display="none";var w=new MouseEvent("click",{bubbles:!1,cancelable:!0,view:window});g.dispatchEvent(w),g.addEventListener("change",function(p){var u=g.files;u&&u.length>0?u[0].text().then(function(f){h(f)}):m()})})}},9549:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.Quaternion=void 0;var m=h(2731),g=h(9898),w=h(5985),p=h(4915),u=h(8089);(function(f){var c=(0,m.createNumbers)(3);function a(E,F,S){var U=F/2,T=Math.sin(U);g.Vector.normalize(E,c);var Q=c[0]*T,P=c[1]*T,I=c[2]*T,M=Math.cos(U);return S=S||(0,m.createNumbers)(4),g.Vector.clone([Q,P,I,M],S),S}f.fromAxisAngle=a;var n=(0,m.createNumbers)(3,1,2,0),s=(0,m.createNumbers)(3);function r(E,F){var S,U,T,Q,P,I=E[p.Matrix3.COLUMN0ROW0],M=E[p.Matrix3.COLUMN1ROW1],K=E[p.Matrix3.COLUMN2ROW2],W=I+M+K;if(W>0)P=.5*(S=Math.sqrt(W+1)),S=.5/S,U=(E[p.Matrix3.COLUMN1ROW2]-E[p.Matrix3.COLUMN2ROW1])*S,T=(E[p.Matrix3.COLUMN2ROW0]-E[p.Matrix3.COLUMN0ROW2])*S,Q=(E[p.Matrix3.COLUMN0ROW1]-E[p.Matrix3.COLUMN1ROW0])*S;else{var L=n,O=0;M>I&&(O=1),K>I&&K>M&&(O=2);var H=L[O],k=L[H];S=Math.sqrt(E[p.Matrix3.getElementIndex(O,O)]-E[p.Matrix3.getElementIndex(H,H)]-E[p.Matrix3.getElementIndex(k,k)]+1);var G=s;G[O]=.5*S,S=.5/S,P=(E[p.Matrix3.getElementIndex(k,H)]-E[p.Matrix3.getElementIndex(H,k)])*S,G[H]=(E[p.Matrix3.getElementIndex(H,O)]+E[p.Matrix3.getElementIndex(O,H)])*S,G[k]=(E[p.Matrix3.getElementIndex(k,O)]+E[p.Matrix3.getElementIndex(O,k)])*S,U=-G[0],T=-G[1],Q=-G[2]}return F?(F[0]=U,F[1]=T,F[2]=Q,F[3]=P,F):(0,m.createNumbers)(4,U,T,Q,P)}f.fromRotationMatrix3=r;var i=(0,m.createNumbers)(9);f.fromRotationMatrix4=function(E,F){return r(u.Matrix4.getMatrix3(E,i),F)},f.multiply=function(E,F,S){var U=E[0],T=E[1],Q=E[2],P=E[3],I=F[0],M=F[1],K=F[2],W=F[3],L=P*I+U*W+T*K-Q*M,O=P*M-U*K+T*W+Q*I,H=P*K+U*M-T*I+Q*W,k=P*W-U*I-T*M-Q*K;return g.Vector.set(S,L,O,H,k)};var l=(0,m.createNumbers)(3);f.rotationTo=function(E,F,S){var U=g.Vector.dot(E,F);return U<-.999999?(w.Vector3.cross(w.Vector3.UNIT_X,E,l),g.Vector.magnitudeSquared(l)<.001&&w.Vector3.cross(w.Vector3.UNIT_Y,E,l),g.Vector.normalize(l,l),a(l,Math.PI,S)):U>.999999?g.Vector.set(S,0,0,0,1):(w.Vector3.cross(E,F,l),S=g.Vector.set(S,l[0],l[1],l[2],1+U),g.Vector.normalize(S,S))};var d=(0,m.createNumbers)(4);f.lerp=function(E,F,S,U){return g.Vector.multiplyByScalar(F,S,d),U=g.Vector.multiplyByScalar(E,1-S,U),g.Vector.add(d,U,U)};var C=(0,m.createNumbers)(4),_=(0,m.createNumbers)(4),b=(0,m.createNumbers)(4);f.slerp=function(E,F,S,U){var T=g.Vector.dot(E,F),Q=F;if(T<0&&(T=-T,Q=g.Vector.negate(F,C)),1-T<1e-6)return g.Vector.lerp(E,Q,S,U);var P=Math.acos(T);return g.Vector.multiplyByScalar(E,Math.sin((1-S)*P),_),g.Vector.multiplyByScalar(Q,Math.sin(S*P),b),U=g.Vector.add(_,b,U),g.Vector.multiplyByScalar(U,1/Math.sin(P),U)}})(A.Quaternion||(A.Quaternion={}))},9597:function(B,A,h){var m,g=this&&this.__extends||(m=function(f,c){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])},m(f,c)},function(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function a(){this.constructor=f}m(f,c),f.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)});Object.defineProperty(A,"__esModule",{value:!0}),A.DomElementEvent=void 0;var w=h(7372),p=-1,u=function(f){function c(a,n,s,r){var i=f.call(this)||this;i._domElement=a,i._type=n,i.callback=r;var l=function(d){return d.__xbsj_listenerNo__=++p,d.__xbsj_listenerTime__=Date.now(),d.__xbsj_lastCurrentTarget__=d.currentTarget,i.emit(d),i.callback&&i.callback(d)};return i._domElement.addEventListener(i._type,l,s),i.dispose(function(){return i._domElement.removeEventListener(i._type,l,s)}),i}return g(c,f),c.getLastLisenNo=function(){return p},c.getCurrentTarget=function(a){return a.__xbsj_lastCurrentTarget__},c.getListenerNo=function(a){return a.__xbsj_listenerNo__},c.getListenerTime=function(a){return a.__xbsj_listenerTime__},c.on=function(a,n){var s=c.getLastLisenNo();return a.disposableOn(function(r){var i=c.getListenerNo(r);(i===void 0||i>s)&&n(r)})},Object.defineProperty(c.prototype,"element",{get:function(){return this._domElement},enumerable:!1,configurable:!0}),c.create=function(a,n,s){return new c(a,n,s)},c}(w.Event);A.DomElementEvent=u},9631:function(B,A){var h=this&&this.__awaiter||function(g,w,p,u){return new(p||(p=Promise))(function(f,c){function a(r){try{s(u.next(r))}catch(i){c(i)}}function n(r){try{s(u.throw(r))}catch(i){c(i)}}function s(r){var i;r.done?f(r.value):(i=r.value,i instanceof p?i:new p(function(l){l(i)})).then(a,n)}s((u=u.apply(g,w||[])).next())})},m=this&&this.__generator||function(g,w){var p,u,f,c,a={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return c={next:n(0),throw:n(1),return:n(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function n(s){return function(r){return function(i){if(p)throw new TypeError("Generator is already executing.");for(;c&&(c=0,i[0]&&(a=0)),a;)try{if(p=1,u&&(f=2&i[0]?u.return:i[0]?u.throw||((f=u.return)&&f.call(u),0):u.next)&&!(f=f.call(u,i[1])).done)return f;switch(u=0,f&&(i=[2&i[0],f.value]),i[0]){case 0:case 1:f=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,u=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!((f=(f=a.trys).length>0&&f[f.length-1])||i[0]!==6&&i[0]!==2)){a=0;continue}if(i[0]===3&&(!f||i[1]>f[0]&&i[1]<f[3])){a.label=i[1];break}if(i[0]===6&&a.label<f[1]){a.label=f[1],f=i;break}if(f&&a.label<f[2]){a.label=f[2],a.ops.push(i);break}f[2]&&a.ops.pop(),a.trys.pop();continue}i=w.call(g,a)}catch(l){i=[6,l],u=0}finally{p=f=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([s,r])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.fetchArrayBuffer=void 0,A.fetchArrayBuffer=function(g,w){return w===void 0&&(w=fetch),h(this,void 0,void 0,function(){var p;return m(this,function(u){switch(u.label){case 0:return[4,w(g)];case 1:return(p=u.sent()).ok?[4,p.arrayBuffer()]:[2,void 0];case 2:return[2,u.sent()]}})})}},9651:function(B,A,h){var m=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var n,s,r=a.call(f),i=[];try{for(;(c===void 0||c-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i};Object.defineProperty(A,"__esModule",{value:!0}),A.getEventFromPromise=A.getPromiseFromEvent=A.createCancelablePromise=A.pairToPromise=A.cancelPromise=A.isPromiseCancelable=A.getPromiseCancel=A.setPromiseCancel=void 0;var g=h(1662),w=h(7372);function p(f,c){(0,g.getExtProp)(f,"_promise_cancel")&&console.warn("setPromiseCancel warn: promise has cancelFunc!"),(0,g.setExtProp)(f,"_promise_cancel",c)}function u(f){return(0,g.getExtProp)(f,"_promise_cancel")}A.setPromiseCancel=p,A.getPromiseCancel=u,A.isPromiseCancelable=function(f){return!!u(f)},A.cancelPromise=function(f,c){var a=u(f);return!!a&&(a(c),!0)},A.pairToPromise=function(f){var c=m(f,2),a=c[0],n=c[1];return p(n,a),n},A.createCancelablePromise=function(f){var c,a=new Promise(function(n,s){c=s,f.then(n).catch(s)});return p(a,c),a},A.getPromiseFromEvent=function(f){var c,a,n=new Promise(function(s,r){a=f.disposableOn(function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];a&&a(),s(i)}),c=function(i){a&&a(),r(i)}});return[c,n]},A.getEventFromPromise=function(f){var c=new w.Event,a=new w.Event;return f.then(function(n){c.isDestroyed()||c.emit(n)}).catch(function(n){a.isDestroyed()||a.emit(n)}),[c,a]}},9704:(B,A,h)=>{h.r(A),h.d(A,{decompressFrame:()=>u,decompressFrames:()=>f,parseGIF:()=>p});var m=h(4235),g=h(4638),w=h(733);const p=c=>{const a=new Uint8Array(c);return(0,g.parse)((0,w.buildStream)(a),m.A)},u=(c,a,n)=>{if(!c.image)return void console.warn("gif frame does not have associated image.");const{image:s}=c,r=s.descriptor.width*s.descriptor.height;var i=((d,C,_)=>{const E=_;var F,S,U,T,Q,P,I,M,K,W;const L=new Array(_),O=new Array(4096),H=new Array(4096),k=new Array(4097);for(Q=1+(S=1<<(W=d)),F=S+2,I=-1,U=(1<<(T=W+1))-1,M=0;M<S;M++)O[M]=0,H[M]=M;var G,D,R,N,X,Y;for(G=D=R=N=X=Y=0,K=0;K<E;){if(N===0){if(D<T){G+=C[Y]<<D,D+=8,Y++;continue}if(M=G&U,G>>=T,D-=T,M>F||M==Q)break;if(M==S){U=(1<<(T=W+1))-1,F=S+2,I=-1;continue}if(I==-1){k[N++]=H[M],I=M,R=M;continue}for(P=M,M==F&&(k[N++]=R,M=I);M>S;)k[N++]=H[M],M=O[M];R=255&H[M],k[N++]=R,F<4096&&(O[F]=I,H[F]=R,!(++F&U)&&F<4096&&(T++,U+=F)),I=P}N--,L[X++]=k[N],K++}for(K=X;K<E;K++)L[K]=0;return L})(s.data.minCodeSize,s.data.blocks,r);s.descriptor.lct.interlaced&&(i=((d,C)=>{const _=new Array(d.length),b=d.length/C,E=function(P,I){const M=d.slice(I*C,(I+1)*C);_.splice.apply(_,[P*C,C].concat(M))},F=[0,4,2,1],S=[8,8,4,2];for(var U=0,T=0;T<4;T++)for(var Q=F[T];Q<b;Q+=S[T])E(Q,U),U++;return _})(i,s.descriptor.width));const l={pixels:i,dims:{top:c.image.descriptor.top,left:c.image.descriptor.left,width:c.image.descriptor.width,height:c.image.descriptor.height}};return s.descriptor.lct&&s.descriptor.lct.exists?l.colorTable=s.lct:l.colorTable=a,c.gce&&(l.delay=10*(c.gce.delay||10),l.disposalType=c.gce.extras.disposal,c.gce.extras.transparentColorGiven&&(l.transparentIndex=c.gce.transparentColorIndex)),n&&(l.patch=(d=>{const C=d.pixels.length,_=new Uint8ClampedArray(4*C);for(var b=0;b<C;b++){const E=4*b,F=d.pixels[b],S=d.colorTable[F]||[0,0,0];_[E]=S[0],_[E+1]=S[1],_[E+2]=S[2],_[E+3]=F!==d.transparentIndex?255:0}return _})(l)),l},f=(c,a)=>c.frames.filter(n=>n.image).map(n=>u(n,c.gct,a))},9812:function(B,A,h){var m=this&&this.__values||function(a){var n=typeof Symbol=="function"&&Symbol.iterator,s=n&&a[n],r=0;if(s)return s.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&r>=a.length&&(a=void 0),{value:a&&a[r++],done:!a}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(A,"__esModule",{value:!0}),A.CullingVolume=void 0;var g=h(4416),w=h(312),p=h(6172),u=h(7215),f=h(8703),c=function(){function a(n){n===void 0&&(n=[]),this.planes=n}return a.fromProjectionMatrix=function(n,s){return(0,f._getCullingVolumeFromProjectionMatrix)(n,s)},a.prototype.computeVisibilityWithPlaneMask=function(n,s,r){if(r===a.MASK_OUTSIDE||r===a.MASK_INSIDE)return r;var i=a.MASK_INSIDE,l=this.planes;if(l)for(var d=0,C=l.length;d<C;++d){var _=d<31?1<<d:0;if(!(d<31)||r&_){var b=void 0;if(n==="box"?b=p.OrientedBoundingBox.intersectPlane(s,l[d]):n==="sphere"&&(b=g.BoundingSphere.intersectPlane(s,l[d])),b===w.Intersect.OUTSIDE)return a.MASK_OUTSIDE;b===w.Intersect.INTERSECTING&&(i|=_)}}return i},a.prototype.transform=function(n){var s,r;try{for(var i=m(this.planes),l=i.next();!l.done;l=i.next()){var d=l.value;u.Plane.transform(d,n,d)}}catch(C){s={error:C}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(s)throw s.error}}},a.MASK_OUTSIDE=4294967295,a.MASK_INSIDE=0,a.MASK_INDETERMINATE=2147483647,a}();A.CullingVolume=c,A.default=c},9815:function(B,A,h){var m,g=this&&this.__extends||(m=function(n,s){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])},m(n,s)},function(n,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function r(){this.constructor=n}m(n,s),n.prototype=s===null?Object.create(s):(r.prototype=s.prototype,new r)});Object.defineProperty(A,"__esModule",{value:!0}),A.Gif=void 0;var w=h(1662),p=h(5819),u=h(5819),f=h(7118),c=h(5281),a=function(n){function s(r){var i=n.call(this)||this;return i._url=i.disposeVar((0,w.react)("")),i._loadGifFramesProcessing=i.disposeVar((0,u.createProcessingFromPromiseCreateFunc)(function(l){return(0,p.createCancelablePromise)((0,c.loadGifFrames)(l))})),i._player=i.disposeVar(new f.GifPlayer(r)),i._player.autoPlayOnLoad=!0,i._loadGifFramesProcessing.completeFunc=function(l){var d=l.gifFrames;return i._player.gifFrames=d},i.dispose(i._url.changed.disposableOn(function(l){i._player.gifFrames=void 0,i._loadGifFramesProcessing.restart(new p.CancelError("reload gif(".concat(l,")")),l)})),i}return g(s,n),Object.defineProperty(s.prototype,"player",{get:function(){return this._player},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"url",{get:function(){return this._url.value},set:function(r){this._url.value=r},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"loadedEvent",{get:function(){return this._loadGifFramesProcessing.completeEvent},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"size",{get:function(){return this._player.gifSize},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"sizeChanged",{get:function(){return this._player.gifSizeChanged},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"duration",{get:function(){return this._player.gifDuration},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"durationChanged",{get:function(){return this._player.gifDurationChanged},enumerable:!1,configurable:!0}),s}(w.Destroyable);A.Gif=a},9898:function(B,A,h){var m=this&&this.__generator||function(w,p){var u,f,c,a,n={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(r){return function(i){return function(l){if(u)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(n=0)),n;)try{if(u=1,f&&(c=2&l[0]?f.return:l[0]?f.throw||((c=f.return)&&c.call(f),0):f.next)&&!(c=c.call(f,l[1])).done)return c;switch(f=0,c&&(l=[2&l[0],c.value]),l[0]){case 0:case 1:c=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,f=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(!((c=(c=n.trys).length>0&&c[c.length-1])||l[0]!==6&&l[0]!==2)){n=0;continue}if(l[0]===3&&(!c||l[1]>c[0]&&l[1]<c[3])){n.label=l[1];break}if(l[0]===6&&n.label<c[1]){n.label=c[1],c=l;break}if(c&&n.label<c[2]){n.label=c[2],n.ops.push(l);break}c[2]&&n.ops.pop(),n.trys.pop();continue}l=p.call(w,n)}catch(d){l=[6,d],f=0}finally{u=c=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([r,i])}}};Object.defineProperty(A,"__esModule",{value:!0}),A.Vector=void 0;var g=h(2731);(function(w){function p(D,R){for(var N=D.length,X=0;X<N;++X)if(!R(D[X],X))return!1;return!0}function u(D,R,N){for(var X=D.length,Y=N,Z=0;Z<X;++Z)Y=R(Y,D[Z],Z);return Y}w.set=function(D){for(var R=[],N=1;N<arguments.length;N++)R[N-1]=arguments[N];if(D=D||(0,g.createNumbers)(R.length),R.length>D.length)throw new Error("args.length > target.length");return D instanceof Float64Array?D.set(R):T(R,D),D},w.every=p,w.reduce=u,w.itr=function(D){var R;return m(this,function(N){switch(N.label){case 0:R=0,N.label=1;case 1:return R<D.length?[4,D[R]]:[3,4];case 2:N.sent(),N.label=3;case 3:return++R,[3,1];case 4:return[2]}})};var f,c=function(D,R){return D+R*R};function a(D){return u(D,c,0)}w.magnitudeSquared=a,w.magnitude=function(D){var R=a(D);return Math.sqrt(R)},w.isNormalized=function(D,R){R===void 0&&(R=1e-5);var N=a(D);return Math.abs(N-1)<R};var n,s=function(D,R,N){return D+R*f[N]};w.dot=function(D,R){return E(D,R),f=R,u(D,s,0)};var r,i=function(D,R,N){return D+(R-n[N])*(R-n[N])};function l(D,R){return E(D,R),n=R,u(D,i,0)}w.distanceSquared=l,w.distance=function(D,R){return Math.sqrt(l(D,R))};var d,C,_=function(D,R){return D===r[R]};w.equals=function(D,R){return E(D,R),r=R,p(D,_)};var b=function(D,R){return Math.abs(D-d[R])<C};function E(D,R){if(D.length!==R.length)throw new Error("left.length !== right.length")}function F(D,R,N){var X=D.length;E(D,N=N||(0,g.createNumbers)(X));for(var Y=0;Y<X;++Y)N[Y]=R(D[Y],Y);return N}function S(D,R,N,X){E(D,R),X&&E(D,X);var Y=D.length;X=X||(0,g.createNumbers)(Y);for(var Z=0;Z<Y;++Z)X[Z]=N(D[Z],R[Z]);return X}w.equalsEpsilon=function(D,R,N){return N===void 0&&(N=0),E(D,R),d=R,C=N,p(D,b)},w.op1=F,w.op2=S;var U=function(D){return D};function T(D,R){return F(D,U,R)}w.clone=T;var Q=0,P=function(D,R){return D*Q};function I(D,R,N){return Q=R,F(D,P,N)}w.multiplyByScalar=I,w.normalize=function(D,R,N){N===void 0&&(N=0);var X=a(D);if(!(X<=N))return I(D,1/Math.sqrt(X),R)},w.negate=function(D,R){return I(D,-1,R)};var M=function(D){return Math.abs(D)};w.abs=function(D,R){return F(D,M,R)};var K=function(D){return D-Math.floor(D)};w.fract=function(D,R){return F(D,K,R)};var W=function(D,R){return D-R};w.subtract=function(D,R,N){return S(D,R,W,N)};var L=function(D,R){return D+R};w.add=function(D,R,N){return S(D,R,L,N)};var O=function(D,R){return D*R};w.multiply=function(D,R,N){return S(D,R,O,N)};var H,k=function(D,R){return D/R};w.divide=function(D,R,N){return S(D,R,k,N)};var G=function(D,R){return D*(1-H)+R*H};w.lerp=function(D,R,N,X){return H=N,S(D,R,G,X)}})(A.Vector||(A.Vector={}))},9910:(B,A,h)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.destroyScalableArray=A.createScalableArray=void 0;var m=h(1085),g=function(){function u(){this._array=[]}return Object.defineProperty(u.prototype,"array",{get:function(){return this._array},enumerable:!1,configurable:!0}),u}(),w=new m.ObjPool(function(){return new g}),p=new WeakMap;A.createScalableArray=function(){var u=w.create();return p.set(u.array,u),u.array},A.destroyScalableArray=function(u){var f=p.get(u);if(!f)throw console.warn("!obj"),new Error("!obj");w.destroy(f)}},9928:(B,A,h)=>{function m(g,w,p,u,f){this._format=g,this._width=w,this._height=p,this._buffer=u,this._mipLevels=f}h.r(A),h.d(A,{CompressedTextureBuffer:()=>m}),Object.defineProperties(m.prototype,{internalFormat:{get:function(){return this._format}},width:{get:function(){return this._width}},height:{get:function(){return this._height}},bufferView:{get:function(){return this._buffer}},mipLevels:{get:function(){return this._mipLevels}}}),m.clone=function(g){if(g)return new m(g._format,g._width,g._height,g._buffer,g._mipLevels)},m.prototype.clone=function(){return m.clone(this)}},9970:(B,A)=>{Object.defineProperty(A,"__esModule",{value:!0}),A.nodeBufferToUint8Array=void 0,A.nodeBufferToUint8Array=function(h){return new Uint8Array(h.buffer,h.byteOffset,h.byteLength)}},9972:function(B,A,h){var m=this&&this.__read||function(a,n){var s=typeof Symbol=="function"&&a[Symbol.iterator];if(!s)return a;var r,i,l=s.call(a),d=[];try{for(;(n===void 0||n-- >0)&&!(r=l.next()).done;)d.push(r.value)}catch(C){i={error:C}}finally{try{r&&!r.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}return d},g=this&&this.__spreadArray||function(a,n,s){if(s||arguments.length===2)for(var r,i=0,l=n.length;i<l;i++)!r&&i in n||(r||(r=Array.prototype.slice.call(n,0,i)),r[i]=n[i]);return a.concat(r||Array.prototype.slice.call(n))};Object.defineProperty(A,"__esModule",{value:!0}),A.createFetchingWithStartValues=A.createFetching=A.cancelableFetch=A.cancelableFetchWithProgress=void 0;var w=h(5726),p=h(9651),u=h(921);function f(a){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];var r=new AbortController,i=r.signal,l=m(n,2),d=l[0],C=l[1];if(C!=null&&C.signal)throw console.error("init?.signal"),new Error("init?.signal");(C=C||{}).signal&&console.warn("revocableFetch error: init.signal would be override!"),C.signal=i;var _=!1,b=fetch(d,C);return a&&(b=b.then(function(E){if(!E.ok)return E;if(!E.body)throw Error("ReadableStream not yet supported in this browser.");var F=E.headers.get("content-length");F||console.warn("response.headers.get('content-length') is undefined... cannot get contentLength!");var S=F?parseInt(F,10):0,U=0;return new Response(new ReadableStream({start:function(T){if(!E.body)throw new Error("!response.body");var Q=E.body.getReader();(function P(){Q.read().then(function(I){var M=I.done,K=I.value;if(M)T.close();else{if(!K)throw new Error("!value");if(!a)throw new Error("!progressFunc");U+=K.byteLength,a(U,S),T.enqueue(K),P()}}).catch(function(I){T.error(I)})})()}}),{status:E.status,statusText:E.statusText,headers:E.headers})}).catch(function(E){throw _?(E instanceof Error&&E.code!==20&&console.error("error.code !== 20"),console.log("fetching cancelled!"),new w.CancelError("fetching cancelled! error: ".concat(E))):(E instanceof Error&&E.code===20&&console.error("error.code === 20"),E)})),(0,p.setPromiseCancel)(b,function(){_=!0,r.abort()}),b}function c(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];return f.apply(void 0,g([void 0],m(a),!1))}A.cancelableFetchWithProgress=function(a){for(var n=[],s=1;s<arguments.length;s++)n[s-1]=arguments[s];return f.apply(void 0,g([a],m(n),!1))},A.cancelableFetch=c,A.createFetching=function(){return(0,u.createProcessingFromPromiseCreateFunc)(c)},A.createFetchingWithStartValues=function(){for(var a=[],n=0;n<arguments.length;n++)a[n]=arguments[n];return u.createProcessingFromPromiseCreateFuncWithStartValues.apply(void 0,g([c],m(a),!1))}},9986:function(B,A,h){var m,g=this&&this.__extends||(m=function(f,c){return m=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,n){a.__proto__=n}||function(a,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(a[s]=n[s])},m(f,c)},function(f,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");function a(){this.constructor=f}m(f,c),f.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)}),w=this&&this.__read||function(f,c){var a=typeof Symbol=="function"&&f[Symbol.iterator];if(!a)return f;var n,s,r=a.call(f),i=[];try{for(;(c===void 0||c-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(l){s={error:l}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(s)throw s.error}}return i};Object.defineProperty(A,"__esModule",{value:!0}),A.PosFloatDiv=void 0;var p=h(7372),u=function(f){function c(){var a=f.call(this)||this;a._originOffsetX=0,a._originOffsetY=0,a._originRatioX=.5,a._originRatioY=1,a._divChanged=new p.Event;var n=document.createElement("div");n.style.cssText="width: 0px; height: 0px; position: absolute; opacity: 1.0; visibility: visible;";var s=document.createElement("div");s.style.cssText="position: absolute; left: ".concat(-a._originOffsetX,"px; top: ").concat(-a._originOffsetY,"px; transform: translateX(-").concat(100*a._originRatioX,"%) translateY(-").concat(100*a._originRatioY,"%); margin: 0; padding: 0; pointer-events: none;");var r=document.createElement("div");a._contentDiv=r,s.appendChild(r),n.appendChild(s);var i=function(l){l.stopPropagation()};return n.addEventListener("pointermove",i),n.addEventListener("pointerdown",i),n.addEventListener("pointerup",i),a.dispose(function(){n.removeEventListener("pointermove",i),n.removeEventListener("pointerdown",i),n.removeEventListener("pointerup",i)}),a._div=n,a.dispose(a._divChanged.disposableOn(function(){s.style.left="".concat(-a._originOffsetX,"px"),s.style.top="".concat(-a._originOffsetY,"px"),s.style.transform="translateX(-".concat(100*a._originRatioX,"%) translateY(-").concat(100*a._originRatioY,"%)")})),a.dispose(a.winPosChanged.disposableOn(function(l){var d=w(l,2),C=d[0],_=d[1];a._div.style.left="".concat(C,"px"),a._div.style.top="".concat(_,"px")})),a.dispose(a.opacityChanged.disposableOn(function(l){a._div.style.opacity="".concat(l)})),a.dispose(a.showChanged.disposableOn(function(l){a._div.style.visibility=l?"visible":"hidden"})),a}return g(c,f),Object.defineProperty(c.prototype,"contentDiv",{get:function(){return this._contentDiv},enumerable:!1,configurable:!0}),c.prototype.reset=function(){},Object.defineProperty(c.prototype,"originOffsetX",{get:function(){return this._originOffsetX},set:function(a){this._originOffsetX!==a&&(this._originOffsetX=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"originOffsetY",{get:function(){return this._originOffsetY},set:function(a){this._originOffsetY!==a&&(this._originOffsetY=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"originRatioX",{get:function(){return this._originRatioX},set:function(a){this._originRatioX!==a&&(this._originRatioX=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"originRatioY",{get:function(){return this._originRatioY},set:function(a){this._originRatioY!==a&&(this._originRatioY=a,this._divChanged.emit())},enumerable:!1,configurable:!0}),Object.defineProperty(c.prototype,"element",{get:function(){return this._div},enumerable:!1,configurable:!0}),c}(h(7324).FloatDiv);A.PosFloatDiv=u}},o={};function y(B){var A=o[B];if(A!==void 0)return A.exports;var h=o[B]={exports:{}};return t[B].call(h.exports,h,h.exports,y),h.exports}return y.n=B=>{var A=B&&B.__esModule?()=>B.default:()=>B;return y.d(A,{a:A}),A},y.d=(B,A)=>{for(var h in A)y.o(A,h)&&!y.o(B,h)&&Object.defineProperty(B,h,{enumerable:!0,get:A[h]})},y.o=(B,A)=>Object.prototype.hasOwnProperty.call(B,A),y.r=B=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(B,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(B,"__esModule",{value:!0})},y(4221)})())}(rt)),rt.exports}var V=Ru();const ku={...j.ESViewer.defaults,geoReferenceOrigin:void 0,keepWorldOriginNearCamera:!1,useCache:!0,widgetInteractionDistance:200,memReportInterval:10,sceneControlled:!0,brightness:0,emissiveIntensity:1,statusUpdateInterval:.5,baseUrl:window.location.href??""},Fs=()=>({...j.ESViewer.createCommonProps(),apiKey:"",apiUrl:"",secretKey:"",speechVoiceMode:"",geoReferenceOrigin:V.reactArrayWithUndefined(void 0),keepWorldOriginNearCamera:void 0,useCache:void 0,widgetInteractionDistance:void 0,memReportInterval:void 0,sceneControlled:void 0,brightness:void 0,emissiveIntensity:void 0,statusUpdateInterval:void 0,baseUrl:void 0});function NA(){const v=Fs(),e=[];return Object.keys(v).forEach(t=>{e.push(t)}),e}function $n(v){const{defaults:e}=it,t=NA(),o={};return t.forEach(y=>{o[y]=v[y]??e[y]}),o}const Ht=async(v,e,t,o,y,B="default")=>{const A=await v.callUeFunc({f:"flyTo",p:{id:e,duration:t,flyToParam:o,position:y,flyMode:B}});if(A.error){console.error(A.error);return}return A.re},Zn=async(v,e)=>{const t=await v.callUeFunc({f:"destroy",p:{id:e}});return t.error&&console.error(t.error),t},Lt=(v,e)=>{v.callUeFunc({f:"calcFlyToParam",p:{id:e}}).then(t=>{t.error&&console.error("calcFlyToParam:",t.error)}).catch(t=>{console.error("calcFlyToParam:",t)})},Ss=(v,e)=>{v.callUeFunc({f:"refreshTileset",p:{id:e}}).then(t=>{t.error&&console.error("refreshTileset:",t.error)}).catch(t=>{console.error("refreshTileset:",t)})},tr=async(v,e,t,o,y,B="default")=>{const A=await v.callUeFunc({f:"flyIn",p:{id:e,position:t,rotation:o,duration:y,flyMode:B}});if(A.error){console.error(A.error);return}return A.re},Qs=async(v,e)=>{if(!v){console.warn("DefaultCameraFlyIn: viewer is undefined");return}const t=await v.callUeFunc({f:"DefaultCameraFlyIn",p:{Duration:e??1}});if(t.error){console.error("DefaultCameraFlyIn:",t.error);return}return t},Us=async v=>{if(!v){console.warn("StartVoice:viewer is undefined");return}const e=await v.callUeFunc({f:"StartVoice",p:{}});if(e.error){console.error("StartVoice:",e.error);return}return e},Ts=async v=>{if(!v){console.warn("StopVoice:viewer is undefined");return}const e=await v.callUeFunc({f:"StopVoice",p:{}});if(e.error){console.error("StopVoice:",e.error);return}return e},Is=async(v,e)=>{if(!v){console.warn("mountPakFiles:viewer is undefined");return}const t=await v.callUeFunc({f:"MountPakFiles",p:{json:e}});if(t.error){console.error("mountPakFiles:",t.error);return}return t},Ps=async v=>{if(!v){console.warn("generateMemReport:viewer is undefined");return}const e=await v.callUeFunc({f:"GenerateMemReport",p:{}});if(e.error){console.error("generateMemReport:",e.error);return}return e},qn=async(v,e)=>{const t=await v.callUeFunc({f:"resetWithCurrentCamera",p:{id:e}});return t.error&&console.error("resetWithCurrentCamera:",t.error),t},VA=(v,e,t,o,y)=>{v.callUeFunc({f:"smoothMoveWithRotation",p:{id:e,Destination:t,NewRotation:o,Time:y}}).then(B=>{B.error&&console.error("smoothMoveWithRotation:",B.error)}).catch(B=>{console.error("smoothMoveWithRotation:",B)})},GA=(v,e,t,o,y,B)=>{v.callUeFunc({f:"smoothMoveOnGround",p:{id:e,Lon:t,Lat:o,Ground:y,Time:B}}).then(A=>{A.error&&console.error("smoothMoveOnGround:",A.error)}).catch(A=>{console.error("smoothMoveOnGround:",A)})},jA=(v,e,t,o,y,B,A)=>{v.callUeFunc({f:"smoothMoveWithRotationOnGround",p:{id:e,NewRotation:t,Lon:o,Lat:y,Time:B,Ground:A}}).then(h=>{h.error&&console.error("smoothMoveWithRotationOnGround:",h.error)}).catch(h=>{console.error("smoothMoveWithRotationOnGround:",h)})},xs=(v,e,t)=>{v.callUeFunc({f:"HighlightFeature",p:{id:e,HlId:t}}).then(o=>{o.error&&console.error("HighlightFeature:",o.error)}).catch(o=>{console.error("HighlightFeature:",o)})},Os=(v,e,t,o)=>{v.callUeFunc({f:"HighlightFeatureAndFlyTo",p:{id:e,HlId:t,Duration:o}}).then(y=>{y.error&&console.error("HighlightFeatureAndFlyTo:",y.error)}).catch(y=>{console.error("HighlightFeatureAndFlyTo:",y)})},Ms=(v,e,t)=>{v.callUeFunc({f:"SetLayerVisible",p:{id:e,LayerJson:t}}).then(o=>{o.error&&console.error("SetLayerVisible:",o.error)}).catch(o=>{console.error("SetLayerVisible:",o)})},Hs=(v,e,t)=>{v.callUeFunc({f:"SetLayerColor",p:{id:e,LayerJson:t}}).then(o=>{o.error&&console.error("SetLayerColor:",o.error)}).catch(o=>{console.error("SetLayerColor:",o)})},WA=(v,e,t,o)=>{v.callUeFunc({f:"smoothMove",p:{id:e,Destination:t,Time:o}}).then(y=>{y.error&&console.error("smoothMove:",y.error)}).catch(y=>{console.error("smoothMove:",y)})},ei=(v,e,t,o)=>{v.callUeFunc({f:"callFunction",p:{id:e,fn:t,p:o}}).then(y=>{y.error&&(console.error("callFunction:",y.error),console.error(`id: ${e} fn: ${t} param: ${o}`))}).catch(y=>{console.error("callFunction:",y),console.error(`id: ${e} fn: ${t} param: ${o}`)})},Ls=(v,e,t,o)=>{v.callUeFunc({f:"SetNodePosition",p:{id:e,NodeName:t,NodePosition:o}}).then(y=>{y.error&&console.error("SetNodePosition:",y.error)}).catch(y=>{console.error("SetNodePosition:",y)})},Ds=(v,e,t,o)=>{v.callUeFunc({f:"SetNodeRotation",p:{id:e,NodeName:t,NodeRotation:o}}).then(y=>{y.error&&console.error("SetNodeRotation:",y.error)}).catch(y=>{console.error("SetNodeRotation:",y)})},Rs=(v,e,t,o)=>{v.callUeFunc({f:"SetNodeScale",p:{id:e,NodeName:t,NodeScale:o}}).then(y=>{y.error&&console.error("SetNodeScale:",y.error)}).catch(y=>{console.error("SetNodeScale:",y)})},At=async(v,e)=>{const t=await v.callUeFunc({f:"ChangeNavigationMode",p:e});if(t.error){console.error("ChangeNavigationMode:",t.error);return}return t},ks=async(v,e)=>{const t=await v.callUeFunc({f:"setGlobalProperty",p:e});if(t.error){console.error("setGlobalProperty:",t.error);return}return t},Ks=async v=>{const e=await v.callUeFunc({f:"Quit",p:void 0});if(e.error){console.error("Quit:",e.error);return}return e},Ns=async(v,e,t,o)=>{console.log("pickCallFunc",e,t,o);const y=await v.callUeFunc({f:"pick",p:{screenPosition:e,parentInfo:o}});if(!y.re&&(y.error||y.error=="")){console.error("pick:",y.error==""?"未获取到结果":y.error);return}let B=y.re.id;const A=B?j.ESSceneObject.getSceneObject(B):void 0;return A&&Reflect.has(A,"allowPicking")&&Reflect.has(A,"pickedEvent")&&(A.allowPicking??!1)&&A.pickedEvent.emit({attachedInfo:t}),A&&Reflect.has(A,"allowPicking")&&!A.allowPicking?new j.PickedResult:new j.PickedResult(y.re,A,y.re.features,y.re.add,t)},Vs=async(v,e)=>{const t=await v.callUeFunc({f:"pickPosition",p:{screenPosition:e}});if(!t.re&&(t.error||t.error=="")){console.error("pickPosition",t.error==""?"未获取到结果":t.error);return}const{position:o}=t.re;return o},Gs=async(v,e,t,o="ECC_Visibility")=>{const y=await v.callUeFunc({f:"GetHeightByLonLat",p:{Lon:e,Lat:t,Channel:o}});if(y.error){console.warn(`GetHeightByLonLat:${y.error}`);return}return y.re},js=async(v,e,t="ECC_Visibility")=>{const o=await v.callUeFunc({f:"GetHeightsByLonLats",p:{LonLats:e,Channel:t}});if(o.error){console.warn(`GetHeightsByLonLats:${o.error}`);return}o.re.heights.includes(null)&&console.warn("注意! GetHeightsByLonLats: 存在高度为null的点. there are points with a height of null");try{return o.re.heights}catch{return}},Ws=async(v,e=64,t=64)=>{const o=await v.callUeFunc({f:"capture",p:{resx:e,resy:t}});if(o.error){console.warn(o.error);return}return o.re.image},zs=async(v,e,t=[64,64])=>{const o=await v.callUeFunc({f:"partialCapture",p:{startPos:e,size:t}});if(o.error){console.warn(o.error);return}return o.re.image},Js=async(v,e)=>{const t=await v.callUeFunc({f:"LonLatAltToScreenPosition",p:{LonLatAlt:e}});return t.error&&console.warn(t.error),t.re},Xs=async(v,e)=>{const t=await v.callUeFunc({f:"UEPositionToLonLatAlt",p:{UEPosition:e}});if(t.error){console.warn(t.error);return}return[...t.re.LonLatAlt]},Ys=async(v,e)=>{const t=await v.callUeFunc({f:"GetAllSocketNamesByActorTag",p:{ActorTag:e}});if(t.error){console.warn(t.error);return}return[...t.re.socketNames]},$s=async v=>{const e=await v.callUeFunc({f:"GetVersion",p:void 0});if(e.error){console.warn("GetVersion:",e.error);return}return e.re.version},Zs=async(v,e)=>{const t=await v.callUeFunc({f:"GetBoundSphere",p:{id:e}});if(t.error){console.warn(t.error);return}return t.re},qs=async(v,e)=>{const t=await v.callUeFunc({f:"GetBoundSphereWithChildren",p:{id:e}});if(t.error){console.warn(`GetBoundSphereWithChildren:${t.error}`);return}return t.re},ea=async(v,e)=>{const t=await v.callUeFunc({f:"GetStrokeMaterialParamInfo",p:{id:e}});if(t.error){console.warn(`GetStrokeMaterialParamInfo:${t.error}`);return}return t.re},ta=async(v,e)=>{const t=await v.callUeFunc({f:"GetFillMaterialParamInfo",p:{id:e}});if(t.error){console.warn(`GetFillMaterialParamInfo:${t.error}`);return}return t.re},ra=async(v,e)=>{const t=await v.callUeFunc({f:"getGlobalProperty",p:{props:e}});if(t.error){console.warn(`getGlobalProperty:${t.error}`);return}return t.re},Aa=async(v,e)=>{const t=await v.callUeFunc({f:"GetObjectByInfo",p:{info:e}});if(t.error){console.warn(`GetObjectByInfo:${t.error}`);return}return t.re},na=async(v,e,t)=>await v.callUeFunc({f:"BindActorByTag",p:{ID:e,ActorTag:t}}),ia=async v=>await v.callUeFunc({f:"RestoreOriginalScene",p:void 0}),oa=async(v,e)=>await v.callUeFunc({f:"UnBindActorByID",p:{ID:e}}),sa=async(v,e)=>await v.callUeFunc({f:"UnBindActorByTag",p:{ActorTag:e}}),aa=async(v,e,t)=>await v.callUeFunc({f:"CreateActorByClass",p:{ID:e,ActorClass:t}}),ca=async function(v,e,t){return await v.callUeFunc({f:"Bind3DTilesetByTag",p:{ID:e,ActorTag:t}})},la=async function(v,e){return await v.callUeFunc({f:"UnBind3DTilesetByTag",p:{ActorTag:e}})},ua=async function(v,e){return await v.callUeFunc({f:"UnBind3DTilesetById",p:{ID:e}})},da=async function(v,e,t,o){return await v.callUeFunc({f:"BindImageryByTag",p:{ID:e,ActorTag:t,ComponentTag:o}})},fa=async function(v,e,t){return await v.callUeFunc({f:"UnBindImageryByTag",p:{ActorTag:e,ComponentTag:t}})},ha=async function(v,e){return await v.callUeFunc({f:"UnBindImageryById",p:{ID:e}})},pa=async function(v,e,t,o){return await v.callUeFunc({f:"GetIdByComponentNameAndHitItem",p:{id:e,ComponentName:t,HitItem:o}})},ga=async function(v,e="ECC_Visibility"){return await v.callUeFunc({f:"GetCameraRelativeHeight",p:{Channel:e}})},va=async function(v,e,t,o){const y=await v.callUeFunc({f:"SaveStringToFile",p:{String:e,Path:t??"undefine",File:o??"data.txt"}});return y.error!==""&&console.warn("SaveStringToFile: ",y.error),y},ya=async function(v,e,t=!0){const o=await v.callUeFunc({f:"HighlightActorByTag",p:{ActorTag:e,Highlight:t}});return o.error!==""&&console.warn("HighlightActorByTag: ",o.error),o},ma=async function(v,e){const t=await v.callUeFunc({f:"SendCustomMessage",p:{Message:e}});return t.error!==""&&console.warn("SendCustomMessage: ",t.error),t},wa=async function(v){const e=await v.callUeFunc({f:"GetStatus",p:void 0});if(e.error){console.warn(`GetStatus:${e.error}`);return}return e.re},Ba=async(v,e,t,o,y=!0)=>{const B=await v.callUeFunc({f:"startEditing",p:{sceneObjectID:e,editingID:t,modes:o,useKeyToSwitch:y}});if(B.error){console.error("startEditing:",B.error);return}return B},Ca=async v=>{const e=await v.callUeFunc({f:"stopEditing",p:void 0});if(e.error){console.error("stopEditing:",e.error);return}return e},ba=async(v,e,t)=>{const o=await v.callUeFunc({f:"moveObjects",p:{sceneObjectIDs:e,editingID:t}});if(o.error){console.error("moveObjects:",o.error);return}return o},_a=async v=>{const e=await v.callUeFunc({f:"GetTilesetMaterialIDList",p:void 0});if(e.error){console.error("GetTilesetMaterialIDList:",e.error);return}return e.re.materialIDList};class rr extends V.Destroyable{}class Ku extends j.PickedInfo{constructor(e,t,o){super(t),this.uePickResult=e,this.tilesetPickInfo=o}}var ti={exports:{}},Ea;function Nu(){return Ea||(Ea=1,function(v){const e={};e.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},e.localCName=e.generateIdentifier(),e.splitLines=function(t){return t.trim().split(`
|
|
229
|
+
`).map(o=>o.trim())},e.splitSections=function(t){return t.split(`
|
|
230
|
+
m=`).map((y,B)=>(B>0?"m="+y:y).trim()+`\r
|
|
231
|
+
`)},e.getDescription=function(t){const o=e.splitSections(t);return o&&o[0]},e.getMediaSections=function(t){const o=e.splitSections(t);return o.shift(),o},e.matchPrefix=function(t,o){return e.splitLines(t).filter(y=>y.indexOf(o)===0)},e.parseCandidate=function(t){let o;t.indexOf("a=candidate:")===0?o=t.substring(12).split(" "):o=t.substring(10).split(" ");const y={foundation:o[0],component:{1:"rtp",2:"rtcp"}[o[1]]||o[1],protocol:o[2].toLowerCase(),priority:parseInt(o[3],10),ip:o[4],address:o[4],port:parseInt(o[5],10),type:o[7]};for(let B=8;B<o.length;B+=2)switch(o[B]){case"raddr":y.relatedAddress=o[B+1];break;case"rport":y.relatedPort=parseInt(o[B+1],10);break;case"tcptype":y.tcpType=o[B+1];break;case"ufrag":y.ufrag=o[B+1],y.usernameFragment=o[B+1];break;default:y[o[B]]===void 0&&(y[o[B]]=o[B+1]);break}return y},e.writeCandidate=function(t){const o=[];o.push(t.foundation);const y=t.component;y==="rtp"?o.push(1):y==="rtcp"?o.push(2):o.push(y),o.push(t.protocol.toUpperCase()),o.push(t.priority),o.push(t.address||t.ip),o.push(t.port);const B=t.type;return o.push("typ"),o.push(B),B!=="host"&&t.relatedAddress&&t.relatedPort&&(o.push("raddr"),o.push(t.relatedAddress),o.push("rport"),o.push(t.relatedPort)),t.tcpType&&t.protocol.toLowerCase()==="tcp"&&(o.push("tcptype"),o.push(t.tcpType)),(t.usernameFragment||t.ufrag)&&(o.push("ufrag"),o.push(t.usernameFragment||t.ufrag)),"candidate:"+o.join(" ")},e.parseIceOptions=function(t){return t.substring(14).split(" ")},e.parseRtpMap=function(t){let o=t.substring(9).split(" ");const y={payloadType:parseInt(o.shift(),10)};return o=o[0].split("/"),y.name=o[0],y.clockRate=parseInt(o[1],10),y.channels=o.length===3?parseInt(o[2],10):1,y.numChannels=y.channels,y},e.writeRtpMap=function(t){let o=t.payloadType;t.preferredPayloadType!==void 0&&(o=t.preferredPayloadType);const y=t.channels||t.numChannels||1;return"a=rtpmap:"+o+" "+t.name+"/"+t.clockRate+(y!==1?"/"+y:"")+`\r
|
|
232
|
+
`},e.parseExtmap=function(t){const o=t.substring(9).split(" ");return{id:parseInt(o[0],10),direction:o[0].indexOf("/")>0?o[0].split("/")[1]:"sendrecv",uri:o[1],attributes:o.slice(2).join(" ")}},e.writeExtmap=function(t){return"a=extmap:"+(t.id||t.preferredId)+(t.direction&&t.direction!=="sendrecv"?"/"+t.direction:"")+" "+t.uri+(t.attributes?" "+t.attributes:"")+`\r
|
|
233
|
+
`},e.parseFmtp=function(t){const o={};let y;const B=t.substring(t.indexOf(" ")+1).split(";");for(let A=0;A<B.length;A++)y=B[A].trim().split("="),o[y[0].trim()]=y[1];return o},e.writeFmtp=function(t){let o="",y=t.payloadType;if(t.preferredPayloadType!==void 0&&(y=t.preferredPayloadType),t.parameters&&Object.keys(t.parameters).length){const B=[];Object.keys(t.parameters).forEach(A=>{t.parameters[A]!==void 0?B.push(A+"="+t.parameters[A]):B.push(A)}),o+="a=fmtp:"+y+" "+B.join(";")+`\r
|
|
234
|
+
`}return o},e.parseRtcpFb=function(t){const o=t.substring(t.indexOf(" ")+1).split(" ");return{type:o.shift(),parameter:o.join(" ")}},e.writeRtcpFb=function(t){let o="",y=t.payloadType;return t.preferredPayloadType!==void 0&&(y=t.preferredPayloadType),t.rtcpFeedback&&t.rtcpFeedback.length&&t.rtcpFeedback.forEach(B=>{o+="a=rtcp-fb:"+y+" "+B.type+(B.parameter&&B.parameter.length?" "+B.parameter:"")+`\r
|
|
235
|
+
`}),o},e.parseSsrcMedia=function(t){const o=t.indexOf(" "),y={ssrc:parseInt(t.substring(7,o),10)},B=t.indexOf(":",o);return B>-1?(y.attribute=t.substring(o+1,B),y.value=t.substring(B+1)):y.attribute=t.substring(o+1),y},e.parseSsrcGroup=function(t){const o=t.substring(13).split(" ");return{semantics:o.shift(),ssrcs:o.map(y=>parseInt(y,10))}},e.getMid=function(t){const o=e.matchPrefix(t,"a=mid:")[0];if(o)return o.substring(6)},e.parseFingerprint=function(t){const o=t.substring(14).split(" ");return{algorithm:o[0].toLowerCase(),value:o[1].toUpperCase()}},e.getDtlsParameters=function(t,o){return{role:"auto",fingerprints:e.matchPrefix(t+o,"a=fingerprint:").map(e.parseFingerprint)}},e.writeDtlsParameters=function(t,o){let y="a=setup:"+o+`\r
|
|
236
|
+
`;return t.fingerprints.forEach(B=>{y+="a=fingerprint:"+B.algorithm+" "+B.value+`\r
|
|
237
|
+
`}),y},e.parseCryptoLine=function(t){const o=t.substring(9).split(" ");return{tag:parseInt(o[0],10),cryptoSuite:o[1],keyParams:o[2],sessionParams:o.slice(3)}},e.writeCryptoLine=function(t){return"a=crypto:"+t.tag+" "+t.cryptoSuite+" "+(typeof t.keyParams=="object"?e.writeCryptoKeyParams(t.keyParams):t.keyParams)+(t.sessionParams?" "+t.sessionParams.join(" "):"")+`\r
|
|
238
|
+
`},e.parseCryptoKeyParams=function(t){if(t.indexOf("inline:")!==0)return null;const o=t.substring(7).split("|");return{keyMethod:"inline",keySalt:o[0],lifeTime:o[1],mkiValue:o[2]?o[2].split(":")[0]:void 0,mkiLength:o[2]?o[2].split(":")[1]:void 0}},e.writeCryptoKeyParams=function(t){return t.keyMethod+":"+t.keySalt+(t.lifeTime?"|"+t.lifeTime:"")+(t.mkiValue&&t.mkiLength?"|"+t.mkiValue+":"+t.mkiLength:"")},e.getCryptoParameters=function(t,o){return e.matchPrefix(t+o,"a=crypto:").map(e.parseCryptoLine)},e.getIceParameters=function(t,o){const y=e.matchPrefix(t+o,"a=ice-ufrag:")[0],B=e.matchPrefix(t+o,"a=ice-pwd:")[0];return y&&B?{usernameFragment:y.substring(12),password:B.substring(10)}:null},e.writeIceParameters=function(t){let o="a=ice-ufrag:"+t.usernameFragment+`\r
|
|
239
|
+
a=ice-pwd:`+t.password+`\r
|
|
240
|
+
`;return t.iceLite&&(o+=`a=ice-lite\r
|
|
241
|
+
`),o},e.parseRtpParameters=function(t){const o={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},B=e.splitLines(t)[0].split(" ");o.profile=B[2];for(let h=3;h<B.length;h++){const m=B[h],g=e.matchPrefix(t,"a=rtpmap:"+m+" ")[0];if(g){const w=e.parseRtpMap(g),p=e.matchPrefix(t,"a=fmtp:"+m+" ");switch(w.parameters=p.length?e.parseFmtp(p[0]):{},w.rtcpFeedback=e.matchPrefix(t,"a=rtcp-fb:"+m+" ").map(e.parseRtcpFb),o.codecs.push(w),w.name.toUpperCase()){case"RED":case"ULPFEC":o.fecMechanisms.push(w.name.toUpperCase());break}}}e.matchPrefix(t,"a=extmap:").forEach(h=>{o.headerExtensions.push(e.parseExtmap(h))});const A=e.matchPrefix(t,"a=rtcp-fb:* ").map(e.parseRtcpFb);return o.codecs.forEach(h=>{A.forEach(m=>{h.rtcpFeedback.find(w=>w.type===m.type&&w.parameter===m.parameter)||h.rtcpFeedback.push(m)})}),o},e.writeRtpDescription=function(t,o){let y="";y+="m="+t+" ",y+=o.codecs.length>0?"9":"0",y+=" "+(o.profile||"UDP/TLS/RTP/SAVPF")+" ",y+=o.codecs.map(A=>A.preferredPayloadType!==void 0?A.preferredPayloadType:A.payloadType).join(" ")+`\r
|
|
242
|
+
`,y+=`c=IN IP4 0.0.0.0\r
|
|
243
|
+
`,y+=`a=rtcp:9 IN IP4 0.0.0.0\r
|
|
244
|
+
`,o.codecs.forEach(A=>{y+=e.writeRtpMap(A),y+=e.writeFmtp(A),y+=e.writeRtcpFb(A)});let B=0;return o.codecs.forEach(A=>{A.maxptime>B&&(B=A.maxptime)}),B>0&&(y+="a=maxptime:"+B+`\r
|
|
245
|
+
`),o.headerExtensions&&o.headerExtensions.forEach(A=>{y+=e.writeExtmap(A)}),y},e.parseRtpEncodingParameters=function(t){const o=[],y=e.parseRtpParameters(t),B=y.fecMechanisms.indexOf("RED")!==-1,A=y.fecMechanisms.indexOf("ULPFEC")!==-1,h=e.matchPrefix(t,"a=ssrc:").map(u=>e.parseSsrcMedia(u)).filter(u=>u.attribute==="cname"),m=h.length>0&&h[0].ssrc;let g;const w=e.matchPrefix(t,"a=ssrc-group:FID").map(u=>u.substring(17).split(" ").map(c=>parseInt(c,10)));w.length>0&&w[0].length>1&&w[0][0]===m&&(g=w[0][1]),y.codecs.forEach(u=>{if(u.name.toUpperCase()==="RTX"&&u.parameters.apt){let f={ssrc:m,codecPayloadType:parseInt(u.parameters.apt,10)};m&&g&&(f.rtx={ssrc:g}),o.push(f),B&&(f=JSON.parse(JSON.stringify(f)),f.fec={ssrc:m,mechanism:A?"red+ulpfec":"red"},o.push(f))}}),o.length===0&&m&&o.push({ssrc:m});let p=e.matchPrefix(t,"b=");return p.length&&(p[0].indexOf("b=TIAS:")===0?p=parseInt(p[0].substring(7),10):p[0].indexOf("b=AS:")===0?p=parseInt(p[0].substring(5),10)*1e3*.95-16e3:p=void 0,o.forEach(u=>{u.maxBitrate=p})),o},e.parseRtcpParameters=function(t){const o={},y=e.matchPrefix(t,"a=ssrc:").map(h=>e.parseSsrcMedia(h)).filter(h=>h.attribute==="cname")[0];y&&(o.cname=y.value,o.ssrc=y.ssrc);const B=e.matchPrefix(t,"a=rtcp-rsize");o.reducedSize=B.length>0,o.compound=B.length===0;const A=e.matchPrefix(t,"a=rtcp-mux");return o.mux=A.length>0,o},e.writeRtcpParameters=function(t){let o="";return t.reducedSize&&(o+=`a=rtcp-rsize\r
|
|
246
|
+
`),t.mux&&(o+=`a=rtcp-mux\r
|
|
247
|
+
`),t.ssrc!==void 0&&t.cname&&(o+="a=ssrc:"+t.ssrc+" cname:"+t.cname+`\r
|
|
248
|
+
`),o},e.parseMsid=function(t){let o;const y=e.matchPrefix(t,"a=msid:");if(y.length===1)return o=y[0].substring(7).split(" "),{stream:o[0],track:o[1]};const B=e.matchPrefix(t,"a=ssrc:").map(A=>e.parseSsrcMedia(A)).filter(A=>A.attribute==="msid");if(B.length>0)return o=B[0].value.split(" "),{stream:o[0],track:o[1]}},e.parseSctpDescription=function(t){const o=e.parseMLine(t),y=e.matchPrefix(t,"a=max-message-size:");let B;y.length>0&&(B=parseInt(y[0].substring(19),10)),isNaN(B)&&(B=65536);const A=e.matchPrefix(t,"a=sctp-port:");if(A.length>0)return{port:parseInt(A[0].substring(12),10),protocol:o.fmt,maxMessageSize:B};const h=e.matchPrefix(t,"a=sctpmap:");if(h.length>0){const m=h[0].substring(10).split(" ");return{port:parseInt(m[0],10),protocol:m[1],maxMessageSize:B}}},e.writeSctpDescription=function(t,o){let y=[];return t.protocol!=="DTLS/SCTP"?y=["m="+t.kind+" 9 "+t.protocol+" "+o.protocol+`\r
|
|
249
|
+
`,`c=IN IP4 0.0.0.0\r
|
|
250
|
+
`,"a=sctp-port:"+o.port+`\r
|
|
251
|
+
`]:y=["m="+t.kind+" 9 "+t.protocol+" "+o.port+`\r
|
|
252
|
+
`,`c=IN IP4 0.0.0.0\r
|
|
253
|
+
`,"a=sctpmap:"+o.port+" "+o.protocol+` 65535\r
|
|
254
|
+
`],o.maxMessageSize!==void 0&&y.push("a=max-message-size:"+o.maxMessageSize+`\r
|
|
255
|
+
`),y.join("")},e.generateSessionId=function(){return Math.random().toString().substr(2,22)},e.writeSessionBoilerplate=function(t,o,y){let B;const A=o!==void 0?o:2;return t?B=t:B=e.generateSessionId(),`v=0\r
|
|
256
|
+
o=`+(y||"thisisadapterortc")+" "+B+" "+A+` IN IP4 127.0.0.1\r
|
|
257
|
+
s=-\r
|
|
258
|
+
t=0 0\r
|
|
259
|
+
`},e.getDirection=function(t,o){const y=e.splitLines(t);for(let B=0;B<y.length;B++)switch(y[B]){case"a=sendrecv":case"a=sendonly":case"a=recvonly":case"a=inactive":return y[B].substring(2)}return o?e.getDirection(o):"sendrecv"},e.getKind=function(t){return e.splitLines(t)[0].split(" ")[0].substring(2)},e.isRejected=function(t){return t.split(" ",2)[1]==="0"},e.parseMLine=function(t){const y=e.splitLines(t)[0].substring(2).split(" ");return{kind:y[0],port:parseInt(y[1],10),protocol:y[2],fmt:y.slice(3).join(" ")}},e.parseOLine=function(t){const y=e.matchPrefix(t,"o=")[0].substring(2).split(" ");return{username:y[0],sessionId:y[1],sessionVersion:parseInt(y[2],10),netType:y[3],addressType:y[4],address:y[5]}},e.isValidSDP=function(t){if(typeof t!="string"||t.length===0)return!1;const o=e.splitLines(t);for(let y=0;y<o.length;y++)if(o[y].length<2||o[y].charAt(1)!=="=")return!1;return!0},v.exports=e}(ti)),ti.exports}var Fa=Nu(),Je,Fe,zA={d:(v,e)=>{for(var t in e)zA.o(e,t)&&!zA.o(v,t)&&Object.defineProperty(v,t,{enumerable:!0,get:e[t]})},o:(v,e)=>Object.prototype.hasOwnProperty.call(v,e)},te={};zA.d(te,{Dz:()=>ic,g$:()=>Pa,Lt:()=>Ta,Q9:()=>Ia,qf:()=>ni,hV:()=>dc,z$:()=>lc,J0:()=>oi,De:()=>ad,$C:()=>bt,al:()=>Ka,_W:()=>Na,tz:()=>ka,Nu:()=>cc,zg:()=>gc,vp:()=>nc,vU:()=>$,wF:()=>$a,rv:()=>sc,Nh:()=>ac,ss:()=>pc,qW:()=>tc,QL:()=>ec,cf:()=>yc,eM:()=>Ya,Yd:()=>x,iM:()=>Sa,qy:()=>nt,ce:()=>Zu,sK:()=>oe,Ok:()=>ge,q5:()=>uc,g:()=>Od,xl:()=>Ja,I:()=>Xa,bx:()=>ii,dD:()=>Ac,Ib:()=>Ar,Az:()=>_e,Iw:()=>lt,qY:()=>Ai,db:()=>Ua,mR:()=>nr,Tn:()=>ri,rV:()=>Za,gh:()=>Ga,Mi:()=>ja,j:()=>Wa,YB:()=>za,i5:()=>qa,x_:()=>Ct,Am:()=>li,eR:()=>xa,r8:()=>Va,u3:()=>vc,vd:()=>Ma,iV:()=>La,jZ:()=>Ha,SW:()=>Ra,ZH:()=>Da,Ni:()=>Bc,lh:()=>Oa,bq:()=>Qa,$f:()=>_c,eu:()=>rc,Ax:()=>Ad,Mc:()=>rd});let x=class{static GetStackTrace(){const e=new Error;let t="No Stack Available for this browser";return e.stack&&(t=e.stack.toString().replace(/Error/g,"")),t}static SetLoggerVerbosity(e){this.verboseLogLevel!=null&&(this.verboseLogLevel=e)}static Log(e,t,o){if(o>this.verboseLogLevel)return;const y=`Level: Log
|
|
260
|
+
Msg: ${t}
|
|
261
|
+
Caller: ${e}`;console.log(y)}static Info(e,t,o){if(o>this.verboseLogLevel)return;const y=`Level: Info
|
|
262
|
+
Msg: ${t}`;console.info(y)}static Error(e,t){const o=`Level: Error
|
|
263
|
+
Msg: ${t}
|
|
264
|
+
Caller: ${e}`;console.error(o)}static Warning(e,t){const o=`Level: Warning
|
|
265
|
+
Caller: ${e}
|
|
266
|
+
Msg: ${t}`;console.warn(o)}};x.verboseLogLevel=5,function(v){v.LIST_STREAMERS="listStreamers",v.SUBSCRIBE="subscribe",v.UNSUBSCRIBE="unsubscribe",v.ICE_CANDIDATE="iceCandidate",v.OFFER="offer",v.ANSWER="answer",v.DATACHANNELREQUEST="dataChannelRequest",v.SFURECVDATACHANNELREADY="peerDataChannelsReady",v.PONG="pong"}(Je||(Je={}));class nt{payload(){return x.Log(x.GetStackTrace(),`Sending =>
|
|
267
|
+
`+JSON.stringify(this,void 0,4),6),JSON.stringify(this)}}let Vu=class extends nt{constructor(){super(),this.type=Je.LIST_STREAMERS}};class Gu extends nt{constructor(e){super(),this.type=Je.SUBSCRIBE,this.streamerId=e}}class ju extends nt{constructor(){super(),this.type=Je.UNSUBSCRIBE}}class Wu extends nt{constructor(e){super(),this.type=Je.PONG,this.time=e}}class zu extends nt{constructor(e){super(),this.type=Je.OFFER,e&&(this.type=e.type,this.sdp=e.sdp)}}class Ju extends nt{constructor(e){super(),this.type=Je.ANSWER,e&&(this.type=e.type,this.sdp=e.sdp)}}let Xu=class extends nt{constructor(){super(),this.type=Je.DATACHANNELREQUEST}};class Yu extends nt{constructor(){super(),this.type=Je.SFURECVDATACHANNELREADY}}class $u{constructor(e){this.type=Je.ICE_CANDIDATE,this.candidate=e}payload(){return x.Log(x.GetStackTrace(),`Sending =>
|
|
268
|
+
`+JSON.stringify(this,void 0,4),6),JSON.stringify(this)}}(function(v){v.CONFIG="config",v.STREAMER_LIST="streamerList",v.PLAYER_COUNT="playerCount",v.OFFER="offer",v.ANSWER="answer",v.ICE_CANDIDATE="iceCandidate",v.PEER_DATA_CHANNELS="peerDataChannels",v.PING="ping",v.WARNING="warning"})(Fe||(Fe={}));class Sa{}class Zu extends Sa{}class ri{constructor(){this.FromUEMessageHandlers=new Map}addMessageHandler(e,t){this.FromUEMessageHandlers.set(e,t)}handleMessage(e,t){this.FromUEMessageHandlers.has(e)?this.FromUEMessageHandlers.get(e)(t):x.Error(x.GetStackTrace(),`Message type of ${e} does not have a message handler registered on the frontend - ignoring message.`)}static setupDefaultHandlers(e){e.signallingProtocol.addMessageHandler(Fe.PING,t=>{const o=new Wu(new Date().getTime()).payload();x.Log(x.GetStackTrace(),Fe.PING+": "+t,6),e.webSocket.send(o)}),e.signallingProtocol.addMessageHandler(Fe.CONFIG,t=>{x.Log(x.GetStackTrace(),Fe.CONFIG,6);const o=JSON.parse(t);e.onConfig(o)}),e.signallingProtocol.addMessageHandler(Fe.STREAMER_LIST,t=>{x.Log(x.GetStackTrace(),Fe.STREAMER_LIST,6);const o=JSON.parse(t);e.onStreamerList(o)}),e.signallingProtocol.addMessageHandler(Fe.PLAYER_COUNT,t=>{x.Log(x.GetStackTrace(),Fe.PLAYER_COUNT,6);const o=JSON.parse(t);x.Log(x.GetStackTrace(),"Player Count: "+o.count,6),e.onPlayerCount(o)}),e.signallingProtocol.addMessageHandler(Fe.ANSWER,t=>{x.Log(x.GetStackTrace(),Fe.ANSWER,6);const o=JSON.parse(t);e.onWebRtcAnswer(o)}),e.signallingProtocol.addMessageHandler(Fe.OFFER,t=>{x.Log(x.GetStackTrace(),Fe.OFFER,6);const o=JSON.parse(t);e.onWebRtcOffer(o)}),e.signallingProtocol.addMessageHandler(Fe.ICE_CANDIDATE,t=>{x.Log(x.GetStackTrace(),Fe.ICE_CANDIDATE,6);const o=JSON.parse(t);e.onIceCandidate(o.candidate)}),e.signallingProtocol.addMessageHandler(Fe.WARNING,t=>{x.Warning(x.GetStackTrace(),`Warning received: ${t}`)}),e.signallingProtocol.addMessageHandler(Fe.PEER_DATA_CHANNELS,t=>{x.Log(x.GetStackTrace(),Fe.PEER_DATA_CHANNELS,6);const o=JSON.parse(t);e.onWebRtcPeerDataChannels(o)})}}let Qa=class{constructor(){this.WS_OPEN_STATE=1,this.onOpen=new EventTarget,this.onClose=new EventTarget,this.signallingProtocol=new ri,ri.setupDefaultHandlers(this)}connect(e){x.Log(x.GetStackTrace(),e,6);try{return this.webSocket=new WebSocket(e),this.webSocket.onopen=t=>this.handleOnOpen(t),this.webSocket.onerror=()=>this.handleOnError(),this.webSocket.onclose=t=>this.handleOnClose(t),this.webSocket.onmessage=t=>this.handleOnMessage(t),this.webSocket.onmessagebinary=t=>this.handleOnMessageBinary(t),!0}catch(t){return x.Error(t,t),!1}}handleOnMessageBinary(e){e&&e.data&&e.data.text().then(t=>{const o=new MessageEvent("messageFromBinary",{data:t});this.handleOnMessage(o)}).catch(t=>{x.Error(x.GetStackTrace(),`Failed to parse binary blob from websocket, reason: ${t}`)})}handleOnMessage(e){if(e.data&&e.data instanceof Blob)return void this.handleOnMessageBinary(e);const t=JSON.parse(e.data);x.Log(x.GetStackTrace(),`received =>
|
|
269
|
+
`+JSON.stringify(JSON.parse(e.data),void 0,4),6),this.signallingProtocol.handleMessage(t.type,e.data)}handleOnOpen(e){x.Log(x.GetStackTrace(),"Connected to the signalling server via WebSocket",6),this.onOpen.dispatchEvent(new Event("open"))}handleOnError(){x.Error(x.GetStackTrace(),"WebSocket error")}handleOnClose(e){this.onWebSocketOncloseOverlayMessage(e),x.Log(x.GetStackTrace(),"Disconnected to the signalling server via WebSocket: "+JSON.stringify(e.code)+" - "+e.reason),this.onClose.dispatchEvent(new Event("close"))}requestStreamerList(){const e=new Vu;this.webSocket.send(e.payload())}sendSubscribe(e){const t=new Gu(e);this.webSocket.send(t.payload())}sendUnsubscribe(){const e=new ju;this.webSocket.send(e.payload())}sendWebRtcOffer(e){const t=new zu(e);this.webSocket.send(t.payload())}sendWebRtcAnswer(e){const t=new Ju(e);this.webSocket.send(t.payload())}sendWebRtcDatachannelRequest(){const e=new Xu;this.webSocket.send(e.payload())}sendSFURecvDataChannelReady(){const e=new Yu;this.webSocket.send(e.payload())}sendIceCandidate(e){if(x.Log(x.GetStackTrace(),"Sending Ice Candidate"),this.webSocket&&this.webSocket.readyState===this.WS_OPEN_STATE){const t=new $u(e);this.webSocket.send(t.payload())}}close(){var e;(e=this.webSocket)===null||e===void 0||e.close()}onWebSocketOncloseOverlayMessage(e){}onConfig(e){}onStreamerList(e){}onIceCandidate(e){}onWebRtcAnswer(e){}onWebRtcOffer(e){}onWebRtcPeerDataChannels(e){}onPlayerCount(e){}},qu=class{constructor(e){this.videoElementProvider=e,this.audioElement=document.createElement("Audio"),this.videoElementProvider.setAudioElement(this.audioElement)}handleOnTrack(e){if(x.Log(x.GetStackTrace(),"handleOnTrack "+JSON.stringify(e.streams),6),e.track.id=="probator")return;const t=this.videoElementProvider.getVideoElement();if(e.track&&x.Log(x.GetStackTrace(),"Got track - "+e.track.kind+" id="+e.track.id+" readyState="+e.track.readyState,6),e.track.kind!="audio")return e.track.kind=="video"&&t.srcObject!==e.streams[0]?(t.srcObject=e.streams[0],void x.Log(x.GetStackTrace(),"Set video source from video track ontrack.")):void 0;this.CreateAudioTrack(e.streams[0])}CreateAudioTrack(e){const t=this.videoElementProvider.getVideoElement();t.srcObject!=e&&t.srcObject&&t.srcObject!==e&&(this.audioElement.srcObject=e,x.Log(x.GetStackTrace(),"Created new audio element to play separate audio stream."))}},ed=class{constructor(e){this.freezeFrameHeight=0,this.freezeFrameWidth=0,this.rootDiv=e,this.rootElement=document.createElement("div"),this.rootElement.id="freezeFrame",this.rootElement.style.display="none",this.rootElement.style.pointerEvents="none",this.rootElement.style.position="absolute",this.rootElement.style.zIndex="20",this.imageElement=document.createElement("img"),this.imageElement.style.position="absolute",this.rootElement.appendChild(this.imageElement),this.rootDiv.appendChild(this.rootElement)}setElementForShow(){this.rootElement.style.display="block"}setElementForHide(){this.rootElement.style.display="none"}updateImageElementSource(e){const t=btoa(e.reduce((o,y)=>o+String.fromCharCode(y),""));this.imageElement.src="data:image/jpeg;base64,"+t}setDimensionsFromElementAndResize(){this.freezeFrameHeight=this.imageElement.naturalHeight,this.freezeFrameWidth=this.imageElement.naturalWidth,this.resize()}resize(){if(this.freezeFrameWidth!==0&&this.freezeFrameHeight!==0){let e=0,t=0,o=0,y=0;const B=this.rootDiv.clientWidth/this.rootDiv.clientHeight,A=this.freezeFrameWidth/this.freezeFrameHeight;B<A?(e=this.rootDiv.clientWidth,t=Math.floor(this.rootDiv.clientWidth/A),o=Math.floor(.5*(this.rootDiv.clientHeight-t)),y=0):(e=Math.floor(this.rootDiv.clientHeight*A),t=this.rootDiv.clientHeight,o=0,y=Math.floor(.5*(this.rootDiv.clientWidth-e))),this.rootElement.style.width=this.rootDiv.offsetWidth+"px",this.rootElement.style.height=this.rootDiv.offsetHeight+"px",this.rootElement.style.left="0px",this.rootElement.style.top="0px",this.imageElement.style.width=e+"px",this.imageElement.style.height=t+"px",this.imageElement.style.left=y+"px",this.imageElement.style.top=o+"px"}}};class td{constructor(e){this.receiving=!1,this.size=0,this.jpeg=void 0,this.valid=!1,this.freezeFrameDelay=50,this.freezeFrame=new ed(e)}showFreezeFrame(){this.valid&&this.freezeFrame.setElementForShow()}hideFreezeFrame(){this.valid=!1,this.freezeFrame.setElementForHide()}updateFreezeFrameAndShow(e,t){this.freezeFrame.updateImageElementSource(e),this.freezeFrame.imageElement.onload=()=>{this.freezeFrame.setDimensionsFromElementAndResize(),t()}}processFreezeFrameMessage(e,t){this.receiving||(this.receiving=!0,this.valid=!1,this.size=0,this.jpeg=void 0),this.size=new DataView(e.slice(1,5).buffer).getInt32(0,!0);const o=e.slice(5);if(this.jpeg){const y=new Uint8Array(this.jpeg.length+o.length);y.set(this.jpeg,0),y.set(o,this.jpeg.length),this.jpeg=y}else this.jpeg=o,this.receiving=!0,x.Log(x.GetStackTrace(),`received first chunk of freeze frame: ${this.jpeg.length}/${this.size}`,6);this.jpeg.length===this.size?(this.receiving=!1,this.valid=!0,x.Log(x.GetStackTrace(),`received complete freeze frame ${this.size}`,6),this.updateFreezeFrameAndShow(this.jpeg,t)):this.jpeg.length>this.size&&(x.Error(x.GetStackTrace(),`received bigger freeze frame than advertised: ${this.jpeg.length}/${this.size}`),this.jpeg=void 0,this.receiving=!1)}}class Ar{constructor(e,t,o,y,B=()=>{}){this.onChange=B,this.onChangeEmit=()=>{},this.id=e,this.description=o,this.label=t,this.value=y}set label(e){this._label=e,this.onChangeEmit(this._value)}get label(){return this._label}get value(){return this._value}set value(e){this._value=e,this.onChange(this._value,this),this.onChangeEmit(this._value)}}class _e extends Ar{constructor(e,t,o,y,B,A=()=>{}){super(e,t,o,y,A);const h=new URLSearchParams(window.location.search);if(B&&h.has(this.id)){const m=this.getUrlParamFlag();this.flag=m}else this.flag=y;this.useUrlParams=B}getUrlParamFlag(){const e=new URLSearchParams(window.location.search);return!!e.has(this.id)&&e.get(this.id)!=="false"&&e.get(this.id)!=="False"}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);this.flag===!0?e.set(this.id,"true"):e.set(this.id,"false"),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}enable(){this.flag=!0}get flag(){return!!this.value}set flag(e){this.value=e}}class lt extends Ar{constructor(e,t,o,y,B,A,h,m=()=>{}){super(e,t,o,A,m),this._min=y,this._max=B;const g=new URLSearchParams(window.location.search);if(h&&g.has(this.id)){const w=Number.parseInt(g.get(this.id));this.number=Number.isNaN(w)?A:w}else this.number=A;this.useUrlParams=h}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);e.set(this.id,this.number.toString()),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}set number(e){this.value=this.clamp(e)}get number(){return this.value}clamp(e){return this._min==null&&this._max==null?e:this._min==null?Math.min(this._max,e):this._max==null?Math.max(this._min,e):Math.max(Math.min(this._max,e),this._min)}get min(){return this._min}get max(){return this._max}addOnChangedListener(e){this.onChange=e}}class Ua extends Ar{constructor(e,t,o,y,B,A=()=>{}){super(e,t,o,y,A);const h=new URLSearchParams(window.location.search);if(B&&h.has(this.id)){const m=this.getUrlParamText();this.text=m}else this.text=y;this.useUrlParams=B}getUrlParamText(){var e;const t=new URLSearchParams(window.location.search);return t.has(this.id)&&(e=t.get(this.id))!==null&&e!==void 0?e:""}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);e.set(this.id,this.text),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}get text(){return this.value}set text(e){this.value=e}}class Ai extends Ar{constructor(e,t,o,y,B,A,h=()=>{}){super(e,t,o,[y,y],h),this.options=B;const m=new URLSearchParams(window.location.search),g=A&&m.has(this.id)?this.getUrlParamText():y;this.selected=g,this.useUrlParams=A}getUrlParamText(){var e;const t=new URLSearchParams(window.location.search);return t.has(this.id)&&(e=t.get(this.id))!==null&&e!==void 0?e:""}updateURLParams(){if(this.useUrlParams){const e=new URLSearchParams(window.location.search);e.set(this.id,this.selected),window.history.replaceState({},"",e.toString()!==""?`${location.pathname}?${e}`:`${location.pathname}`)}}addOnChangedListener(e){this.onChange=e}get options(){return this._options}set options(e){this._options=e,this.onChangeEmit(this.selected)}get selected(){return this.value}set selected(e){let t=this.options.filter(o=>o.indexOf(e)!==-1);t.length?this.value=t[0]:(t=this.options.filter(o=>o.indexOf(e.split(" ")[0])!==-1),t.length&&(this.value=t[0]))}}class Ta extends Event{constructor(e){super("afkWarningActivate"),this.data=e}}let ni=class extends Event{constructor(e){super("afkWarningUpdate"),this.data=e}};class Ia extends Event{constructor(){super("afkWarningDeactivate")}}let Pa=class extends Event{constructor(){super("afkTimedOut")}},xa=class extends Event{constructor(e){super("videoEncoderAvgQP"),this.data=e}};class Oa extends Event{constructor(){super("webRtcSdp")}}class Ma extends Event{constructor(){super("webRtcAutoConnect")}}let Ha=class extends Event{constructor(){super("webRtcConnecting")}};class La extends Event{constructor(){super("webRtcConnected")}}class Da extends Event{constructor(){super("webRtcFailed")}}let Ra=class extends Event{constructor(e){super("webRtcDisconnected"),this.data=e}};class ka extends Event{constructor(e){super("dataChannelOpen"),this.data=e}}class Ka extends Event{constructor(e){super("dataChannelClose"),this.data=e}}class Na extends Event{constructor(e){super("dataChannelError"),this.data=e}}class Va extends Event{constructor(){super("videoInitialized")}}let Ga=class extends Event{constructor(){super("streamLoading")}};class ja extends Event{constructor(){super("streamConnect")}}class Wa extends Event{constructor(){super("streamDisconnect")}}class za extends Event{constructor(){super("streamReconnect")}}class Ja extends Event{constructor(e){super("playStreamError"),this.data=e}}class Xa extends Event{constructor(){super("playStream")}}class ii extends Event{constructor(e){super("playStreamRejected"),this.data=e}}class Ya extends Event{constructor(e){super("loadFreezeFrame"),this.data=e}}class $a extends Event{constructor(){super("hideFreezeFrame")}}class Za extends Event{constructor(e){super("statsReceived"),this.data=e}}let qa=class extends Event{constructor(e){super("streamerListMessage"),this.data=e}};class ec extends Event{constructor(e){super("latencyTestResult"),this.data=e}}class tc extends Event{constructor(e){super("initialSettings"),this.data=e}}class nr extends Event{constructor(e){super("settingsChanged"),this.data=e}}class rd extends Event{constructor(){super("xrSessionStarted")}}class Ad extends Event{constructor(){super("xrSessionEnded")}}class rc extends Event{constructor(e){super("xrFrame"),this.data=e}}class Ac extends Event{constructor(e){super("playerCount"),this.data=e}}class nc extends EventTarget{dispatchEvent(e){return super.dispatchEvent(e)}addEventListener(e,t){super.addEventListener(e,t)}removeEventListener(e,t){super.removeEventListener(e,t)}}class ${}$.AutoConnect="AutoConnect",$.AutoPlayVideo="AutoPlayVideo",$.AFKDetection="TimeoutIfIdle",$.BrowserSendOffer="OfferToReceive",$.HoveringMouseMode="HoveringMouse",$.ForceMonoAudio="ForceMonoAudio",$.ForceTURN="ForceTURN",$.FakeMouseWithTouches="FakeMouseWithTouches",$.IsQualityController="ControlsQuality",$.MatchViewportResolution="MatchViewportRes",$.PreferSFU="preferSFU",$.StartVideoMuted="StartVideoMuted",$.SuppressBrowserKeys="SuppressBrowserKeys",$.UseMic="UseMic",$.KeyboardInput="KeyboardInput",$.MouseInput="MouseInput",$.TouchInput="TouchInput",$.GamepadInput="GamepadInput",$.XRControllerInput="XRControllerInput";const nd=v=>Object.getOwnPropertyNames($).some(e=>$[e]===v);class oe{}oe.AFKTimeoutSecs="AFKTimeout",oe.MinQP="MinQP",oe.MaxQP="MaxQP",oe.WebRTCFPS="WebRTCFPS",oe.WebRTCMinBitrate="WebRTCMinBitrate",oe.WebRTCMaxBitrate="WebRTCMaxBitrate",oe.MaxReconnectAttempts="MaxReconnectAttempts";const id=v=>Object.getOwnPropertyNames(oe).some(e=>oe[e]===v);class Ct{}Ct.SignallingServerUrl="ss";const od=v=>Object.getOwnPropertyNames(Ct).some(e=>Ct[e]===v);class ge{}ge.PreferredCodec="PreferredCodec",ge.StreamerId="StreamerId";const sd=v=>Object.getOwnPropertyNames(ge).some(e=>ge[e]===v);class ad{constructor(e={}){this.flags=new Map,this.numericParameters=new Map,this.textParameters=new Map,this.optionParameters=new Map;const{initialSettings:t,useUrlParams:o}=e;this._useUrlParams=!!o,this.populateDefaultSettings(this._useUrlParams),t&&this.setSettings(t)}get useUrlParams(){return this._useUrlParams}populateDefaultSettings(e){this.textParameters.set(Ct.SignallingServerUrl,new Ua(Ct.SignallingServerUrl,"Signalling url","Url of the signalling server",(location.protocol==="https:"?"wss://":"ws://")+window.location.hostname+(window.location.port==="80"||window.location.port===""?"":`:${window.location.port}`),e)),this.optionParameters.set(ge.StreamerId,new Ai(ge.StreamerId,"Streamer ID","The ID of the streamer to stream.","",[],e)),this.optionParameters.set(ge.PreferredCodec,new Ai(ge.PreferredCodec,"Preferred Codec","The preferred codec to be used during codec negotiation","H264 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=42e01f",function(){const t=[];if(!RTCRtpReceiver.getCapabilities)return t.push("Only available on Chrome"),t;const o=/(VP\d|H26\d|AV1).*/;return RTCRtpReceiver.getCapabilities("video").codecs.forEach(y=>{const B=y.mimeType.split("/")[1]+" "+(y.sdpFmtpLine||"");o.exec(B)!==null&&t.push(B)}),t}(),e)),this.flags.set($.AutoConnect,new _e($.AutoConnect,"Auto connect to stream","Whether we should attempt to auto connect to the signalling server or show a click to start prompt.",!1,e)),this.flags.set($.AutoPlayVideo,new _e($.AutoPlayVideo,"Auto play video","When video is ready automatically start playing it as opposed to showing a play button.",!0,e)),this.flags.set($.BrowserSendOffer,new _e($.BrowserSendOffer,"Browser send offer","Browser will initiate the WebRTC handshake by sending the offer to the streamer",!1,e)),this.flags.set($.UseMic,new _e($.UseMic,"Use microphone","Make browser request microphone access and open an input audio track.",!1,e)),this.flags.set($.StartVideoMuted,new _e($.StartVideoMuted,"Start video muted","Video will start muted if true.",!1,e)),this.flags.set($.SuppressBrowserKeys,new _e($.SuppressBrowserKeys,"Suppress browser keys","Suppress certain browser keys that we use in UE, for example F5 to show shader complexity instead of refresh the page.",!0,e)),this.flags.set($.PreferSFU,new _e($.PreferSFU,"Prefer SFU","Try to connect to the SFU instead of P2P.",!1,e)),this.flags.set($.IsQualityController,new _e($.IsQualityController,"Is quality controller?","True if this peer controls stream quality",!0,e)),this.flags.set($.ForceMonoAudio,new _e($.ForceMonoAudio,"Force mono audio","Force browser to request mono audio in the SDP",!1,e)),this.flags.set($.ForceTURN,new _e($.ForceTURN,"Force TURN","Only generate TURN/Relayed ICE candidates.",!1,e)),this.flags.set($.AFKDetection,new _e($.AFKDetection,"AFK if idle","Timeout the experience if user is AFK for a period.",!1,e)),this.flags.set($.MatchViewportResolution,new _e($.MatchViewportResolution,"Match viewport resolution","Pixel Streaming will be instructed to dynamically resize the video stream to match the size of the video element.",!1,e)),this.flags.set($.HoveringMouseMode,new _e($.HoveringMouseMode,"Control Scheme: Locked Mouse","Either locked mouse, where the pointer is consumed by the video and locked to it, or hovering mouse, where the mouse is not consumed.",!1,e,(t,o)=>{o.label=`Control Scheme: ${t?"Hovering":"Locked"} Mouse`})),this.flags.set($.FakeMouseWithTouches,new _e($.FakeMouseWithTouches,"Fake mouse with touches","A single finger touch is converted into a mouse event. This allows a non-touch application to be controlled partially via a touch device.",!1,e)),this.flags.set($.KeyboardInput,new _e($.KeyboardInput,"Keyboard input","If enabled, send keyboard events to streamer",!0,e)),this.flags.set($.MouseInput,new _e($.MouseInput,"Mouse input","If enabled, send mouse events to streamer",!0,e)),this.flags.set($.TouchInput,new _e($.TouchInput,"Touch input","If enabled, send touch events to streamer",!0,e)),this.flags.set($.GamepadInput,new _e($.GamepadInput,"Gamepad input","If enabled, send gamepad events to streamer",!0,e)),this.flags.set($.XRControllerInput,new _e($.XRControllerInput,"XR controller input","If enabled, send XR controller events to streamer",!0,e)),this.numericParameters.set(oe.AFKTimeoutSecs,new lt(oe.AFKTimeoutSecs,"AFK timeout","The time (in seconds) it takes for the application to time out if AFK timeout is enabled.",0,null,120,e)),this.numericParameters.set(oe.MaxReconnectAttempts,new lt(oe.MaxReconnectAttempts,"Max Reconnects","Maximum number of reconnects the application will attempt when a streamer disconnects.",0,999,3,e)),this.numericParameters.set(oe.MinQP,new lt(oe.MinQP,"Min QP","The lower bound for the quantization parameter (QP) of the encoder. 0 = Best quality, 51 = worst quality.",0,51,0,e)),this.numericParameters.set(oe.MaxQP,new lt(oe.MaxQP,"Max QP","The upper bound for the quantization parameter (QP) of the encoder. 0 = Best quality, 51 = worst quality.",0,51,51,e)),this.numericParameters.set(oe.WebRTCFPS,new lt(oe.WebRTCFPS,"Max FPS","The maximum FPS that WebRTC will try to transmit frames at.",1,999,60,e)),this.numericParameters.set(oe.WebRTCMinBitrate,new lt(oe.WebRTCMinBitrate,"Min Bitrate (kbps)","The minimum bitrate that WebRTC should use.",0,5e5,0,e)),this.numericParameters.set(oe.WebRTCMaxBitrate,new lt(oe.WebRTCMaxBitrate,"Max Bitrate (kbps)","The maximum bitrate that WebRTC should use.",0,5e5,0,e))}_addOnNumericSettingChangedListener(e,t){this.numericParameters.has(e)&&this.numericParameters.get(e).addOnChangedListener(t)}_addOnOptionSettingChangedListener(e,t){this.optionParameters.has(e)&&this.optionParameters.get(e).addOnChangedListener(t)}getNumericSettingValue(e){if(this.numericParameters.has(e))return this.numericParameters.get(e).number;throw new Error(`There is no numeric setting with the id of ${e}`)}getTextSettingValue(e){if(this.textParameters.has(e))return this.textParameters.get(e).value;throw new Error(`There is no numeric setting with the id of ${e}`)}setNumericSetting(e,t){if(!this.numericParameters.has(e))throw new Error(`There is no numeric setting with the id of ${e}`);this.numericParameters.get(e).number=t}_addOnSettingChangedListener(e,t){this.flags.has(e)&&(this.flags.get(e).onChange=t)}_addOnTextSettingChangedListener(e,t){this.textParameters.has(e)&&(this.textParameters.get(e).onChange=t)}getSettingOption(e){return this.optionParameters.get(e)}isFlagEnabled(e){return this.flags.get(e).flag}setFlagEnabled(e,t){this.flags.has(e)?this.flags.get(e).flag=t:x.Warning(x.GetStackTrace(),`Cannot toggle flag called ${e} - it does not exist in the Config.flags map.`)}setTextSetting(e,t){this.textParameters.has(e)?this.textParameters.get(e).text=t:x.Warning(x.GetStackTrace(),`Cannot set text setting called ${e} - it does not exist in the Config.textParameters map.`)}setOptionSettingOptions(e,t){this.optionParameters.has(e)?this.optionParameters.get(e).options=t:x.Warning(x.GetStackTrace(),`Cannot set text setting called ${e} - it does not exist in the Config.optionParameters map.`)}setOptionSettingValue(e,t){this.optionParameters.has(e)?this.optionParameters.get(e).selected=t:x.Warning(x.GetStackTrace(),`Cannot set text setting called ${e} - it does not exist in the Config.enumParameters map.`)}setFlagLabel(e,t){this.flags.has(e)?this.flags.get(e).label=t:x.Warning(x.GetStackTrace(),`Cannot set label for flag called ${e} - it does not exist in the Config.flags map.`)}setSettings(e){for(const t of Object.keys(e))nd(t)?this.setFlagEnabled(t,e[t]):id(t)?this.setNumericSetting(t,e[t]):od(t)?this.setTextSetting(t,e[t]):sd(t)&&this.setOptionSettingValue(t,e[t])}getSettings(){const e={};for(const[t,o]of this.flags.entries())e[t]=o.flag;for(const[t,o]of this.numericParameters.entries())e[t]=o.number;for(const[t,o]of this.textParameters.entries())e[t]=o.text;for(const[t,o]of this.optionParameters.entries())e[t]=o.selected;return e}getFlags(){return Array.from(this.flags.values())}getTextSettings(){return Array.from(this.textParameters.values())}getNumericSettings(){return Array.from(this.numericParameters.values())}getOptionSettings(){return Array.from(this.optionParameters.values())}_registerOnChangeEvents(e){for(const t of this.flags.keys()){const o=this.flags.get(t);o&&(o.onChangeEmit=y=>e.dispatchEvent(new nr({id:o.id,type:"flag",value:y,target:o})))}for(const t of this.numericParameters.keys()){const o=this.numericParameters.get(t);o&&(o.onChangeEmit=y=>e.dispatchEvent(new nr({id:o.id,type:"number",value:y,target:o})))}for(const t of this.textParameters.keys()){const o=this.textParameters.get(t);o&&(o.onChangeEmit=y=>e.dispatchEvent(new nr({id:o.id,type:"text",value:y,target:o})))}for(const t of this.optionParameters.keys()){const o=this.optionParameters.get(t);o&&(o.onChangeEmit=y=>e.dispatchEvent(new nr({id:o.id,type:"option",value:y,target:o})))}}}var bt;(function(v){v[v.LockedMouse=0]="LockedMouse",v[v.HoveringMouse=1]="HoveringMouse"})(bt||(bt={}));class ic{constructor(e,t,o){this.closeTimeout=10,this.active=!1,this.countdownActive=!1,this.warnTimer=void 0,this.countDown=0,this.countDownTimer=void 0,this.config=e,this.pixelStreaming=t,this.onDismissAfk=o,this.onAFKTimedOutCallback=()=>{console.log("AFK timed out, did you want to override this callback?")}}onAfkClick(){clearInterval(this.countDownTimer),(this.active||this.countdownActive)&&(this.startAfkWarningTimer(),this.pixelStreaming.dispatchEvent(new Ia))}startAfkWarningTimer(){this.config.getNumericSettingValue(oe.AFKTimeoutSecs)>0&&this.config.isFlagEnabled($.AFKDetection)?this.active=!0:this.active=!1,this.resetAfkWarningTimer()}stopAfkWarningTimer(){this.active=!1,this.countdownActive=!1,clearTimeout(this.warnTimer),clearInterval(this.countDownTimer)}pauseAfkWarningTimer(){this.active=!1}resetAfkWarningTimer(){this.active&&this.config.isFlagEnabled($.AFKDetection)&&(clearTimeout(this.warnTimer),this.warnTimer=setTimeout(()=>this.activateAfkEvent(),1e3*this.config.getNumericSettingValue(oe.AFKTimeoutSecs)))}activateAfkEvent(){this.pauseAfkWarningTimer(),this.pixelStreaming.dispatchEvent(new Ta({countDown:this.countDown,dismissAfk:this.onDismissAfk})),this.countDown=this.closeTimeout,this.countdownActive=!0,this.pixelStreaming.dispatchEvent(new ni({countDown:this.countDown})),this.config.isFlagEnabled($.HoveringMouseMode)||document.exitPointerLock&&document.exitPointerLock(),this.countDownTimer=setInterval(()=>{this.countDown--,this.countDown==0?(this.pixelStreaming.dispatchEvent(new Pa),this.onAFKTimedOutCallback(),x.Log(x.GetStackTrace(),"You have been disconnected due to inactivity"),this.stopAfkWarningTimer()):this.pixelStreaming.dispatchEvent(new ni({countDown:this.countDown}))},1e3)}}class oc{constructor(){this.isReceivingFreezeFrame=!1}getDataChannelInstance(){return this}createDataChannel(e,t,o){this.peerConnection=e,this.label=t,this.datachannelOptions=o,o==null&&(this.datachannelOptions={},this.datachannelOptions.ordered=!0),this.dataChannel=this.peerConnection.createDataChannel(this.label,this.datachannelOptions),this.setupDataChannel()}setupDataChannel(){this.dataChannel.binaryType="arraybuffer",this.dataChannel.onopen=e=>this.handleOnOpen(e),this.dataChannel.onclose=e=>this.handleOnClose(e),this.dataChannel.onmessage=e=>this.handleOnMessage(e),this.dataChannel.onerror=e=>this.handleOnError(e)}handleOnOpen(e){var t;x.Log(x.GetStackTrace(),`Data Channel (${this.label}) opened.`,7),this.onOpen((t=this.dataChannel)===null||t===void 0?void 0:t.label,e)}handleOnClose(e){var t;x.Log(x.GetStackTrace(),`Data Channel (${this.label}) closed.`,7),this.onClose((t=this.dataChannel)===null||t===void 0?void 0:t.label,e)}handleOnMessage(e){x.Log(x.GetStackTrace(),`Data Channel (${this.label}) message: ${e}`,8)}handleOnError(e){var t;x.Log(x.GetStackTrace(),`Data Channel (${this.label}) error: ${e}`,7),this.onError((t=this.dataChannel)===null||t===void 0?void 0:t.label,e)}onOpen(e,t){}onClose(e,t){}onError(e,t){}}class sc{}class ac{}class cc{}class oi{}class lc{}class uc{}class cd{}class ld{}class dc{constructor(){this.inboundVideoStats=new ac,this.inboundAudioStats=new sc,this.candidatePair=new lc,this.DataChannelStats=new cc,this.outBoundVideoStats=new uc,this.sessionStats=new cd,this.streamStats=new ld,this.codecs=new Map}processStats(e){this.localCandidates=new Array,this.remoteCandidates=new Array,e.forEach(t=>{switch(t.type){case"candidate-pair":this.handleCandidatePair(t);break;case"certificate":case"media-source":case"media-playout":case"outbound-rtp":case"peer-connection":case"remote-inbound-rtp":case"transport":break;case"codec":this.handleCodec(t);break;case"data-channel":this.handleDataChannel(t);break;case"inbound-rtp":this.handleInBoundRTP(t);break;case"local-candidate":this.handleLocalCandidate(t);break;case"remote-candidate":this.handleRemoteCandidate(t);break;case"remote-outbound-rtp":this.handleRemoteOutBound(t);break;case"track":this.handleTrack(t);break;case"stream":this.handleStream(t);break;default:x.Error(x.GetStackTrace(),"unhandled Stat Type"),x.Log(x.GetStackTrace(),t)}})}handleStream(e){this.streamStats=e}handleCandidatePair(e){this.candidatePair.bytesReceived=e.bytesReceived,this.candidatePair.bytesSent=e.bytesSent,this.candidatePair.localCandidateId=e.localCandidateId,this.candidatePair.remoteCandidateId=e.remoteCandidateId,this.candidatePair.nominated=e.nominated,this.candidatePair.readable=e.readable,this.candidatePair.selected=e.selected,this.candidatePair.writable=e.writable,this.candidatePair.state=e.state,this.candidatePair.currentRoundTripTime=e.currentRoundTripTime}handleDataChannel(e){this.DataChannelStats.bytesReceived=e.bytesReceived,this.DataChannelStats.bytesSent=e.bytesSent,this.DataChannelStats.dataChannelIdentifier=e.dataChannelIdentifier,this.DataChannelStats.id=e.id,this.DataChannelStats.label=e.label,this.DataChannelStats.messagesReceived=e.messagesReceived,this.DataChannelStats.messagesSent=e.messagesSent,this.DataChannelStats.protocol=e.protocol,this.DataChannelStats.state=e.state,this.DataChannelStats.timestamp=e.timestamp}handleLocalCandidate(e){const t=new oi;t.label="local-candidate",t.address=e.address,t.port=e.port,t.protocol=e.protocol,t.candidateType=e.candidateType,t.id=e.id,this.localCandidates.push(t)}handleRemoteCandidate(e){const t=new oi;t.label="local-candidate",t.address=e.address,t.port=e.port,t.protocol=e.protocol,t.id=e.id,t.candidateType=e.candidateType,this.remoteCandidates.push(t)}handleInBoundRTP(e){switch(e.kind){case"video":this.inboundVideoStats=e,this.lastVideoStats!=null&&(this.inboundVideoStats.bitrate=8*(this.inboundVideoStats.bytesReceived-this.lastVideoStats.bytesReceived)/(this.inboundVideoStats.timestamp-this.lastVideoStats.timestamp),this.inboundVideoStats.bitrate=Math.floor(this.inboundVideoStats.bitrate)),this.lastVideoStats=Object.assign({},this.inboundVideoStats);break;case"audio":this.inboundAudioStats=e,this.lastAudioStats!=null&&(this.inboundAudioStats.bitrate=8*(this.inboundAudioStats.bytesReceived-this.lastAudioStats.bytesReceived)/(this.inboundAudioStats.timestamp-this.lastAudioStats.timestamp),this.inboundAudioStats.bitrate=Math.floor(this.inboundAudioStats.bitrate)),this.lastAudioStats=Object.assign({},this.inboundAudioStats);break;default:x.Log(x.GetStackTrace(),"Kind is not handled")}}handleRemoteOutBound(e){e.kind==="video"&&(this.outBoundVideoStats.bytesSent=e.bytesSent,this.outBoundVideoStats.id=e.id,this.outBoundVideoStats.localId=e.localId,this.outBoundVideoStats.packetsSent=e.packetsSent,this.outBoundVideoStats.remoteTimestamp=e.remoteTimestamp,this.outBoundVideoStats.timestamp=e.timestamp)}handleTrack(e){e.type!=="track"||e.trackIdentifier!=="video_label"&&e.kind!=="video"||(this.inboundVideoStats.framesDropped=e.framesDropped,this.inboundVideoStats.framesReceived=e.framesReceived,this.inboundVideoStats.frameHeight=e.frameHeight,this.inboundVideoStats.frameWidth=e.frameWidth)}handleCodec(e){const t=e.id,o=`${e.mimeType.replace("video/","").replace("audio/","")}${e.sdpFmtpLine?` ${e.sdpFmtpLine}`:""}`;this.codecs.set(t,o)}handleSessionStatistics(e,t,o){const y=Date.now()-e;this.sessionStats.runTime=new Date(y).toISOString().substr(11,8).toString();const B=t===null?"Not sent yet":t?"true":"false";this.sessionStats.controlsStreamInput=B,this.sessionStats.videoEncoderAvgQP=o}isNumber(e){return typeof e=="number"&&isFinite(e)}}const fc=(hc={parseRtpParameters:()=>Fa.parseRtpParameters,splitSections:()=>Fa.splitSections},si={},zA.d(si,hc),si);var hc,si,Dt,Ae,ai=function(v,e,t,o){return new(t||(t=Promise))(function(y,B){function A(g){try{m(o.next(g))}catch(w){B(w)}}function h(g){try{m(o.throw(g))}catch(w){B(w)}}function m(g){var w;g.done?y(g.value):(w=g.value,w instanceof t?w:new t(function(p){p(w)})).then(A,h)}m((o=o.apply(v,[])).next())})};class ud{constructor(e,t,o){this.config=t,this.createPeerConnection(e,o)}createPeerConnection(e,t){this.config.isFlagEnabled($.ForceTURN)&&(e.iceTransportPolicy="relay",x.Log(x.GetStackTrace(),"Forcing TURN usage by setting ICE Transport Policy in peer connection config.")),this.peerConnection=new RTCPeerConnection(e),this.peerConnection.onsignalingstatechange=o=>this.handleSignalStateChange(o),this.peerConnection.oniceconnectionstatechange=o=>this.handleIceConnectionStateChange(o),this.peerConnection.onicegatheringstatechange=o=>this.handleIceGatheringStateChange(o),this.peerConnection.ontrack=o=>this.handleOnTrack(o),this.peerConnection.onicecandidate=o=>this.handleIceCandidate(o),this.peerConnection.ondatachannel=o=>this.handleDataChannel(o),this.aggregatedStats=new dc,this.preferredCodec=t,this.updateCodecSelection=!0}createOffer(e,t){return ai(this,void 0,void 0,function*(){x.Log(x.GetStackTrace(),"Create Offer",6);const o=location.hostname==="localhost"||location.hostname==="127.0.0.1",y=location.protocol==="https:";let B=t.isFlagEnabled($.UseMic);!B||o||y||(B=!1,x.Error(x.GetStackTrace(),"Microphone access in the browser will not work if you are not on HTTPS or localhost. Disabling mic access."),x.Error(x.GetStackTrace(),"For testing you can enable HTTP microphone access Chrome by visiting chrome://flags/ and enabling 'unsafely-treat-insecure-origin-as-secure'")),this.setupTransceiversAsync(B).finally(()=>{var A;(A=this.peerConnection)===null||A===void 0||A.createOffer(e).then(h=>{var m;this.showTextOverlayConnecting(),h.sdp=this.mungeSDP(h.sdp,B),(m=this.peerConnection)===null||m===void 0||m.setLocalDescription(h),this.onSendWebRTCOffer(h)}).catch(()=>{this.showTextOverlaySetupFailure()})})})}receiveOffer(e,t){var o;return ai(this,void 0,void 0,function*(){x.Log(x.GetStackTrace(),"Receive Offer",6),(o=this.peerConnection)===null||o===void 0||o.setRemoteDescription(e).then(()=>{const y=location.hostname==="localhost"||location.hostname==="127.0.0.1",B=location.protocol==="https:";let A=t.isFlagEnabled($.UseMic);!A||y||B||(A=!1,x.Error(x.GetStackTrace(),"Microphone access in the browser will not work if you are not on HTTPS or localhost. Disabling mic access."),x.Error(x.GetStackTrace(),"For testing you can enable HTTP microphone access Chrome by visiting chrome://flags/ and enabling 'unsafely-treat-insecure-origin-as-secure'")),this.config.setOptionSettingOptions(ge.PreferredCodec,this.fuzzyIntersectUEAndBrowserCodecs(e)),this.setupTransceiversAsync(A).finally(()=>{var h;(h=this.peerConnection)===null||h===void 0||h.createAnswer().then(m=>{var g;return m.sdp=this.mungeSDP(m.sdp,A),(g=this.peerConnection)===null||g===void 0?void 0:g.setLocalDescription(m)}).then(()=>{var m;this.onSendWebRTCAnswer((m=this.peerConnection)===null||m===void 0?void 0:m.currentLocalDescription)}).catch(()=>{x.Error(x.GetStackTrace(),"createAnswer() failed")})})})})}receiveAnswer(e){var t;(t=this.peerConnection)===null||t===void 0||t.setRemoteDescription(e),this.config.setOptionSettingOptions(ge.PreferredCodec,this.fuzzyIntersectUEAndBrowserCodecs(e))}generateStats(){var e;(e=this.peerConnection)===null||e===void 0||e.getStats(null).then(t=>{this.aggregatedStats.processStats(t),this.onVideoStats(this.aggregatedStats),this.updateCodecSelection&&this.config.setOptionSettingValue(ge.PreferredCodec,this.aggregatedStats.codecs.get(this.aggregatedStats.inboundVideoStats.codecId))})}close(){this.peerConnection&&(this.peerConnection.close(),this.peerConnection=null)}mungeSDP(e,t){let o=e.replace(/(a=fmtp:\d+ .*level-asymmetry-allowed=.*)\r\n/gm,`$1;x-google-start-bitrate=10000;x-google-max-bitrate=100000\r
|
|
270
|
+
`),y="maxaveragebitrate=510000;";return t&&(y+="sprop-maxcapturerate=48000;"),y+=this.config.isFlagEnabled($.ForceMonoAudio)?"stereo=0;":"stereo=1;",y+="useinbandfec=1",o=o.replace("useinbandfec=1",y),o}handleOnIce(e){var t;x.Log(x.GetStackTrace(),"peerconnection handleOnIce",6),this.config.isFlagEnabled($.ForceTURN)&&e.candidate.indexOf("relay")<0?x.Info(x.GetStackTrace(),`Dropping candidate because it was not TURN relay. | Type= ${e.type} | Protocol= ${e.protocol} | Address=${e.address} | Port=${e.port} |`,6):(t=this.peerConnection)===null||t===void 0||t.addIceCandidate(e)}handleSignalStateChange(e){x.Log(x.GetStackTrace(),"signaling state change: "+e,6)}handleIceConnectionStateChange(e){x.Log(x.GetStackTrace(),"ice connection state change: "+e,6),this.onIceConnectionStateChange(e)}handleIceGatheringStateChange(e){x.Log(x.GetStackTrace(),"ice gathering state change: "+JSON.stringify(e),6)}handleOnTrack(e){this.onTrack(e)}handleIceCandidate(e){this.onPeerIceCandidate(e)}handleDataChannel(e){this.onDataChannel(e)}onTrack(e){}onIceConnectionStateChange(e){}onPeerIceCandidate(e){}onDataChannel(e){}fuzzyIntersectUEAndBrowserCodecs(e){const t=new Array,o=this.parseAvailableCodecs(e),y=this.config.getSettingOption(ge.PreferredCodec).options;for(const B of o)if(y.includes(B))t.push(B);else{const A=B.split(" ")[0];for(const h of y)if(h.includes(A)){t.push(h);break}}return t}setupTransceiversAsync(e){var t,o,y,B,A,h,m,g,w,p,u,f;return ai(this,void 0,void 0,function*(){let c=!1;for(const n of(o=(t=this.peerConnection)===null||t===void 0?void 0:t.getTransceivers())!==null&&o!==void 0?o:[])if(n&&n.receiver&&n.receiver.track&&n.receiver.track.kind==="video"){c=!0;break}if(c||(y=this.peerConnection)===null||y===void 0||y.addTransceiver("video",{direction:"recvonly"}),RTCRtpReceiver.getCapabilities&&this.preferredCodec!=""){for(const n of(A=(B=this.peerConnection)===null||B===void 0?void 0:B.getTransceivers())!==null&&A!==void 0?A:[])if(n&&n.receiver&&n.receiver.track&&n.receiver.track.kind==="video"&&n.setCodecPreferences){const s=this.preferredCodec.split(" "),r=[{mimeType:"video/"+s[0],clockRate:9e4,sdpFmtpLine:s[1]?s[1]:""}];this.config.getSettingOption(ge.PreferredCodec).options.filter(i=>i!=this.preferredCodec).forEach(i=>{const l=i.split(" ");r.push({mimeType:"video/"+l[0],clockRate:9e4,sdpFmtpLine:l[1]?l[1]:""})});for(const i of r)i.sdpFmtpLine===""&&delete i.sdpFmtpLine;n.setCodecPreferences(r)}}let a=!1;for(const n of(m=(h=this.peerConnection)===null||h===void 0?void 0:h.getTransceivers())!==null&&m!==void 0?m:[])if(n&&n.receiver&&n.receiver.track&&n.receiver.track.kind==="audio"){a=!0;break}if(e){const n={video:!1,audio:!!e&&{autoGainControl:!1,channelCount:1,echoCancellation:!1,latency:0,noiseSuppression:!1,sampleRate:48e3,sampleSize:16,volume:1}},s=yield navigator.mediaDevices.getUserMedia(n);if(s)if(a){for(const r of(p=(w=this.peerConnection)===null||w===void 0?void 0:w.getTransceivers())!==null&&p!==void 0?p:[])if(r&&r.receiver&&r.receiver.track&&r.receiver.track.kind==="audio")for(const i of s.getTracks())i.kind&&i.kind=="audio"&&(r.sender.replaceTrack(i),r.direction="sendrecv")}else for(const r of s.getTracks())r.kind&&r.kind=="audio"&&((u=this.peerConnection)===null||u===void 0||u.addTransceiver(r,{direction:"sendrecv"}));else a||(f=this.peerConnection)===null||f===void 0||f.addTransceiver("audio",{direction:"recvonly"})}else a||(g=this.peerConnection)===null||g===void 0||g.addTransceiver("audio",{direction:"recvonly"})})}onVideoStats(e){}onSendWebRTCOffer(e){}onSendWebRTCAnswer(e){}showTextOverlayConnecting(){}showTextOverlaySetupFailure(){}parseAvailableCodecs(e){if(!RTCRtpReceiver.getCapabilities)return["Only available on Chrome"];const t=[],o=(0,fc.splitSections)(e.sdp);return o.shift(),o.forEach(y=>{const{codecs:B}=(0,fc.parseRtpParameters)(y),A=/(VP\d|H26\d|AV1).*/;B.forEach(h=>{const m=h.name+" "+Object.keys(h.parameters||{}).map(g=>g+"="+h.parameters[g]).join(";");if(A.exec(m)!==null){h.name=="VP9"&&(h.parameters={"profile-id":"0"});const g=h.name+" "+Object.keys(h.parameters||{}).map(w=>w+"="+h.parameters[w]).join(";");t.push(g)}})}),t}}class pc{constructor(){this.PixelStreamingSettings=new dd,this.EncoderSettings=new gc,this.WebRTCSettings=new vc}ueCompatible(){this.WebRTCSettings.MaxFPS!=null&&(this.WebRTCSettings.FPS=this.WebRTCSettings.MaxFPS)}}class dd{}class gc{}class vc{}class yc{constructor(){this.ReceiptTimeMs=null,this.TransmissionTimeMs=null,this.PreCaptureTimeMs=null,this.PostCaptureTimeMs=null,this.PreEncodeTimeMs=null,this.PostEncodeTimeMs=null,this.EncodeMs=null,this.CaptureToSendMs=null,this.testStartTimeMs=0,this.browserReceiptTimeMs=0,this.latencyExcludingDecode=0,this.testDuration=0,this.networkLatency=0,this.browserSendLatency=0,this.frameDisplayDeltaTimeMs=0,this.endToEndLatency=0,this.encodeLatency=0}setFrameDisplayDeltaTime(e){this.frameDisplayDeltaTimeMs==0&&(this.frameDisplayDeltaTimeMs=Math.round(e))}processFields(){this.EncodeMs!=null||this.PreEncodeTimeMs==null&&this.PostEncodeTimeMs==null||(x.Log(x.GetStackTrace(),`Setting Encode Ms
|
|
271
|
+
${this.PostEncodeTimeMs}
|
|
272
|
+
${this.PreEncodeTimeMs}`,6),this.EncodeMs=this.PostEncodeTimeMs-this.PreEncodeTimeMs),this.CaptureToSendMs!=null||this.PreCaptureTimeMs==null&&this.PostCaptureTimeMs==null||(x.Log(x.GetStackTrace(),`Setting CaptureToSendMs Ms
|
|
273
|
+
${this.PostCaptureTimeMs}
|
|
274
|
+
${this.PreCaptureTimeMs}`,6),this.CaptureToSendMs=this.PostCaptureTimeMs-this.PreCaptureTimeMs)}}class ci{static setExtensionFromBytes(e,t){t.receiving||(t.mimetype="",t.extension="",t.receiving=!0,t.valid=!1,t.size=0,t.data=[],t.timestampStart=new Date().getTime(),x.Log(x.GetStackTrace(),"Received first chunk of file",6));const o=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),o,6),t.extension=o}static setMimeTypeFromBytes(e,t){t.receiving||(t.mimetype="",t.extension="",t.receiving=!0,t.valid=!1,t.size=0,t.data=[],t.timestampStart=new Date().getTime(),x.Log(x.GetStackTrace(),"Received first chunk of file",6));const o=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),o,6),t.mimetype=o}static setContentsFromBytes(e,t){if(!t.receiving)return;t.size=Math.ceil(new DataView(e.slice(1,5).buffer).getInt32(0,!0)/16379);const o=e.slice(5);if(t.data.push(o),x.Log(x.GetStackTrace(),`Received file chunk: ${t.data.length}/${t.size}`,6),t.data.length===t.size){t.receiving=!1,t.valid=!0,x.Log(x.GetStackTrace(),"Received complete file",6);const y=new Date().getTime()-t.timestampStart,B=Math.round(16*t.size*1024/y);x.Log(x.GetStackTrace(),`Average transfer bitrate: ${B}kb/s over ${y/1e3} seconds`,6);const A=new Blob(t.data,{type:t.mimetype}),h=document.createElement("a");h.setAttribute("href",URL.createObjectURL(A)),h.setAttribute("download",`transfer.${t.extension}`),document.body.append(h),h.remove()}else t.data.length>t.size&&(t.receiving=!1,x.Error(x.GetStackTrace(),`Received bigger file than advertised: ${t.data.length}/${t.size}`))}}class fd{constructor(){this.mimetype="",this.extension="",this.receiving=!1,this.size=0,this.data=[],this.valid=!1}}class Ue{}Ue.mainButton=0,Ue.auxiliaryButton=1,Ue.secondaryButton=2,Ue.fourthButton=3,Ue.fifthButton=4;class Me{}Me.primaryButton=1,Me.secondaryButton=2,Me.auxiliaryButton=4,Me.fourthButton=8,Me.fifthButton=16;class Rt{constructor(){this.unregisterCallbacks=[]}addUnregisterCallback(e){this.unregisterCallbacks.push(e)}unregisterAll(){for(const e of this.unregisterCallbacks)e();this.unregisterCallbacks=[]}}class hd{constructor(e,t,o){this.touchEventListenerTracker=new Rt,this.toStreamerMessagesProvider=e,this.videoElementProvider=t,this.coordinateConverter=o;const y=h=>this.onTouchStart(h),B=h=>this.onTouchEnd(h),A=h=>this.onTouchMove(h);document.addEventListener("touchstart",y,{passive:!1}),document.addEventListener("touchend",B,{passive:!1}),document.addEventListener("touchmove",A,{passive:!1}),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchstart",y)),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchend",B)),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchmove",A))}unregisterTouchEvents(){this.touchEventListenerTracker.unregisterAll()}setVideoElementParentClientRect(e){this.videoElementParentClientRect=e}onTouchStart(e){if(this.videoElementProvider.isVideoReady()){if(this.fakeTouchFinger==null){const t=e.changedTouches[0];this.fakeTouchFinger=new pd(t.identifier,t.clientX-this.videoElementParentClientRect.left,t.clientY-this.videoElementParentClientRect.top);const o=this.videoElementProvider.getVideoParentElement(),y=new MouseEvent("mouseenter",t);o.dispatchEvent(y);const B=this.coordinateConverter.normalizeAndQuantizeUnsigned(this.fakeTouchFinger.x,this.fakeTouchFinger.y);this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([Ue.mainButton,B.x,B.y])}e.preventDefault()}}onTouchEnd(e){if(!this.videoElementProvider.isVideoReady())return;const t=this.videoElementProvider.getVideoParentElement(),o=this.toStreamerMessagesProvider.toStreamerHandlers;for(let y=0;y<e.changedTouches.length;y++){const B=e.changedTouches[y];if(B.identifier===this.fakeTouchFinger.id){const A=B.clientX-this.videoElementParentClientRect.left,h=B.clientY-this.videoElementParentClientRect.top,m=this.coordinateConverter.normalizeAndQuantizeUnsigned(A,h);o.get("MouseUp")([Ue.mainButton,m.x,m.y]);const g=new MouseEvent("mouseleave",B);t.dispatchEvent(g),this.fakeTouchFinger=null;break}}e.preventDefault()}onTouchMove(e){if(!this.videoElementProvider.isVideoReady())return;const t=this.toStreamerMessagesProvider.toStreamerHandlers;for(let o=0;o<e.touches.length;o++){const y=e.touches[o];if(y.identifier===this.fakeTouchFinger.id){const B=y.clientX-this.videoElementParentClientRect.left,A=y.clientY-this.videoElementParentClientRect.top,h=this.coordinateConverter.normalizeAndQuantizeUnsigned(B,A),m=this.coordinateConverter.normalizeAndQuantizeSigned(B-this.fakeTouchFinger.x,A-this.fakeTouchFinger.y);t.get("MouseMove")([h.x,h.y,m.x,m.y]),this.fakeTouchFinger.x=B,this.fakeTouchFinger.y=A;break}}e.preventDefault()}}class pd{constructor(e,t,o){this.id=e,this.x=t,this.y=o}}class He{}He.backSpace=8,He.shift=16,He.control=17,He.alt=18,He.rightShift=253,He.rightControl=254,He.rightAlt=255;class gd{constructor(e,t,o){this.keyboardEventListenerTracker=new Rt,this.CodeToKeyCode={Escape:27,Digit0:48,Digit1:49,Digit2:50,Digit3:51,Digit4:52,Digit5:53,Digit6:54,Digit7:55,Digit8:56,Digit9:57,Minus:173,Equal:187,Backspace:8,Tab:9,KeyQ:81,KeyW:87,KeyE:69,KeyR:82,KeyT:84,KeyY:89,KeyU:85,KeyI:73,KeyO:79,KeyP:80,BracketLeft:219,BracketRight:221,Enter:13,ControlLeft:17,KeyA:65,KeyS:83,KeyD:68,KeyF:70,KeyG:71,KeyH:72,KeyJ:74,KeyK:75,KeyL:76,Semicolon:186,Quote:222,Backquote:192,ShiftLeft:16,Backslash:220,KeyZ:90,KeyX:88,KeyC:67,KeyV:86,KeyB:66,KeyN:78,KeyM:77,Comma:188,Period:190,Slash:191,ShiftRight:253,AltLeft:18,Space:32,CapsLock:20,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,Pause:19,ScrollLock:145,NumpadDivide:111,NumpadMultiply:106,NumpadSubtract:109,NumpadAdd:107,NumpadDecimal:110,Numpad9:105,Numpad8:104,Numpad7:103,Numpad6:102,Numpad5:101,Numpad4:100,Numpad3:99,Numpad2:98,Numpad1:97,Numpad0:96,NumLock:144,ControlRight:254,AltRight:255,Home:36,End:35,ArrowUp:38,ArrowLeft:37,ArrowRight:39,ArrowDown:40,PageUp:33,PageDown:34,Insert:45,Delete:46,ContextMenu:93},this.toStreamerMessagesProvider=e,this.config=t,this.activeKeysProvider=o}registerKeyBoardEvents(){const e=y=>this.handleOnKeyDown(y),t=y=>this.handleOnKeyUp(y),o=y=>this.handleOnKeyPress(y);document.addEventListener("keydown",e),document.addEventListener("keyup",t),document.addEventListener("keypress",o),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keydown",e)),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keyup",t)),this.keyboardEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("keypress",o))}unregisterKeyBoardEvents(){this.keyboardEventListenerTracker.unregisterAll()}handleOnKeyDown(e){const t=this.getKeycode(e);t&&(x.Log(x.GetStackTrace(),`key down ${t}, repeat = ${e.repeat}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyDown")([this.getKeycode(e),e.repeat?1:0]),this.activeKeysProvider.getActiveKeys().push(t),t===He.backSpace&&document.dispatchEvent(new KeyboardEvent("keypress",{charCode:He.backSpace})),this.config.isFlagEnabled($.SuppressBrowserKeys)&&this.isKeyCodeBrowserKey(t)&&e.preventDefault())}handleOnKeyUp(e){const t=this.getKeycode(e);t&&(x.Log(x.GetStackTrace(),`key up ${t}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyUp")([t,e.repeat?1:0]),this.config.isFlagEnabled($.SuppressBrowserKeys)&&this.isKeyCodeBrowserKey(t)&&e.preventDefault())}handleOnKeyPress(e){if(!("charCode"in e))return void x.Warning(x.GetStackTrace(),"KeyboardEvent.charCode is deprecated in this browser, cannot send key press.");const t=e.charCode;x.Log(x.GetStackTrace(),`key press ${t}`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("KeyPress")([t])}getKeycode(e){if(!("keyCode"in e)){const t=e;return t.code in this.CodeToKeyCode?this.CodeToKeyCode[t.code]:(x.Warning(x.GetStackTrace(),`Keyboard code of ${t.code} is not supported in our mapping, ignoring this key.`),null)}return e.keyCode===He.shift&&e.code==="ShiftRight"?He.rightShift:e.keyCode===He.control&&e.code==="ControlRight"?He.rightControl:e.keyCode===He.alt&&e.code==="AltRight"?He.rightAlt:e.keyCode}isKeyCodeBrowserKey(e){return e>=112&&e<=123||e===9}}class vd{constructor(e,t,o){this.x=0,this.y=0,this.updateMouseMovePositionEvent=B=>{this.updateMouseMovePosition(B)},this.mouseEventListenerTracker=new Rt,this.videoElementProvider=e,this.mouseController=t,this.activeKeysProvider=o;const y=this.videoElementProvider.getVideoParentElement();this.x=y.getBoundingClientRect().width/2,this.y=y.getBoundingClientRect().height/2,this.coord=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(this.x,this.y)}unregisterMouseEvents(){this.mouseEventListenerTracker.unregisterAll()}lockStateChange(){const e=this.videoElementProvider.getVideoParentElement(),t=this.mouseController.toStreamerMessagesProvider.toStreamerHandlers;if(document.pointerLockElement===e||document.mozPointerLockElement===e)x.Log(x.GetStackTrace(),"Pointer locked",6),document.addEventListener("mousemove",this.updateMouseMovePositionEvent,!1),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("mousemove",this.updateMouseMovePositionEvent,!1));else{x.Log(x.GetStackTrace(),"The pointer lock status is now unlocked",6),document.removeEventListener("mousemove",this.updateMouseMovePositionEvent,!1);let o=this.activeKeysProvider.getActiveKeys();const y=new Set(o),B=[];y.forEach(A=>{}),B.forEach(A=>{t.get("KeyUp")([A])}),o=[]}}updateMouseMovePosition(e){if(!this.videoElementProvider.isVideoReady())return;const t=this.mouseController.toStreamerMessagesProvider.toStreamerHandlers,o=this.videoElementProvider.getVideoParentElement().clientWidth,y=this.videoElementProvider.getVideoParentElement().clientHeight;this.x+=e.movementX,this.y+=e.movementY,this.x>o&&(this.x-=o),this.y>y&&(this.y-=y),this.x<0&&(this.x=o+this.x),this.y<0&&(this.y=y-this.y),this.coord=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(this.x,this.y);const B=this.mouseController.coordinateConverter.normalizeAndQuantizeSigned(e.movementX,e.movementY);t.get("MouseMove")([this.coord.x,this.coord.y,B.x,B.y])}handleMouseDown(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([e.button,this.coord.x,this.coord.y])}handleMouseUp(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([e.button,this.coord.x,this.coord.y])}handleMouseWheel(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseWheel")([e.wheelDelta,this.coord.x,this.coord.y])}handleMouseDouble(e){this.videoElementProvider.isVideoReady()&&this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDouble")([e.button,this.coord.x,this.coord.y])}handlePressMouseButtons(e){this.videoElementProvider.isVideoReady()&&this.mouseController.pressMouseButtons(e.buttons,this.x,this.y)}handleReleaseMouseButtons(e){this.videoElementProvider.isVideoReady()&&this.mouseController.releaseMouseButtons(e.buttons,this.x,this.y)}}class yd{constructor(e){this.mouseController=e}unregisterMouseEvents(){}updateMouseMovePosition(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),"MouseMove",6);const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY),o=this.mouseController.coordinateConverter.normalizeAndQuantizeSigned(e.movementX,e.movementY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseMove")([t.x,t.y,o.x,o.y]),e.preventDefault()}handleMouseDown(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),"onMouse Down",6);const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([e.button,t.x,t.y]),e.preventDefault()}handleMouseUp(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),"onMouse Up",6);const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([e.button,t.x,t.y]),e.preventDefault()}handleContextMenu(e){this.mouseController.videoElementProvider.isVideoReady()&&e.preventDefault()}handleMouseWheel(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseWheel")([e.wheelDelta,t.x,t.y]),e.preventDefault()}handleMouseDouble(e){if(!this.mouseController.videoElementProvider.isVideoReady())return;const t=this.mouseController.coordinateConverter.normalizeAndQuantizeUnsigned(e.offsetX,e.offsetY);this.mouseController.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDouble")([e.button,t.x,t.y])}handlePressMouseButtons(e){this.mouseController.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"onMouse press",6),this.mouseController.pressMouseButtons(e.buttons,e.offsetX,e.offsetY))}handleReleaseMouseButtons(e){this.mouseController.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"onMouse release",6),this.mouseController.releaseMouseButtons(e.buttons,e.offsetX,e.offsetY))}}class md{constructor(e,t,o,y){this.mouseEventListenerTracker=new Rt,this.toStreamerMessagesProvider=e,this.coordinateConverter=o,this.videoElementProvider=t,this.activeKeysProvider=y,this.registerMouseEnterAndLeaveEvents()}unregisterMouseEvents(){this.mouseEventListenerTracker.unregisterAll()}registerLockedMouseEvents(e){const t=this.videoElementProvider.getVideoParentElement(),o=new vd(this.videoElementProvider,e,this.activeKeysProvider);if(t.requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock,document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock,t.requestPointerLock){const g=()=>{t.requestPointerLock()};t.addEventListener("click",g),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("click",g))}const y=()=>o.lockStateChange();document.addEventListener("pointerlockchange",y,!1),document.addEventListener("mozpointerlockchange",y,!1),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("pointerlockchange",y,!1)),this.mouseEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("mozpointerlockchange",y,!1));const B=g=>o.handleMouseDown(g),A=g=>o.handleMouseUp(g),h=g=>o.handleMouseWheel(g),m=g=>o.handleMouseDouble(g);t.addEventListener("mousedown",B),t.addEventListener("mouseup",A),t.addEventListener("wheel",h),t.addEventListener("dblclick",m),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mousedown",B)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mouseup",A)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("wheel",h)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("dblclick",m)),this.mouseEventListenerTracker.addUnregisterCallback(()=>o.unregisterMouseEvents()),this.mouseEventListenerTracker.addUnregisterCallback(()=>{!document.exitPointerLock||document.pointerLockElement!==t&&document.mozPointerLockElement!==t||document.exitPointerLock()})}registerHoveringMouseEvents(e){const t=this.videoElementProvider.getVideoParentElement(),o=new yd(e),y=w=>o.updateMouseMovePosition(w),B=w=>o.handleMouseDown(w),A=w=>o.handleMouseUp(w),h=w=>o.handleContextMenu(w),m=w=>o.handleMouseWheel(w),g=w=>o.handleMouseDouble(w);t.addEventListener("mousemove",y),t.addEventListener("mousedown",B),t.addEventListener("mouseup",A),t.addEventListener("contextmenu",h),t.addEventListener("wheel",m),t.addEventListener("dblclick",g),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mousemove",y)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mousedown",B)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("mouseup",A)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("contextmenu",h)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("wheel",m)),this.mouseEventListenerTracker.addUnregisterCallback(()=>t.removeEventListener("dblclick",g)),this.mouseEventListenerTracker.addUnregisterCallback(()=>o.unregisterMouseEvents())}registerMouseEnterAndLeaveEvents(){const e=this.videoElementProvider.getVideoParentElement(),t=y=>{this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"Mouse Entered",6),this.sendMouseEnter(),this.pressMouseButtons(y.buttons,y.x,y.y))},o=y=>{this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"Mouse Left",6),this.sendMouseLeave(),this.releaseMouseButtons(y.buttons,y.x,y.y))};e.addEventListener("mouseenter",t),e.addEventListener("mouseleave",o),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mouseenter",t)),this.mouseEventListenerTracker.addUnregisterCallback(()=>e.removeEventListener("mouseleave",o))}releaseMouseButtons(e,t,o){const y=this.coordinateConverter.normalizeAndQuantizeUnsigned(t,o);e&Me.primaryButton&&this.sendMouseUp(Ue.mainButton,y.x,y.y),e&Me.secondaryButton&&this.sendMouseUp(Ue.secondaryButton,y.x,y.y),e&Me.auxiliaryButton&&this.sendMouseUp(Ue.auxiliaryButton,y.x,y.y),e&Me.fourthButton&&this.sendMouseUp(Ue.fourthButton,y.x,y.y),e&Me.fifthButton&&this.sendMouseUp(Ue.fifthButton,y.x,y.y)}pressMouseButtons(e,t,o){if(!this.videoElementProvider.isVideoReady())return;const y=this.coordinateConverter.normalizeAndQuantizeUnsigned(t,o);e&Me.primaryButton&&this.sendMouseDown(Ue.mainButton,y.x,y.y),e&Me.secondaryButton&&this.sendMouseDown(Ue.secondaryButton,y.x,y.y),e&Me.auxiliaryButton&&this.sendMouseDown(Ue.auxiliaryButton,y.x,y.y),e&Me.fourthButton&&this.sendMouseDown(Ue.fourthButton,y.x,y.y),e&Me.fifthButton&&this.sendMouseDown(Ue.fifthButton,y.x,y.y)}sendMouseEnter(){this.videoElementProvider.isVideoReady()&&this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseEnter")()}sendMouseLeave(){this.videoElementProvider.isVideoReady()&&this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseLeave")()}sendMouseDown(e,t,o){this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),`mouse button ${e} down at (${t}, ${o})`,6),this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseDown")([e,t,o]))}sendMouseUp(e,t,o){if(!this.videoElementProvider.isVideoReady())return;x.Log(x.GetStackTrace(),`mouse button ${e} up at (${t}, ${o})`,6);const y=this.coordinateConverter.normalizeAndQuantizeUnsigned(t,o);this.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp")([e,y.x,y.y])}}class wd{constructor(e,t,o){this.fingers=[9,8,7,6,5,4,3,2,1,0],this.fingerIds=new Map,this.maxByteValue=255,this.touchEventListenerTracker=new Rt,this.toStreamerMessagesProvider=e,this.videoElementProvider=t,this.coordinateConverter=o,this.videoElementParent=t.getVideoElement();const y=m=>this.onTouchStart(m),B=m=>this.onTouchEnd(m),A=m=>this.onTouchMove(m);this.videoElementParent.addEventListener("touchstart",y,{passive:!1}),this.videoElementParent.addEventListener("touchend",B,{passive:!1}),this.videoElementParent.addEventListener("touchmove",A,{passive:!1}),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchstart",y)),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchend",B)),this.touchEventListenerTracker.addUnregisterCallback(()=>this.videoElementParent.removeEventListener("touchmove",A)),x.Log(x.GetStackTrace(),"Touch Events Registered",6);const h=m=>{m.preventDefault()};document.addEventListener("touchmove",h,{passive:!1}),this.touchEventListenerTracker.addUnregisterCallback(()=>document.removeEventListener("touchmove",h))}unregisterTouchEvents(){this.touchEventListenerTracker.unregisterAll()}rememberTouch(e){const t=this.fingers.pop();t===void 0&&x.Log(x.GetStackTrace(),"exhausted touch identifiers",6),this.fingerIds.set(e.identifier,t)}forgetTouch(e){this.fingers.push(this.fingerIds.get(e.identifier)),this.fingers.sort(function(t,o){return o-t}),this.fingerIds.delete(e.identifier)}onTouchStart(e){if(this.videoElementProvider.isVideoReady()){for(let t=0;t<e.changedTouches.length;t++)this.rememberTouch(e.changedTouches[t]);x.Log(x.GetStackTrace(),"touch start",6),this.emitTouchData("TouchStart",e.changedTouches),e.preventDefault()}}onTouchEnd(e){if(this.videoElementProvider.isVideoReady()){x.Log(x.GetStackTrace(),"touch end",6),this.emitTouchData("TouchEnd",e.changedTouches);for(let t=0;t<e.changedTouches.length;t++)this.forgetTouch(e.changedTouches[t]);e.preventDefault()}}onTouchMove(e){this.videoElementProvider.isVideoReady()&&(x.Log(x.GetStackTrace(),"touch move",6),this.emitTouchData("TouchMove",e.touches),e.preventDefault())}emitTouchData(e,t){if(!this.videoElementProvider.isVideoReady())return;const o=this.videoElementProvider.getVideoParentElement().getBoundingClientRect(),y=this.toStreamerMessagesProvider.toStreamerHandlers;for(let B=0;B<t.length;B++){const h=t[B],m=h.clientX-o.left,g=h.clientY-o.top;x.Log(x.GetStackTrace(),`F${this.fingerIds.get(h.identifier)}=(${m}, ${g})`,6);const w=this.coordinateConverter.normalizeAndQuantizeUnsigned(m,g);switch(e){case"TouchStart":y.get("TouchStart")([1,w.x,w.y,this.fingerIds.get(h.identifier),this.maxByteValue*h.force,w.inRange?1:0]);break;case"TouchEnd":y.get("TouchEnd")([1,w.x,w.y,this.fingerIds.get(h.identifier),this.maxByteValue*h.force,w.inRange?1:0]);break;case"TouchMove":y.get("TouchMove")([1,w.x,w.y,this.fingerIds.get(h.identifier),this.maxByteValue*h.force,w.inRange?1:0])}}}}class Bd{constructor(e){this.gamePadEventListenerTracker=new Rt,this.toStreamerMessagesProvider=e,this.requestAnimationFrame=(window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.requestAnimationFrame).bind(window);const t=window;if("GamepadEvent"in t){const o=B=>this.gamePadConnectHandler(B),y=B=>this.gamePadDisconnectHandler(B);window.addEventListener("gamepadconnected",o),window.addEventListener("gamepaddisconnected",y),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("gamepadconnected",o)),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("gamepaddisconnected",y))}else if("WebKitGamepadEvent"in t){const o=B=>this.gamePadConnectHandler(B),y=B=>this.gamePadDisconnectHandler(B);window.addEventListener("webkitgamepadconnected",o),window.addEventListener("webkitgamepaddisconnected",y),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("webkitgamepadconnected",o)),this.gamePadEventListenerTracker.addUnregisterCallback(()=>window.removeEventListener("webkitgamepaddisconnected",y))}if(this.controllers=[],navigator.getGamepads)for(const o of navigator.getGamepads())o&&this.gamePadConnectHandler(new GamepadEvent("gamepadconnected",{gamepad:o}))}unregisterGamePadEvents(){this.gamePadEventListenerTracker.unregisterAll();for(const e of this.controllers)e.id!==void 0&&this.onGamepadDisconnected(e.id);this.controllers=[],this.onGamepadConnected=()=>{},this.onGamepadDisconnected=()=>{}}gamePadConnectHandler(e){x.Log(x.GetStackTrace(),"Gamepad connect handler",6);const t=e.gamepad,o={currentState:t,prevState:t,id:void 0};this.controllers.push(o),this.controllers[t.index].currentState=t,this.controllers[t.index].prevState=t,x.Log(x.GetStackTrace(),"gamepad: "+t.id+" connected",6),window.requestAnimationFrame(()=>this.updateStatus()),this.onGamepadConnected()}gamePadDisconnectHandler(e){x.Log(x.GetStackTrace(),"Gamepad disconnect handler",6),x.Log(x.GetStackTrace(),"gamepad: "+e.gamepad.id+" disconnected",6);const t=this.controllers[e.gamepad.index];delete this.controllers[e.gamepad.index],this.controllers=this.controllers.filter(o=>o!==void 0),this.onGamepadDisconnected(t.id)}scanGamePads(){const e=navigator.getGamepads?navigator.getGamepads():navigator.webkitGetGamepads?navigator.webkitGetGamepads():[];for(let t=0;t<e.length;t++)e[t]&&e[t].index in this.controllers&&(this.controllers[e[t].index].currentState=e[t])}updateStatus(){this.scanGamePads();const e=this.toStreamerMessagesProvider.toStreamerHandlers;for(const t of this.controllers){const o=t.id===void 0?this.controllers.indexOf(t):t.id,y=t.currentState;for(let B=0;B<t.currentState.buttons.length;B++){const A=t.currentState.buttons[B],h=t.prevState.buttons[B];A.pressed?B==Dt.LeftTrigger?e.get("GamepadAnalog")([o,5,A.value]):B==Dt.RightTrigger?e.get("GamepadAnalog")([o,6,A.value]):e.get("GamepadButtonPressed")([o,B,h.pressed?1:0]):!A.pressed&&h.pressed&&(B==Dt.LeftTrigger?e.get("GamepadAnalog")([o,5,0]):B==Dt.RightTrigger?e.get("GamepadAnalog")([o,6,0]):e.get("GamepadButtonReleased")([o,B]))}for(let B=0;B<y.axes.length;B+=2){const A=parseFloat(y.axes[B].toFixed(4)),h=-parseFloat(y.axes[B+1].toFixed(4));e.get("GamepadAnalog")([o,B+1,A]),e.get("GamepadAnalog")([o,B+2,h])}this.controllers[o].prevState=y}this.controllers.length>0&&this.requestAnimationFrame(()=>this.updateStatus())}onGamepadResponseReceived(e){for(const t of this.controllers)if(t.id===void 0){t.id=e;break}}onGamepadConnected(){}onGamepadDisconnected(e){}}(function(v){v[v.RightClusterBottomButton=0]="RightClusterBottomButton",v[v.RightClusterRightButton=1]="RightClusterRightButton",v[v.RightClusterLeftButton=2]="RightClusterLeftButton",v[v.RightClusterTopButton=3]="RightClusterTopButton",v[v.LeftShoulder=4]="LeftShoulder",v[v.RightShoulder=5]="RightShoulder",v[v.LeftTrigger=6]="LeftTrigger",v[v.RightTrigger=7]="RightTrigger",v[v.SelectOrBack=8]="SelectOrBack",v[v.StartOrForward=9]="StartOrForward",v[v.LeftAnalogPress=10]="LeftAnalogPress",v[v.RightAnalogPress=11]="RightAnalogPress",v[v.LeftClusterTopButton=12]="LeftClusterTopButton",v[v.LeftClusterBottomButton=13]="LeftClusterBottomButton",v[v.LeftClusterLeftButton=14]="LeftClusterLeftButton",v[v.LeftClusterRightButton=15]="LeftClusterRightButton",v[v.CentreButton=16]="CentreButton",v[v.LeftStickHorizontal=0]="LeftStickHorizontal",v[v.LeftStickVertical=1]="LeftStickVertical",v[v.RightStickHorizontal=2]="RightStickHorizontal",v[v.RightStickVertical=3]="RightStickVertical"})(Dt||(Dt={}));class Cd{constructor(e,t,o){this.activeKeys=new bd,this.toStreamerMessagesProvider=e,this.videoElementProvider=t,this.coordinateConverter=o}registerKeyBoard(e){x.Log(x.GetStackTrace(),"Register Keyboard Events",7);const t=new gd(this.toStreamerMessagesProvider,e,this.activeKeys);return t.registerKeyBoardEvents(),t}registerMouse(e){x.Log(x.GetStackTrace(),"Register Mouse Events",7);const t=new md(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter,this.activeKeys);switch(e){case bt.LockedMouse:t.registerLockedMouseEvents(t);break;case bt.HoveringMouse:t.registerHoveringMouseEvents(t);break;default:x.Info(x.GetStackTrace(),"unknown Control Scheme Type Defaulting to Locked Mouse Events"),t.registerLockedMouseEvents(t)}return t}registerTouch(e,t){if(x.Log(x.GetStackTrace(),"Registering Touch",6),e){const o=new hd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter);return o.setVideoElementParentClientRect(t),o}return new wd(this.toStreamerMessagesProvider,this.videoElementProvider,this.coordinateConverter)}registerGamePad(){return x.Log(x.GetStackTrace(),"Register Game Pad",7),new Bd(this.toStreamerMessagesProvider)}}class bd{constructor(){this.activeKeys=[],this.activeKeys=[]}getActiveKeys(){return this.activeKeys}}class _d{constructor(e,t){this.lastTimeResized=new Date().getTime(),this.videoElement=document.createElement("video"),this.config=t,this.videoElement.id="streamingVideo",this.videoElement.disablePictureInPicture=!0,this.videoElement.playsInline=!0,this.videoElement.style.width="100%",this.videoElement.style.height="100%",this.videoElement.style.position="absolute",this.videoElement.style.pointerEvents="all",e.appendChild(this.videoElement),this.onResizePlayerCallback=()=>{console.log("Resolution changed, restyling player, did you forget to override this function?")},this.onMatchViewportResolutionCallback=()=>{console.log("Resolution changed and match viewport resolution is turned on, did you forget to override this function?")},this.videoElement.onclick=()=>{this.audioElement!=null&&this.audioElement.paused&&this.audioElement.play(),this.videoElement.paused&&this.videoElement.play()},this.videoElement.onloadedmetadata=()=>{this.onVideoInitialized()},window.addEventListener("resize",()=>this.resizePlayerStyle(),!0),window.addEventListener("orientationchange",()=>this.onOrientationChange())}setAudioElement(e){this.audioElement=e}play(){return this.videoElement.muted=this.config.isFlagEnabled($.StartVideoMuted),this.videoElement.autoplay=this.config.isFlagEnabled($.AutoPlayVideo),this.videoElement.play()}isPaused(){return this.videoElement.paused}isVideoReady(){return this.videoElement.readyState!==void 0&&this.videoElement.readyState>0}hasVideoSource(){return this.videoElement.srcObject!==void 0&&this.videoElement.srcObject!==null}getVideoElement(){return this.videoElement}getVideoParentElement(){return this.videoElement.parentElement}setVideoEnabled(e){this.videoElement.srcObject.getTracks().forEach(t=>t.enabled=e)}onVideoInitialized(){}onOrientationChange(){clearTimeout(this.orientationChangeTimeout),this.orientationChangeTimeout=window.setTimeout(()=>{this.resizePlayerStyle()},500)}resizePlayerStyle(){const e=this.getVideoParentElement();e&&(this.updateVideoStreamSize(),e.classList.contains("fixed-size")||this.resizePlayerStyleToFillParentElement(),this.onResizePlayerCallback())}resizePlayerStyleToFillParentElement(){this.getVideoParentElement().setAttribute("style","top: 0px; left: 0px; width: 100%; height: 100%; cursor: default;")}updateVideoStreamSize(){if(this.config.isFlagEnabled($.MatchViewportResolution))if(new Date().getTime()-this.lastTimeResized>300){const e=this.getVideoParentElement();if(!e)return;this.onMatchViewportResolutionCallback(e.clientWidth,e.clientHeight),this.lastTimeResized=new Date().getTime()}else x.Log(x.GetStackTrace(),"Resizing too often - skipping",6),clearTimeout(this.resizeTimeoutHandle),this.resizeTimeoutHandle=window.setTimeout(()=>this.updateVideoStreamSize(),100)}}class mc{constructor(){this.map=new Map,this.reverseMap=new Map}getFromKey(e){return this.map.get(e)}getFromValue(e){return this.reverseMap.get(e)}add(e,t){this.map.set(e,t),this.reverseMap.set(t,e)}remove(e,t){this.map.delete(e),this.reverseMap.delete(t)}}class Ed{constructor(){this.toStreamerHandlers=new Map,this.fromStreamerHandlers=new Map,this.toStreamerMessages=new mc,this.fromStreamerMessages=new mc}populateDefaultProtocol(){this.toStreamerMessages.add("IFrameRequest",{id:0,byteLength:0,structure:[]}),this.toStreamerMessages.add("RequestQualityControl",{id:1,byteLength:0,structure:[]}),this.toStreamerMessages.add("FpsRequest",{id:2,byteLength:0,structure:[]}),this.toStreamerMessages.add("AverageBitrateRequest",{id:3,byteLength:0,structure:[]}),this.toStreamerMessages.add("StartStreaming",{id:4,byteLength:0,structure:[]}),this.toStreamerMessages.add("StopStreaming",{id:5,byteLength:0,structure:[]}),this.toStreamerMessages.add("LatencyTest",{id:6,byteLength:0,structure:[]}),this.toStreamerMessages.add("RequestInitialSettings",{id:7,byteLength:0,structure:[]}),this.toStreamerMessages.add("TestEcho",{id:8,byteLength:0,structure:[]}),this.toStreamerMessages.add("UIInteraction",{id:50,byteLength:0,structure:[]}),this.toStreamerMessages.add("Command",{id:51,byteLength:0,structure:[]}),this.toStreamerMessages.add("KeyDown",{id:60,byteLength:2,structure:["uint8","uint8"]}),this.toStreamerMessages.add("KeyUp",{id:61,byteLength:1,structure:["uint8"]}),this.toStreamerMessages.add("KeyPress",{id:62,byteLength:2,structure:["uint16"]}),this.toStreamerMessages.add("MouseEnter",{id:70,byteLength:0,structure:[]}),this.toStreamerMessages.add("MouseLeave",{id:71,byteLength:0,structure:[]}),this.toStreamerMessages.add("MouseDown",{id:72,byteLength:5,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.add("MouseUp",{id:73,byteLength:5,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.add("MouseMove",{id:74,byteLength:8,structure:["uint16","uint16","int16","int16"]}),this.toStreamerMessages.add("MouseWheel",{id:75,byteLength:6,structure:["int16","uint16","uint16"]}),this.toStreamerMessages.add("MouseDouble",{id:76,byteLength:5,structure:["uint8","uint16","uint16"]}),this.toStreamerMessages.add("TouchStart",{id:80,byteLength:8,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.add("TouchEnd",{id:81,byteLength:8,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.add("TouchMove",{id:82,byteLength:8,structure:["uint8","uint16","uint16","uint8","uint8","uint8"]}),this.toStreamerMessages.add("GamepadConnected",{id:93,byteLength:0,structure:[]}),this.toStreamerMessages.add("GamepadButtonPressed",{id:90,byteLength:3,structure:["uint8","uint8","uint8"]}),this.toStreamerMessages.add("GamepadButtonReleased",{id:91,byteLength:3,structure:["uint8","uint8","uint8"]}),this.toStreamerMessages.add("GamepadAnalog",{id:92,byteLength:10,structure:["uint8","uint8","double"]}),this.toStreamerMessages.add("GamepadDisconnected",{id:94,byteLength:1,structure:["uint8"]}),this.fromStreamerMessages.add("QualityControlOwnership",0),this.fromStreamerMessages.add("Response",1),this.fromStreamerMessages.add("Command",2),this.fromStreamerMessages.add("FreezeFrame",3),this.fromStreamerMessages.add("UnfreezeFrame",4),this.fromStreamerMessages.add("VideoEncoderAvgQP",5),this.fromStreamerMessages.add("LatencyTest",6),this.fromStreamerMessages.add("InitialSettings",7),this.fromStreamerMessages.add("FileExtension",8),this.fromStreamerMessages.add("FileMimeType",9),this.fromStreamerMessages.add("FileContents",10),this.fromStreamerMessages.add("TestEcho",11),this.fromStreamerMessages.add("InputControlOwnership",12),this.fromStreamerMessages.add("GamepadResponse",13),this.fromStreamerMessages.add("Protocol",255)}registerMessageHandler(e,t,o){switch(e){case Ae.ToStreamer:this.toStreamerHandlers.set(t,o);break;case Ae.FromStreamer:this.fromStreamerHandlers.set(t,o);break;default:x.Log(x.GetStackTrace(),`Unknown message direction ${e}`)}}}(function(v){v[v.ToStreamer=0]="ToStreamer",v[v.FromStreamer=1]="FromStreamer"})(Ae||(Ae={}));class Fd{constructor(){this.responseEventListeners=new Map}addResponseEventListener(e,t){this.responseEventListeners.set(e,t)}removeResponseEventListener(e){this.responseEventListeners.delete(e)}onResponse(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.Response",6);const t=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),t,6),this.responseEventListeners.forEach(o=>{o(t)})}}class Sd{constructor(e,t){this.dataChannelSender=e,this.toStreamerMessagesMapProvider=t}sendLatencyTest(e){this.sendDescriptor("LatencyTest",e)}emitCommand(e){this.sendDescriptor("Command",e)}emitUIInteraction(e){this.sendDescriptor("UIInteraction",e)}sendDescriptor(e,t){const o=JSON.stringify(t),y=this.toStreamerMessagesMapProvider.toStreamerMessages.getFromKey(e);y===void 0&&x.Error(x.GetStackTrace(),`Attempted to emit descriptor with message type: ${e}, but the frontend hasn't been configured to send such a message. Check you've added the message type in your cpp`),x.Log(x.GetStackTrace(),"Sending: "+t,6);const B=new DataView(new ArrayBuffer(3+2*o.length));let A=0;B.setUint8(A,y.id),A++,B.setUint16(A,o.length,!0),A+=2;for(let h=0;h<o.length;h++)B.setUint16(A,o.charCodeAt(h),!0),A+=2;this.dataChannelSender.canSend()?this.dataChannelSender.sendData(B.buffer):x.Info(x.GetStackTrace(),`Data channel cannot send yet, skipping sending descriptor message: ${e} - ${o}`)}}class Qd{constructor(e,t){this.dataChannelSender=e,this.toStreamerMessagesMapProvider=t}sendMessageToStreamer(e,t){t===void 0&&(t=[]);const o=this.toStreamerMessagesMapProvider.toStreamerMessages.getFromKey(e);if(o===void 0)return void x.Error(x.GetStackTrace(),`Attempted to send a message to the streamer with message type: ${e}, but the frontend hasn't been configured to send such a message. Check you've added the message type in your cpp`);const y=new DataView(new ArrayBuffer(o.byteLength+1));y.setUint8(0,o.id);let B=1;t.forEach((A,h)=>{switch(o.structure[h]){case"uint8":y.setUint8(B,A),B+=1;break;case"uint16":y.setUint16(B,A,!0),B+=2;break;case"int16":y.setInt16(B,A,!0),B+=2;break;case"float":y.setFloat32(B,A,!0),B+=4;break;case"double":y.setFloat64(B,A,!0),B+=8}}),this.dataChannelSender.canSend()?this.dataChannelSender.sendData(y.buffer):x.Info(x.GetStackTrace(),`Data channel cannot send yet, skipping sending message: ${e} - ${new Uint8Array(y.buffer)}`)}}class Ud{constructor(e){this.sendMessageController=e}SendRequestQualityControl(){this.sendMessageController.sendMessageToStreamer("RequestQualityControl")}SendMaxFpsRequest(){this.sendMessageController.sendMessageToStreamer("FpsRequest")}SendAverageBitrateRequest(){this.sendMessageController.sendMessageToStreamer("AverageBitrateRequest")}SendStartStreaming(){this.sendMessageController.sendMessageToStreamer("StartStreaming")}SendStopStreaming(){this.sendMessageController.sendMessageToStreamer("StopStreaming")}SendRequestInitialSettings(){this.sendMessageController.sendMessageToStreamer("RequestInitialSettings")}}class Td{constructor(e){this.dataChannelProvider=e}canSend(){return this.dataChannelProvider.getDataChannelInstance().dataChannel!==void 0&&this.dataChannelProvider.getDataChannelInstance().dataChannel.readyState=="open"}sendData(e){const t=this.dataChannelProvider.getDataChannelInstance();t.dataChannel.readyState=="open"?(t.dataChannel.send(e),x.Log(x.GetStackTrace(),`Message Sent: ${new Uint8Array(e)}`,6),this.resetAfkWarningTimerOnDataSend()):x.Error(x.GetStackTrace(),`Message Failed: ${new Uint8Array(e)}`)}resetAfkWarningTimerOnDataSend(){}}class Id{constructor(e){this.videoElementProvider=e,this.normalizeAndQuantizeUnsignedFunc=()=>{throw new Error("Normalize and quantize unsigned, method not implemented.")},this.normalizeAndQuantizeSignedFunc=()=>{throw new Error("Normalize and unquantize signed, method not implemented.")},this.denormalizeAndUnquantizeUnsignedFunc=()=>{throw new Error("Denormalize and unquantize unsigned, method not implemented.")}}normalizeAndQuantizeUnsigned(e,t){return this.normalizeAndQuantizeUnsignedFunc(e,t)}unquantizeAndDenormalizeUnsigned(e,t){return this.denormalizeAndUnquantizeUnsignedFunc(e,t)}normalizeAndQuantizeSigned(e,t){return this.normalizeAndQuantizeSignedFunc(e,t)}setupNormalizeAndQuantize(){if(this.videoElementParent=this.videoElementProvider.getVideoParentElement(),this.videoElement=this.videoElementProvider.getVideoElement(),this.videoElementParent&&this.videoElement){const e=this.videoElementParent.clientWidth||1,t=this.videoElementParent.clientHeight||1,o=this.videoElement.videoWidth||1,y=t/e,B=(this.videoElement.videoHeight||1)/o;y>B?(x.Log(x.GetStackTrace(),"Setup Normalize and Quantize for playerAspectRatio > videoAspectRatio",6),this.ratio=y/B,this.normalizeAndQuantizeUnsignedFunc=(A,h)=>this.normalizeAndQuantizeUnsignedPlayerBigger(A,h),this.normalizeAndQuantizeSignedFunc=(A,h)=>this.normalizeAndQuantizeSignedPlayerBigger(A,h),this.denormalizeAndUnquantizeUnsignedFunc=(A,h)=>this.denormalizeAndUnquantizeUnsignedPlayerBigger(A,h)):(x.Log(x.GetStackTrace(),"Setup Normalize and Quantize for playerAspectRatio <= videoAspectRatio",6),this.ratio=B/y,this.normalizeAndQuantizeUnsignedFunc=(A,h)=>this.normalizeAndQuantizeUnsignedPlayerSmaller(A,h),this.normalizeAndQuantizeSignedFunc=(A,h)=>this.normalizeAndQuantizeSignedPlayerSmaller(A,h),this.denormalizeAndUnquantizeUnsignedFunc=(A,h)=>this.denormalizeAndUnquantizeUnsignedPlayerSmaller(A,h))}}normalizeAndQuantizeUnsignedPlayerBigger(e,t){const o=e/this.videoElementParent.clientWidth,y=this.ratio*(t/this.videoElementParent.clientHeight-.5)+.5;return o<0||o>1||y<0||y>1?new JA(!1,65535,65535):new JA(!0,65536*o,65536*y)}denormalizeAndUnquantizeUnsignedPlayerBigger(e,t){const o=e/65536,y=(t/65536-.5)/this.ratio+.5;return new li(o*this.videoElementParent.clientWidth,y*this.videoElementParent.clientHeight)}normalizeAndQuantizeSignedPlayerBigger(e,t){const o=e/(.5*this.videoElementParent.clientWidth),y=this.ratio*t/(.5*this.videoElementParent.clientHeight);return new wc(32767*o,32767*y)}normalizeAndQuantizeUnsignedPlayerSmaller(e,t){const o=this.ratio*(e/this.videoElementParent.clientWidth-.5)+.5,y=t/this.videoElementParent.clientHeight;return o<0||o>1||y<0||y>1?new JA(!1,65535,65535):new JA(!0,65536*o,65536*y)}denormalizeAndUnquantizeUnsignedPlayerSmaller(e,t){const o=(e/65536-.5)/this.ratio+.5,y=t/65536;return new li(o*this.videoElementParent.clientWidth,y*this.videoElementParent.clientHeight)}normalizeAndQuantizeSignedPlayerSmaller(e,t){const o=this.ratio*e/(.5*this.videoElementParent.clientWidth),y=t/(.5*this.videoElementParent.clientHeight);return new wc(32767*o,32767*y)}}class JA{constructor(e,t,o){this.inRange=e,this.x=t,this.y=o}}class li{constructor(e,t){this.x=e,this.y=t}}class wc{constructor(e,t){this.x=e,this.y=t}}class Bc{constructor(e,t){this.shouldShowPlayOverlay=!0,this.config=e,this.pixelStreaming=t,this.responseController=new Fd,this.file=new fd,this.sdpConstraints={offerToReceiveAudio:!0,offerToReceiveVideo:!0},this.afkController=new ic(this.config,this.pixelStreaming,this.onAfkTriggered.bind(this)),this.afkController.onAFKTimedOutCallback=()=>{this.setDisconnectMessageOverride("You have been disconnected due to inactivity"),this.closeSignalingServer()},this.freezeFrameController=new td(this.pixelStreaming.videoElementParent),this.videoPlayer=new _d(this.pixelStreaming.videoElementParent,this.config),this.videoPlayer.onVideoInitialized=()=>this.handleVideoInitialized(),this.videoPlayer.onMatchViewportResolutionCallback=(o,y)=>{const B={"Resolution.Width":o,"Resolution.Height":y};this.sendDescriptorController.emitCommand(B)},this.videoPlayer.onResizePlayerCallback=()=>{this.setUpMouseAndFreezeFrame()},this.streamController=new qu(this.videoPlayer),this.coordinateConverter=new Id(this.videoPlayer),this.sendrecvDataChannelController=new oc,this.recvDataChannelController=new oc,this.registerDataChannelEventEmitters(this.sendrecvDataChannelController),this.registerDataChannelEventEmitters(this.recvDataChannelController),this.dataChannelSender=new Td(this.sendrecvDataChannelController),this.dataChannelSender.resetAfkWarningTimerOnDataSend=()=>this.afkController.resetAfkWarningTimer(),this.streamMessageController=new Ed,this.webSocketController=new Qa,this.webSocketController.onConfig=o=>this.handleOnConfigMessage(o),this.webSocketController.onStreamerList=o=>this.handleStreamerListMessage(o),this.webSocketController.onWebSocketOncloseOverlayMessage=o=>{this.pixelStreaming._onDisconnect(`Websocket disconnect (${o.code}) ${o.reason!=""?"- "+o.reason:""}`),this.setVideoEncoderAvgQP(0)},this.webSocketController.onPlayerCount=o=>{this.pixelStreaming._onPlayerCount(o.count)},this.webSocketController.onOpen.addEventListener("open",()=>{this.config.isFlagEnabled($.BrowserSendOffer)||this.webSocketController.requestStreamerList()}),this.webSocketController.onClose.addEventListener("close",()=>{this.afkController.stopAfkWarningTimer(),this.statsTimerHandle&&this.statsTimerHandle!==void 0&&window.clearInterval(this.statsTimerHandle),this.setTouchInputEnabled(!1),this.setMouseInputEnabled(!1),this.setKeyboardInputEnabled(!1),this.setGamePadInputEnabled(!1),this.shouldReconnect&&this.config.getNumericSettingValue(oe.MaxReconnectAttempts)>0&&(this.isReconnecting=!0,this.reconnectAttempt++,this.restartStreamAutomatically())}),this.sendDescriptorController=new Sd(this.dataChannelSender,this.streamMessageController),this.sendMessageController=new Qd(this.dataChannelSender,this.streamMessageController),this.toStreamerMessagesController=new Ud(this.sendMessageController),this.registerMessageHandlers(),this.streamMessageController.populateDefaultProtocol(),this.inputClassesFactory=new Cd(this.streamMessageController,this.videoPlayer,this.coordinateConverter),this.isUsingSFU=!1,this.isQualityController=!1,this.preferredCodec="",this.shouldReconnect=!0,this.isReconnecting=!1,this.reconnectAttempt=0,this.config._addOnOptionSettingChangedListener(ge.StreamerId,o=>{o!==""&&(this.peerConnectionController.peerConnection.close(),this.peerConnectionController.createPeerConnection(this.peerConfig,this.preferredCodec),this.subscribedStream=o,this.webSocketController.sendSubscribe(o))}),this.setVideoEncoderAvgQP(-1),this.signallingUrlBuilder=()=>{let o=this.config.getTextSettingValue(Ct.SignallingServerUrl);return this.config.isFlagEnabled($.BrowserSendOffer)&&(o+="?"+$.BrowserSendOffer+"=true"),o}}requestUnquantizedAndDenormalizeUnsigned(e,t){return this.coordinateConverter.unquantizeAndDenormalizeUnsigned(e,t)}handleOnMessage(e){const t=new Uint8Array(e.data);x.Log(x.GetStackTrace(),"Message incoming:"+t,6);const o=this.streamMessageController.fromStreamerMessages.getFromValue(t[0]);this.streamMessageController.fromStreamerHandlers.get(o)(e.data)}registerMessageHandlers(){this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"QualityControlOwnership",e=>this.onQualityControlOwnership(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"Response",e=>this.responseController.onResponse(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"Command",e=>{this.onCommand(e)}),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FreezeFrame",e=>this.onFreezeFrameMessage(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"UnfreezeFrame",()=>this.invalidateFreezeFrameAndEnableVideo()),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"VideoEncoderAvgQP",e=>this.handleVideoEncoderAvgQP(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"LatencyTest",e=>this.handleLatencyTestResult(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"InitialSettings",e=>this.handleInitialSettings(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FileExtension",e=>this.onFileExtension(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FileMimeType",e=>this.onFileMimeType(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"FileContents",e=>this.onFileContents(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"TestEcho",()=>{}),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"InputControlOwnership",e=>this.onInputControlOwnership(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"GamepadResponse",e=>this.onGamepadResponse(e)),this.streamMessageController.registerMessageHandler(Ae.FromStreamer,"Protocol",e=>this.onProtocolMessage(e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"IFrameRequest",()=>this.sendMessageController.sendMessageToStreamer("IFrameRequest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"RequestQualityControl",()=>this.sendMessageController.sendMessageToStreamer("RequestQualityControl")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"FpsRequest",()=>this.sendMessageController.sendMessageToStreamer("FpsRequest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"AverageBitrateRequest",()=>this.sendMessageController.sendMessageToStreamer("AverageBitrateRequest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"StartStreaming",()=>this.sendMessageController.sendMessageToStreamer("StartStreaming")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"StopStreaming",()=>this.sendMessageController.sendMessageToStreamer("StopStreaming")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"LatencyTest",()=>this.sendMessageController.sendMessageToStreamer("LatencyTest")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"RequestInitialSettings",()=>this.sendMessageController.sendMessageToStreamer("RequestInitialSettings")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TestEcho",()=>{}),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"UIInteraction",e=>this.sendDescriptorController.emitUIInteraction(e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"Command",e=>this.sendDescriptorController.emitCommand(e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"KeyDown",e=>this.sendMessageController.sendMessageToStreamer("KeyDown",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"KeyUp",e=>this.sendMessageController.sendMessageToStreamer("KeyUp",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"KeyPress",e=>this.sendMessageController.sendMessageToStreamer("KeyPress",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseEnter",e=>this.sendMessageController.sendMessageToStreamer("MouseEnter",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseLeave",e=>this.sendMessageController.sendMessageToStreamer("MouseLeave",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseDown",e=>this.sendMessageController.sendMessageToStreamer("MouseDown",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseUp",e=>this.sendMessageController.sendMessageToStreamer("MouseUp",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseMove",e=>this.sendMessageController.sendMessageToStreamer("MouseMove",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseWheel",e=>this.sendMessageController.sendMessageToStreamer("MouseWheel",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"MouseDouble",e=>this.sendMessageController.sendMessageToStreamer("MouseDouble",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TouchStart",e=>this.sendMessageController.sendMessageToStreamer("TouchStart",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TouchEnd",e=>this.sendMessageController.sendMessageToStreamer("TouchEnd",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"TouchMove",e=>this.sendMessageController.sendMessageToStreamer("TouchMove",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadConnected",()=>this.sendMessageController.sendMessageToStreamer("GamepadConnected")),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadButtonPressed",e=>this.sendMessageController.sendMessageToStreamer("GamepadButtonPressed",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadButtonReleased",e=>this.sendMessageController.sendMessageToStreamer("GamepadButtonReleased",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadAnalog",e=>this.sendMessageController.sendMessageToStreamer("GamepadAnalog",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"GamepadDisconnected",e=>this.sendMessageController.sendMessageToStreamer("GamepadDisconnected",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRHMDTransform",e=>this.sendMessageController.sendMessageToStreamer("XRHMDTransform",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRControllerTransform",e=>this.sendMessageController.sendMessageToStreamer("XRControllerTransform",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRSystem",e=>this.sendMessageController.sendMessageToStreamer("XRSystem",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRButtonTouched",e=>this.sendMessageController.sendMessageToStreamer("XRButtonTouched",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRButtonPressed",e=>this.sendMessageController.sendMessageToStreamer("XRButtonPressed",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRButtonReleased",e=>this.sendMessageController.sendMessageToStreamer("XRButtonReleased",e)),this.streamMessageController.registerMessageHandler(Ae.ToStreamer,"XRAnalog",e=>this.sendMessageController.sendMessageToStreamer("XRAnalog",e))}onCommand(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.Command",6);const t=new TextDecoder("utf-16").decode(e.slice(1));x.Log(x.GetStackTrace(),"Data Channel Command: "+t,6);const o=JSON.parse(t);o.command==="onScreenKeyboard"&&this.pixelStreaming._activateOnScreenKeyboard(o)}onProtocolMessage(e){try{const t=new TextDecoder("utf-16").decode(e.slice(1)),o=JSON.parse(t);Object.prototype.hasOwnProperty.call(o,"Direction")||x.Error(x.GetStackTrace(),"Malformed protocol received. Ensure the protocol message contains a direction");const y=o.Direction;delete o.Direction,x.Log(x.GetStackTrace(),`Received new ${y==Ae.FromStreamer?"FromStreamer":"ToStreamer"} protocol. Updating existing protocol...`),Object.keys(o).forEach(B=>{const A=o[B];switch(y){case Ae.ToStreamer:if(!Object.prototype.hasOwnProperty.call(A,"id")||!Object.prototype.hasOwnProperty.call(A,"byteLength"))return void x.Error(x.GetStackTrace(),`ToStreamer->${B} protocol definition was malformed as it didn't contain at least an id and a byteLength
|
|
275
|
+
|
|
276
|
+
Definition was: ${JSON.stringify(A,null,2)}`);if(A.byteLength>0&&!Object.prototype.hasOwnProperty.call(A,"structure"))return void x.Error(x.GetStackTrace(),`ToStreamer->${B} protocol definition was malformed as it specified a byteLength but no accompanying structure`);this.streamMessageController.toStreamerHandlers.get(B)?this.streamMessageController.toStreamerMessages.add(B,A):x.Error(x.GetStackTrace(),`There was no registered handler for "${B}" - try adding one using registerMessageHandler(MessageDirection.ToStreamer, "${B}", myHandler)`);break;case Ae.FromStreamer:if(!Object.prototype.hasOwnProperty.call(A,"id"))return void x.Error(x.GetStackTrace(),`FromStreamer->${B} protocol definition was malformed as it didn't contain at least an id
|
|
277
|
+
|
|
278
|
+
Definition was: ${JSON.stringify(A,null,2)}`);this.streamMessageController.fromStreamerHandlers.get(B)?this.streamMessageController.fromStreamerMessages.add(B,A.id):x.Error(x.GetStackTrace(),`There was no registered handler for "${A}" - try adding one using registerMessageHandler(MessageDirection.FromStreamer, "${B}", myHandler)`);break;default:x.Error(x.GetStackTrace(),`Unknown direction: ${y}`)}}),this.toStreamerMessagesController.SendRequestInitialSettings(),this.toStreamerMessagesController.SendRequestQualityControl()}catch(t){x.Log(x.GetStackTrace(),t)}}onInputControlOwnership(e){const t=new Uint8Array(e);x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.InputControlOwnership",6);const o=new Boolean(t[1]).valueOf();x.Log(x.GetStackTrace(),`Received input controller message - will your input control the stream: ${o}`),this.pixelStreaming._onInputControlOwnership(o)}onGamepadResponse(e){const t=new TextDecoder("utf-16").decode(e.slice(1)),o=JSON.parse(t);this.gamePadController.onGamepadResponseReceived(o.controllerId)}onAfkTriggered(){this.afkController.onAfkClick(),this.videoPlayer.isPaused()&&this.videoPlayer.hasVideoSource()&&this.playStream()}setAfkEnabled(e){e?this.onAfkTriggered():this.afkController.stopAfkWarningTimer()}restartStreamAutomatically(){if(this.webSocketController)if(this.webSocketController.webSocket&&this.webSocketController.webSocket.readyState!==WebSocket.CLOSED){this.pixelStreaming._showActionOrErrorOnDisconnect=!1,this.setDisconnectMessageOverride("Restarting stream..."),this.closeSignalingServer();const e=setTimeout(()=>{this.pixelStreaming._onWebRtcAutoConnect(),this.connectToSignallingServer(),clearTimeout(e)},3e3)}else x.Log(x.GetStackTrace(),"A websocket connection has not been made yet so we will start the stream"),this.pixelStreaming._onWebRtcAutoConnect(),this.connectToSignallingServer();else x.Log(x.GetStackTrace(),"The Web Socket Controller does not exist so this will not work right now.")}loadFreezeFrameOrShowPlayOverlay(){this.pixelStreaming.dispatchEvent(new Ya({shouldShowPlayOverlay:this.shouldShowPlayOverlay,isValid:this.freezeFrameController.valid,jpegData:this.freezeFrameController.jpeg})),this.shouldShowPlayOverlay===!0?(x.Log(x.GetStackTrace(),"showing play overlay"),this.resizePlayerStyle()):(x.Log(x.GetStackTrace(),"showing freeze frame"),this.freezeFrameController.showFreezeFrame()),setTimeout(()=>{this.videoPlayer.setVideoEnabled(!1)},this.freezeFrameController.freezeFrameDelay)}onFreezeFrameMessage(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.FreezeFrame",6);const t=new Uint8Array(e);this.freezeFrameController.processFreezeFrameMessage(t,()=>this.loadFreezeFrameOrShowPlayOverlay())}invalidateFreezeFrameAndEnableVideo(){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.FreezeFrame",6),setTimeout(()=>{this.pixelStreaming.dispatchEvent(new $a),this.freezeFrameController.hideFreezeFrame()},this.freezeFrameController.freezeFrameDelay),this.videoPlayer.getVideoElement()&&this.videoPlayer.setVideoEnabled(!0)}onFileExtension(e){const t=new Uint8Array(e);ci.setExtensionFromBytes(t,this.file)}onFileMimeType(e){const t=new Uint8Array(e);ci.setMimeTypeFromBytes(t,this.file)}onFileContents(e){const t=new Uint8Array(e);ci.setContentsFromBytes(t,this.file)}playStream(){if(!this.videoPlayer.getVideoElement()){const e="Could not play video stream because the video player was not initialized correctly.";return this.pixelStreaming.dispatchEvent(new Ja({message:e})),x.Error(x.GetStackTrace(),e),this.setDisconnectMessageOverride("Stream not initialized correctly"),void this.closeSignalingServer()}if(this.videoPlayer.hasVideoSource()){if(this.setTouchInputEnabled(this.config.isFlagEnabled($.TouchInput)),this.pixelStreaming.dispatchEvent(new Xa),this.streamController.audioElement.srcObject){const e=this.config.isFlagEnabled($.StartVideoMuted);this.streamController.audioElement.muted=e,e?this.playVideo():this.streamController.audioElement.play().then(()=>{this.playVideo()}).catch(t=>{x.Log(x.GetStackTrace(),t),x.Log(x.GetStackTrace(),"Browser does not support autoplaying video without interaction - to resolve this we are going to show the play button overlay."),this.pixelStreaming.dispatchEvent(new ii({reason:t}))})}else this.playVideo();this.shouldShowPlayOverlay=!1,this.freezeFrameController.showFreezeFrame()}else x.Warning(x.GetStackTrace(),"Cannot play stream, the video element has no srcObject to play.")}playVideo(){this.videoPlayer.play().catch(e=>{this.streamController.audioElement.srcObject&&this.streamController.audioElement.pause(),x.Log(x.GetStackTrace(),e),x.Log(x.GetStackTrace(),"Browser does not support autoplaying video without interaction - to resolve this we are going to show the play button overlay."),this.pixelStreaming.dispatchEvent(new ii({reason:e}))})}autoPlayVideoOrSetUpPlayOverlay(){this.config.isFlagEnabled($.AutoPlayVideo)&&this.playStream(),this.resizePlayerStyle()}connectToSignallingServer(){const e=this.signallingUrlBuilder();this.webSocketController.connect(e)}startSession(e){if(this.peerConfig=e,this.config.isFlagEnabled($.ForceTURN)&&!this.checkTurnServerAvailability(e))return x.Info(x.GetStackTrace(),"No turn server was found in the Peer Connection Options. TURN cannot be forced, closing connection. Please use STUN instead"),this.setDisconnectMessageOverride("TURN cannot be forced, closing connection. Please use STUN instead."),void this.closeSignalingServer();this.peerConnectionController=new ud(this.peerConfig,this.config,this.preferredCodec),this.peerConnectionController.onVideoStats=o=>this.handleVideoStats(o),this.peerConnectionController.onSendWebRTCOffer=o=>this.handleSendWebRTCOffer(o),this.peerConnectionController.onSendWebRTCAnswer=o=>this.handleSendWebRTCAnswer(o),this.peerConnectionController.onPeerIceCandidate=o=>this.handleSendIceCandidate(o),this.peerConnectionController.onDataChannel=o=>this.handleDataChannel(o),this.peerConnectionController.showTextOverlayConnecting=()=>this.pixelStreaming._onWebRtcConnecting(),this.peerConnectionController.showTextOverlaySetupFailure=()=>this.pixelStreaming._onWebRtcFailed();let t=!1;this.peerConnectionController.onIceConnectionStateChange=()=>{!t&&["connected","completed"].includes(this.peerConnectionController.peerConnection.iceConnectionState)&&(this.pixelStreaming._onWebRtcConnected(),t=!0)},this.peerConnectionController.onTrack=o=>this.streamController.handleOnTrack(o),this.config.isFlagEnabled($.BrowserSendOffer)&&(this.sendrecvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,"cirrus",this.datachannelOptions),this.sendrecvDataChannelController.handleOnMessage=o=>this.handleOnMessage(o),this.peerConnectionController.createOffer(this.sdpConstraints,this.config))}checkTurnServerAvailability(e){if(!e.iceServers)return x.Info(x.GetStackTrace(),"A turn sever was not found"),!1;for(const t of e.iceServers)for(const o of t.urls)if(o.includes("turn"))return x.Log(x.GetStackTrace(),`A turn sever was found at ${o}`),!0;return x.Info(x.GetStackTrace(),"A turn sever was not found"),!1}handleOnConfigMessage(e){this.resizePlayerStyle(),this.startSession(e.peerConnectionOptions),this.webSocketController.onWebRtcAnswer=t=>this.handleWebRtcAnswer(t),this.webSocketController.onWebRtcOffer=t=>this.handleWebRtcOffer(t),this.webSocketController.onWebRtcPeerDataChannels=t=>this.handleWebRtcSFUPeerDatachannels(t),this.webSocketController.onIceCandidate=t=>this.handleIceCandidate(t)}handleStreamerListMessage(e){if(x.Log(x.GetStackTrace(),`Got streamer list ${e.ids}`,6),this.isReconnecting)e.ids.includes(this.subscribedStream)?(this.isReconnecting=!1,this.reconnectAttempt=0,this.webSocketController.sendSubscribe(this.subscribedStream)):this.reconnectAttempt<this.config.getNumericSettingValue(oe.MaxReconnectAttempts)?(this.reconnectAttempt++,setTimeout(()=>{this.webSocketController.requestStreamerList()},2e3)):(this.reconnectAttempt=0,this.isReconnecting=!1,this.shouldReconnect=!1,this.webSocketController.close(),this.config.setOptionSettingValue(ge.StreamerId,""),this.config.setOptionSettingOptions(ge.StreamerId,[]));else{const t=[...e.ids];t.unshift(""),this.config.setOptionSettingOptions(ge.StreamerId,t);const o=new URLSearchParams(window.location.search);let y=null;e.ids.length==1?y=e.ids[0]:this.config.isFlagEnabled($.PreferSFU)&&e.ids.includes("SFU")?y="SFU":o.has(ge.StreamerId)&&e.ids.includes(o.get(ge.StreamerId))&&(y=o.get(ge.StreamerId)),y!==null&&this.config.setOptionSettingValue(ge.StreamerId,y),this.pixelStreaming.dispatchEvent(new qa({messageStreamerList:e,autoSelectedStreamerId:y}))}}handleWebRtcAnswer(e){x.Log(x.GetStackTrace(),`Got answer sdp ${e.sdp}`,6);const t={sdp:e.sdp,type:"answer"};this.peerConnectionController.receiveAnswer(t),this.handlePostWebrtcNegotiation()}handleWebRtcOffer(e){x.Log(x.GetStackTrace(),`Got offer sdp ${e.sdp}`,6),this.isUsingSFU=!!e.sfu&&e.sfu,this.isUsingSFU&&(this.peerConnectionController.preferredCodec="");const t={sdp:e.sdp,type:"offer"};this.peerConnectionController.receiveOffer(t,this.config),this.handlePostWebrtcNegotiation()}handleWebRtcSFUPeerDatachannels(e){const t={ordered:!0,negotiated:!0,id:e.sendStreamId},o=e.sendStreamId!=e.recvStreamId;if(this.sendrecvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,o?"send-datachannel":"datachannel",t),o){const y={ordered:!0,negotiated:!0,id:e.recvStreamId};this.recvDataChannelController.createDataChannel(this.peerConnectionController.peerConnection,"recv-datachannel",y),this.recvDataChannelController.handleOnOpen=()=>this.webSocketController.sendSFURecvDataChannelReady(),this.recvDataChannelController.handleOnMessage=B=>this.handleOnMessage(B)}else this.sendrecvDataChannelController.handleOnMessage=y=>this.handleOnMessage(y)}handlePostWebrtcNegotiation(){this.afkController.startAfkWarningTimer(),this.pixelStreaming._onWebRtcSdp(),this.statsTimerHandle&&this.statsTimerHandle!==void 0&&window.clearInterval(this.statsTimerHandle),this.statsTimerHandle=window.setInterval(()=>this.getStats(),1e3),this.setMouseInputEnabled(this.config.isFlagEnabled($.MouseInput)),this.setKeyboardInputEnabled(this.config.isFlagEnabled($.KeyboardInput)),this.setGamePadInputEnabled(this.config.isFlagEnabled($.GamepadInput))}handleIceCandidate(e){x.Log(x.GetStackTrace(),"Web RTC Controller: onWebRtcIce",6);const t=new RTCIceCandidate(e);this.peerConnectionController.handleOnIce(t)}handleSendIceCandidate(e){x.Log(x.GetStackTrace(),"OnIceCandidate",6),e.candidate&&e.candidate.candidate&&this.webSocketController.sendIceCandidate(e.candidate)}handleDataChannel(e){x.Log(x.GetStackTrace(),"Data channel created for us by browser as we are a receiving peer.",6),this.sendrecvDataChannelController.dataChannel=e.channel,this.sendrecvDataChannelController.setupDataChannel(),this.sendrecvDataChannelController.handleOnMessage=t=>this.handleOnMessage(t)}handleSendWebRTCOffer(e){x.Log(x.GetStackTrace(),"Sending the offer to the Server",6),this.webSocketController.sendWebRtcOffer(e)}handleSendWebRTCAnswer(e){x.Log(x.GetStackTrace(),"Sending the answer to the Server",6),this.webSocketController.sendWebRtcAnswer(e),this.isUsingSFU&&this.webSocketController.sendWebRtcDatachannelRequest()}setUpMouseAndFreezeFrame(){this.videoElementParentClientRect=this.videoPlayer.getVideoParentElement().getBoundingClientRect(),this.coordinateConverter.setupNormalizeAndQuantize(),this.freezeFrameController.freezeFrame.resize()}closeSignalingServer(){var e;this.shouldReconnect=!1,(e=this.webSocketController)===null||e===void 0||e.close()}closePeerConnection(){var e;(e=this.peerConnectionController)===null||e===void 0||e.close()}close(){this.closeSignalingServer(),this.closePeerConnection()}getStats(){this.peerConnectionController.generateStats()}sendLatencyTest(){this.latencyStartTime=Date.now(),this.sendDescriptorController.sendLatencyTest({StartTime:this.latencyStartTime})}sendEncoderMinQP(e){x.Log(x.GetStackTrace(),`MinQP=${e}
|
|
279
|
+
`,6),e!=null&&this.sendDescriptorController.emitCommand({"Encoder.MinQP":e})}sendEncoderMaxQP(e){x.Log(x.GetStackTrace(),`MaxQP=${e}
|
|
280
|
+
`,6),e!=null&&this.sendDescriptorController.emitCommand({"Encoder.MaxQP":e})}sendWebRTCMinBitrate(e){x.Log(x.GetStackTrace(),`WebRTC Min Bitrate=${e}`,6),e!=null&&this.sendDescriptorController.emitCommand({"WebRTC.MinBitrate":e})}sendWebRTCMaxBitrate(e){x.Log(x.GetStackTrace(),`WebRTC Max Bitrate=${e}`,6),e!=null&&this.sendDescriptorController.emitCommand({"WebRTC.MaxBitrate":e})}sendWebRTCFps(e){x.Log(x.GetStackTrace(),`WebRTC FPS=${e}`,6),e!=null&&(this.sendDescriptorController.emitCommand({"WebRTC.Fps":e}),this.sendDescriptorController.emitCommand({"WebRTC.MaxFps":e}))}sendShowFps(){x.Log(x.GetStackTrace(),"---- Sending show stat to UE ----",6),this.sendDescriptorController.emitCommand({"stat.fps":""})}sendIframeRequest(){x.Log(x.GetStackTrace(),"---- Sending Request for an IFrame ----",6),this.streamMessageController.toStreamerHandlers.get("IFrameRequest")()}emitUIInteraction(e){x.Log(x.GetStackTrace(),"---- Sending custom UIInteraction message ----",6),this.sendDescriptorController.emitUIInteraction(e)}emitCommand(e){x.Log(x.GetStackTrace(),"---- Sending custom Command message ----",6),this.sendDescriptorController.emitCommand(e)}emitConsoleCommand(e){x.Log(x.GetStackTrace(),"---- Sending custom Command:ConsoleCommand message ----",6),this.sendDescriptorController.emitCommand({ConsoleCommand:e})}sendRequestQualityControlOwnership(){x.Log(x.GetStackTrace(),"---- Sending Request to Control Quality ----",6),this.toStreamerMessagesController.SendRequestQualityControl()}handleLatencyTestResult(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.latencyTest",6);const t=new TextDecoder("utf-16").decode(e.slice(1)),o=new yc;Object.assign(o,JSON.parse(t)),o.processFields(),o.testStartTimeMs=this.latencyStartTime,o.browserReceiptTimeMs=Date.now(),o.latencyExcludingDecode=~~(o.browserReceiptTimeMs-o.testStartTimeMs),o.testDuration=~~(o.TransmissionTimeMs-o.ReceiptTimeMs),o.networkLatency=~~(o.latencyExcludingDecode-o.testDuration),o.frameDisplayDeltaTimeMs&&o.browserReceiptTimeMs&&(o.endToEndLatency=(o.frameDisplayDeltaTimeMs,o.networkLatency,~~+o.CaptureToSendMs)),this.pixelStreaming._onLatencyTestResult(o)}handleInitialSettings(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.InitialSettings",6);const t=new TextDecoder("utf-16").decode(e.slice(1)),o=JSON.parse(t),y=new pc;o.Encoder&&(y.EncoderSettings=o.Encoder),o.WebRTC&&(y.WebRTCSettings=o.WebRTC),o.PixelStreaming&&(y.PixelStreamingSettings=o.PixelStreaming),o.ConfigOptions&&o.ConfigOptions.DefaultToHover!==void 0&&this.config.setFlagEnabled($.HoveringMouseMode,!!o.ConfigOptions.DefaultToHover),y.ueCompatible(),x.Log(x.GetStackTrace(),t,6),this.pixelStreaming._onInitialSettings(y)}handleVideoEncoderAvgQP(e){x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.VideoEncoderAvgQP",6);const t=Number(new TextDecoder("utf-16").decode(e.slice(1)));this.setVideoEncoderAvgQP(t)}handleVideoInitialized(){this.pixelStreaming._onVideoInitialized(),this.autoPlayVideoOrSetUpPlayOverlay(),this.resizePlayerStyle(),this.videoPlayer.updateVideoStreamSize()}onQualityControlOwnership(e){const t=new Uint8Array(e);x.Log(x.GetStackTrace(),"DataChannelReceiveMessageType.QualityControlOwnership",6),this.isQualityController=new Boolean(t[1]).valueOf(),x.Log(x.GetStackTrace(),`Received quality controller message, will control quality: ${this.isQualityController}`),this.pixelStreaming._onQualityControlOwnership(this.isQualityController)}handleVideoStats(e){this.pixelStreaming._onVideoStats(e)}resizePlayerStyle(){this.videoPlayer.resizePlayerStyle()}getDisconnectMessageOverride(){return this.disconnectMessageOverride}setDisconnectMessageOverride(e){this.disconnectMessageOverride=e}setPreferredCodec(e){this.preferredCodec=e,this.peerConnectionController&&(this.peerConnectionController.preferredCodec=e,this.peerConnectionController.updateCodecSelection=!1)}setVideoEncoderAvgQP(e){this.videoAvgQp=e,this.pixelStreaming._onVideoEncoderAvgQP(this.videoAvgQp)}setKeyboardInputEnabled(e){var t;(t=this.keyboardController)===null||t===void 0||t.unregisterKeyBoardEvents(),e&&(this.keyboardController=this.inputClassesFactory.registerKeyBoard(this.config))}setMouseInputEnabled(e){var t;if((t=this.mouseController)===null||t===void 0||t.unregisterMouseEvents(),e){const o=this.config.isFlagEnabled($.HoveringMouseMode)?bt.HoveringMouse:bt.LockedMouse;this.mouseController=this.inputClassesFactory.registerMouse(o)}}setTouchInputEnabled(e){var t;(t=this.touchController)===null||t===void 0||t.unregisterTouchEvents(),e&&(this.touchController=this.inputClassesFactory.registerTouch(this.config.isFlagEnabled($.FakeMouseWithTouches),this.videoElementParentClientRect))}setGamePadInputEnabled(e){var t;(t=this.gamePadController)===null||t===void 0||t.unregisterGamePadEvents(),e&&(this.gamePadController=this.inputClassesFactory.registerGamePad(),this.gamePadController.onGamepadConnected=()=>{this.streamMessageController.toStreamerHandlers.get("GamepadConnected")()},this.gamePadController.onGamepadDisconnected=o=>{this.streamMessageController.toStreamerHandlers.get("GamepadDisconnected")([o])})}registerDataChannelEventEmitters(e){e.onOpen=(t,o)=>this.pixelStreaming.dispatchEvent(new ka({label:t,event:o})),e.onClose=(t,o)=>this.pixelStreaming.dispatchEvent(new Ka({label:t,event:o})),e.onError=(t,o)=>this.pixelStreaming.dispatchEvent(new Na({label:t,event:o}))}}class Cc{static vertexShader(){return`
|
|
281
|
+
attribute vec2 a_position;
|
|
282
|
+
attribute vec2 a_texCoord;
|
|
283
|
+
|
|
284
|
+
// input
|
|
285
|
+
uniform vec2 u_resolution;
|
|
286
|
+
uniform vec4 u_offset;
|
|
287
|
+
|
|
288
|
+
//
|
|
289
|
+
varying vec2 v_texCoord;
|
|
290
|
+
|
|
291
|
+
void main() {
|
|
292
|
+
// convert the rectangle from pixels to 0.0 to 1.0
|
|
293
|
+
vec2 zeroToOne = a_position / u_resolution;
|
|
294
|
+
|
|
295
|
+
// convert from 0->1 to 0->2
|
|
296
|
+
vec2 zeroToTwo = zeroToOne * 2.0;
|
|
297
|
+
|
|
298
|
+
// convert from 0->2 to -1->+1 (clipspace)
|
|
299
|
+
vec2 clipSpace = zeroToTwo - 1.0;
|
|
300
|
+
|
|
301
|
+
gl_Position = vec4(clipSpace * vec2(1, -1), 0, 1);
|
|
302
|
+
// pass the texCoord to the fragment shader
|
|
303
|
+
// The GPU will interpolate this value between points.
|
|
304
|
+
v_texCoord = (a_texCoord * u_offset.xy) + u_offset.zw;
|
|
305
|
+
}
|
|
306
|
+
`}static fragmentShader(){return`
|
|
307
|
+
precision mediump float;
|
|
308
|
+
|
|
309
|
+
// our texture
|
|
310
|
+
uniform sampler2D u_image;
|
|
311
|
+
|
|
312
|
+
// the texCoords passed in from the vertex shader.
|
|
313
|
+
varying vec2 v_texCoord;
|
|
314
|
+
|
|
315
|
+
void main() {
|
|
316
|
+
gl_FragColor = texture2D(u_image, v_texCoord);
|
|
317
|
+
}
|
|
318
|
+
`}}class bc{static deepCopyGamepad(e){return JSON.parse(JSON.stringify({buttons:e.buttons.map(t=>JSON.parse(JSON.stringify({pressed:t.pressed,touched:t.touched}))),axes:e.axes}))}}class Pd{constructor(e){this.toStreamerMessagesProvider=e,this.controllers=[]}updateStatus(e,t,o){if(e.gamepad){const y=t.getPose(e.gripSpace,o);if(!y)return;let B=0;e.profiles.includes("htc-vive")?B=1:e.profiles.includes("oculus-touch")&&(B=2),this.toStreamerMessagesProvider.toStreamerHandlers.get("XRSystem")([B]);let A=2;switch(e.handedness){case"left":A=0;break;case"right":A=1}const h=y.transform.matrix,m=[];for(let u=0;u<16;u++)m[u]=new Float32Array([h[u]])[0];this.toStreamerMessagesProvider.toStreamerHandlers.get("XRControllerTransform")([m[0],m[4],m[8],m[12],m[1],m[5],m[9],m[13],m[2],m[6],m[10],m[14],m[3],m[7],m[11],m[15],A]),this.controllers[A]===void 0&&(this.controllers[A]={prevState:void 0,currentState:void 0,id:void 0},this.controllers[A].prevState=bc.deepCopyGamepad(e.gamepad)),this.controllers[A].currentState=bc.deepCopyGamepad(e.gamepad);const g=this.controllers[A],w=g.currentState,p=g.prevState;for(let u=0;u<w.buttons.length;u++){const f=w.buttons[u],c=p.buttons[u];f.pressed?this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonPressed")([A,u,c.pressed?1:0]):!f.pressed&&c.pressed&&this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonReleased")([A,u,0]),f.touched&&!f.pressed?this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonPressed")([A,3,c.touched?1:0]):!f.touched&&c.touched&&this.toStreamerMessagesProvider.toStreamerHandlers.get("XRButtonReleased")([A,3,0])}for(let u=0;u<w.axes.length;u++)this.toStreamerMessagesProvider.toStreamerHandlers.get("XRAnalog")([A,u,w.axes[u]]);this.controllers[A].prevState=w}}}class _c{constructor(e){this.xrSession=null,this.webRtcController=e,this.xrControllers=[],this.xrGamepadController=new Pd(this.webRtcController.streamMessageController),this.onSessionEnded=new EventTarget,this.onSessionStarted=new EventTarget,this.onFrame=new EventTarget}xrClicked(){this.xrSession?this.xrSession.end():navigator.xr.requestSession("immersive-vr").then(e=>{this.onXrSessionStarted(e)})}onXrSessionEnded(){x.Log(x.GetStackTrace(),"XR Session ended"),this.xrSession=null,this.onSessionEnded.dispatchEvent(new Event("xrSessionEnded"))}onXrSessionStarted(e){x.Log(x.GetStackTrace(),"XR Session started"),this.xrSession=e,this.xrSession.addEventListener("end",()=>{this.onXrSessionEnded()});const t=document.createElement("canvas");this.gl=t.getContext("webgl2",{xrCompatible:!0}),this.xrSession.updateRenderState({baseLayer:new XRWebGLLayer(this.xrSession,this.gl)});const o=this.gl.createShader(this.gl.VERTEX_SHADER);this.gl.shaderSource(o,Cc.vertexShader()),this.gl.compileShader(o);const y=this.gl.createShader(this.gl.FRAGMENT_SHADER);this.gl.shaderSource(y,Cc.fragmentShader()),this.gl.compileShader(y);const B=this.gl.createProgram();this.gl.attachShader(B,o),this.gl.attachShader(B,y),this.gl.linkProgram(B),this.gl.useProgram(B),this.positionLocation=this.gl.getAttribLocation(B,"a_position"),this.texcoordLocation=this.gl.getAttribLocation(B,"a_texCoord"),this.positionBuffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.positionBuffer),this.gl.enableVertexAttribArray(this.positionLocation);const A=this.gl.createTexture();this.gl.bindTexture(this.gl.TEXTURE_2D,A),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_S,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_WRAP_T,this.gl.CLAMP_TO_EDGE),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MIN_FILTER,this.gl.NEAREST),this.gl.texParameteri(this.gl.TEXTURE_2D,this.gl.TEXTURE_MAG_FILTER,this.gl.NEAREST),this.texcoordBuffer=this.gl.createBuffer(),this.resolutionLocation=this.gl.getUniformLocation(B,"u_resolution"),this.offsetLocation=this.gl.getUniformLocation(B,"u_offset"),e.requestReferenceSpace("local").then(h=>{this.xrRefSpace=h,this.xrSession.requestAnimationFrame((m,g)=>this.onXrFrame(m,g))}),this.onSessionStarted.dispatchEvent(new Event("xrSessionStarted"))}onXrFrame(e,t){const o=t.getViewerPose(this.xrRefSpace);if(o){const y=o.transform.matrix,B=[];for(let h=0;h<16;h++)B[h]=new Float32Array([y[h]])[0];this.webRtcController.streamMessageController.toStreamerHandlers.get("XRHMDTransform")([B[0],B[4],B[8],B[12],B[1],B[5],B[9],B[13],B[2],B[6],B[10],B[14],B[3],B[7],B[11],B[15]]);const A=this.xrSession.renderState.baseLayer;this.gl.bindFramebuffer(this.gl.FRAMEBUFFER,A.framebuffer),this.gl.texImage2D(this.gl.TEXTURE_2D,0,this.gl.RGBA,this.gl.RGBA,this.gl.UNSIGNED_BYTE,this.webRtcController.videoPlayer.getVideoElement()),this.render(this.webRtcController.videoPlayer.getVideoElement())}this.webRtcController.config.isFlagEnabled($.XRControllerInput)&&this.xrSession.inputSources.forEach((y,B,A)=>{this.xrGamepadController.updateStatus(y,t,this.xrRefSpace)},this),this.xrSession.requestAnimationFrame((y,B)=>this.onXrFrame(y,B)),this.onFrame.dispatchEvent(new rc({time:e,frame:t}))}render(e){if(!this.gl)return;const t=this.xrSession.renderState.baseLayer;let o,y,B,A,h;this.gl.viewport(0,0,t.framebufferWidth,t.framebufferHeight),this.gl.uniform4f(this.offsetLocation,1,1,0,0),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,e.videoWidth,0,0,e.videoHeight,0,e.videoHeight,e.videoWidth,0,e.videoWidth,e.videoHeight]),this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.texcoordBuffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,0,1,1,0,1,1]),this.gl.STATIC_DRAW),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.positionBuffer),o=2,y=this.gl.FLOAT,B=!1,A=0,h=0,this.gl.vertexAttribPointer(this.positionLocation,o,y,B,A,h),this.gl.enableVertexAttribArray(this.texcoordLocation),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.texcoordBuffer),o=2,y=this.gl.FLOAT,B=!1,A=0,h=0,this.gl.vertexAttribPointer(this.texcoordLocation,o,y,B,A,h),this.gl.uniform2f(this.resolutionLocation,e.videoWidth,e.videoHeight);const m=this.gl.TRIANGLES;h=0,this.gl.drawArrays(m,h,6)}static isSessionSupported(e){return navigator.xr?navigator.xr.isSessionSupported(e):new Promise(()=>!1)}}class xd{constructor(e){this.editTextButton=null,this.hiddenInput=null,"ontouchstart"in document.documentElement&&this.createOnScreenKeyboardHelpers(e)}unquantizeAndDenormalizeUnsigned(e,t){return null}createOnScreenKeyboardHelpers(e){this.hiddenInput||(this.hiddenInput=document.createElement("input"),this.hiddenInput.id="hiddenInput",this.hiddenInput.maxLength=0,e.appendChild(this.hiddenInput)),this.editTextButton||(this.editTextButton=document.createElement("button"),this.editTextButton.id="editTextButton",this.editTextButton.innerHTML="edit text",e.appendChild(this.editTextButton),this.editTextButton.classList.add("hiddenState"),this.editTextButton.addEventListener("touchend",t=>{this.hiddenInput.focus(),t.preventDefault()}))}showOnScreenKeyboard(e){if(e.showOnScreenKeyboard){this.editTextButton.classList.remove("hiddenState");const t=this.unquantizeAndDenormalizeUnsigned(e.x,e.y);this.editTextButton.style.top=t.y.toString()+"px",this.editTextButton.style.left=(t.x-40).toString()+"px"}else this.editTextButton.classList.add("hiddenState"),this.hiddenInput.blur()}}class Od{constructor(e,t){this._showActionOrErrorOnDisconnect=!0,this.allowConsoleCommands=!1,this.config=e,t!=null&&t.videoElementParent&&(this._videoElementParent=t.videoElementParent),this._eventEmitter=new nc,this.configureSettings(),this.setWebRtcPlayerController(new Bc(this.config,this)),this.onScreenKeyboardHelper=new xd(this.videoElementParent),this.onScreenKeyboardHelper.unquantizeAndDenormalizeUnsigned=(o,y)=>this._webRtcController.requestUnquantizedAndDenormalizeUnsigned(o,y),this._activateOnScreenKeyboard=o=>this.onScreenKeyboardHelper.showOnScreenKeyboard(o),this._webXrController=new _c(this._webRtcController)}get videoElementParent(){return this._videoElementParent||(this._videoElementParent=document.createElement("div"),this._videoElementParent.id="videoElementParent"),this._videoElementParent}configureSettings(){this.config._addOnSettingChangedListener($.IsQualityController,e=>{e!==!0||this._webRtcController.isQualityController||this._webRtcController.sendRequestQualityControlOwnership()}),this.config._addOnSettingChangedListener($.AFKDetection,e=>{this._webRtcController.setAfkEnabled(e)}),this.config._addOnSettingChangedListener($.MatchViewportResolution,()=>{this._webRtcController.videoPlayer.updateVideoStreamSize()}),this.config._addOnSettingChangedListener($.HoveringMouseMode,e=>{this.config.setFlagLabel($.HoveringMouseMode,`Control Scheme: ${e?"Hovering":"Locked"} Mouse`),this._webRtcController.setMouseInputEnabled(this.config.isFlagEnabled($.MouseInput))}),this.config._addOnSettingChangedListener($.KeyboardInput,e=>{this._webRtcController.setKeyboardInputEnabled(e)}),this.config._addOnSettingChangedListener($.MouseInput,e=>{this._webRtcController.setMouseInputEnabled(e)}),this.config._addOnSettingChangedListener($.TouchInput,e=>{this._webRtcController.setTouchInputEnabled(e)}),this.config._addOnSettingChangedListener($.GamepadInput,e=>{this._webRtcController.setGamePadInputEnabled(e)}),this.config._addOnNumericSettingChangedListener(oe.MinQP,e=>{x.Log(x.GetStackTrace(),"-------- Sending MinQP --------",7),this._webRtcController.sendEncoderMinQP(e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(oe.MaxQP,e=>{x.Log(x.GetStackTrace(),"-------- Sending encoder settings --------",7),this._webRtcController.sendEncoderMaxQP(e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(oe.WebRTCMinBitrate,e=>{x.Log(x.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCMinBitrate(1e3*e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(oe.WebRTCMaxBitrate,e=>{x.Log(x.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCMaxBitrate(1e3*e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnNumericSettingChangedListener(oe.WebRTCFPS,e=>{x.Log(x.GetStackTrace(),"-------- Sending web rtc settings --------",7),this._webRtcController.sendWebRTCFps(e),x.Log(x.GetStackTrace(),"-------------------------------------------",7)}),this.config._addOnOptionSettingChangedListener(ge.PreferredCodec,e=>{this._webRtcController&&this._webRtcController.setPreferredCodec(e)}),this.config._registerOnChangeEvents(this._eventEmitter)}_activateOnScreenKeyboard(e){throw new Error("Method not implemented.")}_onInputControlOwnership(e){this._inputController=e}setWebRtcPlayerController(e){this._webRtcController=e,this._webRtcController.setPreferredCodec(this.config.getSettingOption(ge.PreferredCodec).selected),this._webRtcController.resizePlayerStyle(),this.checkForAutoConnect()}connect(){this._eventEmitter.dispatchEvent(new ja),this._webRtcController.connectToSignallingServer()}reconnect(){this._eventEmitter.dispatchEvent(new za),this._webRtcController.restartStreamAutomatically()}disconnect(){this._eventEmitter.dispatchEvent(new Wa),this._webRtcController.close()}play(){this._onStreamLoading(),this._webRtcController.playStream()}checkForAutoConnect(){this.config.isFlagEnabled($.AutoConnect)&&(this._onWebRtcAutoConnect(),this._webRtcController.connectToSignallingServer())}_onWebRtcAutoConnect(){this._eventEmitter.dispatchEvent(new Ma),this._showActionOrErrorOnDisconnect=!0}_onWebRtcSdp(){this._eventEmitter.dispatchEvent(new Oa)}_onStreamLoading(){this._eventEmitter.dispatchEvent(new Ga)}_onDisconnect(e){this._webRtcController.getDisconnectMessageOverride()!=""&&this._webRtcController.getDisconnectMessageOverride()!==void 0&&this._webRtcController.getDisconnectMessageOverride()!=null&&(e=this._webRtcController.getDisconnectMessageOverride(),this._webRtcController.setDisconnectMessageOverride("")),this._eventEmitter.dispatchEvent(new Ra({eventString:e,showActionOrErrorOnDisconnect:this._showActionOrErrorOnDisconnect})),this._showActionOrErrorOnDisconnect==0&&(this._showActionOrErrorOnDisconnect=!0)}_onWebRtcConnecting(){this._eventEmitter.dispatchEvent(new Ha)}_onWebRtcConnected(){this._eventEmitter.dispatchEvent(new La)}_onWebRtcFailed(){this._eventEmitter.dispatchEvent(new Da)}_onVideoInitialized(){this._eventEmitter.dispatchEvent(new Va),this._videoStartTime=Date.now()}_onLatencyTestResult(e){this._eventEmitter.dispatchEvent(new ec({latencyTimings:e}))}_onVideoStats(e){this._videoStartTime&&this._videoStartTime!==void 0||(this._videoStartTime=Date.now()),e.handleSessionStatistics(this._videoStartTime,this._inputController,this._webRtcController.videoAvgQp),this._eventEmitter.dispatchEvent(new Za({aggregatedStats:e}))}_onVideoEncoderAvgQP(e){this._eventEmitter.dispatchEvent(new xa({avgQP:e}))}_onInitialSettings(e){var t;this._eventEmitter.dispatchEvent(new tc({settings:e})),e.PixelStreamingSettings&&(this.allowConsoleCommands=(t=e.PixelStreamingSettings.AllowPixelStreamingCommands)!==null&&t!==void 0&&t,this.allowConsoleCommands===!1&&x.Info(x.GetStackTrace(),"-AllowPixelStreamingCommands=false, sending arbitrary console commands from browser to UE is disabled."));const o=this.config.useUrlParams,y=new URLSearchParams(window.location.search);e.EncoderSettings&&(this.config.setNumericSetting(oe.MinQP,o&&y.has(oe.MinQP)?Number.parseInt(y.get(oe.MinQP)):e.EncoderSettings.MinQP),this.config.setNumericSetting(oe.MaxQP,o&&y.has(oe.MaxQP)?Number.parseInt(y.get(oe.MaxQP)):e.EncoderSettings.MaxQP)),e.WebRTCSettings&&(this.config.setNumericSetting(oe.WebRTCMinBitrate,o&&y.has(oe.WebRTCMinBitrate)?Number.parseInt(y.get(oe.WebRTCMinBitrate)):e.WebRTCSettings.MinBitrate/1e3),this.config.setNumericSetting(oe.WebRTCMaxBitrate,o&&y.has(oe.WebRTCMaxBitrate)?Number.parseInt(y.get(oe.WebRTCMaxBitrate)):e.WebRTCSettings.MaxBitrate/1e3),this.config.setNumericSetting(oe.WebRTCFPS,o&&y.has(oe.WebRTCFPS)?Number.parseInt(y.get(oe.WebRTCFPS)):e.WebRTCSettings.FPS))}_onQualityControlOwnership(e){this.config.setFlagEnabled($.IsQualityController,e)}_onPlayerCount(e){this._eventEmitter.dispatchEvent(new Ac({count:e}))}requestLatencyTest(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendLatencyTest(),!0)}requestShowFps(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendShowFps(),!0)}requestIframe(){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.sendIframeRequest(),!0)}emitUIInteraction(e){return!!this._webRtcController.videoPlayer.isVideoReady()&&(this._webRtcController.emitUIInteraction(e),!0)}emitCommand(e){return!(!this._webRtcController.videoPlayer.isVideoReady()||!this.allowConsoleCommands&&"ConsoleCommand"in e||(this._webRtcController.emitCommand(e),0))}emitConsoleCommand(e){return!(!this.allowConsoleCommands||!this._webRtcController.videoPlayer.isVideoReady()||(this._webRtcController.emitConsoleCommand(e),0))}addResponseEventListener(e,t){this._webRtcController.responseController.addResponseEventListener(e,t)}removeResponseEventListener(e){this._webRtcController.responseController.removeResponseEventListener(e)}dispatchEvent(e){return this._eventEmitter.dispatchEvent(e)}addEventListener(e,t){this._eventEmitter.addEventListener(e,t)}removeEventListener(e,t){this._eventEmitter.removeEventListener(e,t)}toggleXR(){this.webXrController.xrClicked()}setSignallingUrlBuilder(e){this._webRtcController.signallingUrlBuilder=e}get webSocketController(){return this._webRtcController.webSocketController}get webXrController(){return this._webXrController}}te.Dz,te.g$,te.Lt,te.Q9,te.qf,te.hV,te.z$,te.J0;var Ec=te.De;te.$C,te.al,te._W,te.tz,te.Nu,te.zg,te.vp;var kt=te.vU;te.wF,te.rv,te.Nh,te.ss,te.qW,te.QL,te.cf,te.eM;var Fc=te.Yd;te.iM,te.qy,te.ce;var Sc=te.sK;te.Ok,te.q5;var Qc=te.g;te.xl,te.I,te.bx,te.dD,te.Ib,te.Az,te.Iw,te.qY,te.db,te.mR,te.Tn,te.rV,te.gh,te.Mi,te.j,te.YB,te.i5;var Md=te.x_;te.Am,te.eR,te.r8,te.u3,te.vd,te.iV,te.jZ,te.SW,te.ZH,te.Ni,te.lh,te.bq,te.$f,te.eu,te.Ax,te.Mc;const Hd={Response:1},XA={UIInteraction:50,MouseWheel:75};class Ld extends V.HasOwner{constructor(t,o){super(t);J(this,"_processResponseFn",t=>this.esUeViewer.processResponse(t));J(this,"_inner");this._uri=o,this._inner=new WebSocket(this._uri),this.d(()=>{this._inner.close()}),this._innerInit()}get esUeViewer(){return this.owner}get uri(){return this._uri}get inner(){return this._inner}_innerInit(){this.inner.onmessage=t=>{if(this.isDestroyed())return;let o=new FileReader;o.onload=y=>{if(this.isDestroyed())return;let B=y.target.result,A=new Uint32Array(B),h=0;if(A[0]===Hd.Response){h+=4;let m=A[h/4];h+=4;for(let g=0;g<m;g++){let w=A[h/4];h+=4;let p=new TextDecoder("utf-8").decode(B.slice(h,h+w));h+=w,this._processResponseFn(p)}}},o.readAsArrayBuffer(t.data)},this.inner.onopen=()=>{this.isDestroyed()||(console.warn("earthsdk message websocket server connected:",this.uri),console.log("%c[EarthSDK websocket open]","background: #a6ec99; color: black","open"),this.owner.dispatchEvent(new CustomEvent("esmsgwsopen",{detail:"websocket open"})))},this._inner.onclose=t=>{this.isDestroyed()||(console.log("%c[EarthSDK websocket close ]","background: red; color: black","error"),this.owner.dispatchEvent(new CustomEvent("error",{detail:"websocket close"})))},this._inner.onerror=t=>{this.isDestroyed()||(console.log("%c[EarthSDK websocket error ]","background: red; color: black","error"),this.owner.dispatchEvent(new CustomEvent("error",{detail:"websocket error"})))}}sendInputData(t){const o=this.inner;if(o.readyState!==WebSocket.OPEN)return;const B=new Uint8Array(t)[0];if(B>=XA.UIInteraction&&B<=XA.MouseWheel){const A=new ArrayBuffer(t.byteLength+4);return new DataView(A).setUint32(0,t.byteLength,!0),new Uint8Array(A,4).set(new Uint8Array(t)),o.send(new DataView(A)),!0}else return!1}emitDescriptorWithString(t,o){let y=new TextEncoder().encode(o),B=new DataView(new ArrayBuffer(3+y.length)),A=0;B.setUint8(A,t),A++,B.setUint16(A,y.length,!0),A+=2;for(let h=0;h<y.length;h++)B.setUint8(A,y[h]),A+=1;try{this.sendInputData(B.buffer)}catch(h){console.error(`data.buffer.size: ${B.buffer.byteLength} 独立通道 sendInputData error: ${h}`,h)}}destroyImpl(){this._inner&&this._inner.close()}}window.g_emitDescriptor_maxBytes=3e4;let Dd=-1;Fc.SetLoggerVerbosity(1);class Rd extends V.Destroyable{constructor(t,o){super();J(this,"_eventTarget",new EventTarget);J(this,"debug",!1);J(this,"uiInteractionCallbacks",new Map);J(this,"_pixelStream");J(this,"_esMsgWsWrapper");this._domOrDomId=t,this._options=o;const y=typeof this._domOrDomId=="string"?document.getElementById(this._domOrDomId):this._domOrDomId;if(!y)throw new Error(`ESUEViewer container${this._domOrDomId} error!`);console.log(`PSUEViewer init _options ${this._options}`);const{url:B,esmsgWsUri:A}=this._options;this._pixelStream=this._initPixelStream(y,B),this.d(()=>{this._pixelStream.disconnect()}),this._handerPixelStreamEvent(),this._esMsgWsWrapper=this._initEsMsgWsWrapper(A);const h=this;if(h.esMsgWsWrapper){const m=h.webRtcController.sendMessageController.dataChannelSender.sendData;h.webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData=function(g){h.esMsgWsWrapper?h.esMsgWsWrapper.sendInputData(g):m.call(this,g)}}}get eventTarget(){return this._eventTarget}addEventListener(t,o,y){return this.eventTarget.addEventListener(t,o,y)}removeEventListener(t,o,y){return this.eventTarget.removeEventListener(t,o,y)}dispatchEvent(t){return this.eventTarget.dispatchEvent(t)}_initPixelStream(t,o){const y=new Ec({initialSettings:{AutoPlayVideo:!0,AutoConnect:!0,StartVideoMuted:!0,SuppressBrowserKeys:!1,[Md.SignallingServerUrl]:o}});return y.setFlagEnabled(kt.BrowserSendOffer,!1),y.setFlagEnabled(kt.HoveringMouseMode,!0),y.setFlagEnabled(kt.MatchViewportResolution,!0),y.setNumericSetting(Sc.MaxReconnectAttempts,0),new Qc(y,{videoElementParent:t})}get pixelStream(){return this._pixelStream}_initEsMsgWsWrapper(t){return t?this.dv(new Ld(this,t)):void 0}get esMsgWsWrapper(){return this._esMsgWsWrapper}get esWebSocketReady(){var t;return((t=this.esMsgWsWrapper)==null?void 0:t.inner.readyState)===1}_handerPixelStreamEvent(){this.pixelStream.addEventListener("videoInitialized",()=>{console.log("%c[EarthSDK webrtc videoInitialized]","background: #a6ec99; color: black","videoInitialized"),this.dispatchEvent(new CustomEvent("videoinited",{detail:"videoinited"}))}),this.pixelStream.addEventListener("webRtcFailed",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webRtc webRtcFailed]","background: red; color: black","webRtcFailed"),this.dispatchEvent(new CustomEvent("error",{detail:"webRtcFailed"})),this.pixelStream.disconnect())}),this.pixelStream.addEventListener("webRtcDisconnected",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webRtc webRtcDisconnected]","background: red; color: black","webRtcDisconnected"),this.dispatchEvent(new CustomEvent("error",{detail:"webRtcDisconnected"})),this.pixelStream.disconnect())}),this.pixelStream.addEventListener("webRtcConnected",()=>{this.isDestroyed()||(console.log("%c[EarthSDK webrtc webRtcConnected]","background: #a6ec99; color: black","webRtcConnected"),this.dispatchEvent(new CustomEvent("webRtcConnected",{detail:"webRtcConnected"})))}),this.pixelStream.addResponseEventListener("esueviewer",t=>{this.processResponse(t)})}resolveCallback(t){let o={};try{o=JSON.parse(t)}catch{return!1}let y=o.callid;if(typeof y!="string"||!this.uiInteractionCallbacks.has(y))return!1;let B=this.uiInteractionCallbacks.get(y);return typeof B!="function"?!1:(B(o),this.uiInteractionCallbacks.delete(y),!0)}processResponse(t){if(this.debug??!1)try{const o=JSON.parse(t);if(o.ers=o.ers&&o.ers.filter(y=>y.et!=="mouseMoveEvent"),!(o.ers&&o.ers.length>0||o.frs&&o.frs.length>0))return;console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(o,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(o){console.error(`processResponse(${t}) error: ${o}`,o)}this.resolveCallback(t)||this.dispatchEvent(new CustomEvent("ueevent",{detail:t}))}emitUIInteraction(t,o){typeof o=="function"&&(t.callid=V.createGuid(),this.uiInteractionCallbacks.set(t.callid,o)),this.pixelStream.emitUIInteraction(t)}get webRtcController(){return this.pixelStream._webRtcController}emitUIInteractionForBigData(t,o){typeof o=="function"&&(t.callid=V.createGuid(),this.uiInteractionCallbacks.set(t.callid,o));const y=JSON.stringify(t),B=window.g_emitDescriptor_maxBytes,A=y.length,h=++Dd;if(this.esMsgWsWrapper){if(A<B){this.esMsgWsWrapper.emitDescriptorWithString(XA.UIInteraction,`${h}-0/1-`+y);return}const m=Math.ceil(A/B)|0;[...new Array(m).keys()].map(w=>y.slice(w*B,(w+1)*B)).forEach((w,p)=>{this.esMsgWsWrapper&&this.esMsgWsWrapper.emitDescriptorWithString(XA.UIInteraction,`${h}-${p}/${m}-`+w)})}}emitCommand(t){this.pixelStream.emitCommand(t)}getVideoSize(){const t=this.webRtcController.videoPlayer.getVideoElement();return{width:t.videoWidth,height:t.videoHeight}}resizeUEVideo(t,o){let y={Resolution:{Width:t,Height:o}};console.log(`resizeUEVideo emitCommand ${t} ${o} begin`),this.emitCommand(y)}}class kd extends V.Destroyable{constructor(t,o,y){super();J(this,"_instance");J(this,"_event",this.dv(new V.Event));this._container=t,this._wsuri=o,this._esmsgWsUri=y,this._instance=this.dv(new Rd(this._container,{url:this._wsuri,esmsgWsUri:this._esmsgWsUri})),this.instanceInit()}get webSocketReady(){return this._instance.esWebSocketReady}get event(){return this._event}get debug(){return this._instance.debug}set debug(t){this._instance.debug=t}instanceInit(){if("addEventListener"in this._instance){["esmsgwsopen","error","videoinited","ueevent","webRtcConnected"].forEach(o=>{const y=B=>{this._event.emit(o,B.detail)};this._instance.addEventListener(o,y),this.dispose(()=>this._instance.removeEventListener(o,y))});return}this.dispose(this._instance.errorEvent.disposableOn(t=>{this._event.emit("error",t.detail)})),this.dispose(this._instance.webRtcConnectedEvent.disposableOn(t=>{this._event.emit("webRtcConnected",t.detail)})),this.dispose(this._instance.videoinitedEvent.disposableOn(t=>{this._event.emit("videoinited",t.detail)})),this.dispose(this._instance.ueevent.disposableOn(t=>{this._event.emit("ueevent",t.detail)}))}emitUIInteractionForBigData(t,o){return new Promise((y,B)=>{const A=(...h)=>{y(h),o&&o(...h)};try{this._instance.emitUIInteractionForBigData(t,A)}catch(h){console.warn(`emitUIInteraction发生错误:${h}`),B(h)}})}getVideoSize(){return this._instance.getVideoSize()}resize(t,o){this._instance.resizeUEVideo(t,o)}}class Kd extends rr{constructor(t,o,y,B){super();J(this,"_esueViewerWrapper");J(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));J(this,"_ueFuncWithIdAndResultCallbacks",[]);J(this,"_waitingUeFuncIdAndResultCallbacks",new Map);J(this,"_waitingUeCalls",new Set);J(this,"_ueEvent",this.dv(new V.Event));J(this,"_errorEvent",this.dv(new V.Event));J(this,"_readyEvent",this.dv(new V.Event));J(this,"_esmsgwsopen",this.dv(V.react(!1)));J(this,"_videoinited",this.dv(V.react(!1)));J(this,"_webRtcConnected",this.dv(V.react(!1)));this._ueViewer=B,console.log("CSTMPSViewer init ! 以官方像素流 + 独立通信的模式启动!");const A=this._ueViewer;this._esueViewerWrapper=this.dv(new kd(t,o,y));const h=this._esueViewerWrapper;{const f=()=>h.debug=A.debug??!1;f(),this.d(A.debugChanged.don(f))}let m=!1;{const f=()=>{if(m)return;const c=h.webSocketReady;if(this.videoinited&&this.webRtcConnected&&c){console.log("%c[EarthSDK: esmsgWebSocket && videoinited && webRtcConnected]","background: #a6ec99; color: black");const a={eventType:"init",params:{}};h.emitUIInteractionForBigData(a),this._readyEvent.emit(),m=!0}};this.d(this.videoinitedChanged.don(()=>{f()})),this.d(this.webRtcConnectedChanged.don(()=>{f()})),this.d(this.esmsgwsopenChanged.don(()=>{f()}))}this.d(h.event.don((f,c)=>{if(f==="error")this._errorEvent.emit(c);else if(f==="ueevent"){const a=JSON.parse(c);if(a.t==="cr"){const n=a;if(n.frs&&this._ueFuncResultWithIdsEvent.emit(n.frs),n.ers)for(let s of n.ers)this._ueEvent.emit(s)}}else f==="webRtcConnected"?this.webRtcConnected=!0:f==="videoinited"?this.videoinited=!0:f==="esmsgwsopen"&&(this.esmsgwsopen=!0)}));{const f=this.dv(V.createAnimateFrame());let c,a;f.start(()=>{if(c!==t.offsetWidth||a!==t.offsetHeight){if(c=t.offsetWidth,a=t.offsetHeight,c===void 0||a===void 0||!Number.isFinite(c)||!Number.isFinite(a)||c<0||a<0){console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${c} ${a}`);return}h.resize(c,a),console.log(`resize: ${c} ${a}`)}})}this.d(this._ueFuncResultWithIdsEvent.don(f=>{for(const c of f){const a=this._waitingUeFuncIdAndResultCallbacks.get(c.fid);a&&(this._waitingUeFuncIdAndResultCallbacks.delete(c.fid),a.resultCallback(c.r))}}));let g=0;const w=f=>{const c={n:g++,tt:Date.now(),t:"c",fs:f};this._waitingUeCalls.add(c),A.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(c,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd()),this._esueViewerWrapper.emitUIInteractionForBigData(c,()=>{this._waitingUeCalls.delete(c)})},p=()=>{if(!m||this._ueFuncWithIdAndResultCallbacks.length===0)return;const f=this._ueFuncWithIdAndResultCallbacks.map(([c])=>c);for(const[c,a]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(c.fid,a);this._ueFuncWithIdAndResultCallbacks.length=0;{const c=window.g_emitDescriptor_maxBytes,a=f.map(l=>({f:l,s:JSON.stringify(l).length}));let n=a.length,s=0,r=0,i=[];do{do{const{f:l,s:d}=a[s];if(i.push(l),++s,r+d>c||i.length>=20)break}while(s<n);i.length>0&&(A.debug&&console.log(`传送${i.length}条消息...`),w([...i]),i.length=0,r=0)}while(s<n)}};this.dv(V.createInterval()).start(p,50),this.d(()=>console.log("UeCloudViewer正在销毁..."))}get esueViewerWrapper(){return this._esueViewerWrapper}get errorEvent(){return this._errorEvent}get readyEvent(){return this._readyEvent}get esmsgwsopen(){return this._esmsgwsopen.value}set esmsgwsopen(t){this._esmsgwsopen.value=t}get esmsgwsopenChanged(){return this._esmsgwsopen.changed}get videoinited(){return this._videoinited.value}set videoinited(t){this._videoinited.value=t}get videoinitedChanged(){return this._videoinited.changed}get webRtcConnected(){return this._webRtcConnected.value}set webRtcConnected(t){this._webRtcConnected.value=t}get webRtcConnectedChanged(){return this._webRtcConnected.changed}resize(t,o){this.esueViewerWrapper.resize(t,o)}callUeFunc(t){return new Promise(o=>{const B={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([B,{timeStamp:Date.now(),ueFunc:t,resultCallback:o}])})}disposableOnUeEvent(t,o){(this._ueViewer.debug??!1)&&console.log(`disposableOnUeEvent from UeCloudViewer, type:${t}`);const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const B=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.don(h=>{h.et===t&&h.eid===y&&o(h)});return()=>{A(),B()}}}function Nd(v){let e="";const t=new Uint8Array(v),o=t.length;for(let y=0;y<o;y++)e+=String.fromCharCode(t[y]);return btoa(e)}const Vd=v=>{const e={type:"input",inputdata:Nd(v)};return JSON.stringify(e)};function Gd(v){return typeof v=="string"?document.getElementById(v):v}window.g_emitDescriptor_maxBytes=3e4,console.log("全局可设置消息体最大字节, window.g_emitDescriptor_maxBytes 默认 30000 。");let jd=-1;Fc.SetLoggerVerbosity(1);class Wd extends V.Destroyable{constructor(t,o){super();J(this,"debug",!1);J(this,"_error",this.dv(new V.Event));J(this,"_connected",this.dv(new V.Event));J(this,"_ueevent",this.dv(new V.Event));J(this,"_pixelStream");J(this,"uiInteractionCallbacks",new Map);this._container=t,this._option=o;const y=new Ec({initialSettings:{HoveringMouse:!0,AutoPlayVideo:!0,AutoConnect:!0,StartVideoMuted:!1,SuppressBrowserKeys:!1,ss:this._option.ws},useUrlParams:!0});y.setFlagEnabled(kt.BrowserSendOffer,!1),y.setFlagEnabled(kt.HoveringMouseMode,!0),y.setFlagEnabled(kt.MatchViewportResolution,!0),y.setNumericSetting(Sc.MaxReconnectAttempts,0),this._pixelStream=new Qc(y,{videoElementParent:this.container}),this.d(()=>{this._pixelStream.disconnect()});{const B=this.pixelStream.webSocketController.webSocket,A=this._pixelStream._webRtcController.sendMessageController.dataChannelSender.sendData;this._pixelStream._webRtcController.sendMessageController.dataChannelSender.constructor.prototype.sendData=function(h){B?B.send(Vd(h)):A.call(this,h)}}{const B=A=>{const h=this._pixelStream._webRtcController.mouseController;setTimeout(()=>{const m=h.coordinateConverter.normalizeAndQuantizeUnsigned(A.offsetX,A.offsetY),w=h.toStreamerMessagesProvider.toStreamerHandlers.get("MouseUp");w&&w([A.button,m.x,m.y]),A.preventDefault()})};this.container.addEventListener("dblclick",B),this.d(()=>{this.container.removeEventListener("dblclick",B)})}["error","close","open"].forEach(A=>{const h=()=>{this.isDestroyed()||(A==="open"?this.connected.emit("webSocketOpen"):A==="close"?this.error.emit("webSocketClose"):A==="error"&&this.error.emit("webSocketError"))};this.pixelStream.webSocketController.webSocket.addEventListener(A,h),this.d(()=>{this.pixelStream.webSocketController.webSocket.removeEventListener(A,h)})}),["videoInitialized","webRtcConnected","webRtcDisconnected","webRtcFailed"].forEach(A=>{const h=()=>{this.isDestroyed()||(A==="webRtcConnected"||A==="videoInitialized"?this.connected.emit(A):(A==="webRtcDisconnected"||A==="webRtcFailed")&&(this.error.emit(A),this.pixelStream.disconnect()))};this.pixelStream.addEventListener(A,h),this.d(()=>{this.pixelStream.removeEventListener(A,h)})}),this.pixelStream.addResponseEventListener("handle_responses",B=>{this.processResponse(B)}),this.d(()=>{this.pixelStream.removeResponseEventListener("handle_responses")})}get error(){return this._error}get connected(){return this._connected}get ueevent(){return this._ueevent}get container(){return Gd(this._container)}get pixelStream(){return this._pixelStream}get webSocketReady(){return this.pixelStream.webSocketController.webSocket.readyState===1}processResponse(t){if(this.debug??!1)try{const o=JSON.parse(t);console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(o,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(o){console.error(`processResponse(${t}) error: ${o}`,o)}this.resolveCallback(t)||this.ueevent.emit(t)}emitUIInteractionForBigData(t,o){typeof o=="function"&&(t.callid=V.createGuid(),this.uiInteractionCallbacks.set(t.callid,o));const y=JSON.stringify(t),B=window.g_emitDescriptor_maxBytes??3e4,A=y.length,h=++jd;if(A<B){const w={type:"earthsdk",time:new Date().getTime(),params:`${h}-0/1-`+y};this.sendData(JSON.stringify(w));return}const m=Math.ceil(A/B)|0;[...new Array(m).keys()].map(w=>y.slice(w*B,(w+1)*B)).forEach((w,p)=>{const u={type:"earthsdk",time:new Date().getTime(),params:`${h}-${p}/${m}-`+w};this.sendData(JSON.stringify(u))})}sendData(t){this.pixelStream.webSocketController.webSocket.send(t)}resolveCallback(t){let o={};try{o=JSON.parse(t)}catch{return!1}let y=o.callid;if(typeof y!="string"||!this.uiInteractionCallbacks.has(y))return!1;let B=this.uiInteractionCallbacks.get(y);return typeof B!="function"?!1:(B(o),this.uiInteractionCallbacks.delete(y),!0)}getVideoSize(){const t=this._pixelStream._webRtcController.videoPlayer.getVideoElement();return{width:t.videoWidth,height:t.videoHeight}}emitCommand(t){this.pixelStream.emitCommand(t)}emitUIInteraction(){console.log("emitUIInteraction 像素流初始化"),this.pixelStream.emitUIInteraction("像素流初始化")}resizeUEVideo(t,o){const y={Resolution:{Width:t,Height:o}};console.log(`resizeUEVideo emitCommand ${t} ${o} begin`),this.emitCommand(y)}}class zd extends V.Destroyable{constructor(t,o,y){super();J(this,"_instance");J(this,"_event",this.dv(new V.Event));this._container=t,this._wsuri=o,this._esmsgWsUri=y,this._instance=this.dv(new Wd(this._container,{ws:this._wsuri})),this.d(this._instance.connected.don(B=>{this._event.emit(B,B),console.log(`%c[EarthSDK] ${B}`,"background: #a6ec99; color: black")})),this.d(this._instance.error.don(B=>{this._event.emit("errorEvent",B),console.log(`%c[EarthSDK] ${B}`,"background: red; color: black")})),this.d(this._instance.ueevent.don(B=>{this._event.emit("ueevent",B)}))}get instance(){return this._instance}get event(){return this._event}get debug(){return this._instance.debug}set debug(t){this._instance.debug=t}emitUIInteractionForBigData(t,o){return new Promise((y,B)=>{const A=(...h)=>{y(h),o&&o(...h)};try{this._instance.emitUIInteractionForBigData(t,A)}catch(h){console.warn(`emitUIInteraction发生错误:${h}`),B(h)}})}getVideoSize(){return this._instance.getVideoSize()}resize(t,o){this._instance.resizeUEVideo(t,o)}}class Jd extends rr{constructor(t,o,y,B){super();J(this,"_videoInitialized",this.dv(V.react(!1)));J(this,"_webRtcConnected",this.dv(V.react(!1)));J(this,"_webSocketOpen",this.dv(V.react(!1)));J(this,"_ue5ViewerWrapper");J(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));J(this,"_ueFuncWithIdAndResultCallbacks",[]);J(this,"_waitingUeFuncIdAndResultCallbacks",new Map);J(this,"_waitingUeCalls",new Set);J(this,"_ueEvent",this.dv(new V.Event));J(this,"_errorEvent",this.dv(new V.Event));J(this,"_readyEvent",this.dv(new V.Event));this._ueViewer=B,console.log("INNPSViewer init ! 以内置信令服务器模式启动!");const A=this._ueViewer,h=this.dv(new zd(t,o,y));this._ue5ViewerWrapper=h;{const u=()=>h.debug=A.debug??!1;u(),this.d(A.debugChanged.don(u))}{let u=!1;const f=this.dv(V.createNextAnimateFrameEvent(this._videoInitialized.changed,this._webRtcConnected.changed,this._webSocketOpen.changed));this.d(f.don(()=>{if(u)return;const c=this._ue5ViewerWrapper.instance.webSocketReady;if(this.videoInitialized&&this.webRtcConnected&&c){this._ue5ViewerWrapper.instance.emitUIInteraction(),this._readyEvent.emit(),u=!0,console.log("%c[EarthSDK videoInitialized && webRtcConnected && webSocketReady]","background: #a6ec99; color: black");const a={eventType:"init",params:{}};this._ue5ViewerWrapper.emitUIInteractionForBigData(a)}else console.warn("webSocketReady",c),u=!1}))}this.d(h.event.don((u,f)=>{if(u==="errorEvent")this._errorEvent.emit(f);else if(u==="videoInitialized")this._videoInitialized.value=!0;else if(u==="webRtcConnected")this._webRtcConnected.value=!0;else if(u==="webSocketOpen")this._webSocketOpen.value=!0;else if(u==="ueevent"){const c=JSON.parse(f);if(c.t==="cr"){const a=c;if(a.frs&&this._ueFuncResultWithIdsEvent.emit(a.frs),a.ers)for(let n of a.ers)this._ueEvent.emit(n)}}}));{const u=this.dv(V.createAnimateFrame());let f,c,a;u.start(()=>{if(f!==t.offsetWidth||c!==t.offsetHeight||a!==A.resolutionScale){if(f=t.offsetWidth,c=t.offsetHeight,f===void 0||c===void 0||!Number.isFinite(f)||!Number.isFinite(c)||f<0||c<0){console.warn(`lastWidth === undefined || lastHeight === undefined || !Number.isFinite(lastWidth) || !Number.isFinite(lastHeight) || lastWidth < 0 || lastHeight < 0 ${f} ${c}`);return}a=A.resolutionScale,h.resize(f/a,c/a)}})}this.d(this._ueFuncResultWithIdsEvent.don(u=>{for(const f of u){const c=this._waitingUeFuncIdAndResultCallbacks.get(f.fid);c&&(this._waitingUeFuncIdAndResultCallbacks.delete(f.fid),c.resultCallback(f.r))}}));let m=0;const g=u=>{const f={n:m++,tt:Date.now(),t:"c",fs:u};this._waitingUeCalls.add(f),A.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(f,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd()),this._ue5ViewerWrapper.emitUIInteractionForBigData(f,()=>{this._waitingUeCalls.delete(f)})},w=()=>{if(!this._ue5ViewerWrapper.instance.webSocketReady||this._ueFuncWithIdAndResultCallbacks.length===0)return;const f=this._ueFuncWithIdAndResultCallbacks.map(([c])=>c);for(const[c,a]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(c.fid,a);this._ueFuncWithIdAndResultCallbacks.length=0;{const c=window.g_emitDescriptor_maxBytes,a=f.map(l=>({f:l,s:JSON.stringify(l).length}));let n=a.length,s=0,r=0,i=[];do{do{const{f:l,s:d}=a[s];if(i.push(l),++s,r+d>c||i.length>=20)break}while(s<n);i.length>0&&(A.debug&&console.log(`传送${i.length}条消息...`),g([...i]),i.length=0,r=0)}while(s<n)}};this.dv(V.createInterval()).start(w,50),this.d(()=>console.log("UeCloudViewer正在销毁..."))}get videoInitialized(){return this._videoInitialized.value}get webRtcConnected(){return this._webRtcConnected.value}get webSocketOpen(){return this._webSocketOpen.value}get ue5ViewerWrapper(){return this._ue5ViewerWrapper}get errorEvent(){return this._errorEvent}get readyEvent(){return this._readyEvent}resize(t,o){this.ue5ViewerWrapper.resize(t,o)}callUeFunc(t){return new Promise(o=>{const B={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([B,{timeStamp:Date.now(),ueFunc:t,resultCallback:o}])})}disposableOnUeEvent(t,o){const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const B=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.don(h=>{h.et===t&&h.eid===y&&o(h)});return()=>{A(),B()}}}class Xd extends V.Destroyable{constructor(t,o,y,B){super();J(this,"_onRuntimeInitialized",this.dv(new V.Event));J(this,"_vIframe",null);this._ueViewer=B;const A=this._ueViewer;{const h=document.createElement("iframe");this._vIframe=h,h.style.cssText="width: 100%; height: 100%; margin: 0; padding: 0; border: none; outline: none;",t.appendChild(h),this.d(()=>{h&&t.removeChild(h)});const m=j.ESSceneObject.getStrFromEnv(y+`/web/${o}.html`);h.src=m,h.onload=()=>{const g=h.contentWindow;if(!g){console.error("iframeWindow is null");return}console.log("iwindow.Module",g.Module),g.Module.onRuntimeInitialized=()=>{this._onRuntimeInitialized.emit(),A.setStatus("Created"),A.setStatusLog("创建成功"),g.Module.UE4_resizeCanvas(),g.console.log("创建成功__________________________________________")}}}}get onRuntimeInitialized(){return this._onRuntimeInitialized}get vIframe(){return this._vIframe}}const Uc=typeof TextDecoder<"u"?new TextDecoder:void 0,Yd=(v,e=0,t=NaN)=>{const o=e+t;let y=e;for(;v[y]&&!(y>=o);)++y;if(y-e>16&&v.buffer&&Uc)return Uc.decode(v.subarray(e,y));let B="";for(;e<y;){var A=v[e++];if(!(A&128)){B+=String.fromCharCode(A);continue}var h=v[e++]&63;if((A&224)==192){B+=String.fromCharCode((A&31)<<6|h);continue}var m=v[e++]&63;if((A&240)==224?A=(A&15)<<12|h<<6|m:((A&248)!=240&&console.warn("Invalid UTF-8 leading byte encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),A=(A&7)<<18|h<<12|m<<6|v[e++]&63),A<65536)B+=String.fromCharCode(A);else{var g=A-65536;B+=String.fromCharCode(55296|g>>10,56320|g&1023)}}return B};class $d extends V.Destroyable{constructor(e,t,o){super();{const y=()=>{const m=$n(t);t.setGlobalProperty(m)};y();const B=NA(),A=[];B.forEach(m=>{const g=t[m+"Changed"];A.push(g)});const h=this.dv(V.createNextAnimateFrameEvent(...A));this.d(h.don(y))}this.d(t.propChanged.don(y=>{if(y.objId==="")try{Object.keys(y.props).forEach(B=>{const A=y.props[B]===null?void 0:y.props[B];t[B]=A})}catch(B){console.error("ueViewer propChanged:"+B)}})),t.useCustomInteraction=!1,this.dv(new j.ViewerCustomInteraction(t,e)),this.dv(new V.ObjResettingWithEvent(t.statusUpdateIntervalChanged,y=>{if((t.statusUpdateInterval??.5)===0)return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("statusUpdate",h=>{t.statusUpdateEvent.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.propChangedListeningChanged,()=>{if(!(t.propChangedListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("propChanged",A=>{t.propChanged.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(t.objectEventListeningChanged,()=>{if(!(t.objectEventListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("objectEvent",A=>{t.objectEvent.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(t.widgetEventListeningChanged,()=>{if(!(t.widgetEventListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("widgetEvent",A=>{t.widgetEvent.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(t.speechRecognitionListeningChanged,()=>{if(!(t.speechRecognitionListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("speechRecognition",A=>{t.speechRecognition.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(t.customMessageListeningChanged,()=>{if(!(t.customMessageListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("customMessage",A=>{t.customMessage.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(t.editingEventListeningChanged,()=>{if(!(t.editingEventListening??!0))return;const B=new V.Destroyable;return B.d(o.disposableOnUeEvent("editingEvent",A=>{A.objectIDs=A.objectIDs.map(h=>h.split("_")[0]),t.editingEvent.emit(A)})),B}))}}let Zd=-1;class qd extends rr{constructor(t,o,y="${earthsdk3-ue-h5-assets-script-dir}",B){super();J(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));J(this,"_ueFuncWithIdAndResultCallbacks",[]);J(this,"_waitingUeFuncIdAndResultCallbacks",new Map);J(this,"_waitingUeCalls",new Map);J(this,"_ueEvent",this.dv(new V.Event));this._ueViewer=B;const A=this._ueViewer,h=this.dv(new Xd(t,o,y,A));let m=!1,g=null;this.d(h.onRuntimeInitialized.don(()=>{var f;if(m=!0,(f=h==null?void 0:h.vIframe)!=null&&f.contentWindow){g=h.vIframe.contentWindow;const c=h.vIframe.contentWindow.document.getElementById("mainarea");c?this.dv(new $d(c,A,this)):console.error("h5Container is null")}else{console.error("iframeWindow is null");return}g.UE_JSHTML5Communication?g.UE_JSHTML5Communication.UESendMessageToJS=c=>{try{const a=Yd(g.HEAPU8,c),n=JSON.parse(a);if(A.debug&&(console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(n,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()),n.t==="cr"){const s=n;if(s.frs&&this._ueFuncResultWithIdsEvent.emit(s.frs),s.ers)for(let r of s.ers)this._ueEvent.emit(r)}n.callid&&this._waitingUeCalls.has(n.callid)&&(this._waitingUeCalls.delete(n.callid),console.log(`waitingUeCalls.delete:${n.callid} end`))}catch(a){console.error("UE_JSHTML5Communication.UESendMessageToJS error:",a)}}:console.error("UE_JSHTML5Communication UESendMessageToJS not found")})),this.dispose(this._ueFuncResultWithIdsEvent.disposableOn(f=>{for(const c of f){const a=this._waitingUeFuncIdAndResultCallbacks.get(c.fid);a&&(this._waitingUeFuncIdAndResultCallbacks.delete(c.fid),a(c.r))}}));let w=0;const p=()=>{if(!m||!g||!g.UE_JSHTML5Communication||!g.UE_JSHTML5Communication.JSSendMessageToUE||this._ueFuncWithIdAndResultCallbacks.length===0)return;const f=this._ueFuncWithIdAndResultCallbacks.map(([d])=>d),c={n:w++,tt:Date.now(),t:"c",fs:f,callid:V.createGuid()};for(const[d,C]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(d.fid,C);this._ueFuncWithIdAndResultCallbacks.length=0,this._waitingUeCalls.set(c.callid,c),A.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(c,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd());const a=JSON.stringify(c),n=window.g_emitDescriptor_maxBytes??3e4,s=a.length,r=++Zd;if(s<n){const d=`${r}-0/1-`+a;g.UE_JSHTML5Communication.JSSendMessageToUE(d);return}const i=Math.ceil(s/n)|0;[...new Array(i).keys()].map(d=>a.slice(d*n,(d+1)*n)).forEach((d,C)=>{const _=`${r}-${C}/${i}-`+d;g.UE_JSHTML5Communication.JSSendMessageToUE(_)})};this.dv(V.createInterval()).start(p,50)}processResponse(t){if(this._ueViewer.debug??!1)try{const o=JSON.parse(t);console.group("%cUE => JS"," background-color:#006EFF;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(o,void 0,"")}`," border:1px dashed #006EFF;border-radius:5px;padding:10px;line-height:25px;color:#006EFF;"),console.groupEnd()}catch(o){console.error(`processResponse(${t}) error: ${o}`,o)}}callUeFunc(t){return new Promise(o=>{const B={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([B,o])})}disposableOnUeEvent(t,o){const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const B=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.disposableOn(h=>{h.et===t&&h.eid===y&&((this._ueViewer.debug??!1)&&console.log(`callback, type:${t} eid:${y} ueEvent:${JSON.stringify(h)}`),o(h))});return()=>{A(),B()}}}let ef=-1;class tf extends rr{constructor(t,o){super();J(this,"_ueFuncResultWithIdsEvent",this.dv(new V.Event));J(this,"_ueFuncWithIdAndResultCallbacks",[]);J(this,"_waitingUeFuncIdAndResultCallbacks",new Map);J(this,"_waitingUeCalls",new Set);J(this,"_ueEvent",this.dv(new V.Event));this._ueViewer=o;const y=this._ueViewer;let B=!1;const A={eventType:"init",params:{}};window.ue.es.oncommand(JSON.stringify(A)),B=!0,window.calljs=(w,p)=>{if(y.debug&&console.log(`calljs eventName:${w} eventDetailStr:${p}`),w==="ueevent"||w==="commanFinish")try{const u=JSON.parse(p);if(u.t==="cr"){const f=u;if(f.frs&&this._ueFuncResultWithIdsEvent.emit(f.frs),f.ers)for(let c of f.ers)this._ueEvent.emit(c)}}catch(u){console.error(u)}},this.dispose(this._ueFuncResultWithIdsEvent.disposableOn(w=>{for(const p of w){const u=this._waitingUeFuncIdAndResultCallbacks.get(p.fid);u&&(this._waitingUeFuncIdAndResultCallbacks.delete(p.fid),u(p.r))}}));let h=0;const m=()=>{if(!B||this._ueFuncWithIdAndResultCallbacks.length===0)return;const w=this._ueFuncWithIdAndResultCallbacks.map(([f])=>f),p={n:h++,tt:Date.now(),t:"c",fs:w};for(const[f,c]of this._ueFuncWithIdAndResultCallbacks)this._waitingUeFuncIdAndResultCallbacks.set(f.fid,c);this._ueFuncWithIdAndResultCallbacks.length=0,this._waitingUeCalls.add(p),y.debug&&(console.group("%cxe2 => ue"," background-color:green;color:#ffffff;font-weight:bold;padding:4px;border-radius:5px;"),console.log(`%c${JSON.stringify(p,void 0,"")}`," border:1px dashed green;border-radius:5px;padding:10px;line-height:25px;color:green;"),console.groupEnd());const u=++ef;window.ue.es.oncommand(`${u}-0/1-`+JSON.stringify(p)).then(()=>{this._waitingUeCalls.delete(p)})};this.dv(V.createInterval()).start(m,50)}callUeFunc(t){return new Promise(o=>{const B={fid:V.createGuid(),...t};this._ueFuncWithIdAndResultCallbacks.push([B,o])})}disposableOnUeEvent(t,o){const y=V.createGuid();this.callUeFunc({f:"addEventListener",p:{et:t,eid:y}});const B=()=>{this.callUeFunc({f:"removeEventListener",p:{eid:y}})},A=this._ueEvent.disposableOn(h=>{h.et===t&&h.eid===y&&((this._ueViewer.debug??!1)&&console.log(`callback, type:${t} eid:${y} ueEvent:${JSON.stringify(h)}`),o(h))});return()=>{A(),B()}}}class rf extends V.Destroyable{constructor(e,t){super();{const o=()=>{const h=$n(e);e.setGlobalProperty(h)};o();const y=NA(),B=[];y.forEach(h=>{const m=e[h+"Changed"];B.push(m)});const A=this.dv(V.createNextAnimateFrameEvent(...B));this.d(A.don(o))}this.d(e.propChanged.don(o=>{if(o.objId==="")try{Object.keys(o.props).forEach(y=>{const B=o.props[y]===null?void 0:o.props[y];e[y]=B})}catch(y){console.error("ueViewer propChanged:"+y)}})),this.dv(new V.ObjResettingWithEvent(e.statusUpdateIntervalChanged,o=>{if((e.statusUpdateInterval??.5)===0)return;const B=new V.Destroyable;return B.d(t.disposableOnUeEvent("statusUpdate",A=>{e.statusUpdateEvent.emit(A)})),B})),this.dv(new V.ObjResettingWithEvent(e.propChangedListeningChanged,()=>{if(!(e.propChangedListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("propChanged",B=>{e.propChanged.emit(B)})),y})),this.dv(new V.ObjResettingWithEvent(e.objectEventListeningChanged,()=>{if(!(e.objectEventListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("objectEvent",B=>{e.objectEvent.emit(B)})),y})),this.dv(new V.ObjResettingWithEvent(e.widgetEventListeningChanged,()=>{if(!(e.widgetEventListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("widgetEvent",B=>{e.widgetEvent.emit(B)})),y})),this.dv(new V.ObjResettingWithEvent(e.speechRecognitionListeningChanged,()=>{if(!(e.speechRecognitionListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("speechRecognition",B=>{e.speechRecognition.emit(B)})),y})),this.dv(new V.ObjResettingWithEvent(e.customMessageListeningChanged,()=>{if(!(e.customMessageListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("customMessage",B=>{e.customMessage.emit(B)})),y})),this.dv(new V.ObjResettingWithEvent(e.editingEventListeningChanged,()=>{if(!(e.editingEventListening??!0))return;const y=new V.Destroyable;return y.d(t.disposableOnUeEvent("editingEvent",B=>{B.objectIDs=B.objectIDs.map(A=>A.split("_")[0]),e.editingEvent.emit(B)})),y}))}}class Af extends V.Destroyable{constructor(e,t,o){super();{const B=()=>{const g=$n(t);t.setGlobalProperty(g)};B();const A=NA(),h=[];A.forEach(g=>{const w=t[g+"Changed"];h.push(w)});const m=this.dv(V.createNextAnimateFrameEvent(...h));this.d(m.don(B))}this.d(t.propChanged.don(B=>{if(B.objId==="")try{Object.keys(B.props).forEach(A=>{const h=B.props[A]===null?void 0:B.props[A];t[A]=h})}catch(A){console.error("ueViewer propChanged:"+A)}}));const y=document.createElement("div");y.style.width="100%",y.style.height="100%",y.style.position="absolute",y.style.overflow="hidden",y.style.top="0",y.style.left="0",y.style.zIndex="0",y.style.backgroundColor="rgba(255,0,0,0)",y.setAttribute("masker","大屏顶层div,用于模拟鼠标事件和控制UE鼠标事件是否生效"),e.appendChild(y),this.d(()=>{y&&e&&e.removeChild(y)});{const B=(g,w)=>{window.ue.esinput.setinterceptevent(w),g.preventDefault()},A=g=>{B(g,!1)},h=g=>{B(g,!0)},m=g=>{B(g,!1)};y.addEventListener("mouseenter",A),y.addEventListener("mouseleave",h),y.addEventListener("mousemove",m),this.d(()=>{y.removeEventListener("mouseenter",A),y.removeEventListener("mouseleave",h),y.removeEventListener("mousemove",m)})}t.useCustomInteraction=!1,this.dv(new j.ViewerCustomInteraction(t,y)),this.dv(new V.ObjResettingWithEvent(t.statusUpdateIntervalChanged,B=>{if((t.statusUpdateInterval??.5)===0)return;const h=new V.Destroyable;return h.d(o.disposableOnUeEvent("statusUpdate",m=>{t.statusUpdateEvent.emit(m)})),h})),this.dv(new V.ObjResettingWithEvent(t.propChangedListeningChanged,()=>{if(!(t.propChangedListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("propChanged",h=>{t.propChanged.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.objectEventListeningChanged,()=>{if(!(t.objectEventListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("objectEvent",h=>{t.objectEvent.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.widgetEventListeningChanged,()=>{if(!(t.widgetEventListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("widgetEvent",h=>{t.widgetEvent.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.speechRecognitionListeningChanged,()=>{if(!(t.speechRecognitionListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("speechRecognition",h=>{t.speechRecognition.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.customMessageListeningChanged,()=>{if(!(t.customMessageListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("customMessage",h=>{t.customMessage.emit(h)})),A})),this.dv(new V.ObjResettingWithEvent(t.editingEventListeningChanged,()=>{if(!(t.editingEventListening??!0))return;const A=new V.Destroyable;return A.d(o.disposableOnUeEvent("editingEvent",h=>{h.objectIDs=h.objectIDs.map(m=>m.split("_")[0]),t.editingEvent.emit(h)})),A}))}}class nf extends V.Destroyable{constructor(t,o,y){super();J(this,"_reconnectEvent",this.dv(new V.Event));const B=(m,g)=>m.hasOwnProperty(g);let A=0,h;if(this.d(()=>{h&&clearTimeout(h)}),window.ue&&window.ue.es)if(window.ue.esinput){y.setStatus("Creating"),console.log("存在(window.ue && window.ue.es && window.ue.esinput 需要适配新版ESWebView 鼠标穿透), 开始创建UeFalseCloudViewer..."),y.setStatusLog("开始创建本地视口...");const m=this.dv(new tf(t,y));this.d(()=>y.viewer=void 0),y.viewer=m,y.setStatus("Created"),y.setStatusLog("本地视口创建成功!"),this.dv(new Af(t,y,m))}else y.setStatus("Error"),y.setStatusLog("请升级 ESWebView !");else if(B(o.options,"ws")||B(o.options,"uri")&&B(o.options,"app")){y.setStatus("Creating"),y.setStatusLog("开始创建云渲染视口...");let m;this.d(()=>{y.setStatus("Raw"),y.setStatusLog(""),t&&m&&t.removeChild(m)&&(m=void 0)});const g=this.dv(V.createProcessingFromAsyncFunc(async w=>{y.viewer&&!y.viewer.isDestroyed()&&y.viewer.destroy(),y.viewer=void 0,m&&t.removeChild(m)&&(m=void 0),m=document.createElement("div"),m.setAttribute("earthsdk3-ue","earthsdk3-ue-videoContainer"),m.style.cssText="position:relative; height: 100%;width:100%;",t.appendChild(m);let p,u,f;if(B(o.options,"ws")){const{ws:s,esmsg:r,uselnternalSignallingServer:i}=o.options;p=s,u=r,f=i??!1}if(B(o.options,"uri")&&B(o.options,"app")){const{offsetWidth:s,offsetHeight:r}=m;let{uri:i,app:l,token:d}=o.options;i.endsWith("/")||(i+="/");const C=d?`?essstoken=${d}`:"",_=`/${l}/${s??1920}/${r??1080}`+C;console.log(`请求信令服务器: ${i}instance${_}`);const b=await w.promise(fetch(`${i}instance${_}`,{method:"GET"})),E=await w.promise(b.json());if(E&&E.status!=="ok"){y.setStatus("Error"),y.setStatusLog(`信令服务器请求失败 ${E.status}`),this._reconnectEvent.emit(void 0);return}else{console.log(`信令服务器请求成功! ${JSON.stringify(E,void 0," ")}`),await V.sleep(2e3);const{server:F,esmsg:S,instanceId:U,useInternalSignallingServer:T}=E;if(!U){y.setStatus("Error"),y.setStatusLog("检查信令服务器版本,返回数据错误! "),console.log("信令服务器返回数据错误!不包含instanceId!请升级到 ESSS V3.0+ 版本!"),this._reconnectEvent.emit(void 0);return}p=F,u=S,f=T??!1,y.esssResponse=E}}const c=this.dv(f?new Jd(m,p,u,y):new Kd(m,p,u,y));this.d(()=>y.viewer=void 0),this.d(c.errorEvent.don(s=>{const r=`[${s}]:像素流连接错误!`;y.setStatus("Error"),y.setStatusLog(r),this._reconnectEvent.emit(c)})),await w.promise(new Promise(s=>this.d(c.readyEvent.donce(s)))),y.setStatus("Created"),y.setStatusLog("云渲染视口创建成功!"),A=0,h&&clearTimeout(h),h=void 0;const{offsetWidth:a,offsetHeight:n}=m;c.resize(a*window.devicePixelRatio,n*window.devicePixelRatio),y.viewer=c,this.d(()=>y.viewer=void 0),this.dv(new rf(y,c))}));g.start(),this.d(this._reconnectEvent.don(w=>{h===void 0&&(w&&!w.isDestroyed()&&w.destroy(),y.viewer&&!y.viewer.isDestroyed()&&y.viewer.destroy(),y.viewer=void 0,y.autoReconnect&&(y.setStatus("Reconnecting"),y.setStatusLog("正在尝试重新连接..."),A=A+5e3>3e4?3e4:A+5e3,console.warn(`间隔:${A/1e3}s,正在尝试重新连接...`),h=window.setTimeout(()=>{g.restart()},A)))})),this.d(g.errorEvent.don(w=>{y.setStatus("Error"),y.setStatusLog("云渲染视口创建失败!"),console.warn("云渲染视口创建失败!",w),this._reconnectEvent.emit(void 0)}))}else if(B(o.options,"project")){const m=o,g=m.options.project,w=m.options.baseUrl;y.setStatus("Creating"),y.setStatusLog("下载编译中...");const p=this.dv(new qd(t,g,w,y));y.viewer=p,this.d(()=>y.viewer=void 0)}else y.setStatus("Error"),y.setStatusLog("视口创建失败!"),console.warn("视口创建失败: 参数错误!")}}const Tt=class Tt extends j.ESViewer{constructor(t){super(t);J(this,"_viewer",this.dv(V.react(void 0)));J(this,"_esssResponse");J(this,"_speechRecognition",this.dv(new V.Event));J(this,"_propChanged",this.dv(new V.Event));J(this,"_objectEvent",this.dv(new V.Event));J(this,"_widgetEvent",this.dv(new V.Event));J(this,"_customMessage",this.dv(new V.Event));J(this,"_statusUpdateEvent",this.dv(new V.Event));J(this,"_statusUpdateEventdon",(()=>{this.d(this.statusUpdateEvent.don(t=>{this._statusInfo.fps=t.FPS??0,this._statusInfo.length=t.length??0,this._statusInfo.position=t.position??[0,0,0],this._statusInfo.rotation=t.rotation??[0,0,0]}))})());if(t.type!=="ESUeViewer")throw new Error("option.type must be ESUeViewer");const o=t;this.d(this._viewer.changed.don(()=>{this.viewerChanged.emit(this.viewer)})),this.dv(new V.ObjResettingWithEvent(this.subContainerChanged,()=>{if(this.setStatus("Raw"),this.setStatusLog(""),!!this.subContainer)return new nf(this.subContainer,o,this)}))}get defaultProps(){return Tt.createDefaultProps()}set viewer(t){this._viewer.value=t}get viewer(){return this._viewer.value}get esssResponse(){return this._esssResponse}set esssResponse(t){this._esssResponse=t}get speechRecognition(){return this._speechRecognition}get propChanged(){return this._propChanged}get objectEvent(){return this._objectEvent}get widgetEvent(){return this._widgetEvent}get customMessage(){return this._customMessage}get statusUpdateEvent(){return this._statusUpdateEvent}async uePositionToLonLatAlt(t){if(!this.viewer){console.warn("UEPositionToLonLatAlt: viewer is undefined");return}return await Xs(this.viewer,t)}async changeNavigationMode(t){if(!this.viewer){console.warn("ChangeNavigationMode: viewer is undefined");return}const o=await At(this.viewer,t);return o&&!o.error&&(this._navigationMode.value=t.mode),o}async resetWithCurrentCamera(t){if(!this.viewer){console.warn("resetWithCurrentCamera: viewer is undefined");return}return await qn(this.viewer,t)}async getAllSocketNamesByActorTag(t){if(!this.viewer){console.warn("GetAllSocketNamesByActorTag: viewer is undefined");return}return await Ys(this.viewer,t)}async getBoundSphere(t){if(!this.viewer){console.warn("getBoundSphere: viewer is undefined");return}return await Zs(this.viewer,t)}async getBoundSphereWithChildren(t){if(!this.viewer){console.warn("getBoundSphereWithChildren: viewer is undefined");return}return await qs(this.viewer,t)}async getStrokeMaterialParamInfo(t){if(!this.viewer){console.warn("GetStrokeMaterialParamInfo: viewer is undefined");return}return await ea(this.viewer,t)}async getFillMaterialParamInfo(t){if(!this.viewer){console.warn("getFillMaterialParamInfo: viewer is undefined");return}return await ta(this.viewer,t)}async getGlobalProperty(t){if(!this.viewer){console.warn("getGlobalProperty: viewer is undefined");return}return await ra(this.viewer,t)}async getObjectByInfo(t){if(!this.viewer){console.warn("GetObjectByInfo: viewer is undefined");return}return await Aa(this.viewer,t)}async defaultCameraFlyIn(t=1){if(!this.viewer){console.warn("DefaultCameraFlyIn: viewer is undefined");return}return await Qs(this.viewer,t)}async startVoice(){if(!this.viewer){console.warn("startVoice:viewer is undefined");return}return await Us(this.viewer)}async stopVoice(){if(!this.viewer){console.warn("startVoice:viewer is undefined");return}return await Ts(this.viewer)}async mountPakFiles(t){if(!this.viewer){console.warn("mountPakFiles:viewer is undefined");return}return await Is(this.viewer,t)}async generateMemReport(){if(!this.viewer){console.warn("generateMemReport:viewer is undefined");return}return await Ps(this.viewer)}async quit(){if(!this.viewer){console.warn("Quit: viewer is undefined");return}return await Ks(this.viewer)}async bindActorByTag(t,o){if(!this.viewer){console.warn("BindActorByTag: viewer is undefined");return}return await na(this.viewer,t,o)}async restoreOriginalScene(){if(!this.viewer){console.warn("RestoreOriginalScene: viewer is undefined");return}return await ia(this.viewer)}async unBindActorByID(t){if(!this.viewer){console.warn("UnBindActorByID: viewer is undefined");return}return await oa(this.viewer,t)}async unBindActorByTag(t){if(!this.viewer){console.warn("UnBindActorByTag: viewer is undefined");return}return await sa(this.viewer,t)}async createActorByClass(t,o){if(!this.viewer){console.warn("CreateActorByClass: viewer is undefined");return}return await aa(this.viewer,t,o)}async bind3DTilesetByTag(t,o){if(!this.viewer){console.warn("Bind3DTilesetByTag: viewer is undefined");return}return await ca(this.viewer,t,o)}async unBind3DTilesetByTag(t){if(!this.viewer){console.warn("UnBind3DTilesetByTag: viewer is undefined");return}return await la(this.viewer,t)}async unBind3DTilesetById(t){if(!this.viewer){console.warn("UnBind3DTilesetById: viewer is undefined");return}return await ua(this.viewer,t)}async bindImageryByTag(t,o,y){if(!this.viewer){console.warn("BindImageryByTag: viewer is undefined");return}return await da(this.viewer,t,o,y)}async unBindImageryByTag(t,o){if(!this.viewer){console.warn("UnBindImageryByTag: viewer is undefined");return}return await fa(this.viewer,t,o)}async unBindImageryById(t){if(!this.viewer){console.warn("UnBindImageryById: viewer is undefined");return}return await ha(this.viewer,t)}async getIdByComponentNameAndHitItem(t,o,y){if(!this.viewer){console.warn("GetIdByComponentNameAndHitItem: viewer is undefined");return}return await pa(this.viewer,t,o,y)}async getCameraRelativeHeight(t="ECC_Visibility"){if(!this.viewer){console.warn("GetCameraRelativeHeight: viewer is undefined");return}return await ga(this.viewer,t)}async saveStringToFile(t,o,y){if(!this.viewer){console.warn("SaveStringToFile: viewer is undefined");return}return await va(this.viewer,t,o,y)}async highlightActorByTag(t,o=!0){if(!this.viewer){console.warn("HighlightActorByTag: viewer is undefined");return}return await ya(this.viewer,t,o)}async sendCustomMessage(t){if(!this.viewer){console.warn("SendCustomMessage: viewer is undefined");return}return await ma(this.viewer,t)}async getStatus(){if(!this.viewer){console.warn("GetStatus:viewer is undefined");return}return await wa(this.viewer)}async getTilesetMaterialIDList(){if(!this.viewer){console.warn("GetTilesetMaterialIDList:viewer is undefined");return}return await _a(this.viewer)}async pick(t,o,y){if(!this.viewer)return;let B=t;if(t&&window.ue&&this.container){const[A,h]=t,{x:m,y:g}=this.container.getBoundingClientRect();B=[m+A,g+h]}return await Ns(this.viewer,B,o,y)}async pickPosition(t){if(!this.viewer)return;let o=t;if(t&&window.ue&&this.container){const[y,B]=t,{x:A,y:h}=this.container.getBoundingClientRect();o=[A+y,h+B]}return await Vs(this.viewer,o)}async flyIn(t,o=[0,0,0],y=1,B="default"){if(!this.viewer)return;const A=await tr(this.viewer,void 0,t,o,y,B);if(A)return A.endType===0&&console.warn(`flyTo:flyTo is end! endType:${A.endType}`),A.endType===1&&console.warn(`flyTo:飞行中断! endType:${A.endType}`),A}async flyTo(t,o,y="default"){if(!this.viewer)return;const B=await Ht(this.viewer,void 0,void 0,t,o,y);if(B)return B.endType===0&&console.warn(`flyTo:flyTo is end! endType:${B.endType}`),B.endType===1&&console.warn(`flyTo:飞行中断! endType:${B.endType}`),B}flyToBoundingSphere(t,o,y=1){const B=[[t[0],t[1],0],[t[0],t[3],0],[t[2],t[3],0],[t[2],t[1],0]],A=j.getGeoBoundingSphereFromPositions(B);if(!A)return;const{center:h,radius:m}=A,g={distance:o??m,heading:0,pitch:-90,flyDuration:y,hDelta:0,pDelta:0};this.flyTo(g,h)}getCurrentCameraInfo(){const{position:t,rotation:o}=this._statusInfo;return{position:t,rotation:o}}getLengthInPixel(){return this._statusInfo.length}async changeToWalk(t,o=4.2){if(!this.viewer)return;const y={mode:"Walk",position:t,jumpZVelocity:o},B=await At(this.viewer,y);return B&&!B.error&&(this._navigationMode.value=y.mode),B}async changeToMap(){if(!this.viewer)return;const t={mode:"Map"},o=await At(this.viewer,t);return o&&!o.error&&(this._navigationMode.value=t.mode),o}async changeToRotateGlobe(t=38,o=1e7,y=60){if(!this.viewer)return;const B={mode:"RotateGlobe",latitude:t,height:o,cycleTime:y},A=await At(this.viewer,B);return A&&!A.error&&(this._navigationMode.value=B.mode),A}async changeToLine(t,o=10,y=10,B=!0,A=10,h="auto"){if(!this.viewer)return;const m={mode:"Line",geoLineStringId:t,speed:o,heightOffset:y,loop:B,turnRateDPS:A,lineMode:h},g=await At(this.viewer,m);return g&&!g.error&&(this._navigationMode.value=m.mode),g}async changeToUserDefined(t){if(!this.viewer)return;const o={mode:"UserDefined",userDefinedPawn:t},y=await At(this.viewer,o);return y&&!y.error&&(this._navigationMode.value=o.mode),y}async changeToRotatePoint(t,o=5e4,y=60,B=0,A=-30){if(!this.viewer)return;const h={mode:"RotatePoint",position:t,distance:o,orbitPeriod:y,heading:B,pitch:A},m=await At(this.viewer,h);return m&&!m.error&&(this._navigationMode.value=h.mode),m}async changeToFollow(t,o=0,y=0,B=-30,A=!0){if(!this.viewer)return;const h={mode:"Follow",objectId:t,distance:o,heading:y,pitch:B,relativeRotation:A},m=await At(this.viewer,h);return m&&!m.error&&(this._navigationMode.value=h.mode),m}getFPS(){return this._statusInfo.fps}async getVersion(){const t=window.g_XE3CopyRights??{};if(!this.viewer)return t;const o=await $s(this.viewer);return t.esforue=o,t}async getHeightByLonLat(t,o,y="ECC_Visibility"){if(!this.viewer)return null;const B=await Gs(this.viewer,t,o,y);return B&&B.height!==void 0?B.height:null}async getHeightsByLonLats(t,o="ECC_Visibility"){return this.viewer?await js(this.viewer,t,o):void 0}async capture(t=64,o=64){return this.viewer?await Ws(this.viewer,t,o):void 0}async partialCapture(t,o=[64,64]){if(!this.viewer){console.warn("partialCapture:viewer is undefined");return}return await zs(this.viewer,t,o)}async lonLatAltToScreenPosition(t){if(!this.viewer)return;const o=await Js(this.viewer,t);return o&&[o.X,o.Y]}async setGlobalProperty(t){if(this.viewer)return await ks(this.viewer,t)}async startEditing(t,o,y){y=Object.assign({useKeyToSwitch:!0,callSource:"outer"},y);const B=t.combinationClass?t.getMainClass():t;if(!B||!this.viewer||o==null)return;const A=Array.isArray(o)?[...o]:[o];return B.editingID=`${y.callSource}_${V.createGuid()}`,await Ba(this.viewer,B.id,B.editingID,A,y.useKeyToSwitch)}async stopEditing(){if(this.viewer)return await Ca(this.viewer)}async moveObjects(t){if(!this.viewer)return;const o=[],y=V.createGuid();for(let B=0;B<t.length;B++){const A=t[B],h=A.combinationClass?A.getMainClass():A;h.editingID=y,h&&o.push(h.id)}if(o.length!==0)return await ba(this.viewer,o,y)}getProperties(){return[...super.getProperties()]}};J(Tt,"type",Tt.register("ESUeViewer",Tt)),J(Tt,"defaults",{...ku});let it=Tt;(v=>{v.createDefaultProps=()=>({...j.ESViewer.createDefaultProps(),...Fs(),resolutionScale:1,autoReconnect:!1,propChangedListening:void 0,objectEventListening:void 0,widgetEventListening:void 0,speechRecognitionListening:void 0,customMessageListening:void 0})})(it||(it={})),V.extendClassProps(it.prototype,it.createDefaultProps);class _t extends j.EngineObject{constructor(e,t){super(e,t);const o=t.viewer;if(o&&(e.combinationClass||this.d(this.createdEvent.don(()=>{const y=this.constructor.propValFuncs,B=e.defaultProps,A=Object.keys(B).filter(u=>y[u]!==null);A.push(...this.constructor.forceUeUpdateProps);const h=e.constructor.defaults,m={val:{}},g=[];for(let u of A){const f=u+"Changed",c=e[f];g.push(c);const a=y[u];if(a===null)throw console.error("vf === null error"),new Error("vf === null error");const n=()=>{const s=e[u]??h[u];let r=a?a(s,this,t,e):s;if(r===void 0){console.warn(`UE自动更新的属性,不应该为undefined! 属性名:${u} 对象名:${e.name} 对象id: ${e.id}`);return}m.val[u]=r};n(),this.d(c.don(n))}const w=()=>{o.callUeFunc({f:"update",p:{id:e.id,...m.val}}),m.val={}},p=this.dv(V.createNextAnimateFrameEvent(...g));this.d(p.don(w)),this.d(e.createdEvent.don(w)),this.d(e.flushEvent.don(()=>p.flush()))})),!e.combinationClass)){let y=!1;this.d(()=>{y&&Zn(o,e.id)}),o.callUeFunc({f:"create",p:{type:e.typeName,id:e.id}}).then(()=>{y=!0,e.createdEvent.emit()}).catch(B=>console.error(B))}}}J(_t,"propValFuncs",{ref:null,devTags:null,extras:null,execOnceFuncStr:null,updateFuncStr:null,toDestroyFuncStr:null}),J(_t,"forceUeUpdateProps",[]);class Le extends _t{constructor(e,t){super(e,t);const o=t.viewer;o&&(this.d(e.flyToEvent.don(y=>{Ht(o,e.id,y)})),this.d(e.flyInEvent.don(y=>{var B,A;tr(o,e.id,(B=e.flyInParam)==null?void 0:B.position,(A=e.flyInParam)==null?void 0:A.rotation,y??1)})),this.d(e.calcFlyToParamEvent.don(()=>{Lt(o,e.id)})),this.d(e.calcFlyInParamEvent.don(()=>{const y=t.getCurrentCameraInfo();if(!y)return;const{position:B,rotation:A}=y;e.flyInParam={position:B,rotation:A,flyDuration:1}})),this.d(t.propChanged.don(y=>{y.objId===e.id&&Object.keys(y.props).forEach(B=>{const A=y.props[B]===null?void 0:y.props[B];e[B]=A})})))}}class de extends Le{constructor(e,t){super(e,t);const o=t.viewer;if(!o)return;const y=()=>{e.editing||o.callUeFunc({f:"update",p:{id:e.id,position:e.position,rotation:e.rotation}})},B=this.dv(V.createNextAnimateFrameEvent(e.positionChanged,e.rotationChanged,e.editingChanged));this.d(B.don(()=>{setTimeout(y,0)})),this.d(e.smoothMoveEvent.don((m,g)=>{WA(o,e.id,m,g)})),this.d(e.smoothMoveWithRotationEvent.don((m,g,w)=>{VA(o,e.id,m,g,w)})),this.d(e.smoothMoveOnGroundEvent.don((m,g,w,p)=>{GA(o,e.id,m,g,p,w)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((m,g,w,p,u)=>{jA(o,e.id,m,g,w,p,u)})),this.d(e.smoothMoveKeepPitchEvent.don(async(m,g)=>{const w=await o.callUeFunc({f:"SmoothMoveKeepPitch",p:{id:e.id,Destination:m,Time:g}});w.error&&console.error("SmoothMoveKeepPitch:",w.error)})),this.d(e.automaticLandingEvent.don(m=>{const g=[e.position[0],e.position[1]];t.getHeightByLonLat(e.position[0],e.position[1],"Visibility").then(w=>{w!==null&&(e.position=[...g,w],e.collision=m)})}));const A=async(m,g,w,p)=>{const{viewer:u}=m;if(!u){console.error("SmoothMoveRelatively: ueViewer.viewer is undefined");return}const f=await u.callUeFunc({f:"SmoothMoveRelatively",p:{id:g,RelativePosition:w,Time:p}});return f.error&&console.error("SmoothMoveRelatively:",f.error),f};this.d(e.smoothMoveRelativelyEvent.don((m,g)=>{A(t,e.id,m,g)}));const h=async(m,g,w,p,u)=>{const{viewer:f}=m;if(!f){console.error("SmoothMoveRelativelyWithRotation: ueViewer.viewer is undefined");return}const c=await f.callUeFunc({f:"SmoothMoveRelativelyWithRotation",p:{id:g,RelativePosition:w,NewRotation:p,Time:u}});return c.error&&console.error("SmoothMoveRelativelyWithRotation:",c.error),c};this.d(e.smoothMoveRelativelyWithRotationEvent.don((m,g,w)=>{h(t,e.id,m,g,w)}))}}class De extends Le{constructor(e,t){super(e,t);const o=t.viewer;if(!o)return;const y=()=>{e.editing||o.callUeFunc({f:"update",p:{id:e.id,points:e.points}})},B=this.dv(V.createNextAnimateFrameEvent(e.pointsChanged,e.editingChanged));this.d(B.don(()=>{setTimeout(y,0)}))}}J(De,"propValFuncs",{...Le.propValFuncs,pointStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),strokeStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),fillStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})})});class $e extends de{constructor(e,t){super(e,t),t.viewer&&this.d(t.widgetEvent.don(y=>{if(y.objId!==e.id)return;const{type:B,add:A}=y;e.widgetEvent.emit({type:B,add:A})}))}}class ui extends de{constructor(e,t){super(e,t),t.viewer}}J(ui,"propValFuncs",{...de.propValFuncs,pointStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),strokeStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})}),fillStyle:e=>({...e,materialParams:JSON.stringify(e.materialParams??{})})});class YA extends ui{constructor(e,t){super(e,t),t.viewer}}const Tc=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"没搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag但对应的Actor不是3dTileset,无法绑定";default:return"未知错误"}},Fr=class Fr extends j.EngineObject{constructor(t,o){super(t,o);J(this,"_styleColor",this.dv(V.react([])));J(this,"_styleVisable",this.dv(V.react([])));const y=o.viewer;if(!y){console.warn("UeES3DTileset: viewer is undefined!");return}let B,A;const h=async()=>{!B&&!A||await y.callUeFunc({f:"update",p:{id:t.id,url:t.url,show:t.show,collision:t.collision,allowPicking:t.allowPicking,flyToParam:t.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:t.flyInParam??j.ESVisualObject.defaults.flyInParam,highlightID:t.highlightID,highlightColor:t.highlightColor,highlight:t.highlight,materialMode:t.materialMode,maximumScreenSpaceError:t.maximumScreenSpaceError,colorMode:Reflect.has(t,"colorMode")?t.colorMode:void 0,offset:t.offset,rotation:t.rotation,cacheBytes:t.cacheBytes,colorBlendMode:t.colorBlendMode,materialOverrideMap:t.materialOverrideMap}})},m=this.dv(V.createNextAnimateFrameEvent(t.urlChanged,t.showChanged,t.flyToParamChanged,t.flyInParamChanged,t.collisionChanged,t.allowPickingChanged,t.highlightIDChanged,t.highlightColorChanged,t.highlightChanged,t.materialModeChanged,t.maximumScreenSpaceErrorChanged,t.offsetChanged,t.rotationChanged,t.cacheBytesChanged,t.colorBlendModeChanged,t.materialOverrideMapChanged));h(),this.d(m.don(h)),Reflect.has(t,"colorMode")&&this.d(t.colorModeChanged.don(()=>h()));const g=this.dv(V.react(void 0));{const p=this.dv(V.createNextAnimateFrameEvent(t.actorTagChanged,t.urlChanged)),u=()=>{t.actorTag?g.value={type:"ActorTag",actorTag:t.actorTag}:t.url?g.value={type:"CreatedUrl",url:t.url}:g.value=void 0,t.editing=!1};u(),this.d(p.don(u))}const w=async()=>{const{id:p}=t;if(B!==void 0){B=void 0;try{const u=await o.unBind3DTilesetById(p);if(!u)return;if(u.error!==""){console.warn(`UeES3DTileset UnBind3DTilesetById: ${u.error}`);return}}catch(u){console.warn(`UeES3DTileset UnBind3DTilesetById: ${u}`);return}}if(A!==void 0){A=void 0;try{const u=await y.callUeFunc({f:"destroy",p:{id:p}});if(!u)return;if(u.error!==""){console.warn(`UeES3DTileset Destroy: ${u.error}`);return}}catch(u){console.warn(`UeES3DTileset Destroy: ${u}`);return}}};this.d(()=>{w()});{const p=this.dv(V.createProcessingFromAsyncFunc(async f=>{if(g.value===void 0){await f.promise(w());return}if(g.value.type==="ActorTag"){const{actorTag:c}=g.value;if(B!==c&&await f.promise(w()),B!==void 0||c===void 0)return;try{B=c;const a=await f.promise(o.bind3DTilesetByTag(t.id,c));if(!a)return;if(a.error!==""){console.warn(`UeES3DTileset Bind3DTilesetByTag: ${a.error}`);return}if(a.re.type!==0)if(a.re.type===1)console.warn(`UeES3DTileset Bind3DTilesetByTag: ${Tc(a.re.type)}`);else{console.warn(`UeES3DTileset Bind3DTilesetByTag: ${Tc(a.re.type)}`);return}}catch(a){console.warn(`UeES3DTileset Bind3DTilesetByTag: ${a}`);return}}else if(g.value.type==="CreatedUrl"){const{url:c}=g.value;if(c!==A&&await w(),A!==void 0||c===void 0)return;try{A=c;const a=await f.promise(y.callUeFunc({f:"create",p:{type:t.typeName,id:t.id}}));if(!a)return;if(a.error!==""){console.warn(`UeES3DTileset create: ${a.error}`);return}}catch(a){console.warn(`UeES3DTileset create: ${a}`);return}}await f.promise(h())})),u=async()=>{p.restart()};u(),this.d(g.changed.don(u))}this.d(t.refreshTilesetEvent.don(()=>{Ss(y,t.id)})),this.d(t.flyToEvent.don(async(p,u)=>{if(!B&&!A)return;const f=await Ht(y,t.id,p);let c="over";f===void 0?c="error":f.endType===0?c="over":f.endType===1&&(c="cancelled"),t.flyOverEvent.emit(u,c,o)})),this.d(t.calcFlyToParamEvent.don(()=>{!B&&!A||Lt(y,t.id)})),this.d(t.calcFlyInParamEvent.don(async()=>{if(!B&&!A||!o.actived)return;const p=await o.getCurrentCameraInfo();if(!p)return;const{position:u,rotation:f}=p;t.flyInParam={position:u,rotation:f,flyDuration:1}})),this.d(o.propChanged.don(p=>{!B&&!A||p.objId===t.id&&Object.keys(p.props).forEach(u=>{const f=p.props[u]===null?void 0:p.props[u];t[u]=f})})),this.d(o.objectEvent.don(p=>{!B&&!A||p.id!==t.id||p.type!=="3DTilesetReady"||t.tilesetReady.emit(p.p)}));{const p=async(a,n)=>{if(!B&&!A)return;const s=await y.callUeFunc({f:"SetFeatureColor",p:{id:t.id,featureName:a,json:n}});if(s&&s.error!==""){console.warn(`UeES3DTileset SetFeatureColor: ${s.error}`);return}},u=async(a,n)=>{if(!B&&!A)return;const s=await y.callUeFunc({f:"SetFeatureVisable",p:{id:t.id,featureName:a,json:n}});if(s&&s.error!==""){console.warn(`UeES3DTileset SetFeatureVisable: ${s.error}`);return}},f=async()=>{if(!B&&!A)return;const a=await y.callUeFunc({f:"ResetFeatureStyle",p:{id:t.id}});if(a&&a.error!==""){console.warn(`UeES3DTileset ResetFeatureStyle: ${a.error}`);return}},c=async a=>{if(!B&&!A)return;const n=await y.callUeFunc({f:"SetFeatureStyle",p:{id:t.id,json:a}});if(n&&n.error!==""){console.warn(`UeES3DTileset SetFeatureStyle: ${n.error}`);return}};this.d(t.setFeatureColorEvent.don((a,n)=>{const s=[...this.styleColor,...n];this.styleColor=[...s],p(a,s)})),this.d(t.setFeatureVisableEvent.don((a,n)=>{const s=[...this.styleVisable,...n];this.styleVisable=[...s],u(a,s)})),this.d(t.resetFeatureStyleEvent.don(()=>{f(),this.styleColor=[],this.styleVisable=[]})),this.d(t.setFeatureStyleEvent.don(a=>{c(a)}))}{const p=async()=>{if(!B&&!A){t._featureTableResultEvent.emit(void 0);return}try{const u=await y.callUeFunc({f:"GetFeatureTable",p:{id:t.id}});u.error!==""&&console.warn(`UeES3DTileset GetFeatureTable: ${u.error}`),t._featureTableResultEvent.emit(u.re.table)}catch(u){console.warn(`UeES3DTileset GetFeatureTable: ${u}`),t._featureTableResultEvent.emit(void 0)}};this.d(t.getFeatureTableEvent.don(()=>{p()}))}{const p=async()=>{if(!B&&!A){t.getMaterialNameListEvent.emit(void 0);return}try{const u=await y.callUeFunc({f:"GetMaterialNameList",p:{id:t.id}});u.error!==""&&console.warn(`UeES3DTileset GetMaterialNameList: ${u.error}`),t.getMaterialNameListEvent.emit(u.re.materialNameList)}catch(u){console.warn(`UeES3DTileset GetMaterialNameList: ${u}`),t.getMaterialNameListEvent.emit(void 0)}};this.ad(t.getMaterialNameListEvent.don(u=>{u=="start"&&p()}))}}get styleColor(){return this._styleColor.value}set styleColor(t){this._styleColor.value=t}get styleVisable(){return this._styleVisable.value}set styleVisable(t){this._styleVisable.value=t}};J(Fr,"type",Fr.register("ESUeViewer",j.ES3DTileset.type,Fr));let $A=Fr;const Ic=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"没搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag对应的Actor是地形,无法绑定";case 4:return"没搜索到ComponentTag,无法绑定";default:return"未知错误"}},Sr=class Sr extends j.EngineObject{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}let y,B;const A=this.dv(V.react(void 0)),h=this.ad(V.reactJson(""));{const p=()=>{if(typeof e.url=="string")h.value=j.ESSceneObject.context.getStrFromEnv(e.url);else{const u=e.url;u.url=j.ESSceneObject.context.getStrFromEnv(u.url),h.value=u}};p(),this.ad(e.urlChanged.don(p))}const m=async()=>{!y&&!B||await o.callUeFunc({f:"update",p:{id:e.id,show:e.show??!0,rectangle:e.rectangle??[-180,-90,180,90],collision:e.collision??!0,allowPicking:e.allowPicking??!1,flyToParam:e.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:e.flyInParam??j.ESVisualObject.defaults.flyInParam,url:h.value??"",zIndex:e.zIndex??0,maximumLevel:e.maximumLevel??j.ESImageryLayer.defaults.maximumLevel,minimumLevel:e.minimumLevel??j.ESImageryLayer.defaults.minimumLevel,options:e.options??j.ESImageryLayer.defaults.options,targetID:e.targetID??j.ESImageryLayer.defaults.targetID,opacity:e.opacity??j.ESImageryLayer.defaults.opacity}})},g=this.dv(V.createNextAnimateFrameEvent(e.showChanged,h.changed,e.flyToParamChanged,e.flyInParamChanged,e.zIndexChanged,e.collisionChanged,e.allowPickingChanged,e.maximumLevelChanged,e.minimumLevelChanged,e.rectangleChanged,e.optionsChanged,e.targetIDChanged,e.opacityChanged));this.d(g.don(m));const w=async()=>{const{id:p}=e;if(y!==void 0){y=void 0;try{const u=await t.unBindImageryById(p);if(!u)return;if(u.error!==""){console.warn(`UeESImageryLayer UnImageryByID: ${u.error}`);return}}catch(u){console.warn(`UeESImageryLayer UnImageryByID promise: ${u}`);return}}if(B!==void 0){B=void 0;try{const u=await o.callUeFunc({f:"destroy",p:{id:p,test:"UeESImageryLayer"}});if(!u)return;if(u.error!==""){console.warn(`UeESImageryLayer Destroy: ${u.error}`);return}}catch(u){console.warn(`UeESImageryLayer Destroy promise: ${u}`);return}}};this.d(()=>{w()});{const p=this.dv(V.createProcessingFromAsyncFunc(async f=>{if(A.value===void 0){await f.promise(w());return}if(A.value.type==="ActorTag"){const{actorTag:c,componentTag:a}=A.value;if(y!==c&&await f.promise(w()),y!==void 0||c===void 0)return;try{y=c;const n=await f.promise(t.bindImageryByTag(e.id,c,a));if(!n)return;if(n.error!==""){console.warn(`ESImageryLayer BindImageryByTag: ${n.error}`);return}if(n.re.type!==0)if(n.re.type===1)console.warn(`ESImageryLayer BindImageryByTag: ${Ic(n.re.type)}`);else{console.warn(`ESImageryLayer BindImageryByTag: ${Ic(n.re.type)}`);return}}catch(n){console.warn(`ESImageryLayer BindImageryByTag promise: ${n}`);return}}else if(A.value.type==="CreatedUrl"){const{url:c}=A.value;if(c!==B&&await f.promise(w()),B!==void 0||c===void 0)return;try{B=c;const a=await f.promise(o.callUeFunc({f:"create",p:{type:"ESImageryLayer",id:e.id}}));if(!a)return;if(a.error!==""){console.warn(`ESImageryLayer create: ${a.error}`);return}}catch{console.warn("ESImageryLayer create: create promise error");return}}await f.promise(m())})),u=async()=>{p.restart()};u(),this.d(A.changed.don(u))}{const p=this.dv(V.createNextAnimateFrameEvent(e.actorTagChanged,h.changed,e.componentTagChanged)),u=()=>{e.actorTag&&e.componentTag?A.value={type:"ActorTag",actorTag:e.actorTag,componentTag:e.componentTag}:h.value?A.value={type:"CreatedUrl",url:h.value}:A.value=void 0};u(),this.d(p.don(u))}this.d(e.flyToEvent.don(async(p,u)=>{if(!y&&!B)return;const f=await Ht(o,e.id,p);let c="over";f===void 0?c="error":f.endType===0?c="over":f.endType===1&&(c="cancelled"),e.flyOverEvent.emit(u,c,t)})),this.d(e.flyInEvent.don(async(p,u)=>{var a,n;if(!y&&!B)return;const f=await tr(o,e.id,(a=e.flyInParam)==null?void 0:a.position,(n=e.flyInParam)==null?void 0:n.rotation,p??1);let c="over";f===void 0?c="error":f.endType===0?c="over":f.endType===1&&(c="cancelled"),e.flyOverEvent.emit(u,c,t)})),this.d(e.calcFlyToParamEvent.don(()=>{!y&&!B||Lt(o,e.id)})),this.d(e.calcFlyInParamEvent.don(async()=>{if(!t.actived)return;const p=await t.getCurrentCameraInfo();if(!p)return;const{position:u,rotation:f}=p;e.flyInParam={position:u,rotation:f,flyDuration:1}})),this.d(t.propChanged.don(p=>{!y&&!B||p.objId===e.id&&Object.keys(p.props).forEach(u=>{const f=p.props[u]===null?void 0:p.props[u];e[u]=f})}))}};J(Sr,"type",Sr.register("ESUeViewer",j.ESImageryLayer.type,Sr));let di=Sr;const It=class It extends Le{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(It,"type",It.register("ESUeViewer",j.ESTerrainLayer.type,It)),J(It,"forceUeUpdateProps",[...Le.forceUeUpdateProps,"url"]),J(It,"propValFuncs",{...Le.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(e):(e.url=j.ESSceneObject.context.getStrFromEnv(e.url),e),czmMaxzoom:null,czmMinzoom:null});let fi=It;const Qr=class Qr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Qr,"type",Qr.register("ESUeViewer",j.ESAlarm.type,Qr));let hi=Qr;const Ur=class Ur extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Ur,"type",Ur.register("ESUeViewer",j.ESApertureEffect.type,Ur));let pi=Ur;const Tr=class Tr extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Tr,"type",Tr.register("ESUeViewer",j.ESGeoPolygon.type,Tr));let Ne=Tr;const Ir=class Ir extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=()=>{let A=j.ESAreaMeasurement.defaults.fillStyle;try{A={...e.fillStyle??j.ESAreaMeasurement.defaults.fillStyle}}catch(h){console.error("ESAreaMeasurement fillStyle 属性类型错误!",h),A={...j.ESAreaMeasurement.defaults.fillStyle}}A.materialParams=JSON.stringify(A.materialParams),o.callUeFunc({f:"update",p:{id:e.id,stroked:e.stroked??j.ESAreaMeasurement.defaults.stroked,fillStyle:A,filled:e.filled??j.ESAreaMeasurement.defaults.filled}}),console.log(A)},B=this.dv(V.createNextAnimateFrameEvent(e.fillStyleChanged,e.strokedChanged,e.filledChanged));this.d(B.don(y)),this.d(e.createdEvent.don(y))}};J(Ir,"type",Ir.register("ESUeViewer",j.ESAreaMeasurement.type,Ir));let gi=Ir;const Pr=class Pr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Pr,"type",Pr.register("ESUeViewer",j.ESBlastParticleSystem.type,Pr));let vi=Pr;const xr=class xr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};J(xr,"type",xr.register("ESUeViewer",j.ESBoxClipping.type,xr));let yi=xr;const Or=class Or extends de{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.dispose(e.flyInEvent.don((y,B,A="default")=>{const{id:h,duration:m,position:g,rotation:w}=e;tr(o,h,g,w,m??y,A)})),this.dispose(e.resetWithCurrentCameraEvent.don(()=>{qn(o,e.id)})),this.dispose(e.captureEvent.don((y,B)=>{t.capture(y,B).then(h=>{h&&(e.thumbnail=h)})}))}};J(Or,"type",Or.register("ESUeViewer",j.ESCameraView.type,Or));let mi=Or;const Mr=class Mr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Mr,"type",Mr.register("ESUeViewer",j.ESCameraVisibleRange.type,Mr));let wi=Mr;const Hr=class Hr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Hr,"type",Hr.register("ESUeViewer",j.ESCar.type,Hr));let Bi=Hr;const Lr=class Lr extends De{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=()=>{let A=j.ESClassification.defaults.fillStyle;try{A={...e.fillStyle??j.ESClassification.defaults.fillStyle}}catch(h){console.error("ESClassification fillStyle 属性类型错误!",h),A={...j.ESClassification.defaults.fillStyle}}A.materialParams=JSON.stringify(A.materialParams),o.callUeFunc({f:"update",p:{id:e.id,filled:e.filled??j.ESClassification.defaults.filled,fillStyle:A}})},B=this.dv(V.createNextAnimateFrameEvent(e.fillStyleChanged,e.filledChanged));this.d(B.don(y)),this.d(e.createdEvent.don(y))}};J(Lr,"type",Lr.register("ESUeViewer",j.ESClassification.type,Lr));let Ci=Lr;const Dr=class Dr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};J(Dr,"type",Dr.register("ESUeViewer",j.ESClippingPlane.type,Dr));let bi=Dr;const Rr=class Rr extends de{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=this.ad(V.reactJson(""));{const h=()=>{if(typeof e.url=="string")y.value=j.ESSceneObject.context.getStrFromEnv(e.url??j.ESDataMesh.defaults.url);else{const m=e.url;m.url=j.ESSceneObject.context.getStrFromEnv(m.url??j.ESDataMesh.defaults.url),y.value=m}};h(),this.ad(e.urlChanged.don(h))}const B=()=>{const h=e.colorStops??j.ESDataMesh.defaults.colorStops;o.callUeFunc({f:"update",p:{id:e.id,url:y.value??j.ESDataMesh.defaults.url,currentTime:e.currentTime??j.ESDataMesh.defaults.currentTime,minPropValue:e.minPropValue??j.ESDataMesh.defaults.minPropValue,maxPropValue:e.maxPropValue??j.ESDataMesh.defaults.maxPropValue,colorStops:JSON.stringify(h)}})},A=this.dv(V.createNextAnimateFrameEvent(y.changed,e.currentTimeChanged,e.minPropValueChanged,e.maxPropValueChanged,e.colorStopsChanged));this.d(A.don(B)),this.d(e.createdEvent.don(B))}};J(Rr,"type",Rr.register("ESUeViewer",j.ESDataMesh.type,Rr));let _i=Rr;const kr=class kr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(kr,"type",kr.register("ESUeViewer",j.ESDatasmithRuntimeModel.type,kr));let Ei=kr;const Kr=class Kr extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Kr,"type",Kr.register("ESUeViewer",j.ESDirectionMeasurement.type,Kr));let Fi=Kr;const Nr=class Nr extends De{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=()=>{let A;try{A={...e.strokeStyle??j.ESDistanceMeasurement.defaults.strokeStyle}}catch(h){console.error("ESDistanceMeasurement strokeStyle 属性类型错误!",h),A={...j.ESDistanceMeasurement.defaults.strokeStyle}}o.callUeFunc({f:"update",p:{id:e.id,strokeStyle:A}})},B=this.dv(V.createNextAnimateFrameEvent(e.strokeStyleChanged));this.d(B.don(y)),this.d(e.createdEvent.don(y))}};J(Nr,"type",Nr.register("ESUeViewer",j.ESDistanceMeasurement.type,Nr));let Si=Nr;const Vr=class Vr extends YA{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Vr,"type",Vr.register("ESUeViewer",j.ESLocalPolygon.type,Vr));let ZA=Vr;const Gr=class Gr extends ZA{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Gr,"type",Gr.register("ESUeViewer",j.ESDynamicWater.type,Gr));let Qi=Gr;const jr=class jr extends Le{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(t.widgetEvent.don(y=>{if(y.objId!==e.id)return;const{type:B,properties:A}=y;e.widgetEvent.emit({type:B,properties:A})}))}};J(jr,"type",jr.register("ESUeViewer",j.ESEntityCluster.type,jr));let Ui=jr;const Wr=class Wr extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Wr,"type",Wr.register("ESUeViewer",j.ESExcavate.type,Wr));let Ti=Wr;const zr=class zr extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(zr,"type",zr.register("ESUeViewer",j.ESFireParticleSystem.type,zr));let Ii=zr;const Jr=class Jr extends Le{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=this.ad(V.reactJson(""));{const h=()=>{if(typeof e.url=="string")y.value=j.ESSceneObject.context.getStrFromEnv(e.url);else{const m=e.url;m.url=j.ESSceneObject.context.getStrFromEnv(m.url),y.value=m}};h(),this.ad(e.urlChanged.don(h))}const B=()=>{o.callUeFunc({f:"update",p:{id:e.id,url:y.value??j.ESForestTileset.defaults.url,treeTypes:e.treeTypes??j.ESForestTileset.defaults.treeTypes,xiaoBanWidget:e.xiaoBanWidget??j.ESForestTileset.defaults.xiaoBanWidgetDefault,youShiSZ:e.youShiSZ??j.ESForestTileset.defaults.youShiSZ,diLei:e.diLei??j.ESForestTileset.defaults.diLei,senLinLB:e.senLinLB??j.ESForestTileset.defaults.senLinLB,labelMaterial:e.labelMaterial??j.ESForestTileset.defaults.labelMaterial,heightOffset:e.heightOffset??j.ESForestTileset.defaults.heightOffset}})},A=this.dv(V.createNextAnimateFrameEvent(y.changed,e.treeTypesChanged,e.xiaoBanWidgetChanged,e.youShiSZChanged,e.diLeiChanged,e.senLinLBChanged,e.labelMaterialChanged,e.heightOffsetChanged));this.d(A.don(B)),this.d(e.createdEvent.don(B))}};J(Jr,"type",Jr.register("ESUeViewer",j.ESForestTileset.type,Jr));let Pi=Jr;/*!
|
|
319
|
+
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
320
|
+
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
321
|
+
* Released under MIT License
|
|
322
|
+
*//*! *****************************************************************************
|
|
323
|
+
Copyright (c) Microsoft Corporation.
|
|
324
|
+
|
|
325
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
326
|
+
purpose with or without fee is hereby granted.
|
|
327
|
+
|
|
328
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
329
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
330
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
331
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
332
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
333
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
334
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
335
|
+
***************************************************************************** */var xi=function(v,e){return xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var y in o)Object.prototype.hasOwnProperty.call(o,y)&&(t[y]=o[y])},xi(v,e)};function Xe(v,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");xi(v,e);function t(){this.constructor=v}v.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Oi=function(){return Oi=Object.assign||function(e){for(var t,o=1,y=arguments.length;o<y;o++){t=arguments[o];for(var B in t)Object.prototype.hasOwnProperty.call(t,B)&&(e[B]=t[B])}return e},Oi.apply(this,arguments)};function Re(v,e,t,o){function y(B){return B instanceof t?B:new t(function(A){A(B)})}return new(t||(t=Promise))(function(B,A){function h(w){try{g(o.next(w))}catch(p){A(p)}}function m(w){try{g(o.throw(w))}catch(p){A(p)}}function g(w){w.done?B(w.value):y(w.value).then(h,m)}g((o=o.apply(v,[])).next())})}function Pe(v,e){var t={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]},o,y,B,A;return A={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(A[Symbol.iterator]=function(){return this}),A;function h(g){return function(w){return m([g,w])}}function m(g){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,y&&(B=g[0]&2?y.return:g[0]?y.throw||((B=y.return)&&B.call(y),0):y.next)&&!(B=B.call(y,g[1])).done)return B;switch(y=0,B&&(g=[g[0]&2,B.value]),g[0]){case 0:case 1:B=g;break;case 4:return t.label++,{value:g[1],done:!1};case 5:t.label++,y=g[1],g=[0];continue;case 7:g=t.ops.pop(),t.trys.pop();continue;default:if(B=t.trys,!(B=B.length>0&&B[B.length-1])&&(g[0]===6||g[0]===2)){t=0;continue}if(g[0]===3&&(!B||g[1]>B[0]&&g[1]<B[3])){t.label=g[1];break}if(g[0]===6&&t.label<B[1]){t.label=B[1],B=g;break}if(B&&t.label<B[2]){t.label=B[2],t.ops.push(g);break}B[2]&&t.ops.pop(),t.trys.pop();continue}g=e.call(v,t)}catch(w){g=[6,w],y=0}finally{o=B=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}}function qA(v,e,t){if(arguments.length===2)for(var o=0,y=e.length,B;o<y;o++)(B||!(o in e))&&(B||(B=Array.prototype.slice.call(e,0,o)),B[o]=e[o]);return v.concat(B||e)}for(var ot=function(){function v(e,t,o,y){this.left=e,this.top=t,this.width=o,this.height=y}return v.prototype.add=function(e,t,o,y){return new v(this.left+e,this.top+t,this.width+o,this.height+y)},v.fromClientRect=function(e,t){return new v(t.left+e.windowBounds.left,t.top+e.windowBounds.top,t.width,t.height)},v.fromDOMRectList=function(e,t){var o=Array.from(t).find(function(y){return y.width!==0});return o?new v(o.left+e.windowBounds.left,o.top+e.windowBounds.top,o.width,o.height):v.EMPTY},v.EMPTY=new v(0,0,0,0),v}(),en=function(v,e){return ot.fromClientRect(v,e.getBoundingClientRect())},of=function(v){var e=v.body,t=v.documentElement;if(!e||!t)throw new Error("Unable to get document size");var o=Math.max(Math.max(e.scrollWidth,t.scrollWidth),Math.max(e.offsetWidth,t.offsetWidth),Math.max(e.clientWidth,t.clientWidth)),y=Math.max(Math.max(e.scrollHeight,t.scrollHeight),Math.max(e.offsetHeight,t.offsetHeight),Math.max(e.clientHeight,t.clientHeight));return new ot(0,0,o,y)},tn=function(v){for(var e=[],t=0,o=v.length;t<o;){var y=v.charCodeAt(t++);if(y>=55296&&y<=56319&&t<o){var B=v.charCodeAt(t++);(B&64512)===56320?e.push(((y&1023)<<10)+(B&1023)+65536):(e.push(y),t--)}else e.push(y)}return e},Be=function(){for(var v=[],e=0;e<arguments.length;e++)v[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,v);var t=v.length;if(!t)return"";for(var o=[],y=-1,B="";++y<t;){var A=v[y];A<=65535?o.push(A):(A-=65536,o.push((A>>10)+55296,A%1024+56320)),(y+1===t||o.length>16384)&&(B+=String.fromCharCode.apply(String,o),o.length=0)}return B},Pc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",sf=typeof Uint8Array>"u"?[]:new Uint8Array(256),rn=0;rn<Pc.length;rn++)sf[Pc.charCodeAt(rn)]=rn;for(var xc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ir=typeof Uint8Array>"u"?[]:new Uint8Array(256),An=0;An<xc.length;An++)ir[xc.charCodeAt(An)]=An;for(var af=function(v){var e=v.length*.75,t=v.length,o,y=0,B,A,h,m;v[v.length-1]==="="&&(e--,v[v.length-2]==="="&&e--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),w=Array.isArray(g)?g:new Uint8Array(g);for(o=0;o<t;o+=4)B=ir[v.charCodeAt(o)],A=ir[v.charCodeAt(o+1)],h=ir[v.charCodeAt(o+2)],m=ir[v.charCodeAt(o+3)],w[y++]=B<<2|A>>4,w[y++]=(A&15)<<4|h>>2,w[y++]=(h&3)<<6|m&63;return g},cf=function(v){for(var e=v.length,t=[],o=0;o<e;o+=2)t.push(v[o+1]<<8|v[o]);return t},lf=function(v){for(var e=v.length,t=[],o=0;o<e;o+=4)t.push(v[o+3]<<24|v[o+2]<<16|v[o+1]<<8|v[o]);return t},Et=5,Mi=11,Hi=2,uf=Mi-Et,Oc=65536>>Et,df=1<<Et,Li=df-1,ff=1024>>Et,hf=Oc+ff,pf=hf,gf=32,vf=pf+gf,yf=65536>>Mi,mf=1<<uf,wf=mf-1,Mc=function(v,e,t){return v.slice?v.slice(e,t):new Uint16Array(Array.prototype.slice.call(v,e,t))},Bf=function(v,e,t){return v.slice?v.slice(e,t):new Uint32Array(Array.prototype.slice.call(v,e,t))},Cf=function(v,e){var t=af(v),o=Array.isArray(t)?lf(t):new Uint32Array(t),y=Array.isArray(t)?cf(t):new Uint16Array(t),B=24,A=Mc(y,B/2,o[4]/2),h=o[5]===2?Mc(y,(B+o[4])/2):Bf(o,Math.ceil((B+o[4])/4));return new bf(o[0],o[1],o[2],o[3],A,h)},bf=function(){function v(e,t,o,y,B,A){this.initialValue=e,this.errorValue=t,this.highStart=o,this.highValueIndex=y,this.index=B,this.data=A}return v.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Et],t=(t<<Hi)+(e&Li),this.data[t];if(e<=65535)return t=this.index[Oc+(e-55296>>Et)],t=(t<<Hi)+(e&Li),this.data[t];if(e<this.highStart)return t=vf-yf+(e>>Mi),t=this.index[t],t+=e>>Et&wf,t=this.index[t],t=(t<<Hi)+(e&Li),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},v}(),Hc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_f=typeof Uint8Array>"u"?[]:new Uint8Array(256),nn=0;nn<Hc.length;nn++)_f[Hc.charCodeAt(nn)]=nn;var Ef="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Lc=50,Ff=1,Dc=2,Rc=3,Sf=4,Qf=5,kc=7,Kc=8,Nc=9,ut=10,Di=11,Vc=12,Ri=13,Uf=14,or=15,ki=16,on=17,sr=18,Tf=19,Gc=20,Ki=21,ar=22,Ni=23,Kt=24,Ve=25,cr=26,lr=27,Nt=28,If=29,Ft=30,Pf=31,sn=32,an=33,Vi=34,Gi=35,ji=36,ur=37,Wi=38,cn=39,ln=40,zi=41,jc=42,xf=43,Of=[9001,65288],Wc="!",ce="×",un="÷",Ji=Cf(Ef),st=[Ft,ji],Xi=[Ff,Dc,Rc,Qf],zc=[ut,Kc],Jc=[lr,cr],Mf=Xi.concat(zc),Xc=[Wi,cn,ln,Vi,Gi],Hf=[or,Ri],Lf=function(v,e){e===void 0&&(e="strict");var t=[],o=[],y=[];return v.forEach(function(B,A){var h=Ji.get(B);if(h>Lc?(y.push(!0),h-=Lc):y.push(!1),["normal","auto","loose"].indexOf(e)!==-1&&[8208,8211,12316,12448].indexOf(B)!==-1)return o.push(A),t.push(ki);if(h===Sf||h===Di){if(A===0)return o.push(A),t.push(Ft);var m=t[A-1];return Mf.indexOf(m)===-1?(o.push(o[A-1]),t.push(m)):(o.push(A),t.push(Ft))}if(o.push(A),h===Pf)return t.push(e==="strict"?Ki:ur);if(h===jc||h===If)return t.push(Ft);if(h===xf)return B>=131072&&B<=196605||B>=196608&&B<=262141?t.push(ur):t.push(Ft);t.push(h)}),[o,t,y]},Yi=function(v,e,t,o){var y=o[t];if(Array.isArray(v)?v.indexOf(y)!==-1:v===y)for(var B=t;B<=o.length;){B++;var A=o[B];if(A===e)return!0;if(A!==ut)break}if(y===ut)for(var B=t;B>0;){B--;var h=o[B];if(Array.isArray(v)?v.indexOf(h)!==-1:v===h)for(var m=t;m<=o.length;){m++;var A=o[m];if(A===e)return!0;if(A!==ut)break}if(h!==ut)break}return!1},Yc=function(v,e){for(var t=v;t>=0;){var o=e[t];if(o===ut)t--;else return o}return 0},Df=function(v,e,t,o,y){if(t[o]===0)return ce;var B=o-1;if(Array.isArray(y)&&y[B]===!0)return ce;var A=B-1,h=B+1,m=e[B],g=A>=0?e[A]:0,w=e[h];if(m===Dc&&w===Rc)return ce;if(Xi.indexOf(m)!==-1)return Wc;if(Xi.indexOf(w)!==-1||zc.indexOf(w)!==-1)return ce;if(Yc(B,e)===Kc)return un;if(Ji.get(v[B])===Di||(m===sn||m===an)&&Ji.get(v[h])===Di||m===kc||w===kc||m===Nc||[ut,Ri,or].indexOf(m)===-1&&w===Nc||[on,sr,Tf,Kt,Nt].indexOf(w)!==-1||Yc(B,e)===ar||Yi(Ni,ar,B,e)||Yi([on,sr],Ki,B,e)||Yi(Vc,Vc,B,e))return ce;if(m===ut)return un;if(m===Ni||w===Ni)return ce;if(w===ki||m===ki)return un;if([Ri,or,Ki].indexOf(w)!==-1||m===Uf||g===ji&&Hf.indexOf(m)!==-1||m===Nt&&w===ji||w===Gc||st.indexOf(w)!==-1&&m===Ve||st.indexOf(m)!==-1&&w===Ve||m===lr&&[ur,sn,an].indexOf(w)!==-1||[ur,sn,an].indexOf(m)!==-1&&w===cr||st.indexOf(m)!==-1&&Jc.indexOf(w)!==-1||Jc.indexOf(m)!==-1&&st.indexOf(w)!==-1||[lr,cr].indexOf(m)!==-1&&(w===Ve||[ar,or].indexOf(w)!==-1&&e[h+1]===Ve)||[ar,or].indexOf(m)!==-1&&w===Ve||m===Ve&&[Ve,Nt,Kt].indexOf(w)!==-1)return ce;if([Ve,Nt,Kt,on,sr].indexOf(w)!==-1)for(var p=B;p>=0;){var u=e[p];if(u===Ve)return ce;if([Nt,Kt].indexOf(u)!==-1)p--;else break}if([lr,cr].indexOf(w)!==-1)for(var p=[on,sr].indexOf(m)!==-1?A:B;p>=0;){var u=e[p];if(u===Ve)return ce;if([Nt,Kt].indexOf(u)!==-1)p--;else break}if(Wi===m&&[Wi,cn,Vi,Gi].indexOf(w)!==-1||[cn,Vi].indexOf(m)!==-1&&[cn,ln].indexOf(w)!==-1||[ln,Gi].indexOf(m)!==-1&&w===ln||Xc.indexOf(m)!==-1&&[Gc,cr].indexOf(w)!==-1||Xc.indexOf(w)!==-1&&m===lr||st.indexOf(m)!==-1&&st.indexOf(w)!==-1||m===Kt&&st.indexOf(w)!==-1||st.concat(Ve).indexOf(m)!==-1&&w===ar&&Of.indexOf(v[h])===-1||st.concat(Ve).indexOf(w)!==-1&&m===sr)return ce;if(m===zi&&w===zi){for(var f=t[B],c=1;f>0&&(f--,e[f]===zi);)c++;if(c%2!==0)return ce}return m===sn&&w===an?ce:un},Rf=function(v,e){e||(e={lineBreak:"normal",wordBreak:"normal"});var t=Lf(v,e.lineBreak),o=t[0],y=t[1],B=t[2];(e.wordBreak==="break-all"||e.wordBreak==="break-word")&&(y=y.map(function(h){return[Ve,Ft,jc].indexOf(h)!==-1?ur:h}));var A=e.wordBreak==="keep-all"?B.map(function(h,m){return h&&v[m]>=19968&&v[m]<=40959}):void 0;return[o,y,A]},kf=function(){function v(e,t,o,y){this.codePoints=e,this.required=t===Wc,this.start=o,this.end=y}return v.prototype.slice=function(){return Be.apply(void 0,this.codePoints.slice(this.start,this.end))},v}(),Kf=function(v,e){var t=tn(v),o=Rf(t,e),y=o[0],B=o[1],A=o[2],h=t.length,m=0,g=0;return{next:function(){if(g>=h)return{done:!0,value:null};for(var w=ce;g<h&&(w=Df(t,B,y,++g,A))===ce;);if(w!==ce||g===h){var p=new kf(t,w,m,g);return m=g,{value:p,done:!1}}return{done:!0,value:null}}}},Nf=1,Vf=2,dr=4,$c=8,dn=10,Zc=47,fr=92,Gf=9,jf=32,fn=34,hr=61,Wf=35,zf=36,Jf=37,hn=39,pn=40,pr=41,Xf=95,ke=45,Yf=33,$f=60,Zf=62,qf=64,eh=91,th=93,rh=61,Ah=123,gn=63,nh=125,qc=124,ih=126,oh=128,el=65533,$i=42,St=43,sh=44,ah=58,ch=59,gr=46,lh=0,uh=8,dh=11,fh=14,hh=31,ph=127,Ze=-1,tl=48,rl=97,Al=101,gh=102,vh=117,yh=122,nl=65,il=69,ol=70,mh=85,wh=90,xe=function(v){return v>=tl&&v<=57},Bh=function(v){return v>=55296&&v<=57343},Vt=function(v){return xe(v)||v>=nl&&v<=ol||v>=rl&&v<=gh},Ch=function(v){return v>=rl&&v<=yh},bh=function(v){return v>=nl&&v<=wh},_h=function(v){return Ch(v)||bh(v)},Eh=function(v){return v>=oh},vn=function(v){return v===dn||v===Gf||v===jf},yn=function(v){return _h(v)||Eh(v)||v===Xf},sl=function(v){return yn(v)||xe(v)||v===ke},Fh=function(v){return v>=lh&&v<=uh||v===dh||v>=fh&&v<=hh||v===ph},dt=function(v,e){return v!==fr?!1:e!==dn},mn=function(v,e,t){return v===ke?yn(e)||dt(e,t):yn(v)?!0:!!(v===fr&&dt(v,e))},Zi=function(v,e,t){return v===St||v===ke?xe(e)?!0:e===gr&&xe(t):xe(v===gr?e:v)},Sh=function(v){var e=0,t=1;(v[e]===St||v[e]===ke)&&(v[e]===ke&&(t=-1),e++);for(var o=[];xe(v[e]);)o.push(v[e++]);var y=o.length?parseInt(Be.apply(void 0,o),10):0;v[e]===gr&&e++;for(var B=[];xe(v[e]);)B.push(v[e++]);var A=B.length,h=A?parseInt(Be.apply(void 0,B),10):0;(v[e]===il||v[e]===Al)&&e++;var m=1;(v[e]===St||v[e]===ke)&&(v[e]===ke&&(m=-1),e++);for(var g=[];xe(v[e]);)g.push(v[e++]);var w=g.length?parseInt(Be.apply(void 0,g),10):0;return t*(y+h*Math.pow(10,-A))*Math.pow(10,m*w)},Qh={type:2},Uh={type:3},Th={type:4},Ih={type:13},Ph={type:8},xh={type:21},Oh={type:9},Mh={type:10},Hh={type:11},Lh={type:12},Dh={type:14},wn={type:23},Rh={type:1},kh={type:25},Kh={type:24},Nh={type:26},Vh={type:27},Gh={type:28},jh={type:29},Wh={type:31},qi={type:32},al=function(){function v(){this._value=[]}return v.prototype.write=function(e){this._value=this._value.concat(tn(e))},v.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==qi;)e.push(t),t=this.consumeToken();return e},v.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case fn:return this.consumeStringToken(fn);case Wf:var t=this.peekCodePoint(0),o=this.peekCodePoint(1),y=this.peekCodePoint(2);if(sl(t)||dt(o,y)){var B=mn(t,o,y)?Vf:Nf,A=this.consumeName();return{type:5,value:A,flags:B}}break;case zf:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Ih;break;case hn:return this.consumeStringToken(hn);case pn:return Qh;case pr:return Uh;case $i:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Dh;break;case St:if(Zi(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case sh:return Th;case ke:var h=e,m=this.peekCodePoint(0),g=this.peekCodePoint(1);if(Zi(h,m,g))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(mn(h,m,g))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(m===ke&&g===Zf)return this.consumeCodePoint(),this.consumeCodePoint(),Kh;break;case gr:if(Zi(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case Zc:if(this.peekCodePoint(0)===$i)for(this.consumeCodePoint();;){var w=this.consumeCodePoint();if(w===$i&&(w=this.consumeCodePoint(),w===Zc))return this.consumeToken();if(w===Ze)return this.consumeToken()}break;case ah:return Nh;case ch:return Vh;case $f:if(this.peekCodePoint(0)===Yf&&this.peekCodePoint(1)===ke&&this.peekCodePoint(2)===ke)return this.consumeCodePoint(),this.consumeCodePoint(),kh;break;case qf:var p=this.peekCodePoint(0),u=this.peekCodePoint(1),f=this.peekCodePoint(2);if(mn(p,u,f)){var A=this.consumeName();return{type:7,value:A}}break;case eh:return Gh;case fr:if(dt(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case th:return jh;case rh:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Ph;break;case Ah:return Hh;case nh:return Lh;case vh:case mh:var c=this.peekCodePoint(0),a=this.peekCodePoint(1);return c===St&&(Vt(a)||a===gn)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case qc:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Oh;if(this.peekCodePoint(0)===qc)return this.consumeCodePoint(),xh;break;case ih:if(this.peekCodePoint(0)===hr)return this.consumeCodePoint(),Mh;break;case Ze:return qi}return vn(e)?(this.consumeWhiteSpace(),Wh):xe(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):yn(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:6,value:Be(e)}},v.prototype.consumeCodePoint=function(){var e=this._value.shift();return typeof e>"u"?-1:e},v.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},v.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},v.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Vt(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var o=!1;t===gn&&e.length<6;)e.push(t),t=this.consumeCodePoint(),o=!0;if(o){var y=parseInt(Be.apply(void 0,e.map(function(m){return m===gn?tl:m})),16),B=parseInt(Be.apply(void 0,e.map(function(m){return m===gn?ol:m})),16);return{type:30,start:y,end:B}}var A=parseInt(Be.apply(void 0,e),16);if(this.peekCodePoint(0)===ke&&Vt(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var h=[];Vt(t)&&h.length<6;)h.push(t),t=this.consumeCodePoint();var B=parseInt(Be.apply(void 0,h),16);return{type:30,start:A,end:B}}else return{type:30,start:A,end:A}},v.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return e.toLowerCase()==="url"&&this.peekCodePoint(0)===pn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===pn?(this.consumeCodePoint(),{type:19,value:e}):{type:20,value:e}},v.prototype.consumeUrlToken=function(){var e=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ze)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===hn||t===fn){var o=this.consumeStringToken(this.consumeCodePoint());return o.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ze||this.peekCodePoint(0)===pr)?(this.consumeCodePoint(),{type:22,value:o.value}):(this.consumeBadUrlRemnants(),wn)}for(;;){var y=this.consumeCodePoint();if(y===Ze||y===pr)return{type:22,value:Be.apply(void 0,e)};if(vn(y))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ze||this.peekCodePoint(0)===pr?(this.consumeCodePoint(),{type:22,value:Be.apply(void 0,e)}):(this.consumeBadUrlRemnants(),wn);if(y===fn||y===hn||y===pn||Fh(y))return this.consumeBadUrlRemnants(),wn;if(y===fr)if(dt(y,this.peekCodePoint(0)))e.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),wn;else e.push(y)}},v.prototype.consumeWhiteSpace=function(){for(;vn(this.peekCodePoint(0));)this.consumeCodePoint()},v.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(e===pr||e===Ze)return;dt(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},v.prototype.consumeStringSlice=function(e){for(var t=5e4,o="";e>0;){var y=Math.min(t,e);o+=Be.apply(void 0,this._value.splice(0,y)),e-=y}return this._value.shift(),o},v.prototype.consumeStringToken=function(e){var t="",o=0;do{var y=this._value[o];if(y===Ze||y===void 0||y===e)return t+=this.consumeStringSlice(o),{type:0,value:t};if(y===dn)return this._value.splice(0,o),Rh;if(y===fr){var B=this._value[o+1];B!==Ze&&B!==void 0&&(B===dn?(t+=this.consumeStringSlice(o),o=-1,this._value.shift()):dt(y,B)&&(t+=this.consumeStringSlice(o),t+=Be(this.consumeEscapedCodePoint()),o=-1))}o++}while(!0)},v.prototype.consumeNumber=function(){var e=[],t=dr,o=this.peekCodePoint(0);for((o===St||o===ke)&&e.push(this.consumeCodePoint());xe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());o=this.peekCodePoint(0);var y=this.peekCodePoint(1);if(o===gr&&xe(y))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=$c;xe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());o=this.peekCodePoint(0),y=this.peekCodePoint(1);var B=this.peekCodePoint(2);if((o===il||o===Al)&&((y===St||y===ke)&&xe(B)||xe(y)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=$c;xe(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[Sh(e),t]},v.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],o=e[1],y=this.peekCodePoint(0),B=this.peekCodePoint(1),A=this.peekCodePoint(2);if(mn(y,B,A)){var h=this.consumeName();return{type:15,number:t,flags:o,unit:h}}return y===Jf?(this.consumeCodePoint(),{type:16,number:t,flags:o}):{type:17,number:t,flags:o}},v.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Vt(e)){for(var t=Be(e);Vt(this.peekCodePoint(0))&&t.length<6;)t+=Be(this.consumeCodePoint());vn(this.peekCodePoint(0))&&this.consumeCodePoint();var o=parseInt(t,16);return o===0||Bh(o)||o>1114111?el:o}return e===Ze?el:e},v.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(sl(t))e+=Be(t);else if(dt(t,this.peekCodePoint(0)))e+=Be(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),e}},v}(),cl=function(){function v(e){this._tokens=e}return v.create=function(e){var t=new al;return t.write(e),new v(t.read())},v.parseValue=function(e){return v.create(e).parseComponentValue()},v.parseValues=function(e){return v.create(e).parseComponentValues()},v.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===31;)e=this.consumeToken();if(e.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do e=this.consumeToken();while(e.type===31);if(e.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},v.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===32)return e;e.push(t),e.push()}},v.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case 11:case 28:case 2:return this.consumeSimpleBlock(e.type);case 19:return this.consumeFunction(e)}return e},v.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},o=this.consumeToken();;){if(o.type===32||Jh(o,e))return t;this.reconsumeToken(o),t.values.push(this.consumeComponentValue()),o=this.consumeToken()}},v.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:18};;){var o=this.consumeToken();if(o.type===32||o.type===3)return t;this.reconsumeToken(o),t.values.push(this.consumeComponentValue())}},v.prototype.consumeToken=function(){var e=this._tokens.shift();return typeof e>"u"?qi:e},v.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},v}(),vr=function(v){return v.type===15},Gt=function(v){return v.type===17},fe=function(v){return v.type===20},zh=function(v){return v.type===0},eo=function(v,e){return fe(v)&&v.value===e},ll=function(v){return v.type!==31},jt=function(v){return v.type!==31&&v.type!==4},qe=function(v){var e=[],t=[];return v.forEach(function(o){if(o.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");e.push(t),t=[];return}o.type!==31&&t.push(o)}),t.length&&e.push(t),e},Jh=function(v,e){return e===11&&v.type===12||e===28&&v.type===29?!0:e===2&&v.type===3},ft=function(v){return v.type===17||v.type===15},Ee=function(v){return v.type===16||ft(v)},ul=function(v){return v.length>1?[v[0],v[1]]:[v[0]]},Te={type:17,number:0,flags:dr},to={type:16,number:50,flags:dr},ht={type:16,number:100,flags:dr},yr=function(v,e,t){var o=v[0],y=v[1];return[pe(o,e),pe(typeof y<"u"?y:o,t)]},pe=function(v,e){if(v.type===16)return v.number/100*e;if(vr(v))switch(v.unit){case"rem":case"em":return 16*v.number;case"px":default:return v.number}return v.number},dl="deg",fl="grad",hl="rad",pl="turn",Bn={name:"angle",parse:function(v,e){if(e.type===15)switch(e.unit){case dl:return Math.PI*e.number/180;case fl:return Math.PI/200*e.number;case hl:return e.number;case pl:return Math.PI*2*e.number}throw new Error("Unsupported angle type")}},gl=function(v){return v.type===15&&(v.unit===dl||v.unit===fl||v.unit===hl||v.unit===pl)},vl=function(v){var e=v.filter(fe).map(function(t){return t.value}).join(" ");switch(e){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Te,Te];case"to top":case"bottom":return Ge(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Te,ht];case"to right":case"left":return Ge(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ht,ht];case"to bottom":case"top":return Ge(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ht,Te];case"to left":case"right":return Ge(270)}return 0},Ge=function(v){return Math.PI*v/180},pt={name:"color",parse:function(v,e){if(e.type===18){var t=Xh[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(v,e.values)}if(e.type===5){if(e.value.length===3){var o=e.value.substring(0,1),y=e.value.substring(1,2),B=e.value.substring(2,3);return vt(parseInt(o+o,16),parseInt(y+y,16),parseInt(B+B,16),1)}if(e.value.length===4){var o=e.value.substring(0,1),y=e.value.substring(1,2),B=e.value.substring(2,3),A=e.value.substring(3,4);return vt(parseInt(o+o,16),parseInt(y+y,16),parseInt(B+B,16),parseInt(A+A,16)/255)}if(e.value.length===6){var o=e.value.substring(0,2),y=e.value.substring(2,4),B=e.value.substring(4,6);return vt(parseInt(o,16),parseInt(y,16),parseInt(B,16),1)}if(e.value.length===8){var o=e.value.substring(0,2),y=e.value.substring(2,4),B=e.value.substring(4,6),A=e.value.substring(6,8);return vt(parseInt(o,16),parseInt(y,16),parseInt(B,16),parseInt(A,16)/255)}}if(e.type===20){var h=at[e.value.toUpperCase()];if(typeof h<"u")return h}return at.TRANSPARENT}},gt=function(v){return(255&v)===0},Qe=function(v){var e=255&v,t=255&v>>8,o=255&v>>16,y=255&v>>24;return e<255?"rgba("+y+","+o+","+t+","+e/255+")":"rgb("+y+","+o+","+t+")"},vt=function(v,e,t,o){return(v<<24|e<<16|t<<8|Math.round(o*255)<<0)>>>0},yl=function(v,e){if(v.type===17)return v.number;if(v.type===16){var t=e===3?1:255;return e===3?v.number/100*t:Math.round(v.number/100*t)}return 0},ml=function(v,e){var t=e.filter(jt);if(t.length===3){var o=t.map(yl),y=o[0],B=o[1],A=o[2];return vt(y,B,A,1)}if(t.length===4){var h=t.map(yl),y=h[0],B=h[1],A=h[2],m=h[3];return vt(y,B,A,m)}return 0};function ro(v,e,t){return t<0&&(t+=1),t>=1&&(t-=1),t<.16666666666666666?(e-v)*t*6+v:t<.5?e:t<.6666666666666666?(e-v)*6*(.6666666666666666-t)+v:v}var wl=function(v,e){var t=e.filter(jt),o=t[0],y=t[1],B=t[2],A=t[3],h=(o.type===17?Ge(o.number):Bn.parse(v,o))/(Math.PI*2),m=Ee(y)?y.number/100:0,g=Ee(B)?B.number/100:0,w=typeof A<"u"&&Ee(A)?pe(A,1):1;if(m===0)return vt(g*255,g*255,g*255,1);var p=g<=.5?g*(m+1):g+m-g*m,u=g*2-p,f=ro(u,p,h+1/3),c=ro(u,p,h),a=ro(u,p,h-1/3);return vt(f*255,c*255,a*255,w)},Xh={hsl:wl,hsla:wl,rgb:ml,rgba:ml},mr=function(v,e){return pt.parse(v,cl.create(e).parseComponentValue())},at={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Yh={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(v,e){return e.map(function(t){if(fe(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},$h={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Cn=function(v,e){var t=pt.parse(v,e[0]),o=e[1];return o&&Ee(o)?{color:t,stop:o}:{color:t,stop:null}},Bl=function(v,e){var t=v[0],o=v[v.length-1];t.stop===null&&(t.stop=Te),o.stop===null&&(o.stop=ht);for(var y=[],B=0,A=0;A<v.length;A++){var h=v[A].stop;if(h!==null){var m=pe(h,e);m>B?y.push(m):y.push(B),B=m}else y.push(null)}for(var g=null,A=0;A<y.length;A++){var w=y[A];if(w===null)g===null&&(g=A);else if(g!==null){for(var p=A-g,u=y[g-1],f=(w-u)/(p+1),c=1;c<=p;c++)y[g+c-1]=f*c;g=null}}return v.map(function(a,n){var s=a.color;return{color:s,stop:Math.max(Math.min(1,y[n]/e),0)}})},Zh=function(v,e,t){var o=e/2,y=t/2,B=pe(v[0],e)-o,A=y-pe(v[1],t);return(Math.atan2(A,B)+Math.PI*2)%(Math.PI*2)},qh=function(v,e,t){var o=typeof v=="number"?v:Zh(v,e,t),y=Math.abs(e*Math.sin(o))+Math.abs(t*Math.cos(o)),B=e/2,A=t/2,h=y/2,m=Math.sin(o-Math.PI/2)*h,g=Math.cos(o-Math.PI/2)*h;return[y,B-g,B+g,A-m,A+m]},Ye=function(v,e){return Math.sqrt(v*v+e*e)},Cl=function(v,e,t,o,y){var B=[[0,0],[0,e],[v,0],[v,e]];return B.reduce(function(A,h){var m=h[0],g=h[1],w=Ye(t-m,o-g);return(y?w<A.optimumDistance:w>A.optimumDistance)?{optimumCorner:h,optimumDistance:w}:A},{optimumDistance:y?1/0:-1/0,optimumCorner:null}).optimumCorner},ep=function(v,e,t,o,y){var B=0,A=0;switch(v.size){case 0:v.shape===0?B=A=Math.min(Math.abs(e),Math.abs(e-o),Math.abs(t),Math.abs(t-y)):v.shape===1&&(B=Math.min(Math.abs(e),Math.abs(e-o)),A=Math.min(Math.abs(t),Math.abs(t-y)));break;case 2:if(v.shape===0)B=A=Math.min(Ye(e,t),Ye(e,t-y),Ye(e-o,t),Ye(e-o,t-y));else if(v.shape===1){var h=Math.min(Math.abs(t),Math.abs(t-y))/Math.min(Math.abs(e),Math.abs(e-o)),m=Cl(o,y,e,t,!0),g=m[0],w=m[1];B=Ye(g-e,(w-t)/h),A=h*B}break;case 1:v.shape===0?B=A=Math.max(Math.abs(e),Math.abs(e-o),Math.abs(t),Math.abs(t-y)):v.shape===1&&(B=Math.max(Math.abs(e),Math.abs(e-o)),A=Math.max(Math.abs(t),Math.abs(t-y)));break;case 3:if(v.shape===0)B=A=Math.max(Ye(e,t),Ye(e,t-y),Ye(e-o,t),Ye(e-o,t-y));else if(v.shape===1){var h=Math.max(Math.abs(t),Math.abs(t-y))/Math.max(Math.abs(e),Math.abs(e-o)),p=Cl(o,y,e,t,!1),g=p[0],w=p[1];B=Ye(g-e,(w-t)/h),A=h*B}break}return Array.isArray(v.size)&&(B=pe(v.size[0],o),A=v.size.length===2?pe(v.size[1],y):B),[B,A]},tp=function(v,e){var t=Ge(180),o=[];return qe(e).forEach(function(y,B){if(B===0){var A=y[0];if(A.type===20&&A.value==="to"){t=vl(y);return}else if(gl(A)){t=Bn.parse(v,A);return}}var h=Cn(v,y);o.push(h)}),{angle:t,stops:o,type:1}},bn=function(v,e){var t=Ge(180),o=[];return qe(e).forEach(function(y,B){if(B===0){var A=y[0];if(A.type===20&&["top","left","right","bottom"].indexOf(A.value)!==-1){t=vl(y);return}else if(gl(A)){t=(Bn.parse(v,A)+Ge(270))%Ge(360);return}}var h=Cn(v,y);o.push(h)}),{angle:t,stops:o,type:1}},rp=function(v,e){var t=Ge(180),o=[],y=1,B=0,A=3,h=[];return qe(e).forEach(function(m,g){var w=m[0];if(g===0){if(fe(w)&&w.value==="linear"){y=1;return}else if(fe(w)&&w.value==="radial"){y=2;return}}if(w.type===18){if(w.name==="from"){var p=pt.parse(v,w.values[0]);o.push({stop:Te,color:p})}else if(w.name==="to"){var p=pt.parse(v,w.values[0]);o.push({stop:ht,color:p})}else if(w.name==="color-stop"){var u=w.values.filter(jt);if(u.length===2){var p=pt.parse(v,u[1]),f=u[0];Gt(f)&&o.push({stop:{type:16,number:f.number*100,flags:f.flags},color:p})}}}}),y===1?{angle:(t+Ge(180))%Ge(360),stops:o,type:y}:{size:A,shape:B,stops:o,position:h,type:y}},bl="closest-side",_l="farthest-side",El="closest-corner",Fl="farthest-corner",Sl="circle",Ql="ellipse",Ul="cover",Tl="contain",Ap=function(v,e){var t=0,o=3,y=[],B=[];return qe(e).forEach(function(A,h){var m=!0;if(h===0){var g=!1;m=A.reduce(function(p,u){if(g)if(fe(u))switch(u.value){case"center":return B.push(to),p;case"top":case"left":return B.push(Te),p;case"right":case"bottom":return B.push(ht),p}else(Ee(u)||ft(u))&&B.push(u);else if(fe(u))switch(u.value){case Sl:return t=0,!1;case Ql:return t=1,!1;case"at":return g=!0,!1;case bl:return o=0,!1;case Ul:case _l:return o=1,!1;case Tl:case El:return o=2,!1;case Fl:return o=3,!1}else if(ft(u)||Ee(u))return Array.isArray(o)||(o=[]),o.push(u),!1;return p},m)}if(m){var w=Cn(v,A);y.push(w)}}),{size:o,shape:t,stops:y,position:B,type:2}},_n=function(v,e){var t=0,o=3,y=[],B=[];return qe(e).forEach(function(A,h){var m=!0;if(h===0?m=A.reduce(function(w,p){if(fe(p))switch(p.value){case"center":return B.push(to),!1;case"top":case"left":return B.push(Te),!1;case"right":case"bottom":return B.push(ht),!1}else if(Ee(p)||ft(p))return B.push(p),!1;return w},m):h===1&&(m=A.reduce(function(w,p){if(fe(p))switch(p.value){case Sl:return t=0,!1;case Ql:return t=1,!1;case Tl:case bl:return o=0,!1;case _l:return o=1,!1;case El:return o=2,!1;case Ul:case Fl:return o=3,!1}else if(ft(p)||Ee(p))return Array.isArray(o)||(o=[]),o.push(p),!1;return w},m)),m){var g=Cn(v,A);y.push(g)}}),{size:o,shape:t,stops:y,position:B,type:2}},np=function(v){return v.type===1},ip=function(v){return v.type===2},Ao={name:"image",parse:function(v,e){if(e.type===22){var t={url:e.value,type:0};return v.cache.addImage(e.value),t}if(e.type===18){var o=Il[e.name];if(typeof o>"u")throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return o(v,e.values)}throw new Error("Unsupported image type "+e.type)}};function op(v){return!(v.type===20&&v.value==="none")&&(v.type!==18||!!Il[v.name])}var Il={"linear-gradient":tp,"-moz-linear-gradient":bn,"-ms-linear-gradient":bn,"-o-linear-gradient":bn,"-webkit-linear-gradient":bn,"radial-gradient":Ap,"-moz-radial-gradient":_n,"-ms-radial-gradient":_n,"-o-radial-gradient":_n,"-webkit-radial-gradient":_n,"-webkit-gradient":rp},sp={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(v,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e.filter(function(o){return jt(o)&&op(o)}).map(function(o){return Ao.parse(v,o)})}},ap={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(v,e){return e.map(function(t){if(fe(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},cp={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(v,e){return qe(e).map(function(t){return t.filter(Ee)}).map(ul)}},lp={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(v,e){return qe(e).map(function(t){return t.filter(fe).map(function(o){return o.value}).join(" ")}).map(up)}},up=function(v){switch(v){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Wt;(function(v){v.AUTO="auto",v.CONTAIN="contain",v.COVER="cover"})(Wt||(Wt={}));var dp={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(v,e){return qe(e).map(function(t){return t.filter(fp)})}},fp=function(v){return fe(v)||Ee(v)},En=function(v){return{name:"border-"+v+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},hp=En("top"),pp=En("right"),gp=En("bottom"),vp=En("left"),Fn=function(v){return{name:"border-radius-"+v,initialValue:"0 0",prefix:!1,type:1,parse:function(e,t){return ul(t.filter(Ee))}}},yp=Fn("top-left"),mp=Fn("top-right"),wp=Fn("bottom-right"),Bp=Fn("bottom-left"),Sn=function(v){return{name:"border-"+v+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(e,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Cp=Sn("top"),bp=Sn("right"),_p=Sn("bottom"),Ep=Sn("left"),Qn=function(v){return{name:"border-"+v+"-width",initialValue:"0",type:0,prefix:!1,parse:function(e,t){return vr(t)?t.number:0}}},Fp=Qn("top"),Sp=Qn("right"),Qp=Qn("bottom"),Up=Qn("left"),Tp={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ip={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(v,e){switch(e){case"rtl":return 1;case"ltr":default:return 0}}},Pp={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(v,e){return e.filter(fe).reduce(function(t,o){return t|xp(o.value)},0)}},xp=function(v){switch(v){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Op={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Mp={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(v,e){return e.type===20&&e.value==="normal"?0:e.type===17||e.type===15?e.number:0}},Un;(function(v){v.NORMAL="normal",v.STRICT="strict"})(Un||(Un={}));var Hp={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"strict":return Un.STRICT;case"normal":default:return Un.NORMAL}}},Lp={name:"line-height",initialValue:"normal",prefix:!1,type:4},Pl=function(v,e){return fe(v)&&v.value==="normal"?1.2*e:v.type===17?e*v.number:Ee(v)?pe(v,e):e},Dp={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(v,e){return e.type===20&&e.value==="none"?null:Ao.parse(v,e)}},Rp={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(v,e){switch(e){case"inside":return 0;case"outside":default:return 1}}},no={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Tn=function(v){return{name:"margin-"+v,initialValue:"0",prefix:!1,type:4}},kp=Tn("top"),Kp=Tn("right"),Np=Tn("bottom"),Vp=Tn("left"),Gp={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(v,e){return e.filter(fe).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},jp={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"break-word":return"break-word";case"normal":default:return"normal"}}},In=function(v){return{name:"padding-"+v,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Wp=In("top"),zp=In("right"),Jp=In("bottom"),Xp=In("left"),Yp={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(v,e){switch(e){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},$p={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(v,e){switch(e){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Zp={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(v,e){return e.length===1&&eo(e[0],"none")?[]:qe(e).map(function(t){for(var o={color:at.TRANSPARENT,offsetX:Te,offsetY:Te,blur:Te},y=0,B=0;B<t.length;B++){var A=t[B];ft(A)?(y===0?o.offsetX=A:y===1?o.offsetY=A:o.blur=A,y++):o.color=pt.parse(v,A)}return o})}},qp={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},eg={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(v,e){if(e.type===20&&e.value==="none")return null;if(e.type===18){var t=Ag[e.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},tg=function(v){var e=v.filter(function(t){return t.type===17}).map(function(t){return t.number});return e.length===6?e:null},rg=function(v){var e=v.filter(function(m){return m.type===17}).map(function(m){return m.number}),t=e[0],o=e[1];e[2],e[3];var y=e[4],B=e[5];e[6],e[7],e[8],e[9],e[10],e[11];var A=e[12],h=e[13];return e[14],e[15],e.length===16?[t,o,y,B,A,h]:null},Ag={matrix:tg,matrix3d:rg},xl={type:16,number:50,flags:dr},ng=[xl,xl],ig={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(v,e){var t=e.filter(Ee);return t.length!==2?ng:[t[0],t[1]]}},og={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(v,e){switch(e){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},wr;(function(v){v.NORMAL="normal",v.BREAK_ALL="break-all",v.KEEP_ALL="keep-all"})(wr||(wr={}));for(var sg={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"break-all":return wr.BREAK_ALL;case"keep-all":return wr.KEEP_ALL;case"normal":default:return wr.NORMAL}}},ag={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(v,e){if(e.type===20)return{auto:!0,order:0};if(Gt(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},Ol={name:"time",parse:function(v,e){if(e.type===15)switch(e.unit.toLowerCase()){case"s":return 1e3*e.number;case"ms":return e.number}throw new Error("Unsupported time type")}},cg={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(v,e){return Gt(e)?e.number:1}},lg={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ug={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(v,e){return e.filter(fe).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},dg={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(v,e){var t=[],o=[];return e.forEach(function(y){switch(y.type){case 20:case 0:t.push(y.value);break;case 17:t.push(y.number.toString());break;case 4:o.push(t.join(" ")),t.length=0;break}}),t.length&&o.push(t.join(" ")),o.map(function(y){return y.indexOf(" ")===-1?y:"'"+y+"'"})}},fg={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},hg={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(v,e){if(Gt(e))return e.number;if(fe(e))switch(e.value){case"bold":return 700;case"normal":default:return 400}return 400}},pg={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(v,e){return e.filter(fe).map(function(t){return t.value})}},gg={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(v,e){switch(e){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Se=function(v,e){return(v&e)!==0},vg={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(v,e){if(e.length===0)return[];var t=e[0];return t.type===20&&t.value==="none"?[]:e}},yg={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(v,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;for(var o=[],y=e.filter(ll),B=0;B<y.length;B++){var A=y[B],h=y[B+1];if(A.type===20){var m=h&&Gt(h)?h.number:1;o.push({counter:A.value,increment:m})}}return o}},mg={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(v,e){if(e.length===0)return[];for(var t=[],o=e.filter(ll),y=0;y<o.length;y++){var B=o[y],A=o[y+1];if(fe(B)&&B.value!=="none"){var h=A&&Gt(A)?A.number:0;t.push({counter:B.value,reset:h})}}return t}},wg={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(v,e){return e.filter(vr).map(function(t){return Ol.parse(v,t)})}},Bg={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(v,e){if(e.length===0)return null;var t=e[0];if(t.type===20&&t.value==="none")return null;var o=[],y=e.filter(zh);if(y.length%2!==0)return null;for(var B=0;B<y.length;B+=2){var A=y[B].value,h=y[B+1].value;o.push({open:A,close:h})}return o}},Ml=function(v,e,t){if(!v)return"";var o=v[Math.min(e,v.length-1)];return o?t?o.open:o.close:""},Cg={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(v,e){return e.length===1&&eo(e[0],"none")?[]:qe(e).map(function(t){for(var o={color:255,offsetX:Te,offsetY:Te,blur:Te,spread:Te,inset:!1},y=0,B=0;B<t.length;B++){var A=t[B];eo(A,"inset")?o.inset=!0:ft(A)?(y===0?o.offsetX=A:y===1?o.offsetY=A:y===2?o.blur=A:o.spread=A,y++):o.color=pt.parse(v,A)}return o})}},bg={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(v,e){var t=[0,1,2],o=[];return e.filter(fe).forEach(function(y){switch(y.value){case"stroke":o.push(1);break;case"fill":o.push(0);break;case"markers":o.push(2);break}}),t.forEach(function(y){o.indexOf(y)===-1&&o.push(y)}),o}},_g={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Eg={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(v,e){return vr(e)?e.number:0}},Fg=function(){function v(e,t){var o,y;this.animationDuration=ee(e,wg,t.animationDuration),this.backgroundClip=ee(e,Yh,t.backgroundClip),this.backgroundColor=ee(e,$h,t.backgroundColor),this.backgroundImage=ee(e,sp,t.backgroundImage),this.backgroundOrigin=ee(e,ap,t.backgroundOrigin),this.backgroundPosition=ee(e,cp,t.backgroundPosition),this.backgroundRepeat=ee(e,lp,t.backgroundRepeat),this.backgroundSize=ee(e,dp,t.backgroundSize),this.borderTopColor=ee(e,hp,t.borderTopColor),this.borderRightColor=ee(e,pp,t.borderRightColor),this.borderBottomColor=ee(e,gp,t.borderBottomColor),this.borderLeftColor=ee(e,vp,t.borderLeftColor),this.borderTopLeftRadius=ee(e,yp,t.borderTopLeftRadius),this.borderTopRightRadius=ee(e,mp,t.borderTopRightRadius),this.borderBottomRightRadius=ee(e,wp,t.borderBottomRightRadius),this.borderBottomLeftRadius=ee(e,Bp,t.borderBottomLeftRadius),this.borderTopStyle=ee(e,Cp,t.borderTopStyle),this.borderRightStyle=ee(e,bp,t.borderRightStyle),this.borderBottomStyle=ee(e,_p,t.borderBottomStyle),this.borderLeftStyle=ee(e,Ep,t.borderLeftStyle),this.borderTopWidth=ee(e,Fp,t.borderTopWidth),this.borderRightWidth=ee(e,Sp,t.borderRightWidth),this.borderBottomWidth=ee(e,Qp,t.borderBottomWidth),this.borderLeftWidth=ee(e,Up,t.borderLeftWidth),this.boxShadow=ee(e,Cg,t.boxShadow),this.color=ee(e,Tp,t.color),this.direction=ee(e,Ip,t.direction),this.display=ee(e,Pp,t.display),this.float=ee(e,Op,t.cssFloat),this.fontFamily=ee(e,dg,t.fontFamily),this.fontSize=ee(e,fg,t.fontSize),this.fontStyle=ee(e,gg,t.fontStyle),this.fontVariant=ee(e,pg,t.fontVariant),this.fontWeight=ee(e,hg,t.fontWeight),this.letterSpacing=ee(e,Mp,t.letterSpacing),this.lineBreak=ee(e,Hp,t.lineBreak),this.lineHeight=ee(e,Lp,t.lineHeight),this.listStyleImage=ee(e,Dp,t.listStyleImage),this.listStylePosition=ee(e,Rp,t.listStylePosition),this.listStyleType=ee(e,no,t.listStyleType),this.marginTop=ee(e,kp,t.marginTop),this.marginRight=ee(e,Kp,t.marginRight),this.marginBottom=ee(e,Np,t.marginBottom),this.marginLeft=ee(e,Vp,t.marginLeft),this.opacity=ee(e,cg,t.opacity);var B=ee(e,Gp,t.overflow);this.overflowX=B[0],this.overflowY=B[B.length>1?1:0],this.overflowWrap=ee(e,jp,t.overflowWrap),this.paddingTop=ee(e,Wp,t.paddingTop),this.paddingRight=ee(e,zp,t.paddingRight),this.paddingBottom=ee(e,Jp,t.paddingBottom),this.paddingLeft=ee(e,Xp,t.paddingLeft),this.paintOrder=ee(e,bg,t.paintOrder),this.position=ee(e,$p,t.position),this.textAlign=ee(e,Yp,t.textAlign),this.textDecorationColor=ee(e,lg,(o=t.textDecorationColor)!==null&&o!==void 0?o:t.color),this.textDecorationLine=ee(e,ug,(y=t.textDecorationLine)!==null&&y!==void 0?y:t.textDecoration),this.textShadow=ee(e,Zp,t.textShadow),this.textTransform=ee(e,qp,t.textTransform),this.transform=ee(e,eg,t.transform),this.transformOrigin=ee(e,ig,t.transformOrigin),this.visibility=ee(e,og,t.visibility),this.webkitTextStrokeColor=ee(e,_g,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=ee(e,Eg,t.webkitTextStrokeWidth),this.wordBreak=ee(e,sg,t.wordBreak),this.zIndex=ee(e,ag,t.zIndex)}return v.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},v.prototype.isTransparent=function(){return gt(this.backgroundColor)},v.prototype.isTransformed=function(){return this.transform!==null},v.prototype.isPositioned=function(){return this.position!==0},v.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},v.prototype.isFloating=function(){return this.float!==0},v.prototype.isInlineLevel=function(){return Se(this.display,4)||Se(this.display,33554432)||Se(this.display,268435456)||Se(this.display,536870912)||Se(this.display,67108864)||Se(this.display,134217728)},v}(),Sg=function(){function v(e,t){this.content=ee(e,vg,t.content),this.quotes=ee(e,Bg,t.quotes)}return v}(),Hl=function(){function v(e,t){this.counterIncrement=ee(e,yg,t.counterIncrement),this.counterReset=ee(e,mg,t.counterReset)}return v}(),ee=function(v,e,t){var o=new al,y=t!==null&&typeof t<"u"?t.toString():e.initialValue;o.write(y);var B=new cl(o.read());switch(e.type){case 2:var A=B.parseComponentValue();return e.parse(v,fe(A)?A.value:e.initialValue);case 0:return e.parse(v,B.parseComponentValue());case 1:return e.parse(v,B.parseComponentValues());case 4:return B.parseComponentValue();case 3:switch(e.format){case"angle":return Bn.parse(v,B.parseComponentValue());case"color":return pt.parse(v,B.parseComponentValue());case"image":return Ao.parse(v,B.parseComponentValue());case"length":var h=B.parseComponentValue();return ft(h)?h:Te;case"length-percentage":var m=B.parseComponentValue();return Ee(m)?m:Te;case"time":return Ol.parse(v,B.parseComponentValue())}break}},Qg="data-html2canvas-debug",Ug=function(v){var e=v.getAttribute(Qg);switch(e){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},io=function(v,e){var t=Ug(v);return t===1||e===t},et=function(){function v(e,t){if(this.context=e,this.textNodes=[],this.elements=[],this.flags=0,io(t,3))debugger;this.styles=new Fg(e,window.getComputedStyle(t,null)),wo(t)&&(this.styles.animationDuration.some(function(o){return o>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=en(this.context,t),io(t,4)&&(this.flags|=16)}return v}(),Tg="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Ll="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Br=typeof Uint8Array>"u"?[]:new Uint8Array(256),Pn=0;Pn<Ll.length;Pn++)Br[Ll.charCodeAt(Pn)]=Pn;for(var Ig=function(v){var e=v.length*.75,t=v.length,o,y=0,B,A,h,m;v[v.length-1]==="="&&(e--,v[v.length-2]==="="&&e--);var g=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(e):new Array(e),w=Array.isArray(g)?g:new Uint8Array(g);for(o=0;o<t;o+=4)B=Br[v.charCodeAt(o)],A=Br[v.charCodeAt(o+1)],h=Br[v.charCodeAt(o+2)],m=Br[v.charCodeAt(o+3)],w[y++]=B<<2|A>>4,w[y++]=(A&15)<<4|h>>2,w[y++]=(h&3)<<6|m&63;return g},Pg=function(v){for(var e=v.length,t=[],o=0;o<e;o+=2)t.push(v[o+1]<<8|v[o]);return t},xg=function(v){for(var e=v.length,t=[],o=0;o<e;o+=4)t.push(v[o+3]<<24|v[o+2]<<16|v[o+1]<<8|v[o]);return t},Qt=5,oo=11,so=2,Og=oo-Qt,Dl=65536>>Qt,Mg=1<<Qt,ao=Mg-1,Hg=1024>>Qt,Lg=Dl+Hg,Dg=Lg,Rg=32,kg=Dg+Rg,Kg=65536>>oo,Ng=1<<Og,Vg=Ng-1,Rl=function(v,e,t){return v.slice?v.slice(e,t):new Uint16Array(Array.prototype.slice.call(v,e,t))},Gg=function(v,e,t){return v.slice?v.slice(e,t):new Uint32Array(Array.prototype.slice.call(v,e,t))},jg=function(v,e){var t=Ig(v),o=Array.isArray(t)?xg(t):new Uint32Array(t),y=Array.isArray(t)?Pg(t):new Uint16Array(t),B=24,A=Rl(y,B/2,o[4]/2),h=o[5]===2?Rl(y,(B+o[4])/2):Gg(o,Math.ceil((B+o[4])/4));return new Wg(o[0],o[1],o[2],o[3],A,h)},Wg=function(){function v(e,t,o,y,B,A){this.initialValue=e,this.errorValue=t,this.highStart=o,this.highValueIndex=y,this.index=B,this.data=A}return v.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=this.index[e>>Qt],t=(t<<so)+(e&ao),this.data[t];if(e<=65535)return t=this.index[Dl+(e-55296>>Qt)],t=(t<<so)+(e&ao),this.data[t];if(e<this.highStart)return t=kg-Kg+(e>>oo),t=this.index[t],t+=e>>Qt&Vg,t=this.index[t],t=(t<<so)+(e&ao),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},v}(),kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zg=typeof Uint8Array>"u"?[]:new Uint8Array(256),xn=0;xn<kl.length;xn++)zg[kl.charCodeAt(xn)]=xn;var Jg=1,co=2,lo=3,Kl=4,Nl=5,Xg=7,Vl=8,uo=9,fo=10,Gl=11,jl=12,Wl=13,zl=14,ho=15,Yg=function(v){for(var e=[],t=0,o=v.length;t<o;){var y=v.charCodeAt(t++);if(y>=55296&&y<=56319&&t<o){var B=v.charCodeAt(t++);(B&64512)===56320?e.push(((y&1023)<<10)+(B&1023)+65536):(e.push(y),t--)}else e.push(y)}return e},$g=function(){for(var v=[],e=0;e<arguments.length;e++)v[e]=arguments[e];if(String.fromCodePoint)return String.fromCodePoint.apply(String,v);var t=v.length;if(!t)return"";for(var o=[],y=-1,B="";++y<t;){var A=v[y];A<=65535?o.push(A):(A-=65536,o.push((A>>10)+55296,A%1024+56320)),(y+1===t||o.length>16384)&&(B+=String.fromCharCode.apply(String,o),o.length=0)}return B},Zg=jg(Tg),je="×",po="÷",qg=function(v){return Zg.get(v)},ev=function(v,e,t){var o=t-2,y=e[o],B=e[t-1],A=e[t];if(B===co&&A===lo)return je;if(B===co||B===lo||B===Kl||A===co||A===lo||A===Kl)return po;if(B===Vl&&[Vl,uo,Gl,jl].indexOf(A)!==-1||(B===Gl||B===uo)&&(A===uo||A===fo)||(B===jl||B===fo)&&A===fo||A===Wl||A===Nl||A===Xg||B===Jg)return je;if(B===Wl&&A===zl){for(;y===Nl;)y=e[--o];if(y===zl)return je}if(B===ho&&A===ho){for(var h=0;y===ho;)h++,y=e[--o];if(h%2===0)return je}return po},tv=function(v){var e=Yg(v),t=e.length,o=0,y=0,B=e.map(qg);return{next:function(){if(o>=t)return{done:!0,value:null};for(var A=je;o<t&&(A=ev(e,B,++o))===je;);if(A!==je||o===t){var h=$g.apply(null,e.slice(y,o));return y=o,{value:h,done:!1}}return{done:!0,value:null}}}},rv=function(v){for(var e=tv(v),t=[],o;!(o=e.next()).done;)o.value&&t.push(o.value.slice());return t},Av=function(v){var e=123;if(v.createRange){var t=v.createRange();if(t.getBoundingClientRect){var o=v.createElement("boundtest");o.style.height=e+"px",o.style.display="block",v.body.appendChild(o),t.selectNode(o);var y=t.getBoundingClientRect(),B=Math.round(y.height);if(v.body.removeChild(o),B===e)return!0}}return!1},nv=function(v){var e=v.createElement("boundtest");e.style.width="50px",e.style.display="block",e.style.fontSize="12px",e.style.letterSpacing="0px",e.style.wordSpacing="0px",v.body.appendChild(e);var t=v.createRange();e.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var o=e.firstChild,y=tn(o.data).map(function(m){return Be(m)}),B=0,A={},h=y.every(function(m,g){t.setStart(o,B),t.setEnd(o,B+m.length);var w=t.getBoundingClientRect();B+=m.length;var p=w.x>A.x||w.y>A.y;return A=w,g===0?!0:p});return v.body.removeChild(e),h},iv=function(){return typeof new Image().crossOrigin<"u"},ov=function(){return typeof new XMLHttpRequest().responseType=="string"},sv=function(v){var e=new Image,t=v.createElement("canvas"),o=t.getContext("2d");if(!o)return!1;e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{o.drawImage(e,0,0),t.toDataURL()}catch{return!1}return!0},Jl=function(v){return v[0]===0&&v[1]===255&&v[2]===0&&v[3]===255},av=function(v){var e=v.createElement("canvas"),t=100;e.width=t,e.height=t;var o=e.getContext("2d");if(!o)return Promise.reject(!1);o.fillStyle="rgb(0, 255, 0)",o.fillRect(0,0,t,t);var y=new Image,B=e.toDataURL();y.src=B;var A=go(t,t,0,0,y);return o.fillStyle="red",o.fillRect(0,0,t,t),Xl(A).then(function(h){o.drawImage(h,0,0);var m=o.getImageData(0,0,t,t).data;o.fillStyle="red",o.fillRect(0,0,t,t);var g=v.createElement("div");return g.style.backgroundImage="url("+B+")",g.style.height=t+"px",Jl(m)?Xl(go(t,t,0,0,g)):Promise.reject(!1)}).then(function(h){return o.drawImage(h,0,0),Jl(o.getImageData(0,0,t,t).data)}).catch(function(){return!1})},go=function(v,e,t,o,y){var B="http://www.w3.org/2000/svg",A=document.createElementNS(B,"svg"),h=document.createElementNS(B,"foreignObject");return A.setAttributeNS(null,"width",v.toString()),A.setAttributeNS(null,"height",e.toString()),h.setAttributeNS(null,"width","100%"),h.setAttributeNS(null,"height","100%"),h.setAttributeNS(null,"x",t.toString()),h.setAttributeNS(null,"y",o.toString()),h.setAttributeNS(null,"externalResourcesRequired","true"),A.appendChild(h),h.appendChild(y),A},Xl=function(v){return new Promise(function(e,t){var o=new Image;o.onload=function(){return e(o)},o.onerror=t,o.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(v))})},Ie={get SUPPORT_RANGE_BOUNDS(){var v=Av(document);return Object.defineProperty(Ie,"SUPPORT_RANGE_BOUNDS",{value:v}),v},get SUPPORT_WORD_BREAKING(){var v=Ie.SUPPORT_RANGE_BOUNDS&&nv(document);return Object.defineProperty(Ie,"SUPPORT_WORD_BREAKING",{value:v}),v},get SUPPORT_SVG_DRAWING(){var v=sv(document);return Object.defineProperty(Ie,"SUPPORT_SVG_DRAWING",{value:v}),v},get SUPPORT_FOREIGNOBJECT_DRAWING(){var v=typeof Array.from=="function"&&typeof window.fetch=="function"?av(document):Promise.resolve(!1);return Object.defineProperty(Ie,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:v}),v},get SUPPORT_CORS_IMAGES(){var v=iv();return Object.defineProperty(Ie,"SUPPORT_CORS_IMAGES",{value:v}),v},get SUPPORT_RESPONSE_TYPE(){var v=ov();return Object.defineProperty(Ie,"SUPPORT_RESPONSE_TYPE",{value:v}),v},get SUPPORT_CORS_XHR(){var v="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Ie,"SUPPORT_CORS_XHR",{value:v}),v},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var v=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Ie,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:v}),v}},Cr=function(){function v(e,t){this.text=e,this.bounds=t}return v}(),cv=function(v,e,t,o){var y=dv(e,t),B=[],A=0;return y.forEach(function(h){if(t.textDecorationLine.length||h.trim().length>0)if(Ie.SUPPORT_RANGE_BOUNDS){var m=Yl(o,A,h.length).getClientRects();if(m.length>1){var g=vo(h),w=0;g.forEach(function(u){B.push(new Cr(u,ot.fromDOMRectList(v,Yl(o,w+A,u.length).getClientRects()))),w+=u.length})}else B.push(new Cr(h,ot.fromDOMRectList(v,m)))}else{var p=o.splitText(h.length);B.push(new Cr(h,lv(v,o))),o=p}else Ie.SUPPORT_RANGE_BOUNDS||(o=o.splitText(h.length));A+=h.length}),B},lv=function(v,e){var t=e.ownerDocument;if(t){var o=t.createElement("html2canvaswrapper");o.appendChild(e.cloneNode(!0));var y=e.parentNode;if(y){y.replaceChild(o,e);var B=en(v,o);return o.firstChild&&y.replaceChild(o.firstChild,o),B}}return ot.EMPTY},Yl=function(v,e,t){var o=v.ownerDocument;if(!o)throw new Error("Node has no owner document");var y=o.createRange();return y.setStart(v,e),y.setEnd(v,e+t),y},vo=function(v){if(Ie.SUPPORT_NATIVE_TEXT_SEGMENTATION){var e=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(e.segment(v)).map(function(t){return t.segment})}return rv(v)},uv=function(v,e){if(Ie.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(v)).map(function(o){return o.segment})}return hv(v,e)},dv=function(v,e){return e.letterSpacing!==0?vo(v):uv(v,e)},fv=[32,160,4961,65792,65793,4153,4241],hv=function(v,e){for(var t=Kf(v,{lineBreak:e.lineBreak,wordBreak:e.overflowWrap==="break-word"?"break-word":e.wordBreak}),o=[],y,B=function(){if(y.value){var A=y.value.slice(),h=tn(A),m="";h.forEach(function(g){fv.indexOf(g)===-1?m+=Be(g):(m.length&&o.push(m),o.push(Be(g)),m="")}),m.length&&o.push(m)}};!(y=t.next()).done;)B();return o},pv=function(){function v(e,t,o){this.text=gv(t.data,o.textTransform),this.textBounds=cv(e,this.text,o,t)}return v}(),gv=function(v,e){switch(e){case 1:return v.toLowerCase();case 3:return v.replace(vv,yv);case 2:return v.toUpperCase();default:return v}},vv=/(^|\s|:|-|\(|\))([a-z])/g,yv=function(v,e,t){return v.length>0?e+t.toUpperCase():v},$l=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.src=o.currentSrc||o.src,y.intrinsicWidth=o.naturalWidth,y.intrinsicHeight=o.naturalHeight,y.context.cache.addImage(y.src),y}return e}(et),Zl=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.canvas=o,y.intrinsicWidth=o.width,y.intrinsicHeight=o.height,y}return e}(et),ql=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this,B=new XMLSerializer,A=en(t,o);return o.setAttribute("width",A.width+"px"),o.setAttribute("height",A.height+"px"),y.svg="data:image/svg+xml,"+encodeURIComponent(B.serializeToString(o)),y.intrinsicWidth=o.width.baseVal.value,y.intrinsicHeight=o.height.baseVal.value,y.context.cache.addImage(y.svg),y}return e}(et),eu=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.value=o.value,y}return e}(et),yo=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.start=o.start,y.reversed=typeof o.reversed=="boolean"&&o.reversed===!0,y}return e}(et),mv=[{type:15,flags:0,unit:"px",number:3}],wv=[{type:16,flags:0,number:50}],Bv=function(v){return v.width>v.height?new ot(v.left+(v.width-v.height)/2,v.top,v.height,v.height):v.width<v.height?new ot(v.left,v.top+(v.height-v.width)/2,v.width,v.width):v},Cv=function(v){var e=v.type===bv?new Array(v.value.length+1).join("•"):v.value;return e.length===0?v.placeholder||"":e},On="checkbox",Mn="radio",bv="password",tu=707406591,mo=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;switch(y.type=o.type.toLowerCase(),y.checked=o.checked,y.value=Cv(o),(y.type===On||y.type===Mn)&&(y.styles.backgroundColor=3739148031,y.styles.borderTopColor=y.styles.borderRightColor=y.styles.borderBottomColor=y.styles.borderLeftColor=2779096575,y.styles.borderTopWidth=y.styles.borderRightWidth=y.styles.borderBottomWidth=y.styles.borderLeftWidth=1,y.styles.borderTopStyle=y.styles.borderRightStyle=y.styles.borderBottomStyle=y.styles.borderLeftStyle=1,y.styles.backgroundClip=[0],y.styles.backgroundOrigin=[0],y.bounds=Bv(y.bounds)),y.type){case On:y.styles.borderTopRightRadius=y.styles.borderTopLeftRadius=y.styles.borderBottomRightRadius=y.styles.borderBottomLeftRadius=mv;break;case Mn:y.styles.borderTopRightRadius=y.styles.borderTopLeftRadius=y.styles.borderBottomRightRadius=y.styles.borderBottomLeftRadius=wv;break}return y}return e}(et),ru=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this,B=o.options[o.selectedIndex||0];return y.value=B&&B.text||"",y}return e}(et),Au=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.value=o.value,y}return e}(et),nu=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;y.src=o.src,y.width=parseInt(o.width,10)||0,y.height=parseInt(o.height,10)||0,y.backgroundColor=y.styles.backgroundColor;try{if(o.contentWindow&&o.contentWindow.document&&o.contentWindow.document.documentElement){y.tree=ou(t,o.contentWindow.document.documentElement);var B=o.contentWindow.document.documentElement?mr(t,getComputedStyle(o.contentWindow.document.documentElement).backgroundColor):at.TRANSPARENT,A=o.contentWindow.document.body?mr(t,getComputedStyle(o.contentWindow.document.body).backgroundColor):at.TRANSPARENT;y.backgroundColor=gt(B)?gt(A)?y.styles.backgroundColor:A:B}}catch{}return y}return e}(et),_v=["OL","UL","MENU"],Hn=function(v,e,t,o){for(var y=e.firstChild,B=void 0;y;y=B)if(B=y.nextSibling,su(y)&&y.data.trim().length>0)t.textNodes.push(new pv(v,y,t.styles));else if(zt(y))if(fu(y)&&y.assignedNodes)y.assignedNodes().forEach(function(h){return Hn(v,h,t,o)});else{var A=iu(v,y);A.styles.isVisible()&&(Ev(y,A,o)?A.flags|=4:Fv(A.styles)&&(A.flags|=2),_v.indexOf(y.tagName)!==-1&&(A.flags|=8),t.elements.push(A),y.slot,y.shadowRoot?Hn(v,y.shadowRoot,A,o):!Dn(y)&&!au(y)&&!Rn(y)&&Hn(v,y,A,o))}},iu=function(v,e){return Co(e)?new $l(v,e):cu(e)?new Zl(v,e):au(e)?new ql(v,e):Sv(e)?new eu(v,e):Qv(e)?new yo(v,e):Uv(e)?new mo(v,e):Rn(e)?new ru(v,e):Dn(e)?new Au(v,e):uu(e)?new nu(v,e):new et(v,e)},ou=function(v,e){var t=iu(v,e);return t.flags|=4,Hn(v,e,t,t),t},Ev=function(v,e,t){return e.styles.isPositionedWithZIndex()||e.styles.opacity<1||e.styles.isTransformed()||Bo(v)&&t.styles.isTransparent()},Fv=function(v){return v.isPositioned()||v.isFloating()},su=function(v){return v.nodeType===Node.TEXT_NODE},zt=function(v){return v.nodeType===Node.ELEMENT_NODE},wo=function(v){return zt(v)&&typeof v.style<"u"&&!Ln(v)},Ln=function(v){return typeof v.className=="object"},Sv=function(v){return v.tagName==="LI"},Qv=function(v){return v.tagName==="OL"},Uv=function(v){return v.tagName==="INPUT"},Tv=function(v){return v.tagName==="HTML"},au=function(v){return v.tagName==="svg"},Bo=function(v){return v.tagName==="BODY"},cu=function(v){return v.tagName==="CANVAS"},lu=function(v){return v.tagName==="VIDEO"},Co=function(v){return v.tagName==="IMG"},uu=function(v){return v.tagName==="IFRAME"},du=function(v){return v.tagName==="STYLE"},Iv=function(v){return v.tagName==="SCRIPT"},Dn=function(v){return v.tagName==="TEXTAREA"},Rn=function(v){return v.tagName==="SELECT"},fu=function(v){return v.tagName==="SLOT"},hu=function(v){return v.tagName.indexOf("-")>0},Pv=function(){function v(){this.counters={}}return v.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},v.prototype.getCounterValues=function(e){var t=this.counters[e];return t||[]},v.prototype.pop=function(e){var t=this;e.forEach(function(o){return t.counters[o].pop()})},v.prototype.parse=function(e){var t=this,o=e.counterIncrement,y=e.counterReset,B=!0;o!==null&&o.forEach(function(h){var m=t.counters[h.counter];m&&h.increment!==0&&(B=!1,m.length||m.push(1),m[Math.max(0,m.length-1)]+=h.increment)});var A=[];return B&&y.forEach(function(h){var m=t.counters[h.counter];A.push(h.counter),m||(m=t.counters[h.counter]=[]),m.push(h.reset)}),A},v}(),pu={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},gu={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},xv={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},Ov={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},Jt=function(v,e,t,o,y,B){return v<e||v>t?_r(v,y,B.length>0):o.integers.reduce(function(A,h,m){for(;v>=h;)v-=h,A+=o.values[m];return A},"")+B},vu=function(v,e,t,o){var y="";do t||v--,y=o(v)+y,v/=e;while(v*e>=e);return y},Ce=function(v,e,t,o,y){var B=t-e+1;return(v<0?"-":"")+(vu(Math.abs(v),B,o,function(A){return Be(Math.floor(A%B)+e)})+y)},Ut=function(v,e,t){t===void 0&&(t=". ");var o=e.length;return vu(Math.abs(v),o,!1,function(y){return e[Math.floor(y%o)]})+t},Xt=1,yt=2,mt=4,br=8,ct=function(v,e,t,o,y,B){if(v<-9999||v>9999)return _r(v,4,y.length>0);var A=Math.abs(v),h=y;if(A===0)return e[0]+h;for(var m=0;A>0&&m<=4;m++){var g=A%10;g===0&&Se(B,Xt)&&h!==""?h=e[g]+h:g>1||g===1&&m===0||g===1&&m===1&&Se(B,yt)||g===1&&m===1&&Se(B,mt)&&v>100||g===1&&m>1&&Se(B,br)?h=e[g]+(m>0?t[m-1]:"")+h:g===1&&m>0&&(h=t[m-1]+h),A=Math.floor(A/10)}return(v<0?o:"")+h},yu="十百千萬",mu="拾佰仟萬",wu="マイナス",bo="마이너스",_r=function(v,e,t){var o=t?". ":"",y=t?"、":"",B=t?", ":"",A=t?" ":"";switch(e){case 0:return"•"+A;case 1:return"◦"+A;case 2:return"◾"+A;case 5:var h=Ce(v,48,57,!0,o);return h.length<4?"0"+h:h;case 4:return Ut(v,"〇一二三四五六七八九",y);case 6:return Jt(v,1,3999,pu,3,o).toLowerCase();case 7:return Jt(v,1,3999,pu,3,o);case 8:return Ce(v,945,969,!1,o);case 9:return Ce(v,97,122,!1,o);case 10:return Ce(v,65,90,!1,o);case 11:return Ce(v,1632,1641,!0,o);case 12:case 49:return Jt(v,1,9999,gu,3,o);case 35:return Jt(v,1,9999,gu,3,o).toLowerCase();case 13:return Ce(v,2534,2543,!0,o);case 14:case 30:return Ce(v,6112,6121,!0,o);case 15:return Ut(v,"子丑寅卯辰巳午未申酉戌亥",y);case 16:return Ut(v,"甲乙丙丁戊己庚辛壬癸",y);case 17:case 48:return ct(v,"零一二三四五六七八九",yu,"負",y,yt|mt|br);case 47:return ct(v,"零壹貳參肆伍陸柒捌玖",mu,"負",y,Xt|yt|mt|br);case 42:return ct(v,"零一二三四五六七八九",yu,"负",y,yt|mt|br);case 41:return ct(v,"零壹贰叁肆伍陆柒捌玖",mu,"负",y,Xt|yt|mt|br);case 26:return ct(v,"〇一二三四五六七八九","十百千万",wu,y,0);case 25:return ct(v,"零壱弐参四伍六七八九","拾百千万",wu,y,Xt|yt|mt);case 31:return ct(v,"영일이삼사오육칠팔구","십백천만",bo,B,Xt|yt|mt);case 33:return ct(v,"零一二三四五六七八九","十百千萬",bo,B,0);case 32:return ct(v,"零壹貳參四五六七八九","拾百千",bo,B,Xt|yt|mt);case 18:return Ce(v,2406,2415,!0,o);case 20:return Jt(v,1,19999,Ov,3,o);case 21:return Ce(v,2790,2799,!0,o);case 22:return Ce(v,2662,2671,!0,o);case 22:return Jt(v,1,10999,xv,3,o);case 23:return Ut(v,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return Ut(v,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return Ce(v,3302,3311,!0,o);case 28:return Ut(v,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",y);case 29:return Ut(v,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",y);case 34:return Ce(v,3792,3801,!0,o);case 37:return Ce(v,6160,6169,!0,o);case 38:return Ce(v,4160,4169,!0,o);case 39:return Ce(v,2918,2927,!0,o);case 40:return Ce(v,1776,1785,!0,o);case 43:return Ce(v,3046,3055,!0,o);case 44:return Ce(v,3174,3183,!0,o);case 45:return Ce(v,3664,3673,!0,o);case 46:return Ce(v,3872,3881,!0,o);case 3:default:return Ce(v,48,57,!0,o)}},Bu="data-html2canvas-ignore",Cu=function(){function v(e,t,o){if(this.context=e,this.options=o,this.scrolledElements=[],this.referenceElement=t,this.counters=new Pv,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return v.prototype.toIFrame=function(e,t){var o=this,y=Mv(e,t);if(!y.contentWindow)return Promise.reject("Unable to find iframe window");var B=e.defaultView.pageXOffset,A=e.defaultView.pageYOffset,h=y.contentWindow,m=h.document,g=Dv(y).then(function(){return Re(o,void 0,void 0,function(){var w,p;return Pe(this,function(u){switch(u.label){case 0:return this.scrolledElements.forEach(Nv),h&&(h.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(h.scrollY!==t.top||h.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(h.scrollX-t.left,h.scrollY-t.top,0,0))),w=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:m.fonts&&m.fonts.ready?[4,m.fonts.ready]:[3,2];case 1:u.sent(),u.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Lv(m)]:[3,4];case 3:u.sent(),u.label=4;case 4:return typeof w=="function"?[2,Promise.resolve().then(function(){return w(m,p)}).then(function(){return y})]:[2,y]}})})});return m.open(),m.write(kv(document.doctype)+"<html></html>"),Kv(this.referenceElement.ownerDocument,B,A),m.replaceChild(m.adoptNode(this.documentElement),m.documentElement),m.close(),g},v.prototype.createElementClone=function(e){if(io(e,2))debugger;if(cu(e))return this.createCanvasClone(e);if(lu(e))return this.createVideoClone(e);if(du(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return Co(t)&&(Co(e)&&e.currentSrc&&e.currentSrc!==e.src&&(t.src=e.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),hu(t)?this.createCustomElementClone(t):t},v.prototype.createCustomElementClone=function(e){var t=document.createElement("html2canvascustomelement");return _o(e.style,t),t},v.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var o=[].slice.call(t.cssRules,0).reduce(function(B,A){return A&&typeof A.cssText=="string"?B+A.cssText:B},""),y=e.cloneNode(!1);return y.textContent=o,y}}catch(B){if(this.context.logger.error("Unable to access cssRules property",B),B.name!=="SecurityError")throw B}return e.cloneNode(!1)},v.prototype.createCanvasClone=function(e){var t;if(this.options.inlineImages&&e.ownerDocument){var o=e.ownerDocument.createElement("img");try{return o.src=e.toDataURL(),o}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",e)}}var y=e.cloneNode(!1);try{y.width=e.width,y.height=e.height;var B=e.getContext("2d"),A=y.getContext("2d");if(A)if(!this.options.allowTaint&&B)A.putImageData(B.getImageData(0,0,e.width,e.height),0,0);else{var h=(t=e.getContext("webgl2"))!==null&&t!==void 0?t:e.getContext("webgl");if(h){var m=h.getContextAttributes();(m==null?void 0:m.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",e)}A.drawImage(e,0,0)}return y}catch{this.context.logger.info("Unable to clone canvas as it is tainted",e)}return y},v.prototype.createVideoClone=function(e){var t=e.ownerDocument.createElement("canvas");t.width=e.offsetWidth,t.height=e.offsetHeight;var o=t.getContext("2d");try{return o&&(o.drawImage(e,0,0,t.width,t.height),this.options.allowTaint||o.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",e)}var y=e.ownerDocument.createElement("canvas");return y.width=e.offsetWidth,y.height=e.offsetHeight,y},v.prototype.appendChildNode=function(e,t,o){(!zt(t)||!Iv(t)&&!t.hasAttribute(Bu)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!zt(t)||!du(t))&&e.appendChild(this.cloneNode(t,o))},v.prototype.cloneChildNodes=function(e,t,o){for(var y=this,B=e.shadowRoot?e.shadowRoot.firstChild:e.firstChild;B;B=B.nextSibling)if(zt(B)&&fu(B)&&typeof B.assignedNodes=="function"){var A=B.assignedNodes();A.length&&A.forEach(function(h){return y.appendChildNode(t,h,o)})}else this.appendChildNode(t,B,o)},v.prototype.cloneNode=function(e,t){if(su(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var o=e.ownerDocument.defaultView;if(o&&zt(e)&&(wo(e)||Ln(e))){var y=this.createElementClone(e);y.style.transitionProperty="none";var B=o.getComputedStyle(e),A=o.getComputedStyle(e,":before"),h=o.getComputedStyle(e,":after");this.referenceElement===e&&wo(y)&&(this.clonedReferenceElement=y),Bo(y)&&jv(y);var m=this.counters.parse(new Hl(this.context,B)),g=this.resolvePseudoContent(e,y,A,Er.BEFORE);hu(e)&&(t=!0),lu(e)||this.cloneChildNodes(e,y,t),g&&y.insertBefore(g,y.firstChild);var w=this.resolvePseudoContent(e,y,h,Er.AFTER);return w&&y.appendChild(w),this.counters.pop(m),(B&&(this.options.copyStyles||Ln(e))&&!uu(e)||t)&&_o(B,y),(e.scrollTop!==0||e.scrollLeft!==0)&&this.scrolledElements.push([y,e.scrollLeft,e.scrollTop]),(Dn(e)||Rn(e))&&(Dn(y)||Rn(y))&&(y.value=e.value),y}return e.cloneNode(!1)},v.prototype.resolvePseudoContent=function(e,t,o,y){var B=this;if(o){var A=o.content,h=t.ownerDocument;if(!(!h||!A||A==="none"||A==="-moz-alt-content"||o.display==="none")){this.counters.parse(new Hl(this.context,o));var m=new Sg(this.context,o),g=h.createElement("html2canvaspseudoelement");_o(o,g),m.content.forEach(function(p){if(p.type===0)g.appendChild(h.createTextNode(p.value));else if(p.type===22){var u=h.createElement("img");u.src=p.value,u.style.opacity="1",g.appendChild(u)}else if(p.type===18){if(p.name==="attr"){var f=p.values.filter(fe);f.length&&g.appendChild(h.createTextNode(e.getAttribute(f[0].value)||""))}else if(p.name==="counter"){var c=p.values.filter(jt),a=c[0],n=c[1];if(a&&fe(a)){var s=B.counters.getCounterValue(a.value),r=n&&fe(n)?no.parse(B.context,n.value):3;g.appendChild(h.createTextNode(_r(s,r,!1)))}}else if(p.name==="counters"){var i=p.values.filter(jt),a=i[0],l=i[1],n=i[2];if(a&&fe(a)){var d=B.counters.getCounterValues(a.value),C=n&&fe(n)?no.parse(B.context,n.value):3,_=l&&l.type===0?l.value:"",b=d.map(function(S){return _r(S,C,!1)}).join(_);g.appendChild(h.createTextNode(b))}}}else if(p.type===20)switch(p.value){case"open-quote":g.appendChild(h.createTextNode(Ml(m.quotes,B.quoteDepth++,!0)));break;case"close-quote":g.appendChild(h.createTextNode(Ml(m.quotes,--B.quoteDepth,!1)));break;default:g.appendChild(h.createTextNode(p.value))}}),g.className=Eo+" "+Fo;var w=y===Er.BEFORE?" "+Eo:" "+Fo;return Ln(t)?t.className.baseValue+=w:t.className+=w,g}}},v.destroy=function(e){return e.parentNode?(e.parentNode.removeChild(e),!0):!1},v}(),Er;(function(v){v[v.BEFORE=0]="BEFORE",v[v.AFTER=1]="AFTER"})(Er||(Er={}));var Mv=function(v,e){var t=v.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=e.width.toString(),t.height=e.height.toString(),t.scrolling="no",t.setAttribute(Bu,"true"),v.body.appendChild(t),t},Hv=function(v){return new Promise(function(e){if(v.complete){e();return}if(!v.src){e();return}v.onload=e,v.onerror=e})},Lv=function(v){return Promise.all([].slice.call(v.images,0).map(Hv))},Dv=function(v){return new Promise(function(e,t){var o=v.contentWindow;if(!o)return t("No window assigned for iframe");var y=o.document;o.onload=v.onload=function(){o.onload=v.onload=null;var B=setInterval(function(){y.body.childNodes.length>0&&y.readyState==="complete"&&(clearInterval(B),e(v))},50)}})},Rv=["all","d","content"],_o=function(v,e){for(var t=v.length-1;t>=0;t--){var o=v.item(t);Rv.indexOf(o)===-1&&e.style.setProperty(o,v.getPropertyValue(o))}return e},kv=function(v){var e="";return v&&(e+="<!DOCTYPE ",v.name&&(e+=v.name),v.internalSubset&&(e+=v.internalSubset),v.publicId&&(e+='"'+v.publicId+'"'),v.systemId&&(e+='"'+v.systemId+'"'),e+=">"),e},Kv=function(v,e,t){v&&v.defaultView&&(e!==v.defaultView.pageXOffset||t!==v.defaultView.pageYOffset)&&v.defaultView.scrollTo(e,t)},Nv=function(v){var e=v[0],t=v[1],o=v[2];e.scrollLeft=t,e.scrollTop=o},Vv=":before",Gv=":after",Eo="___html2canvas___pseudoelement_before",Fo="___html2canvas___pseudoelement_after",bu=`{
|
|
336
|
+
content: "" !important;
|
|
337
|
+
display: none !important;
|
|
338
|
+
}`,jv=function(v){Wv(v,"."+Eo+Vv+bu+`
|
|
339
|
+
.`+Fo+Gv+bu)},Wv=function(v,e){var t=v.ownerDocument;if(t){var o=t.createElement("style");o.textContent=e,v.appendChild(o)}},_u=function(){function v(){}return v.getOrigin=function(e){var t=v._link;return t?(t.href=e,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},v.isSameOrigin=function(e){return v.getOrigin(e)===v._origin},v.setContext=function(e){v._link=e.document.createElement("a"),v._origin=v.getOrigin(e.location.href)},v._origin="about:blank",v}(),zv=function(){function v(e,t){this.context=e,this._options=t,this._cache={}}return v.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)||(Qo(e)||$v(e))&&(this._cache[e]=this.loadImage(e)).catch(function(){}),t},v.prototype.match=function(e){return this._cache[e]},v.prototype.loadImage=function(e){return Re(this,void 0,void 0,function(){var t,o,y,B,A=this;return Pe(this,function(h){switch(h.label){case 0:return t=_u.isSameOrigin(e),o=!So(e)&&this._options.useCORS===!0&&Ie.SUPPORT_CORS_IMAGES&&!t,y=!So(e)&&!t&&!Qo(e)&&typeof this._options.proxy=="string"&&Ie.SUPPORT_CORS_XHR&&!o,!t&&this._options.allowTaint===!1&&!So(e)&&!Qo(e)&&!y&&!o?[2]:(B=e,y?[4,this.proxy(B)]:[3,2]);case 1:B=h.sent(),h.label=2;case 2:return this.context.logger.debug("Added image "+e.substring(0,256)),[4,new Promise(function(m,g){var w=new Image;w.onload=function(){return m(w)},w.onerror=g,(Zv(B)||o)&&(w.crossOrigin="anonymous"),w.src=B,w.complete===!0&&setTimeout(function(){return m(w)},500),A._options.imageTimeout>0&&setTimeout(function(){return g("Timed out ("+A._options.imageTimeout+"ms) loading image")},A._options.imageTimeout)})];case 3:return[2,h.sent()]}})})},v.prototype.has=function(e){return typeof this._cache[e]<"u"},v.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},v.prototype.proxy=function(e){var t=this,o=this._options.proxy;if(!o)throw new Error("No proxy defined");var y=e.substring(0,256);return new Promise(function(B,A){var h=Ie.SUPPORT_RESPONSE_TYPE?"blob":"text",m=new XMLHttpRequest;m.onload=function(){if(m.status===200)if(h==="text")B(m.response);else{var p=new FileReader;p.addEventListener("load",function(){return B(p.result)},!1),p.addEventListener("error",function(u){return A(u)},!1),p.readAsDataURL(m.response)}else A("Failed to proxy resource "+y+" with status code "+m.status)},m.onerror=A;var g=o.indexOf("?")>-1?"&":"?";if(m.open("GET",""+o+g+"url="+encodeURIComponent(e)+"&responseType="+h),h!=="text"&&m instanceof XMLHttpRequest&&(m.responseType=h),t._options.imageTimeout){var w=t._options.imageTimeout;m.timeout=w,m.ontimeout=function(){return A("Timed out ("+w+"ms) proxying "+y)}}m.send()})},v}(),Jv=/^data:image\/svg\+xml/i,Xv=/^data:image\/.*;base64,/i,Yv=/^data:image\/.*/i,$v=function(v){return Ie.SUPPORT_SVG_DRAWING||!qv(v)},So=function(v){return Yv.test(v)},Zv=function(v){return Xv.test(v)},Qo=function(v){return v.substr(0,4)==="blob"},qv=function(v){return v.substr(-3).toLowerCase()==="svg"||Jv.test(v)},q=function(){function v(e,t){this.type=0,this.x=e,this.y=t}return v.prototype.add=function(e,t){return new v(this.x+e,this.y+t)},v}(),Yt=function(v,e,t){return new q(v.x+(e.x-v.x)*t,v.y+(e.y-v.y)*t)},kn=function(){function v(e,t,o,y){this.type=1,this.start=e,this.startControl=t,this.endControl=o,this.end=y}return v.prototype.subdivide=function(e,t){var o=Yt(this.start,this.startControl,e),y=Yt(this.startControl,this.endControl,e),B=Yt(this.endControl,this.end,e),A=Yt(o,y,e),h=Yt(y,B,e),m=Yt(A,h,e);return t?new v(this.start,o,A,m):new v(m,h,B,this.end)},v.prototype.add=function(e,t){return new v(this.start.add(e,t),this.startControl.add(e,t),this.endControl.add(e,t),this.end.add(e,t))},v.prototype.reverse=function(){return new v(this.end,this.endControl,this.startControl,this.start)},v}(),We=function(v){return v.type===1},ey=function(){function v(e){var t=e.styles,o=e.bounds,y=yr(t.borderTopLeftRadius,o.width,o.height),B=y[0],A=y[1],h=yr(t.borderTopRightRadius,o.width,o.height),m=h[0],g=h[1],w=yr(t.borderBottomRightRadius,o.width,o.height),p=w[0],u=w[1],f=yr(t.borderBottomLeftRadius,o.width,o.height),c=f[0],a=f[1],n=[];n.push((B+m)/o.width),n.push((c+p)/o.width),n.push((A+a)/o.height),n.push((g+u)/o.height);var s=Math.max.apply(Math,n);s>1&&(B/=s,A/=s,m/=s,g/=s,p/=s,u/=s,c/=s,a/=s);var r=o.width-m,i=o.height-u,l=o.width-p,d=o.height-a,C=t.borderTopWidth,_=t.borderRightWidth,b=t.borderBottomWidth,E=t.borderLeftWidth,F=pe(t.paddingTop,e.bounds.width),S=pe(t.paddingRight,e.bounds.width),U=pe(t.paddingBottom,e.bounds.width),T=pe(t.paddingLeft,e.bounds.width);this.topLeftBorderDoubleOuterBox=B>0||A>0?ve(o.left+E/3,o.top+C/3,B-E/3,A-C/3,le.TOP_LEFT):new q(o.left+E/3,o.top+C/3),this.topRightBorderDoubleOuterBox=B>0||A>0?ve(o.left+r,o.top+C/3,m-_/3,g-C/3,le.TOP_RIGHT):new q(o.left+o.width-_/3,o.top+C/3),this.bottomRightBorderDoubleOuterBox=p>0||u>0?ve(o.left+l,o.top+i,p-_/3,u-b/3,le.BOTTOM_RIGHT):new q(o.left+o.width-_/3,o.top+o.height-b/3),this.bottomLeftBorderDoubleOuterBox=c>0||a>0?ve(o.left+E/3,o.top+d,c-E/3,a-b/3,le.BOTTOM_LEFT):new q(o.left+E/3,o.top+o.height-b/3),this.topLeftBorderDoubleInnerBox=B>0||A>0?ve(o.left+E*2/3,o.top+C*2/3,B-E*2/3,A-C*2/3,le.TOP_LEFT):new q(o.left+E*2/3,o.top+C*2/3),this.topRightBorderDoubleInnerBox=B>0||A>0?ve(o.left+r,o.top+C*2/3,m-_*2/3,g-C*2/3,le.TOP_RIGHT):new q(o.left+o.width-_*2/3,o.top+C*2/3),this.bottomRightBorderDoubleInnerBox=p>0||u>0?ve(o.left+l,o.top+i,p-_*2/3,u-b*2/3,le.BOTTOM_RIGHT):new q(o.left+o.width-_*2/3,o.top+o.height-b*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||a>0?ve(o.left+E*2/3,o.top+d,c-E*2/3,a-b*2/3,le.BOTTOM_LEFT):new q(o.left+E*2/3,o.top+o.height-b*2/3),this.topLeftBorderStroke=B>0||A>0?ve(o.left+E/2,o.top+C/2,B-E/2,A-C/2,le.TOP_LEFT):new q(o.left+E/2,o.top+C/2),this.topRightBorderStroke=B>0||A>0?ve(o.left+r,o.top+C/2,m-_/2,g-C/2,le.TOP_RIGHT):new q(o.left+o.width-_/2,o.top+C/2),this.bottomRightBorderStroke=p>0||u>0?ve(o.left+l,o.top+i,p-_/2,u-b/2,le.BOTTOM_RIGHT):new q(o.left+o.width-_/2,o.top+o.height-b/2),this.bottomLeftBorderStroke=c>0||a>0?ve(o.left+E/2,o.top+d,c-E/2,a-b/2,le.BOTTOM_LEFT):new q(o.left+E/2,o.top+o.height-b/2),this.topLeftBorderBox=B>0||A>0?ve(o.left,o.top,B,A,le.TOP_LEFT):new q(o.left,o.top),this.topRightBorderBox=m>0||g>0?ve(o.left+r,o.top,m,g,le.TOP_RIGHT):new q(o.left+o.width,o.top),this.bottomRightBorderBox=p>0||u>0?ve(o.left+l,o.top+i,p,u,le.BOTTOM_RIGHT):new q(o.left+o.width,o.top+o.height),this.bottomLeftBorderBox=c>0||a>0?ve(o.left,o.top+d,c,a,le.BOTTOM_LEFT):new q(o.left,o.top+o.height),this.topLeftPaddingBox=B>0||A>0?ve(o.left+E,o.top+C,Math.max(0,B-E),Math.max(0,A-C),le.TOP_LEFT):new q(o.left+E,o.top+C),this.topRightPaddingBox=m>0||g>0?ve(o.left+Math.min(r,o.width-_),o.top+C,r>o.width+_?0:Math.max(0,m-_),Math.max(0,g-C),le.TOP_RIGHT):new q(o.left+o.width-_,o.top+C),this.bottomRightPaddingBox=p>0||u>0?ve(o.left+Math.min(l,o.width-E),o.top+Math.min(i,o.height-b),Math.max(0,p-_),Math.max(0,u-b),le.BOTTOM_RIGHT):new q(o.left+o.width-_,o.top+o.height-b),this.bottomLeftPaddingBox=c>0||a>0?ve(o.left+E,o.top+Math.min(d,o.height-b),Math.max(0,c-E),Math.max(0,a-b),le.BOTTOM_LEFT):new q(o.left+E,o.top+o.height-b),this.topLeftContentBox=B>0||A>0?ve(o.left+E+T,o.top+C+F,Math.max(0,B-(E+T)),Math.max(0,A-(C+F)),le.TOP_LEFT):new q(o.left+E+T,o.top+C+F),this.topRightContentBox=m>0||g>0?ve(o.left+Math.min(r,o.width+E+T),o.top+C+F,r>o.width+E+T?0:m-E+T,g-(C+F),le.TOP_RIGHT):new q(o.left+o.width-(_+S),o.top+C+F),this.bottomRightContentBox=p>0||u>0?ve(o.left+Math.min(l,o.width-(E+T)),o.top+Math.min(i,o.height+C+F),Math.max(0,p-(_+S)),u-(b+U),le.BOTTOM_RIGHT):new q(o.left+o.width-(_+S),o.top+o.height-(b+U)),this.bottomLeftContentBox=c>0||a>0?ve(o.left+E+T,o.top+d,Math.max(0,c-(E+T)),a-(b+U),le.BOTTOM_LEFT):new q(o.left+E+T,o.top+o.height-(b+U))}return v}(),le;(function(v){v[v.TOP_LEFT=0]="TOP_LEFT",v[v.TOP_RIGHT=1]="TOP_RIGHT",v[v.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",v[v.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(le||(le={}));var ve=function(v,e,t,o,y){var B=4*((Math.sqrt(2)-1)/3),A=t*B,h=o*B,m=v+t,g=e+o;switch(y){case le.TOP_LEFT:return new kn(new q(v,g),new q(v,g-h),new q(m-A,e),new q(m,e));case le.TOP_RIGHT:return new kn(new q(v,e),new q(v+A,e),new q(m,g-h),new q(m,g));case le.BOTTOM_RIGHT:return new kn(new q(m,e),new q(m,e+h),new q(v+A,g),new q(v,g));case le.BOTTOM_LEFT:default:return new kn(new q(m,g),new q(m-A,g),new q(v,e+h),new q(v,e))}},Kn=function(v){return[v.topLeftBorderBox,v.topRightBorderBox,v.bottomRightBorderBox,v.bottomLeftBorderBox]},ty=function(v){return[v.topLeftContentBox,v.topRightContentBox,v.bottomRightContentBox,v.bottomLeftContentBox]},Nn=function(v){return[v.topLeftPaddingBox,v.topRightPaddingBox,v.bottomRightPaddingBox,v.bottomLeftPaddingBox]},ry=function(){function v(e,t,o){this.offsetX=e,this.offsetY=t,this.matrix=o,this.type=0,this.target=6}return v}(),Vn=function(){function v(e,t){this.path=e,this.target=t,this.type=1}return v}(),Ay=function(){function v(e){this.opacity=e,this.type=2,this.target=6}return v}(),ny=function(v){return v.type===0},Eu=function(v){return v.type===1},iy=function(v){return v.type===2},Fu=function(v,e){return v.length===e.length?v.some(function(t,o){return t===e[o]}):!1},oy=function(v,e,t,o,y){return v.map(function(B,A){switch(A){case 0:return B.add(e,t);case 1:return B.add(e+o,t);case 2:return B.add(e+o,t+y);case 3:return B.add(e,t+y)}return B})},Su=function(){function v(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return v}(),Qu=function(){function v(e,t){if(this.container=e,this.parent=t,this.effects=[],this.curves=new ey(this.container),this.container.styles.opacity<1&&this.effects.push(new Ay(this.container.styles.opacity)),this.container.styles.transform!==null){var o=this.container.bounds.left+this.container.styles.transformOrigin[0].number,y=this.container.bounds.top+this.container.styles.transformOrigin[1].number,B=this.container.styles.transform;this.effects.push(new ry(o,y,B))}if(this.container.styles.overflowX!==0){var A=Kn(this.curves),h=Nn(this.curves);Fu(A,h)?this.effects.push(new Vn(A,6)):(this.effects.push(new Vn(A,2)),this.effects.push(new Vn(h,4)))}}return v.prototype.getEffects=function(e){for(var t=[2,3].indexOf(this.container.styles.position)===-1,o=this.parent,y=this.effects.slice(0);o;){var B=o.effects.filter(function(m){return!Eu(m)});if(t||o.container.styles.position!==0||!o.parent){if(y.unshift.apply(y,B),t=[2,3].indexOf(o.container.styles.position)===-1,o.container.styles.overflowX!==0){var A=Kn(o.curves),h=Nn(o.curves);Fu(A,h)||y.unshift(new Vn(h,6))}}else y.unshift.apply(y,B);o=o.parent}return y.filter(function(m){return Se(m.target,e)})},v}(),Uo=function(v,e,t,o){v.container.elements.forEach(function(y){var B=Se(y.flags,4),A=Se(y.flags,2),h=new Qu(y,v);Se(y.styles.display,2048)&&o.push(h);var m=Se(y.flags,8)?[]:o;if(B||A){var g=B||y.styles.isPositioned()?t:e,w=new Su(h);if(y.styles.isPositioned()||y.styles.opacity<1||y.styles.isTransformed()){var p=y.styles.zIndex.order;if(p<0){var u=0;g.negativeZIndex.some(function(c,a){return p>c.element.container.styles.zIndex.order?(u=a,!1):u>0}),g.negativeZIndex.splice(u,0,w)}else if(p>0){var f=0;g.positiveZIndex.some(function(c,a){return p>=c.element.container.styles.zIndex.order?(f=a+1,!1):f>0}),g.positiveZIndex.splice(f,0,w)}else g.zeroOrAutoZIndexOrTransformedOrOpacity.push(w)}else y.styles.isFloating()?g.nonPositionedFloats.push(w):g.nonPositionedInlineLevel.push(w);Uo(h,w,B?w:t,m)}else y.styles.isInlineLevel()?e.inlineLevel.push(h):e.nonInlineLevel.push(h),Uo(h,e,t,m);Se(y.flags,8)&&Uu(y,m)})},Uu=function(v,e){for(var t=v instanceof yo?v.start:1,o=v instanceof yo?v.reversed:!1,y=0;y<e.length;y++){var B=e[y];B.container instanceof eu&&typeof B.container.value=="number"&&B.container.value!==0&&(t=B.container.value),B.listValue=_r(t,B.container.styles.listStyleType,!0),t+=o?-1:1}},sy=function(v){var e=new Qu(v,null),t=new Su(e),o=[];return Uo(e,t,t,o),Uu(e.container,o),t},Tu=function(v,e){switch(e){case 0:return ze(v.topLeftBorderBox,v.topLeftPaddingBox,v.topRightBorderBox,v.topRightPaddingBox);case 1:return ze(v.topRightBorderBox,v.topRightPaddingBox,v.bottomRightBorderBox,v.bottomRightPaddingBox);case 2:return ze(v.bottomRightBorderBox,v.bottomRightPaddingBox,v.bottomLeftBorderBox,v.bottomLeftPaddingBox);case 3:default:return ze(v.bottomLeftBorderBox,v.bottomLeftPaddingBox,v.topLeftBorderBox,v.topLeftPaddingBox)}},ay=function(v,e){switch(e){case 0:return ze(v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox,v.topRightBorderBox,v.topRightBorderDoubleOuterBox);case 1:return ze(v.topRightBorderBox,v.topRightBorderDoubleOuterBox,v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox);case 2:return ze(v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox,v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox);case 3:default:return ze(v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox,v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox)}},cy=function(v,e){switch(e){case 0:return ze(v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox,v.topRightBorderDoubleInnerBox,v.topRightPaddingBox);case 1:return ze(v.topRightBorderDoubleInnerBox,v.topRightPaddingBox,v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox);case 2:return ze(v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox,v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox);case 3:default:return ze(v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox,v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox)}},ly=function(v,e){switch(e){case 0:return Gn(v.topLeftBorderStroke,v.topRightBorderStroke);case 1:return Gn(v.topRightBorderStroke,v.bottomRightBorderStroke);case 2:return Gn(v.bottomRightBorderStroke,v.bottomLeftBorderStroke);case 3:default:return Gn(v.bottomLeftBorderStroke,v.topLeftBorderStroke)}},Gn=function(v,e){var t=[];return We(v)?t.push(v.subdivide(.5,!1)):t.push(v),We(e)?t.push(e.subdivide(.5,!0)):t.push(e),t},ze=function(v,e,t,o){var y=[];return We(v)?y.push(v.subdivide(.5,!1)):y.push(v),We(t)?y.push(t.subdivide(.5,!0)):y.push(t),We(o)?y.push(o.subdivide(.5,!0).reverse()):y.push(o),We(e)?y.push(e.subdivide(.5,!1).reverse()):y.push(e),y},Iu=function(v){var e=v.bounds,t=v.styles;return e.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},jn=function(v){var e=v.styles,t=v.bounds,o=pe(e.paddingLeft,t.width),y=pe(e.paddingRight,t.width),B=pe(e.paddingTop,t.width),A=pe(e.paddingBottom,t.width);return t.add(o+e.borderLeftWidth,B+e.borderTopWidth,-(e.borderRightWidth+e.borderLeftWidth+o+y),-(e.borderTopWidth+e.borderBottomWidth+B+A))},uy=function(v,e){return v===0?e.bounds:v===2?jn(e):Iu(e)},dy=function(v,e){return v===0?e.bounds:v===2?jn(e):Iu(e)},To=function(v,e,t){var o=uy(Zt(v.styles.backgroundOrigin,e),v),y=dy(Zt(v.styles.backgroundClip,e),v),B=fy(Zt(v.styles.backgroundSize,e),t,o),A=B[0],h=B[1],m=yr(Zt(v.styles.backgroundPosition,e),o.width-A,o.height-h),g=hy(Zt(v.styles.backgroundRepeat,e),m,B,o,y),w=Math.round(o.left+m[0]),p=Math.round(o.top+m[1]);return[g,w,p,A,h]},$t=function(v){return fe(v)&&v.value===Wt.AUTO},Wn=function(v){return typeof v=="number"},fy=function(v,e,t){var o=e[0],y=e[1],B=e[2],A=v[0],h=v[1];if(!A)return[0,0];if(Ee(A)&&h&&Ee(h))return[pe(A,t.width),pe(h,t.height)];var m=Wn(B);if(fe(A)&&(A.value===Wt.CONTAIN||A.value===Wt.COVER)){if(Wn(B)){var g=t.width/t.height;return g<B!=(A.value===Wt.COVER)?[t.width,t.width/B]:[t.height*B,t.height]}return[t.width,t.height]}var w=Wn(o),p=Wn(y),u=w||p;if($t(A)&&(!h||$t(h))){if(w&&p)return[o,y];if(!m&&!u)return[t.width,t.height];if(u&&m){var f=w?o:y*B,c=p?y:o/B;return[f,c]}var a=w?o:t.width,n=p?y:t.height;return[a,n]}if(m){var s=0,r=0;return Ee(A)?s=pe(A,t.width):Ee(h)&&(r=pe(h,t.height)),$t(A)?s=r*B:(!h||$t(h))&&(r=s/B),[s,r]}var i=null,l=null;if(Ee(A)?i=pe(A,t.width):h&&Ee(h)&&(l=pe(h,t.height)),i!==null&&(!h||$t(h))&&(l=w&&p?i/o*y:t.height),l!==null&&$t(A)&&(i=w&&p?l/y*o:t.width),i!==null&&l!==null)return[i,l];throw new Error("Unable to calculate background-size for element")},Zt=function(v,e){var t=v[e];return typeof t>"u"?v[0]:t},hy=function(v,e,t,o,y){var B=e[0],A=e[1],h=t[0],m=t[1];switch(v){case 2:return[new q(Math.round(o.left),Math.round(o.top+A)),new q(Math.round(o.left+o.width),Math.round(o.top+A)),new q(Math.round(o.left+o.width),Math.round(m+o.top+A)),new q(Math.round(o.left),Math.round(m+o.top+A))];case 3:return[new q(Math.round(o.left+B),Math.round(o.top)),new q(Math.round(o.left+B+h),Math.round(o.top)),new q(Math.round(o.left+B+h),Math.round(o.height+o.top)),new q(Math.round(o.left+B),Math.round(o.height+o.top))];case 1:return[new q(Math.round(o.left+B),Math.round(o.top+A)),new q(Math.round(o.left+B+h),Math.round(o.top+A)),new q(Math.round(o.left+B+h),Math.round(o.top+A+m)),new q(Math.round(o.left+B),Math.round(o.top+A+m))];default:return[new q(Math.round(y.left),Math.round(y.top)),new q(Math.round(y.left+y.width),Math.round(y.top)),new q(Math.round(y.left+y.width),Math.round(y.height+y.top)),new q(Math.round(y.left),Math.round(y.height+y.top))]}},py="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Pu="Hidden Text",gy=function(){function v(e){this._data={},this._document=e}return v.prototype.parseMetrics=function(e,t){var o=this._document.createElement("div"),y=this._document.createElement("img"),B=this._document.createElement("span"),A=this._document.body;o.style.visibility="hidden",o.style.fontFamily=e,o.style.fontSize=t,o.style.margin="0",o.style.padding="0",o.style.whiteSpace="nowrap",A.appendChild(o),y.src=py,y.width=1,y.height=1,y.style.margin="0",y.style.padding="0",y.style.verticalAlign="baseline",B.style.fontFamily=e,B.style.fontSize=t,B.style.margin="0",B.style.padding="0",B.appendChild(this._document.createTextNode(Pu)),o.appendChild(B),o.appendChild(y);var h=y.offsetTop-B.offsetTop+2;o.removeChild(B),o.appendChild(this._document.createTextNode(Pu)),o.style.lineHeight="normal",y.style.verticalAlign="super";var m=y.offsetTop-o.offsetTop+2;return A.removeChild(o),{baseline:h,middle:m}},v.prototype.getMetrics=function(e,t){var o=e+" "+t;return typeof this._data[o]>"u"&&(this._data[o]=this.parseMetrics(e,t)),this._data[o]},v}(),xu=function(){function v(e,t){this.context=e,this.options=t}return v}(),vy=1e4,yy=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y._activeEffects=[],y.canvas=o.canvas?o.canvas:document.createElement("canvas"),y.ctx=y.canvas.getContext("2d"),o.canvas||(y.canvas.width=Math.floor(o.width*o.scale),y.canvas.height=Math.floor(o.height*o.scale),y.canvas.style.width=o.width+"px",y.canvas.style.height=o.height+"px"),y.fontMetrics=new gy(document),y.ctx.scale(y.options.scale,y.options.scale),y.ctx.translate(-o.x,-o.y),y.ctx.textBaseline="bottom",y._activeEffects=[],y.context.logger.debug("Canvas renderer initialized ("+o.width+"x"+o.height+") with scale "+o.scale),y}return e.prototype.applyEffects=function(t){for(var o=this;this._activeEffects.length;)this.popEffect();t.forEach(function(y){return o.applyEffect(y)})},e.prototype.applyEffect=function(t){this.ctx.save(),iy(t)&&(this.ctx.globalAlpha=t.opacity),ny(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),Eu(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(t){return Re(this,void 0,void 0,function(){var o;return Pe(this,function(y){switch(y.label){case 0:return o=t.element.container.styles,o.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:y.sent(),y.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(t){return Re(this,void 0,void 0,function(){return Pe(this,function(o){switch(o.label){case 0:if(Se(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return o.sent(),[4,this.renderNodeContent(t)];case 2:o.sent(),o.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(t,o,y){var B=this;if(o===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+y);else{var A=vo(t.text);A.reduce(function(h,m){return B.ctx.fillText(m,h,t.bounds.top+y),h+B.ctx.measureText(m).width},t.bounds.left)}},e.prototype.createFontStyle=function(t){var o=t.fontVariant.filter(function(A){return A==="normal"||A==="small-caps"}).join(""),y=by(t.fontFamily).join(", "),B=vr(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,o,t.fontWeight,B,y].join(" "),y,B]},e.prototype.renderTextNode=function(t,o){return Re(this,void 0,void 0,function(){var y,B,A,h,m,g,w,p,u=this;return Pe(this,function(f){return y=this.createFontStyle(o),B=y[0],A=y[1],h=y[2],this.ctx.font=B,this.ctx.direction=o.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",m=this.fontMetrics.getMetrics(A,h),g=m.baseline,w=m.middle,p=o.paintOrder,t.textBounds.forEach(function(c){p.forEach(function(a){switch(a){case 0:u.ctx.fillStyle=Qe(o.color),u.renderTextWithLetterSpacing(c,o.letterSpacing,g);var n=o.textShadow;n.length&&c.text.trim().length&&(n.slice(0).reverse().forEach(function(s){u.ctx.shadowColor=Qe(s.color),u.ctx.shadowOffsetX=s.offsetX.number*u.options.scale,u.ctx.shadowOffsetY=s.offsetY.number*u.options.scale,u.ctx.shadowBlur=s.blur.number,u.renderTextWithLetterSpacing(c,o.letterSpacing,g)}),u.ctx.shadowColor="",u.ctx.shadowOffsetX=0,u.ctx.shadowOffsetY=0,u.ctx.shadowBlur=0),o.textDecorationLine.length&&(u.ctx.fillStyle=Qe(o.textDecorationColor||o.color),o.textDecorationLine.forEach(function(s){switch(s){case 1:u.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top+g),c.bounds.width,1);break;case 2:u.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top),c.bounds.width,1);break;case 3:u.ctx.fillRect(c.bounds.left,Math.ceil(c.bounds.top+w),c.bounds.width,1);break}}));break;case 1:o.webkitTextStrokeWidth&&c.text.trim().length&&(u.ctx.strokeStyle=Qe(o.webkitTextStrokeColor),u.ctx.lineWidth=o.webkitTextStrokeWidth,u.ctx.lineJoin=window.chrome?"miter":"round",u.ctx.strokeText(c.text,c.bounds.left,c.bounds.top+g)),u.ctx.strokeStyle="",u.ctx.lineWidth=0,u.ctx.lineJoin="miter";break}})}),[2]})})},e.prototype.renderReplacedElement=function(t,o,y){if(y&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var B=jn(t),A=Nn(o);this.path(A),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(y,0,0,t.intrinsicWidth,t.intrinsicHeight,B.left,B.top,B.width,B.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m,r,r,g,w,p,u,l,f,c,d,a,n,s,r,i,l,d;return Pe(this,function(C){switch(C.label){case 0:this.applyEffects(t.getEffects(4)),o=t.container,y=t.curves,B=o.styles,A=0,h=o.textNodes,C.label=1;case 1:return A<h.length?(m=h[A],[4,this.renderTextNode(m,B)]):[3,4];case 2:C.sent(),C.label=3;case 3:return A++,[3,1];case 4:if(!(o instanceof $l))return[3,8];C.label=5;case 5:return C.trys.push([5,7,,8]),[4,this.context.cache.match(o.src)];case 6:return r=C.sent(),this.renderReplacedElement(o,y,r),[3,8];case 7:return C.sent(),this.context.logger.error("Error loading image "+o.src),[3,8];case 8:if(o instanceof Zl&&this.renderReplacedElement(o,y,o.canvas),!(o instanceof ql))return[3,12];C.label=9;case 9:return C.trys.push([9,11,,12]),[4,this.context.cache.match(o.svg)];case 10:return r=C.sent(),this.renderReplacedElement(o,y,r),[3,12];case 11:return C.sent(),this.context.logger.error("Error loading svg "+o.svg.substring(0,255)),[3,12];case 12:return o instanceof nu&&o.tree?(g=new e(this.context,{scale:this.options.scale,backgroundColor:o.backgroundColor,x:0,y:0,width:o.width,height:o.height}),[4,g.render(o.tree)]):[3,14];case 13:w=C.sent(),o.width&&o.height&&this.ctx.drawImage(w,0,0,o.width,o.height,o.bounds.left,o.bounds.top,o.bounds.width,o.bounds.height),C.label=14;case 14:if(o instanceof mo&&(p=Math.min(o.bounds.width,o.bounds.height),o.type===On?o.checked&&(this.ctx.save(),this.path([new q(o.bounds.left+p*.39363,o.bounds.top+p*.79),new q(o.bounds.left+p*.16,o.bounds.top+p*.5549),new q(o.bounds.left+p*.27347,o.bounds.top+p*.44071),new q(o.bounds.left+p*.39694,o.bounds.top+p*.5649),new q(o.bounds.left+p*.72983,o.bounds.top+p*.23),new q(o.bounds.left+p*.84,o.bounds.top+p*.34085),new q(o.bounds.left+p*.39363,o.bounds.top+p*.79)]),this.ctx.fillStyle=Qe(tu),this.ctx.fill(),this.ctx.restore()):o.type===Mn&&o.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(o.bounds.left+p/2,o.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=Qe(tu),this.ctx.fill(),this.ctx.restore())),my(o)&&o.value.length){switch(u=this.createFontStyle(B),l=u[0],f=u[1],c=this.fontMetrics.getMetrics(l,f).baseline,this.ctx.font=l,this.ctx.fillStyle=Qe(B.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=By(o.styles.textAlign),d=jn(o),a=0,o.styles.textAlign){case 1:a+=d.width/2;break;case 2:a+=d.width;break}n=d.add(a,0,0,-d.height/2+1),this.ctx.save(),this.path([new q(d.left,d.top),new q(d.left+d.width,d.top),new q(d.left+d.width,d.top+d.height),new q(d.left,d.top+d.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Cr(o.value,n),B.letterSpacing,c),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Se(o.styles.display,2048))return[3,20];if(o.styles.listStyleImage===null)return[3,19];if(s=o.styles.listStyleImage,s.type!==0)return[3,18];r=void 0,i=s.url,C.label=15;case 15:return C.trys.push([15,17,,18]),[4,this.context.cache.match(i)];case 16:return r=C.sent(),this.ctx.drawImage(r,o.bounds.left-(r.width+10),o.bounds.top),[3,18];case 17:return C.sent(),this.context.logger.error("Error loading list-style-image "+i),[3,18];case 18:return[3,20];case 19:t.listValue&&o.styles.listStyleType!==-1&&(l=this.createFontStyle(B)[0],this.ctx.font=l,this.ctx.fillStyle=Qe(B.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",d=new ot(o.bounds.left,o.bounds.top+pe(o.styles.paddingTop,o.bounds.width),o.bounds.width,Pl(B.lineHeight,B.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Cr(t.listValue,d),B.letterSpacing,Pl(B.lineHeight,B.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),C.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(t){return Re(this,void 0,void 0,function(){var o,y,s,B,A,s,h,m,s,g,w,s,p,u,s,f,c,s,a,n,s;return Pe(this,function(r){switch(r.label){case 0:if(Se(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:r.sent(),o=0,y=t.negativeZIndex,r.label=2;case 2:return o<y.length?(s=y[o],[4,this.renderStack(s)]):[3,5];case 3:r.sent(),r.label=4;case 4:return o++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:r.sent(),B=0,A=t.nonInlineLevel,r.label=7;case 7:return B<A.length?(s=A[B],[4,this.renderNode(s)]):[3,10];case 8:r.sent(),r.label=9;case 9:return B++,[3,7];case 10:h=0,m=t.nonPositionedFloats,r.label=11;case 11:return h<m.length?(s=m[h],[4,this.renderStack(s)]):[3,14];case 12:r.sent(),r.label=13;case 13:return h++,[3,11];case 14:g=0,w=t.nonPositionedInlineLevel,r.label=15;case 15:return g<w.length?(s=w[g],[4,this.renderStack(s)]):[3,18];case 16:r.sent(),r.label=17;case 17:return g++,[3,15];case 18:p=0,u=t.inlineLevel,r.label=19;case 19:return p<u.length?(s=u[p],[4,this.renderNode(s)]):[3,22];case 20:r.sent(),r.label=21;case 21:return p++,[3,19];case 22:f=0,c=t.zeroOrAutoZIndexOrTransformedOrOpacity,r.label=23;case 23:return f<c.length?(s=c[f],[4,this.renderStack(s)]):[3,26];case 24:r.sent(),r.label=25;case 25:return f++,[3,23];case 26:a=0,n=t.positiveZIndex,r.label=27;case 27:return a<n.length?(s=n[a],[4,this.renderStack(s)]):[3,30];case 28:r.sent(),r.label=29;case 29:return a++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},e.prototype.formatPath=function(t){var o=this;t.forEach(function(y,B){var A=We(y)?y.start:y;B===0?o.ctx.moveTo(A.x,A.y):o.ctx.lineTo(A.x,A.y),We(y)&&o.ctx.bezierCurveTo(y.startControl.x,y.startControl.y,y.endControl.x,y.endControl.y,y.end.x,y.end.y)})},e.prototype.renderRepeat=function(t,o,y,B){this.path(t),this.ctx.fillStyle=o,this.ctx.translate(y,B),this.ctx.fill(),this.ctx.translate(-y,-B)},e.prototype.resizeImage=function(t,o,y){var B;if(t.width===o&&t.height===y)return t;var A=(B=this.canvas.ownerDocument)!==null&&B!==void 0?B:document,h=A.createElement("canvas");h.width=Math.max(1,o),h.height=Math.max(1,y);var m=h.getContext("2d");return m.drawImage(t,0,0,t.width,t.height,0,0,o,y),h},e.prototype.renderBackgroundImage=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m;return Pe(this,function(g){switch(g.label){case 0:o=t.styles.backgroundImage.length-1,y=function(w){var p,u,f,F,I,M,T,Q,b,c,F,I,M,T,Q,a,n,s,r,i,l,d,C,_,b,E,F,S,U,T,Q,P,I,M,K,W,L,O,H,k,G,D;return Pe(this,function(R){switch(R.label){case 0:if(w.type!==0)return[3,5];p=void 0,u=w.url,R.label=1;case 1:return R.trys.push([1,3,,4]),[4,B.context.cache.match(u)];case 2:return p=R.sent(),[3,4];case 3:return R.sent(),B.context.logger.error("Error loading background-image "+u),[3,4];case 4:return p&&(f=To(t,o,[p.width,p.height,p.width/p.height]),F=f[0],I=f[1],M=f[2],T=f[3],Q=f[4],b=B.ctx.createPattern(B.resizeImage(p,T,Q),"repeat"),B.renderRepeat(F,b,I,M)),[3,6];case 5:np(w)?(c=To(t,o,[null,null,null]),F=c[0],I=c[1],M=c[2],T=c[3],Q=c[4],a=qh(w.angle,T,Q),n=a[0],s=a[1],r=a[2],i=a[3],l=a[4],d=document.createElement("canvas"),d.width=T,d.height=Q,C=d.getContext("2d"),_=C.createLinearGradient(s,i,r,l),Bl(w.stops,n).forEach(function(N){return _.addColorStop(N.stop,Qe(N.color))}),C.fillStyle=_,C.fillRect(0,0,T,Q),T>0&&Q>0&&(b=B.ctx.createPattern(d,"repeat"),B.renderRepeat(F,b,I,M))):ip(w)&&(E=To(t,o,[null,null,null]),F=E[0],S=E[1],U=E[2],T=E[3],Q=E[4],P=w.position.length===0?[to]:w.position,I=pe(P[0],T),M=pe(P[P.length-1],Q),K=ep(w,I,M,T,Q),W=K[0],L=K[1],W>0&&L>0&&(O=B.ctx.createRadialGradient(S+I,U+M,0,S+I,U+M,W),Bl(w.stops,W*2).forEach(function(N){return O.addColorStop(N.stop,Qe(N.color))}),B.path(F),B.ctx.fillStyle=O,W!==L?(H=t.bounds.left+.5*t.bounds.width,k=t.bounds.top+.5*t.bounds.height,G=L/W,D=1/G,B.ctx.save(),B.ctx.translate(H,k),B.ctx.transform(1,0,0,G,0,0),B.ctx.translate(-H,-k),B.ctx.fillRect(S,D*(U-k)+k,T,Q*D),B.ctx.restore()):B.ctx.fill())),R.label=6;case 6:return o--,[2]}})},B=this,A=0,h=t.styles.backgroundImage.slice(0).reverse(),g.label=1;case 1:return A<h.length?(m=h[A],[5,y(m)]):[3,4];case 2:g.sent(),g.label=3;case 3:return A++,[3,1];case 4:return[2]}})})},e.prototype.renderSolidBorder=function(t,o,y){return Re(this,void 0,void 0,function(){return Pe(this,function(B){return this.path(Tu(y,o)),this.ctx.fillStyle=Qe(t),this.ctx.fill(),[2]})})},e.prototype.renderDoubleBorder=function(t,o,y,B){return Re(this,void 0,void 0,function(){var A,h;return Pe(this,function(m){switch(m.label){case 0:return o<3?[4,this.renderSolidBorder(t,y,B)]:[3,2];case 1:return m.sent(),[2];case 2:return A=ay(B,y),this.path(A),this.ctx.fillStyle=Qe(t),this.ctx.fill(),h=cy(B,y),this.path(h),this.ctx.fill(),[2]}})})},e.prototype.renderNodeBackgroundAndBorders=function(t){return Re(this,void 0,void 0,function(){var o,y,B,A,h,m,g,w,p=this;return Pe(this,function(u){switch(u.label){case 0:return this.applyEffects(t.getEffects(2)),o=t.container.styles,y=!gt(o.backgroundColor)||o.backgroundImage.length,B=[{style:o.borderTopStyle,color:o.borderTopColor,width:o.borderTopWidth},{style:o.borderRightStyle,color:o.borderRightColor,width:o.borderRightWidth},{style:o.borderBottomStyle,color:o.borderBottomColor,width:o.borderBottomWidth},{style:o.borderLeftStyle,color:o.borderLeftColor,width:o.borderLeftWidth}],A=wy(Zt(o.backgroundClip,0),t.curves),y||o.boxShadow.length?(this.ctx.save(),this.path(A),this.ctx.clip(),gt(o.backgroundColor)||(this.ctx.fillStyle=Qe(o.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:u.sent(),this.ctx.restore(),o.boxShadow.slice(0).reverse().forEach(function(f){p.ctx.save();var c=Kn(t.curves),a=f.inset?0:vy,n=oy(c,-a+(f.inset?1:-1)*f.spread.number,(f.inset?1:-1)*f.spread.number,f.spread.number*(f.inset?-2:2),f.spread.number*(f.inset?-2:2));f.inset?(p.path(c),p.ctx.clip(),p.mask(n)):(p.mask(c),p.ctx.clip(),p.path(n)),p.ctx.shadowOffsetX=f.offsetX.number+a,p.ctx.shadowOffsetY=f.offsetY.number,p.ctx.shadowColor=Qe(f.color),p.ctx.shadowBlur=f.blur.number,p.ctx.fillStyle=f.inset?Qe(f.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),u.label=2;case 2:h=0,m=0,g=B,u.label=3;case 3:return m<g.length?(w=g[m],w.style!==0&&!gt(w.color)&&w.width>0?w.style!==2?[3,5]:[4,this.renderDashedDottedBorder(w.color,w.width,h,t.curves,2)]:[3,11]):[3,13];case 4:return u.sent(),[3,11];case 5:return w.style!==3?[3,7]:[4,this.renderDashedDottedBorder(w.color,w.width,h,t.curves,3)];case 6:return u.sent(),[3,11];case 7:return w.style!==4?[3,9]:[4,this.renderDoubleBorder(w.color,w.width,h,t.curves)];case 8:return u.sent(),[3,11];case 9:return[4,this.renderSolidBorder(w.color,h,t.curves)];case 10:u.sent(),u.label=11;case 11:h++,u.label=12;case 12:return m++,[3,3];case 13:return[2]}})})},e.prototype.renderDashedDottedBorder=function(t,o,y,B,A){return Re(this,void 0,void 0,function(){var h,m,g,w,p,u,f,c,a,n,s,r,i,l,d,C,d,C;return Pe(this,function(_){return this.ctx.save(),h=ly(B,y),m=Tu(B,y),A===2&&(this.path(m),this.ctx.clip()),We(m[0])?(g=m[0].start.x,w=m[0].start.y):(g=m[0].x,w=m[0].y),We(m[1])?(p=m[1].end.x,u=m[1].end.y):(p=m[1].x,u=m[1].y),y===0||y===2?f=Math.abs(g-p):f=Math.abs(w-u),this.ctx.beginPath(),A===3?this.formatPath(h):this.formatPath(m.slice(0,2)),c=o<3?o*3:o*2,a=o<3?o*2:o,A===3&&(c=o,a=o),n=!0,f<=c*2?n=!1:f<=c*2+a?(s=f/(2*c+a),c*=s,a*=s):(r=Math.floor((f+a)/(c+a)),i=(f-r*c)/(r-1),l=(f-(r+1)*c)/r,a=l<=0||Math.abs(a-i)<Math.abs(a-l)?i:l),n&&(A===3?this.ctx.setLineDash([0,c+a]):this.ctx.setLineDash([c,a])),A===3?(this.ctx.lineCap="round",this.ctx.lineWidth=o):this.ctx.lineWidth=o*2+1.1,this.ctx.strokeStyle=Qe(t),this.ctx.stroke(),this.ctx.setLineDash([]),A===2&&(We(m[0])&&(d=m[3],C=m[0],this.ctx.beginPath(),this.formatPath([new q(d.end.x,d.end.y),new q(C.start.x,C.start.y)]),this.ctx.stroke()),We(m[1])&&(d=m[1],C=m[2],this.ctx.beginPath(),this.formatPath([new q(d.end.x,d.end.y),new q(C.start.x,C.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},e.prototype.render=function(t){return Re(this,void 0,void 0,function(){var o;return Pe(this,function(y){switch(y.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Qe(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),o=sy(t),[4,this.renderStack(o)];case 1:return y.sent(),this.applyEffects([]),[2,this.canvas]}})})},e}(xu),my=function(v){return v instanceof Au||v instanceof ru?!0:v instanceof mo&&v.type!==Mn&&v.type!==On},wy=function(v,e){switch(v){case 0:return Kn(e);case 2:return ty(e);case 1:default:return Nn(e)}},By=function(v){switch(v){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Cy=["-apple-system","system-ui"],by=function(v){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?v.filter(function(e){return Cy.indexOf(e)===-1}):v},_y=function(v){Xe(e,v);function e(t,o){var y=v.call(this,t,o)||this;return y.canvas=o.canvas?o.canvas:document.createElement("canvas"),y.ctx=y.canvas.getContext("2d"),y.options=o,y.canvas.width=Math.floor(o.width*o.scale),y.canvas.height=Math.floor(o.height*o.scale),y.canvas.style.width=o.width+"px",y.canvas.style.height=o.height+"px",y.ctx.scale(y.options.scale,y.options.scale),y.ctx.translate(-o.x,-o.y),y.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+o.width+"x"+o.height+" at "+o.x+","+o.y+") with scale "+o.scale),y}return e.prototype.render=function(t){return Re(this,void 0,void 0,function(){var o,y;return Pe(this,function(B){switch(B.label){case 0:return o=go(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,Ey(o)];case 1:return y=B.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Qe(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(y,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(xu),Ey=function(v){return new Promise(function(e,t){var o=new Image;o.onload=function(){e(o)},o.onerror=t,o.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(v))})},Fy=function(){function v(e){var t=e.id,o=e.enabled;this.id=t,this.enabled=o,this.start=Date.now()}return v.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,qA([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.prototype.getTime=function(){return Date.now()-this.start},v.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,qA([this.id,this.getTime()+"ms"],e))},v.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,qA([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,qA([this.id,this.getTime()+"ms"],e)):this.info.apply(this,e))},v.instances={},v}(),Sy=function(){function v(e,t){var o;this.windowBounds=t,this.instanceName="#"+v.instanceCount++,this.logger=new Fy({id:this.instanceName,enabled:e.logging}),this.cache=(o=e.cache)!==null&&o!==void 0?o:new zv(this,e)}return v.instanceCount=1,v}(),Qy=function(v,e){return e===void 0&&(e={}),Uy(v,e)};typeof window<"u"&&_u.setContext(window);var Uy=function(v,e){return Re(void 0,void 0,void 0,function(){var t,o,y,B,A,h,m,g,w,p,u,f,c,a,n,s,r,i,l,d,_,C,_,b,E,F,S,U,T,Q,P,I,M,K,W,L,O,H,k,G;return Pe(this,function(D){switch(D.label){case 0:if(!v||typeof v!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=v.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(o=t.defaultView,!o)throw new Error("Document is not attached to a Window");return y={allowTaint:(b=e.allowTaint)!==null&&b!==void 0?b:!1,imageTimeout:(E=e.imageTimeout)!==null&&E!==void 0?E:15e3,proxy:e.proxy,useCORS:(F=e.useCORS)!==null&&F!==void 0?F:!1},B=Oi({logging:(S=e.logging)!==null&&S!==void 0?S:!0,cache:e.cache},y),A={windowWidth:(U=e.windowWidth)!==null&&U!==void 0?U:o.innerWidth,windowHeight:(T=e.windowHeight)!==null&&T!==void 0?T:o.innerHeight,scrollX:(Q=e.scrollX)!==null&&Q!==void 0?Q:o.pageXOffset,scrollY:(P=e.scrollY)!==null&&P!==void 0?P:o.pageYOffset},h=new ot(A.scrollX,A.scrollY,A.windowWidth,A.windowHeight),m=new Sy(B,h),g=(I=e.foreignObjectRendering)!==null&&I!==void 0?I:!1,w={allowTaint:(M=e.allowTaint)!==null&&M!==void 0?M:!1,onclone:e.onclone,ignoreElements:e.ignoreElements,inlineImages:g,copyStyles:g},m.logger.debug("Starting document clone with size "+h.width+"x"+h.height+" scrolled to "+-h.left+","+-h.top),p=new Cu(m,v,w),u=p.clonedReferenceElement,u?[4,p.toIFrame(t,h)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return f=D.sent(),c=Bo(u)||Tv(u)?of(u.ownerDocument):en(m,u),a=c.width,n=c.height,s=c.left,r=c.top,i=Ty(m,u,e.backgroundColor),l={canvas:e.canvas,backgroundColor:i,scale:(W=(K=e.scale)!==null&&K!==void 0?K:o.devicePixelRatio)!==null&&W!==void 0?W:1,x:((L=e.x)!==null&&L!==void 0?L:0)+s,y:((O=e.y)!==null&&O!==void 0?O:0)+r,width:(H=e.width)!==null&&H!==void 0?H:Math.ceil(a),height:(k=e.height)!==null&&k!==void 0?k:Math.ceil(n)},g?(m.logger.debug("Document cloned, using foreign object rendering"),_=new _y(m,l),[4,_.render(u)]):[3,3];case 2:return d=D.sent(),[3,5];case 3:return m.logger.debug("Document cloned, element located at "+s+","+r+" with size "+a+"x"+n+" using computed rendering"),m.logger.debug("Starting DOM parsing"),C=ou(m,u),i===C.styles.backgroundColor&&(C.styles.backgroundColor=at.TRANSPARENT),m.logger.debug("Starting renderer for element at "+l.x+","+l.y+" with size "+l.width+"x"+l.height),_=new yy(m,l),[4,_.render(C)];case 4:d=D.sent(),D.label=5;case 5:return(!((G=e.removeContainer)!==null&&G!==void 0)||G)&&(Cu.destroy(f)||m.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),m.logger.debug("Finished rendering"),[2,d]}})})},Ty=function(v,e,t){var o=e.ownerDocument,y=o.documentElement?mr(v,getComputedStyle(o.documentElement).backgroundColor):at.TRANSPARENT,B=o.body?mr(v,getComputedStyle(o.body).backgroundColor):at.TRANSPARENT,A=typeof t=="string"?mr(v,t):t===null?at.TRANSPARENT:4294967295;return e===o.documentElement?gt(y)?gt(B)?A:B:y:A};const Xr=class Xr extends j.EngineObject{constructor(t,o){super(t,o);J(this,"_imageLabel",this.dv(new j.ESImageLabel(`${this.sceneObject.id}_ESImageLabel`)));J(this,"_hasClassDivAndPos",{});const y=o.viewer;if(!y){console.warn("viewer is undefined!");return}t.mainClass=this._imageLabel;const B=this._imageLabel;o.add(B),this.d(()=>o.delete(B));{const A=()=>{if(!y)return;if(!t.instanceClass)throw new Error("!sceneObject.instanceClass");const g=document.createElement("div"),w=this.dv(new t.instanceClass(g,t,o))._container;if(w.style.opacity=t.opacity.toString()??j.ESGeoDiv.defaults.opacity,w.style.position="fixed",w.style.zIndex="-1",w.style.top="0px",!document.body.contains(w)){document.body.appendChild(w);let u=w?w.querySelectorAll("*[class]"):[];for(let f=0;f<u.length;f++){const c=u[f];var p=c.getBoundingClientRect();this._hasClassDivAndPos[c.className]=[c.offsetLeft,c.offsetTop,c.offsetLeft+p.width,c.offsetTop+p.height]}}Qy(w,{backgroundColor:null,allowTaint:!0,useCORS:!0,width:w.offsetWidth,height:w.offsetHeight,scale:1}).then(u=>{document.body.contains(w)&&document.body.removeChild(w),B.url=u.toDataURL(),B.show=t.show}).catch(()=>{document.body.contains(w)&&document.body.removeChild(w)})},h=()=>{try{t.instanceClass?A():(B.url="",B.show=!1)}catch(g){console.error(g)}};h();const m=this.dv(V.createNextAnimateFrameEvent(t.instanceClassChanged,t.opacityChanged));this.d(m.don(h))}{const A=()=>{B.show=t.show};B.show=!1,this.ad(t.showChanged.don(A))}this.d(V.track([B,"anchor"],[t,"anchor"])),this.d(V.bind([B,"position"],[t,"position"])),this.d(V.bind([B,"rotation"],[t,"rotation"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.bind([B,"flyInParam"],[t,"flyInParam"])),this.d(V.bind([B,"allowPicking"],[t,"allowPicking"])),this.d(V.bind([B,"scale"],[t,"scale"])),this.d(V.track([B,"minVisibleDistance"],[t,"minVisibleDistance"])),this.d(V.track([B,"maxVisibleDistance"],[t,"maxVisibleDistance"])),this.ad(t.automaticLandingEvent.don(()=>{B.automaticLanding()})),this.d(B.pickedEvent.don(A=>{(t.allowPicking??!1)&&t.pickedEvent.emit(A)})),this.d(o.widgetEvent.don(A=>{if(A.objId!==this._imageLabel.id)return;const{type:h,add:m}=A;if(h==="leftClick"&&m){const g=(m==null?void 0:m.classNames)??[],w=Object.keys(this._hasClassDivAndPos);for(let p=0;p<w.length;p++){const u=w[p];let f=this._hasClassDivAndPos[u];m&&m.mouseRelativePos&&m.mouseRelativePos[0]>=f[0]&&m.mouseRelativePos[0]<=f[2]&&m.mouseRelativePos[1]>=f[1]&&m.mouseRelativePos[1]<=f[3]&&g.push(u)}m.classNames=g}t.widgetEvent.emit({type:h,add:m})})),this.d(t.calcFlyToParamEvent.don(()=>{Lt(y,B.id)})),this.d(t.calcFlyInParamEvent.don(()=>{const A=o.getCurrentCameraInfo();if(!A)return;const{position:h,rotation:m}=A;t.flyInParam={position:h,rotation:m,flyDuration:1}})),this.d(t.smoothMoveEvent.don((A,h)=>{WA(y,B.id,A,h)})),this.d(t.smoothMoveWithRotationEvent.don((A,h,m)=>{VA(y,B.id,A,h,m)})),this.d(t.smoothMoveOnGroundEvent.don((A,h,m,g)=>{GA(y,B.id,A,h,g,m)})),this.d(t.smoothMoveWithRotationOnGroundEvent.don((A,h,m,g,w)=>{jA(y,B.id,A,h,m,g,w)})),this.d(t.flyToEvent.don((A,h)=>{B.flyTo(A)})),this.d(t.flyInEvent.don(A=>{B.flyIn(A)}))}};J(Xr,"type",Xr.register("ESUeViewer",j.ESGeoDiv.type,Xr));let Io=Xr;const Yr=class Yr extends Le{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.flyToFeatureIndexEvent.don((y,B)=>{o.callUeFunc({f:"flyToFeatureIndex",p:{id:e.id,index:y,duration:B}})})),this.d(e.flyToFeatureEvent.don((y,B,A)=>{o.callUeFunc({f:"flyToFeature",p:{id:e.id,key:y,value:B,duration:A}})}))}};J(Yr,"type",Yr.register("ESUeViewer",j.ESGeoJson.type,Yr));let Po=Yr;const $r=class $r extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J($r,"type",$r.register("ESUeViewer",j.ESGeoLineString.type,$r));let zn=$r;const Zr=class Zr extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Zr,"type",Zr.register("ESUeViewer",j.ESGeoRectangle.type,Zr));let xo=Zr;const qr=class qr extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(qr,"type",qr.register("ESUeViewer",j.ESGeoWater.type,qr));let Oo=qr;const Pt=class Pt extends de{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.setNodePositionEvent.don((y,B)=>{Ls(o,e.id,y,B)})),this.d(e.setNodeRotationEvent.don((y,B)=>{Ds(o,e.id,y,B)})),this.d(e.setNodeScaleEvent.don((y,B)=>{Rs(o,e.id,y,B)}))}};J(Pt,"forceUeUpdateProps",[...de.forceUeUpdateProps,"url"]),J(Pt,"propValFuncs",{...de.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(j.rpToap(e)):(e.url=j.ESSceneObject.context.getStrFromEnv(j.rpToap(e.url)),e),czmMaximumScale:null,czmMinimumPixelSize:null,czmNativeScale:null,czmColor:null}),J(Pt,"type",Pt.register("ESUeViewer",j.ESGltfModel.type,Pt));let Mo=Pt;const eA=class eA extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(eA,"type",eA.register("ESUeViewer",j.ESHeightMeasurement.type,eA));let Ho=eA;const tA=class tA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=async(A,h,m,g)=>{const{viewer:w}=A;if(!w){console.error("AIMoveTo: ueViewer.viewer is undefined");return}const p=await w.callUeFunc({f:"AIMoveTo",p:{id:h,Destination:m,Time:g}});return p.error&&console.error("AIMoveTo:",p.error),p};this.d(e.aiMoveToEvent.don((A,h)=>{y(t,e.id,A,h)}));const B=async(A,h)=>{const{viewer:m}=A;if(!m){console.error("StopAIMove: ueViewer.viewer is undefined");return}const g=await m.callUeFunc({f:"StopAIMove",p:{id:h}});return g.error&&console.error("StopAIMove:",g.error),g};this.d(e.stopAIMoveEvent.don(()=>{B(t,e.id)}))}};J(tA,"type",tA.register("ESUeViewer",j.ESHuman.type,tA));let Lo=tA;const xt=class xt extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}e.anchor=[.5,1]}};J(xt,"type",xt.register("ESUeViewer",j.ESImageLabel.type,xt)),J(xt,"forceUeUpdateProps",[...$e.forceUeUpdateProps,"url"]),J(xt,"propValFuncs",{...$e.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(j.rpToap(e)):(e.url=j.ESSceneObject.context.getStrFromEnv(j.rpToap(e.url)),e)});let Do=xt;const rA=class rA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(rA,"type",rA.register("ESUeViewer",j.ESLevelRuntimeModel.type,rA));let Ro=rA;const AA=class AA extends YA{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(AA,"type",AA.register("ESUeViewer",j.ESLocalCircle.type,AA));let ko=AA;const nA=class nA extends Le{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(nA,"type",nA.register("ESUeViewer",j.ESLocalPolygonZ.type,nA));let Ko=nA;const iA=class iA extends YA{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(iA,"type",iA.register("ESUeViewer",j.ESLocalRectangle.type,iA));let No=iA;const oA=class oA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(oA,"type",oA.register("ESUeViewer",j.ESLocalSkyBox.type,oA));let Vo=oA;const sA=class sA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(sA,"type",sA.register("ESUeViewer",j.ESLocationMeasurement.type,sA));let Go=sA;const aA=class aA extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(aA,"type",aA.register("ESUeViewer",j.ESPipeFence.type,aA));let jo=aA;const cA=class cA extends zn{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(cA,"type",cA.register("ESUeViewer",j.ESPipeline.type,cA));let Wo=cA;const lA=class lA extends $A{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.highlightFeatureEvent.don(y=>{const B=typeof y=="number"?y.toString():y;xs(o,e.id,B)})),this.d(e.highlightFeatureAndFlyToEvent.don((y,B,A,h)=>{const m=typeof y=="number"?y.toString():y;Os(o,e.id,m,h??1)})),this.d(e.setLayerVisibleEvent.don((y,B)=>{let A="";typeof B!="string"?A=JSON.stringify(B):A=B,Ms(o,e.id,A)})),this.d(e.setLayerColorEvent.don((y,B)=>{let A="";typeof B!="string"?A=JSON.stringify(B):A=B,Hs(o,e.id,A)}))}};J(lA,"type",lA.register("ESUeViewer",j.ESPipeserTileset.type,lA));let zo=lA;const uA=class uA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(uA,"type",uA.register("ESUeViewer",j.ESPit.type,uA));let Jo=uA;const dA=class dA extends $e{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.ad(e.getInitialStyleEvent.don(async()=>{try{const y=await o.callUeFunc({f:"GetInitialStyle",p:{id:e.id}});y.error!=""&&console.error("getInitialStyleEvent:",y.error),e.initialStyle.value=structuredClone(y.re)}catch(y){console.error("getInitialStyleEvent:",y),e.initialStyle.value=void 0}}))}};J(dA,"type",dA.register("ESUeViewer",j.ESPoi2D.type,dA));let Xo=dA;const fA=class fA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(fA,"type",fA.register("ESUeViewer",j.ESPoi3D.type,fA));let Yo=fA;const Ot=class Ot extends Le{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(Ot,"type",Ot.register("ESUeViewer",j.ESPoiTileset.type,Ot)),J(Ot,"forceUeUpdateProps",[...Le.forceUeUpdateProps,"url"]),J(Ot,"propValFuncs",{...Le.propValFuncs,url:e=>typeof e=="string"?j.ESSceneObject.context.getStrFromEnv(e):(e.url=j.ESSceneObject.context.getStrFromEnv(e.url),e)});let $o=Ot;const hA=class hA extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(hA,"type",hA.register("ESUeViewer",j.ESPolygonFence.type,hA));let Zo=hA;const pA=class pA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(pA,"type",pA.register("ESUeViewer",j.ESPolygonFlattenedPlane.type,pA));let qo=pA;const gA=class gA extends Ne{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(gA,"type",gA.register("ESUeViewer",j.ESPolygonWithHole.type,gA));let es=gA;const vA=class vA extends _t{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(()=>{e.ids=[]}),this.d(e.highlightInner3DtilesetEvent.don(y=>{y.highlight=!0})),this.d(e.removeHighlightInner3DtilesetEvent.don(y=>{y.highlight=!1}));{const y=h=>{h=h.toLocaleLowerCase();let m=[255,255,255,1];if(h.startsWith("#")){if(h.length===4){let g=parseInt(h[1]+h[1],16),w=parseInt(h[2]+h[2],16),p=parseInt(h[3]+h[3],16);m=[g,w,p,1]}else if(h.length===7){let g=parseInt(h.substring(1,3),16),w=parseInt(h.substring(3,5),16),p=parseInt(h.substring(5,7),16);m=[g,w,p,1]}}else if(h.startsWith("rgba")){let g=h.match(/^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)$/);if(g){let w=parseInt(g[1]),p=parseInt(g[2]),u=parseInt(g[3]),f=parseFloat(g[4]);m=[w,p,u,f]}}else if(h.startsWith("rgb")){let g=h.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/);if(g){let w=parseInt(g[1]),p=parseInt(g[2]),u=parseInt(g[3]);m=[w,p,u,1]}}else console.error("color类型只能为#rrggbb、#rgb、rgba(r,g,b,a)、rgb(r,g,b)");return[m[0]/255,m[1]/255,m[2]/255,m[3]]},B=()=>{const h=e.layerConfig;if(!h)return;const m=[];h.forEach(g=>{m.push({condition:[{field:"layer",op:"==",value:g.layer},{field:"dataset",op:"==",value:g.dataset}],color:y(g.value.color??"rgb(255,255,255)"),show:g.value.visible})}),e.setFeatureStyle(m)};B();const A=this.dv(V.createNextAnimateFrameEvent(e.layerConfigChanged));this.d(A.don(()=>{B()}))}}};J(vA,"type",vA.register("ESUeViewer",j.ESRtsTileset.type,vA));let ts=vA;const yA=class yA extends Le{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}this.d(e.addTreesEvent.don(y=>{j.addTreesCallFunc(t,e.id,y)})),this.d(e.removeAllTreesEvent.don(()=>{j.removeAllTreesCallFunc(t,e.id)})),this.d(e.updateTreeParamsEvent.don(y=>{j.updateTreeParamsCallFunc(t,e.id,y)})),this.d(e.cutDownTreesEvent.don((y,B)=>{j.cutDownTreesCallFunc(t,e.id,y,B)})),this.d(e.growthSimulationEvent.don((y,B,A)=>{j.growthSimulationCallFunc(t,e.id,y,B,A)}))}};J(yA,"type",yA.register("ESUeViewer",j.ESSeparateFoliage.type,yA));let rs=yA;const mA=class mA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(mA,"type",mA.register("ESUeViewer",j.ESSubmergingAnalysis.type,mA));let As=mA;const wA=class wA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.stopEvent.don(()=>{o.callUeFunc({f:"Stop",p:{id:e.id}})}))}};J(wA,"type",wA.register("ESUeViewer",j.ESSunshineAnalysis.type,wA));let ns=wA;const BA=class BA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})}))}};J(BA,"type",BA.register("ESUeViewer",j.ESSurfaceAreaMeasurement.type,BA));let is=BA;const CA=class CA extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(CA,"type",CA.register("ESUeViewer",j.ESTextLabel.type,CA));let os=CA;const qt=class qt extends $e{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.callFunctionEvent.don((y,B)=>{ei(o,e.id,y,B)}))}};J(qt,"type",qt.register("ESUeViewer",j.ESUEWidget.type,qt)),J(qt,"propValFuncs",{...$e.propValFuncs,info:e=>JSON.stringify(e??{})});let ss=qt;const Ou=v=>{switch(v){case 0:return"成功绑定";case 1:return"解绑之前的内容,成功绑定";case 2:return"未搜索到ActorTag,无法绑定";case 3:return"搜索到ActorTag但对应的Actor不是场景原有的,而是新建的,无法绑定";case 4:return"搜索到ActorTag对应的Actor是地形或3DTileset,无法绑定";default:return"未知错误"}},Iy=v=>{switch(v){case 0:return"创建成功";case 1:return"未找到对应的资源,无法创建";case 2:return"Id与场景中现有的ActorTag重复,创建后可能出现问题,创建失败";default:return"未知错误"}},bA=class bA extends j.EngineObject{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn(`${e.id} UeESUnrealActor viewer is undefined!`);return}this.d(()=>{Zn(o,e.id)});const y=async()=>{g()||await o.callUeFunc({f:"update",p:{id:e.id,name:e.name,show:e.show,rotation:e.rotation,flyToParam:e.flyToParam??j.ESVisualObject.defaults.flyToParam,flyInParam:e.flyInParam??j.ESVisualObject.defaults.flyInParam,highlight:e.highlight,collision:e.collision,scale:e.scale,minVisibleDistance:e.minVisibleDistance,maxVisibleDistance:e.maxVisibleDistance}})},B=this.dv(V.createNextAnimateFrameEvent(e.showChanged,e.nameChanged,e.rotationChanged,e.flyToParamChanged,e.flyInParamChanged,e.highlightChanged,e.collisionChanged,e.scaleChanged,e.minVisibleDistanceChanged,e.maxVisibleDistanceChanged));this.d(B.don(y)),this.d(e.flushEvent.don(()=>B.flush()));let A,h;const m=async()=>{g()||(await o.callUeFunc({f:"update",p:{id:e.id,position:e.position}}),(t.debug??!1)&&console.log(`updatePostion:${e.position},actorTag:${e.actorTag},actorClass:${e.actorClass}`))},g=()=>!A&&!h?(console.warn(`${e.id} 未绑定ActorTag或未创建ActorClass!`),!0):!1,w=async()=>{const{id:u}=e,f=await t.unBindActorByID(u);f&&f.error!==""&&console.warn(`${e.id} UeESUnrealActor UnBindActorByID: ${f.error}`),A=void 0;const c=await o.callUeFunc({f:"destroy",p:{id:u}});if(c&&c.error!==""){console.warn(`${e.id} UeESUnrealActor DestroyActorByID: ${c.error}`);return}h=void 0},p=this.dv(V.react({type:"ActorClass",actorClass:"default"}));{const u=this.dv(V.createNextAnimateFrameEvent(e.actorClassChanged,e.actorTagChanged)),f=async()=>{e.actorTag!==""?p.value={type:"ActorTag",actorTag:e.actorTag}:p.value={type:"ActorClass",actorClass:e.actorClass===""?"default":e.actorClass}};f(),this.d(u.don(f)),this.d(e.flushEvent.don(()=>u.flush()))}{const u=this.dv(V.createProcessingFromAsyncFunc(async c=>{if(await c.promise(w()),p.value.type==="ActorTag"){const{actorTag:a}=p.value;await c.promise(w());try{e.lastActorStatus="null";const n=await c.promise(t.bindActorByTag(e.id,a));if(!n)return;if(n.error!==""){console.warn(`${e.id} UeESUnrealActor BindActorByTag:${a},${n.error}`);return}if(n.re.type===0)e.lastActorStatus="bound",A=a;else if(n.re.type===1)e.lastActorStatus="bound",A=a,console.warn(`${e.id} UeESUnrealActor BindActorByTag:${a},${Ou(n.re.type)}`);else{A=void 0,console.warn(`${e.id} UeESUnrealActor BindActorByTag error:${a}, ${Ou(n.re.type)}`);return}}catch(n){console.warn(`${e.id} UeESUnrealActor BindActorByTag catch error:${a}, ${n}`);return}}else if(p.value.type==="ActorClass"){const{actorClass:a}=p.value;try{const n=await c.promise(t.createActorByClass(e.id,a));if(!n)return;if(n.error!==""){console.warn(`${e.id} UeESUnrealActor CreateActorByClass error :${a}, ${n.error}`);return}if(n.re.type===0)e.lastActorStatus="created",h=a;else{console.warn(`${e.id} UeESUnrealActor CreateActorByClass error type :${a},${Iy(n.re.type)}`);return}}catch(n){console.warn(`${e.id} UeESUnrealActor CreateActorByClass error catch :${a}, ${JSON.stringify(n)}`);return}}await c.promise(y()),await c.promise(m())})),f=async()=>{u.restart()};f(),this.d(p.changed.don(f))}this.d(e.positionChanged.don(m)),this.d(e.callFunctionEvent.don((u,f)=>{g()||ei(o,e.id,u,f)})),this.d(e.smoothMoveEvent.don((u,f)=>{g()||WA(o,e.id,u,f)})),this.d(e.smoothMoveWithRotationEvent.don((u,f,c)=>{g()||VA(o,e.id,u,f,c)})),this.d(e.smoothMoveOnGroundEvent.don((u,f,c,a)=>{g()||GA(o,e.id,u,f,a,c)})),this.d(e.smoothMoveWithRotationOnGroundEvent.don((u,f,c,a,n)=>{g()||jA(o,e.id,u,f,c,a,n)})),this.d(e.automaticLandingEvent.don(u=>{if(g())return;const f=[e.position[0],e.position[1]];t.getHeightByLonLat(e.position[0],e.position[1],"Visibility").then(c=>{c!==null&&(e.position=[...f,c],e.collision=u)})})),this.d(e.flyToEvent.don(async(u,f)=>{if(g())return;const c=await Ht(o,e.id,u);let a="over";c===void 0?a="error":c.endType===0?a="over":c.endType===1&&(a="cancelled"),e.flyOverEvent.emit(f,a,t)})),this.d(e.calcFlyToParamEvent.don(()=>{g()||Lt(o,e.id)})),this.d(e.calcFlyInParamEvent.don(async()=>{if(!t.actived)return;const u=await t.getCurrentCameraInfo();if(!u)return;const{position:f,rotation:c}=u;e.flyInParam={position:f,rotation:c,flyDuration:1}})),this.d(t.propChanged.don(u=>{g()||u.objId===e.id&&Object.keys(u.props).forEach(f=>{const c=u.props[f]===null?void 0:u.props[f];e[f]=c})}))}};J(bA,"type",bA.register("ESUeViewer",j.ESUnrealActor.type,bA));let as=bA;const _A=class _A extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(_A,"type",_A.register("ESUeViewer",j.ESVideoFusion.type,_A));let cs=_A;const EA=class EA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(EA,"type",EA.register("ESUeViewer",j.ESViewShed.type,EA));let ls=EA;const FA=class FA extends De{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is underfined!");return}}};J(FA,"type",FA.register("ESUeViewer",j.ESVisibilityAnalysis.type,FA));let us=FA;const SA=class SA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}this.d(e.startEvent.don(()=>{o.callUeFunc({f:"Start",p:{id:e.id}})})),this.d(e.clearEvent.don(()=>{o.callUeFunc({f:"Clear",p:{id:e.id}})}))}};J(SA,"type",SA.register("ESUeViewer",j.ESVolumeMeasurement.type,SA));let ds=SA;const er=class er extends $e{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(er,"type",er.register("ESUeViewer",j.ESWidget.type,er)),J(er,"propValFuncs",{...$e.propValFuncs,info:e=>JSON.stringify(e??{})});let fs=er;const QA=class QA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}e.poi.actorTag=e.human.id,e.poi.positionOffset=[0,0,e.poiOffsetHeight-.8],this.d(e.poiOffsetHeightChanged.don(()=>{e.poi.positionOffset=[0,0,e.poiOffsetHeight-.8]})),this.d(()=>{e.poi.actorTag=""})}};J(QA,"type",QA.register("ESUeViewer",j.ESHumanPoi.type,QA));let hs=QA;j.ESSceneObject.context.getStrFromEnv(j.ESNavigator.defaults.imgUrl);const UA=class UA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=this.disposeVar(new j.ESCustomDiv);t.add(y),this.dispose(()=>t.delete(y)),this.dispose(V.track([y,"show"],[e,"show"])),y.instanceClass=class extends V.Destroyable{constructor(A,h,m){super(),this._subContainer=A;const g=document.createElement("div");this._subContainer.appendChild(g),this.dispose(()=>this._subContainer.removeChild(g));{const u=async()=>{const f=await t.getCurrentCameraInfo(),c=f==null?void 0:f.position,n=[...f==null?void 0:f.rotation];n[0]=360,t.flyIn(c,n)};g.addEventListener("click",u),g.style.cursor="pointer",this.dispose(()=>g.removeEventListener("click",u))}{const u=()=>{g.style.width=`${e.cssSize?e.cssSize:j.ESNavigator.defaults.cssSize}px`,g.style.height=`${e.cssSize?e.cssSize:j.ESNavigator.defaults.cssSize}px`};u(),e.dispose(e.cssSizeChanged.disposableOn(u))}g.style.position="fixed";{const u=()=>{g.style.top=`${e.cssPosition?e.cssPosition[0]:j.ESNavigator.defaults.cssPosition[0]}px`,g.style.right=`${e.cssPosition?e.cssPosition[1]:j.ESNavigator.defaults.cssPosition[1]}px`};u(),e.dispose(e.cssPositionChanged.disposableOn(u))}g.style.transition=" right 0.4s linear",g.style.cursor="pointer";const w=document.createElement("div");g.appendChild(w),this.dispose(()=>g.removeChild(w)),w.style.width="100%",w.style.height="100%",w.style.position="relative";const p=document.createElement("img");w.appendChild(p),this.dispose(()=>w.removeChild(p)),p.style.width="100%",p.style.height="100%",p.style.border="none";{const u=()=>p.src=e.imgUrl;u(),e.dispose(e.imgUrlChanged.disposableOn(u))}{const u=()=>{const n=-t.getCurrentCameraInfo().rotation[0];p.style.transform=`rotate(${n}deg)`};let f;const c=async()=>{u(),e.show?(g.style.display="block",f=setInterval(()=>{u()},1e3)):(g.style.display="none",clearInterval(f))};this.dispose(e.showChanged.disposableOn(c)),c(),this.dispose(()=>clearInterval(f))}p.style.transformOrigin="50% 50%"}}}};J(UA,"type",UA.register("ESUeViewer",j.ESNavigator.type,UA));let ps=UA;const Mt=class Mt extends De{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}{const y=()=>{let B=e.materialMode==="blue"?"multipleArrows":e.materialMode==="purple"?"singleArrow":e.materialMode;o.callUeFunc({f:"update",p:{id:e.id,materialMode:B}})};this.dispose(e.materialModeChanged.disposableOn(y)),this.dispose(e.createdEvent.disposableOn(y))}}};J(Mt,"type",Mt.register("ESUeViewer",j.ESPath.type,Mt)),J(Mt,"forceUeUpdateProps",[...De.forceUeUpdateProps]),J(Mt,"propValFuncs",{...De.propValFuncs,materialMode:null});let gs=Mt;async function Py(v){navigator.clipboard.writeText(v).then(function(){console.log("复制成功")},function(e){console.log("复制失败")})}const TA=class TA extends j.EngineObject{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}const y=this.disposeVar(new j.ESCustomDiv);t.add(y),this.dispose(()=>t.delete(y)),y.instanceClass=class extends V.Destroyable{constructor(A,h,m){if(super(),this._subContainer=A,!m||!(m instanceof it))return;const g=document.createElement("div");this._subContainer.appendChild(g),this.dispose(()=>this._subContainer.removeChild(g)),g.style.width="100%",g.style.position="absolute",g.style.height=`${j.ESViewerStatusBar.defaults.height}px`,g.style.left="0",g.style.bottom="0",g.style.color="#fff",g.style.padding="0 20px 0 0",g.style.boxSizing="border-box",g.style.lineHeight=`${j.ESViewerStatusBar.defaults.height}px`,g.style.zIndex="100",g.style.alignContent="center",g.style.justifyContent="space-between";const w=document.createElement("span");g.appendChild(w),this.dispose(()=>g.removeChild(w));const p=document.createElement("span");w.appendChild(p),this.dispose(()=>w.removeChild(p));const u=document.createElement("span");w.appendChild(u),u.addEventListener("dblclick",function(){let c=u.innerHTML;c.startsWith("鼠标位置")&&(c=c.slice(5)),Py(c)}),u.style.cursor="pointer",this.dispose(()=>w.removeChild(u));const f=document.createElement("span");g.appendChild(f),this.dispose(()=>g.removeChild(f));{const c=()=>{g.style.height=(e.height??j.ESViewerStatusBar.defaults.height)+"px",g.style.lineHeight=(e.height??j.ESViewerStatusBar.defaults.height)+"px"};this.dispose(e.heightChanged.disposableOn(c)),c()}{const c=()=>{g.style.fontSize=(e.fontSize??j.ESViewerStatusBar.defaults.fontSize)+"px"};this.dispose(e.fontSizeChanged.disposableOn(c)),c()}{const c=()=>{e.bgColor?g.style.background=`rgba(${e.bgColor[0]*255},${e.bgColor[1]*255},${e.bgColor[2]*255},${e.bgColor[3]})`:g.style.background=`rgba(${j.ESViewerStatusBar.defaults.bgColor[0]},${j.ESViewerStatusBar.defaults.bgColor[1]},${j.ESViewerStatusBar.defaults.bgColor[2]},${j.ESViewerStatusBar.defaults.bgColor[3]})`};this.dispose(e.bgColorChanged.disposableOn(c)),c()}m.getVersion().then(c=>{c&&(f.innerText=`Ue 版本 : ${c[0]} `)}).catch(c=>{console.log(c)});{const c=()=>{let s="",r="";s+=`帧率:${m.getFPS().toFixed(0)}FPS`,p.innerText=s;const i=t.getCurrentCameraInfo();s+=` 经度: ${i.position[0].toFixed(5)}° 纬度: ${i.position[1].toFixed(5)}° 高度: ${i.position[2].toFixed(2)}米 偏航角: ${i.rotation[0].toFixed(2)}° 俯仰角: ${i.rotation[1].toFixed(2)}° 翻滚角:${i.rotation[2].toFixed(2)}° `,p.innerText=s,t.pick().then(l=>{if(l){const{pickResult:d}=l;if(d&&d.position){const{position:C}=d;r+=`鼠标位置:${C[0].toFixed(5)}° ${C[1].toFixed(5)}° ${C[2].toFixed(2)}m`}else r+="暂时无法获取鼠标位置...";u.innerText=r}}).catch(l=>{console.log(l)})};let a;const n=async()=>{c(),e.show?(g.style.display="flex",a=setInterval(()=>{c()},1e3)):(g.style.display="none",clearInterval(a))};this.dispose(e.showChanged.disposableOn(n)),n(),this.dispose(()=>clearInterval(a))}}}}};J(TA,"type",TA.register("ESUeViewer",j.ESViewerStatusBar.type,TA));let vs=TA;const IA=class IA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(IA,"type",IA.register("ESUeViewer",j.ESGaussianSplatting.type,IA));let ys=IA;const PA=class PA extends _t{constructor(t,o){super(t,o);J(this,"_es3DTileset",this.dv(new j.ES3DTileset(`${this.sceneObject.id}_ES3DTileset`)));if(!o.viewer){console.warn("viewer is undefined!");return}t.mainClass=this._es3DTileset;{const B=this._es3DTileset;o.add(B),this.dispose(()=>o.delete(B)),this.d(V.track([B,"allowPicking"],[t,"allowPicking"])),this.d(V.track([B,"collision"],[t,"collision"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.bind([B,"flyToParam"],[t,"flyToParam"])),this.d(V.track([B,"url"],[t,"url"])),this.d(V.track([B,"actorTag"],[t,"actorTag"])),this.d(V.track([B,"materialMode"],[t,"materialMode"])),this.d(V.track([B,"highlight"],[t,"highlight"])),this.d(V.track([B,"maximumScreenSpaceError"],[t,"maximumScreenSpaceError"])),this.d(V.track([B,"highlightID"],[t,"highlightID"])),this.d(V.track([B,"highlightColor"],[t,"highlightColor"])),this.d(V.bind([B,"offset"],[t,"offset"])),this.d(V.bind([B,"rotation"],[t,"rotation"])),this.d(V.track([B,"czmImageBasedLightingFactor"],[t,"czmImageBasedLightingFactor"])),this.d(V.track([B,"czmLuminanceAtZenith"],[t,"czmLuminanceAtZenith"])),this.d(V.track([B,"czmMaximumMemoryUsage"],[t,"czmMaximumMemoryUsage"])),this.d(V.track([B,"czmClassificationType"],[t,"czmClassificationType"])),this.d(V.track([B,"czmStyleJson"],[t,"czmStyleJson"])),this.d(V.track([B,"czmBackFaceCulling"],[t,"czmBackFaceCulling"])),this.d(V.track([B,"czmDebugShowBoundingVolume"],[t,"czmDebugShowBoundingVolume"])),this.d(V.track([B,"czmDebugShowContentBoundingVolume"],[t,"czmDebugShowContentBoundingVolume"])),this.d(V.track([B,"colorBlendMode"],[t,"colorBlendMode"])),this.d(V.track([B,"cacheBytes"],[t,"cacheBytes"])),this.d(V.track([B,"clippingPlaneEnabled"],[t,"clippingPlaneEnabled"])),this.d(V.track([B,"unionClippingRegions"],[t,"unionClippingRegions"])),this.d(V.track([B,"clippingPlaneEdgeColor"],[t,"clippingPlaneEdgeColor"])),this.d(V.track([B,"clippingPlaneEdgeWidth"],[t,"clippingPlaneEdgeWidth"])),this.d(V.track([B,"materialParams"],[t,"materialParams"])),this.d(V.bind([B,"supportEdit"],[t,"supportEdit"])),this.d(V.bind([B,"clippingPlanesId"],[t,"clippingPlanesId"])),this.d(V.bind([B,"clippingPlaneIds"],[t,"clippingPlaneIds"])),this.d(V.bind([B,"flattenedPlaneId"],[t,"flattenedPlaneId"])),this.d(V.bind([B,"flattenedPlaneEnabled"],[t,"flattenedPlaneEnabled"])),this.d(V.bind([B,"clippingPlaneId"],[t,"clippingPlaneId"])),this.d(V.bind([B,"excavateId"],[t,"excavateId"]))}{const B=this._es3DTileset;this.d(t.refreshTilesetEvent.don(()=>{B.refreshTileset()})),this.d(t.highlightFeatureEvent.don((...A)=>{B.highlightFeature(...A)})),this.d(t.highlightFeatureAndFlyToEvent.don((...A)=>{B.highlightFeatureAndFlyTo(...A)})),this.d(t.setFeatureColorEvent.don((...A)=>{B.setFeatureColor(...A)})),this.d(t.setFeatureVisableEvent.don((...A)=>{B.setFeatureVisable(...A)})),this.d(t.resetFeatureStyleEvent.don((...A)=>{B.resetFeatureStyle(...A)})),this.d(t.flyInEvent.don((...A)=>{B.flyIn(A[0])})),this.d(t.flyToEvent.don((...A)=>{B.flyTo(A[0])})),this.d(t.calcFlyToParamEvent.don((...A)=>{B.calcFlyToParam(...A)})),this.d(t.calcFlyInParamEvent.don((...A)=>{B.calcFlyInParam(...A)}))}{const B=this._es3DTileset;this.d(B.tilesetReady.don(A=>{t.tilesetReady.emit(A)})),this.d(B.pickedEvent.don(A=>{t.pickedEvent.emit(new j.SceneObjectPickedInfo(t,A.childPickedInfo))}))}{const B=()=>{this.es3DTileset.show=t.show};B(),this.d(t.showChanged.don(()=>{B()}))}}get es3DTileset(){return this._es3DTileset}};J(PA,"type",PA.register("ESUeViewer",j.ESRtsFeatureEditing.type,PA));let ms=PA;const xA=class xA extends _t{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(xA,"type",xA.register("ESUeViewer",j.ESMsTileset.type,xA));let ws=xA;const OA=class OA extends Ne{constructor(e,t){super(e,t);const o=t.viewer;if(!o){console.warn("viewer is undefined!");return}const y=()=>{o.callUeFunc({f:"update",p:{id:e.id,height:e.height??j.ESGeoExtrudedPolygon.defaults.height,extrudedHeight:e.extrudedHeight??j.ESGeoExtrudedPolygon.defaults.extrudedHeight,perPositionHeight:e.perPositionHeight??j.ESGeoExtrudedPolygon.defaults.perPositionHeight}})},B=this.disposeVar(V.createNextAnimateFrameEvent(e.heightChanged,e.extrudedHeightChanged,e.perPositionHeightChanged));this.dispose(B.disposableOn(y)),this.dispose(e.createdEvent.disposableOn(y))}};J(OA,"type",OA.register("ESUeViewer",j.ESGeoExtrudedPolygon.type,OA));let Bs=OA;const MA=class MA extends de{constructor(e,t){if(super(e,t),!t.viewer){console.warn("viewer is undefined!");return}}};J(MA,"type",MA.register("ESUeViewer",j.ESStaticMesh.type,MA));let Cs=MA;z.copyright=void 0;try{const v="earthsdk3-ue",e="3.0.7-beta.2",t="2025-05-23T01:28:30.000Z",o="北京西部世界科技有限公司",y="地球可视化实验室 (EarthSDK&CesiumLab) https://www.bjxbsj.cn",B="5937111c78b84e9acfafcca7065a3d066df8a5d3",h=((Date.now()-174796371e4)/36e5).toFixed(1),m=`%c🌏 ${v}%c ${e}.${B.slice(0,8)}.${t} (距今${h}个小时)
|
|
340
|
+
%c${y?y+`
|
|
341
|
+
`:""}当前网站正在使用${v},此软件版权归${o}所有
|
|
342
|
+
`;z.copyright=Object.freeze({get owner(){return"北京西部世界科技有限公司"},get ownerlink(){return OWNERLINK_},get gituri(){return GITURI_&&GITURI_.replace("${commitId}","5937111c78b84e9acfafcca7065a3d066df8a5d3")},get info(){return m},get date(){return"2025-05-23T01:28:30.000Z"},get author(){return"suplyang"},get version(){return"3.0.7-beta.2"},get name(){return"earthsdk3-ue"},get commitId(){return"5937111c78b84e9acfafcca7065a3d066df8a5d3"},print(g=!1){!g&&window._xe2_no_copy_print||console.info(this.info,`
|
|
343
|
+
font-size: 18px;
|
|
344
|
+
font-weight: 1000;
|
|
345
|
+
line-height: 1;
|
|
346
|
+
color: rgb(0, 120, 215);
|
|
347
|
+
padding-top: 20px;
|
|
348
|
+
padding-bottom: 10px;
|
|
349
|
+
`,`
|
|
350
|
+
font-size: 10px;
|
|
351
|
+
font-weight: 1000;
|
|
352
|
+
color: rgb(0, 120, 215);
|
|
353
|
+
`,`
|
|
354
|
+
font-size: 10px;
|
|
355
|
+
line-height: 1.5;
|
|
356
|
+
color: rgb(0, 120, 215);
|
|
357
|
+
padding-bottom: 2px;
|
|
358
|
+
padding-left: 35px;
|
|
359
|
+
`)}}),window.g_XE3CopyRights=window.g_XE3CopyRights||{},window.g_XE3CopyRights[v]=z.copyright,window.g_earthsdk_copyright_print=window.g_earthsdk_copyright_print??!0,window.g_earthsdk_copyright_print&&z.copyright.print()}catch{}return z.ESUeViewer=it,z.HighlightFeatureAndFlyToCallFunc=Os,z.HighlightFeatureCallFunc=xs,z.SetLayerColorCallFunc=Hs,z.SetLayerVisibleCallFunc=Ms,z.UeCloudViewerBase=rr,z.UeES3DTileset=$A,z.UeESAlarm=hi,z.UeESApertureEffect=pi,z.UeESAreaMeasurement=gi,z.UeESBlastParticleSystem=vi,z.UeESBoxClipping=yi,z.UeESCameraView=mi,z.UeESCameraVisibleRange=wi,z.UeESCar=Bi,z.UeESClassification=Ci,z.UeESClippingPlane=bi,z.UeESDataMesh=_i,z.UeESDatasmithRuntimeModel=Ei,z.UeESDirectionMeasurement=Fi,z.UeESDistanceMeasurement=Si,z.UeESDynamicWater=Qi,z.UeESEntityCluster=Ui,z.UeESExcavate=Ti,z.UeESFireParticleSystem=Ii,z.UeESForestTileset=Pi,z.UeESGaussianSplatting=ys,z.UeESGeoDiv=Io,z.UeESGeoExtrudedPolygon=Bs,z.UeESGeoJson=Po,z.UeESGeoLineString=zn,z.UeESGeoPolygon=Ne,z.UeESGeoRectangle=xo,z.UeESGeoVector=De,z.UeESGeoWater=Oo,z.UeESGltfModel=Mo,z.UeESHeightMeasurement=Ho,z.UeESHuman=Lo,z.UeESHumanPoi=hs,z.UeESImageLabel=Do,z.UeESImageryLayer=di,z.UeESLabel=$e,z.UeESLevelRuntimeModel=Ro,z.UeESLocalCircle=ko,z.UeESLocalPolygon=ZA,z.UeESLocalPolygonZ=Ko,z.UeESLocalRectangle=No,z.UeESLocalSkyBox=Vo,z.UeESLocalVector=ui,z.UeESLocalVector2D=YA,z.UeESLocationMeasurement=Go,z.UeESMsTileset=ws,z.UeESNavigator=ps,z.UeESObjectWithLocation=de,z.UeESPath=gs,z.UeESPipeFence=jo,z.UeESPipeline=Wo,z.UeESPipeserTileset=zo,z.UeESPit=Jo,z.UeESPoi2D=Xo,z.UeESPoi3D=Yo,z.UeESPoiTileset=$o,z.UeESPolygonFence=Zo,z.UeESPolygonFlattenedPlane=qo,z.UeESPolygonWithHole=es,z.UeESRtsFeatureEditing=ms,z.UeESRtsTileset=ts,z.UeESSceneObject=_t,z.UeESSeparateFoliage=rs,z.UeESStaticMesh=Cs,z.UeESSubmergingAnalysis=As,z.UeESSunshineAnalysis=ns,z.UeESSurfaceAreaMeasurement=is,z.UeESTerrainLayer=fi,z.UeESTextLabel=os,z.UeESUEWidget=ss,z.UeESUnrealActor=as,z.UeESVideoFusion=cs,z.UeESViewShed=ls,z.UeESViewerStatusBar=vs,z.UeESVisibilityAnalysis=us,z.UeESVisualObject=Le,z.UeESVolumeMeasurement=ds,z.UeESWidget=fs,z.UePickedInfo=Ku,z.bind3DTilesetByTagCallFunc=ca,z.bindActorByTagCallFunc=na,z.bindImageryByTagCallFunc=da,z.calcFlyToParamCallFunc=Lt,z.callFunctionCallFunc=ei,z.captureCallFunc=Ws,z.changeNavigationModeCallFunc=At,z.createActorByClassCallFunc=aa,z.destroyCallFunc=Zn,z.flyInCallFunc=tr,z.flyInDefaultCameraCallFunc=Qs,z.flyToCallFunc=Ht,z.generateMemReportCallFunc=Ps,z.getAllSocketNamesByActorTagCallFunc=Ys,z.getBoundSphereCallFunc=Zs,z.getBoundSphereWithChildrenCallFunc=qs,z.getCameraRelativeHeightCallFunc=ga,z.getFillMaterialParamInfoCallFunc=ta,z.getGlobalPropertyCallFunc=ra,z.getHeightByLonLatCallFunc=Gs,z.getHeightByLonLatsCallFunc=js,z.getIdByComponentNameAndHitItemCallFunc=pa,z.getLonLatAltToScreenPositionCallFunc=Js,z.getObjectByInfoCallFunc=Aa,z.getStatusCallFunc=wa,z.getStrokeMaterialParamInfoCallFunc=ea,z.getTilesetMaterialIDListCallFunc=_a,z.getVersionCallFunc=$s,z.highlightActorByTagCallFunc=ya,z.mountPakFiles=Is,z.moveObjectsCallFunc=ba,z.partialCaptureCallFunc=zs,z.pickCallFunc=Ns,z.pickPositionCallFunc=Vs,z.quitCallFunc=Ks,z.refreshTilesetCallFunc=Ss,z.resetWithCurrentCameraCallFunc=qn,z.restoreOriginalSceneCallFunc=ia,z.saveStringToFileCallFunc=va,z.sendCustomMessageCallFunc=ma,z.setGlobalPropertyCallFunc=ks,z.setNodePositionCallFunc=Ls,z.setNodeRotationCallFunc=Ds,z.setNodeScaleCallFunc=Rs,z.smoothMoveCallFunc=WA,z.smoothMoveOnGroundCallFunc=GA,z.smoothMoveWithRotationCallFunc=VA,z.smoothMoveWithRotationOnGroundCallFunc=jA,z.startEditingCallFunc=Ba,z.startVoiceCallFunc=Us,z.stopEditingCallFunc=Ca,z.stopVoiceCallFunc=Ts,z.uePositionToLonLatAltCallFunc=Xs,z.unBind3DTilesetByIdCallFunc=ua,z.unBind3DTilesetByTagCallFunc=la,z.unBindActorByIDCallFunc=oa,z.unBindActorByTagCallFunc=sa,z.unBindImageryByIdCallFunc=ha,z.unBindImageryByTagCallFunc=fa,Object.defineProperty(z,Symbol.toStringTag,{value:"Module"}),z}({},EarthSDK3);
|