UNPKG

@arcgis/core

Version:

ArcGIS Maps SDK for JavaScript: A complete 2D and 3D mapping and data visualization API

1 lines • 752 kB
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[2274],{4197(e,t,i){i.d(t,{Vj:()=>h,cj:()=>l,jh:()=>r,l5:()=>o,xm:()=>a});var s=i(34275),n=i(9093);function r(e){return e<=s.y9?new Array(e).fill(0):new Float64Array(e)}function a(e){return((0,s.iu)(e)?e.byteLength/8:e.length)<=s.y9?Array.from(e):new Float64Array(e)}function o(e,t,i){return Array.isArray(e)?e.slice(t,t+i):e.subarray(t,t+i)}function l(e){return[...e]}function h(e){const t=(0,n.vt)();for(let i=0;i<16;++i)t[i]=e[i];return t}},9093(e,t,i){function s(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function n(e){return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15]]}i.d(t,{o8:()=>n,vt:()=>s,zK:()=>r});const r=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:r,clone:n,create:s,fromValues:function(e,t,i,s,n,r,a,o,l,h,u,d,c,p,m,g){return[e,t,i,s,n,r,a,o,l,h,u,d,c,p,m,g]}},Symbol.toStringTag,{value:"Module"}))},11053(e,t,i){i.d(t,{c:()=>s,g:()=>n});var s="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==i.g?i.g:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}},37531(e,t,i){i.d(t,{dt:()=>c,GG:()=>y,UQ:()=>f,Sx:()=>u});var s=i(68197),n=i(60999),r=i(51850),a=(i(76369),i(62046)),o=(i(2741),i(11254),i(66344));new Map([["dash",[4,3]],["dashdot",[4,3,1,3]],["dot",[1,3]],["longdash",[8,3]],["longdashdot",[8,3,1,3]],["longdashdotdot",[8,3,1,3,1,3]],["shortdash",[4,1]],["shortdashdot",[4,1,1,1]],["shortdashdotdot",[4,1,1,1,1,1]],["shortdot",[1,1]],["solid",[]]]),new o.q(1e3),new s.A([128,128,128]);var l=i(28975),h=i(33910);function u(e,t){if(!e)return null;let i=null;return(0,h.wk)(e)?i=function(e){const t=e.symbolLayers;if(!t)return null;let i=null;return t.forEach(e=>{"object"===e.type&&e.resource?.href||(i="water"===e.type?e.color:e.material?e.material.color:null)}),i?new s.A(i):null}(e):(0,h.$y)(e)&&(i="cim"===e.type?(0,a.Nk)(e):e.color?new s.A(e.color):null),i?d(i,t):null}function d(e,t){if(null==t||null==e)return e;const i=e.toRgba();return i[3]=i[3]*t,new s.A(i)}function c(e,t,i){e&&(t||null!=i)&&(t&&(t=new s.A(t)),(0,h.wk)(e)?function(e,t,i){const n=e.symbolLayers;if(!n)return;const r=(e,n=!1)=>{let r=t??e??null;return null!=i?.override&&(!r&&n&&(r=new s.A([255,255,255])),r&&(r.a=i.override)),d(r,i?.add)};n.forEach(e=>{if("water"===e.type)return void(e.color=d(e.color,i?.add));const t=null!=e.material?e.material.color:null,s=r(t,"icon"===e.type&&null!=e.resource?.href);null==e.material?e.material=new l.A({color:s}):e.material.color=s,"outline"in e&&e.outline?.color&&null!=i?.add&&(e.outline.color=d(e.outline.color,i.add)),"marker"in e&&null!=e.marker&&(e.marker.color=r(e.marker.color))})}(e,t,i):(0,h.$y)(e)&&function(e,t,i){t=t??e.color,null!=i?.override&&t&&(t.a=i.override),t&&(e.color=d(t,i?.add)),"outline"in e&&e.outline?.color&&(e.outline.color=d(e.outline.color,i?.add))}(e,t,i))}function p(e){for(const t of e)if("number"==typeof t)return t;return null}function m(e,t,i){for(let s=0;s<3;s++){const n=e[s];switch(n){case"symbol-value":{const e=i[s];return null!=e?e/t[s]:1}case"proportional":break;default:if(null!=n&&t[s])return n/t[s]}}return null}function g(e,t,i,s){switch(e){case"proportional":return i*s;case"symbol-value":return null!=t?t:i;default:return e}}async function f(e,t){if(e&&t)return(0,h.wk)(e)?async function(e,t){const s=e.symbolLayers;s&&await(0,n.jJ)(s,async e=>async function(e,t){switch(e.type){case"extrude":!function(e,t){const i=t[2];"number"==typeof i&&(e.size=i)}(e,t);break;case"icon":case"line":case"text":!function(e,t){const i=p(t);null!=i&&(e.size=i)}(e,t);break;case"path":!function(e,t){const i=m(t,r.Un,[e.width,void 0,e.height]);null!=i&&(e.width=g(t[0],e.width,1,i),e.height=g(t[2],e.height,1,i))}(e,t);break;case"object":await async function(e,t){const{resourceSize:s,symbolSize:n}=await async function(e){const{computeObjectLayerResourceSize:t}=await i.e(5404).then(i.bind(i,95404)),s=await t(e,10),{width:n,height:r,depth:a}=e,o=[n,a,r];let l=1;for(let e=0;e<3;e++){const t=o[e];if(null!=t){l=t/s[e];break}}for(let e=0;e<3;e++)null==o[e]&&(o[e]=s[e]*l);return{resourceSize:s,symbolSize:o}}(e),r=m(t,s,n);null!=r&&(e.width=g(t[0],n[0],s[0],r),e.depth=g(t[1],n[1],s[1],r),e.height=g(t[2],n[2],s[2],r))}(e,t)}}(e,t))}(e,t):void((0,h.$y)(e)&&function(e,t){const i=p(t);if(null!=i)switch(e.type){case"simple-marker":e.size=i;break;case"picture-marker":{const t=e.width/e.height;t>1?(e.width=i,e.height=i*t):(e.width=i*t,e.height=i);break}case"simple-line":e.width=i;break;case"text":e.font.size=i}}(e,t))}function y(e,t,i){if(e&&null!=t)if((0,h.wk)(e)){const s=e.symbolLayers;s&&s.forEach(e=>{if("object"===e.type)switch(i){case"tilt":e.tilt=(e.tilt??0)+t;break;case"roll":e.roll=(e.roll??0)+t;break;default:e.heading=(e.heading??0)+t}"icon"===e.type&&(e.angle+=t)})}else if((0,h.$y)(e))switch(e.type){case"simple-marker":case"picture-marker":case"text":e.angle+=t;break;case"cim":(0,a.KU)(e,t,!0)}}},62046(e,t,i){i.d(t,{Fe:()=>u,KU:()=>m,Nk:()=>r});var s=i(68197),n=i(93397);function r(e){const t=[];return a((0,n.lW)(e),t),t.length?new s.A((0,n.e6)(t[0])):null}function a(e,t){if(!e)return;let i;i="CIMTextSymbol"===e.type?e.symbol:e;const s="CIMPolygonSymbol"===e.type;if(i?.symbolLayers)for(const e of i.symbolLayers)if(!(e.colorLocked||s&&((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))))switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor&&o(t,e.tintColor);break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{a(e.symbol,t)});break;case"CIMSolidStroke":case"CIMSolidFill":o(t,e.color);break;case"CIMGradientFill":l(t,e);break;case"CIMHatchFill":a(e.lineSymbol,t)}}function o(e,t){for(const i of e)if(i.join(".")===t.join("."))return;e.push(t)}function l(e,t){const i=t.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":t.colorRamp.colorRamps?.forEach(t=>{"CIMLinearContinuousColorRamp"===t.type&&h(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":h(e,t.colorRamp)}}function h(e,t){t&&(t.fromColor&&o(e,t.fromColor),t.toColor&&o(e,t.toColor))}function u(e,t,i){t instanceof s.A||(t=new s.A(t));const r=(0,n.lW)(e);r&&d(r,t,i)}function d(e,t,i){if(!e)return;let s;s="CIMTextSymbol"===e.type?e.symbol:e;const r="CIMPolygonSymbol"===s?.type;if(s?.symbolLayers)for(const e of s.symbolLayers){if(e.colorLocked)continue;if(r)if(i){const{layersToColor:t}=i;if(((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))&&"fill"===t||(0,n.jn)(e)&&"outline"===t)continue}else if((0,n.mA)(e)||(0,n.MM)(e)&&e.markerPlacement&&(0,n.zr)(e.markerPlacement))continue;const s=t.toArray();switch(e.type){case"CIMPictureMarker":case"CIMPictureStroke":case"CIMPictureFill":e.tintColor=s;break;case"CIMVectorMarker":e.markerGraphics?.forEach(e=>{d(e.symbol,t,i)});break;case"CIMSolidStroke":case"CIMSolidFill":e.color=s;break;case"CIMGradientFill":c(e,t);break;case"CIMHatchFill":d(e.lineSymbol,t,i)}}}function c(e,t){const i=e.colorRamp?.type;switch(i){case"CIMMultipartColorRamp":e.colorRamp.colorRamps?.forEach(e=>{"CIMLinearContinuousColorRamp"===e.type&&p(e,t)});break;case"CIMLinearContinuousColorRamp":case"CIMPolarContinuousColorRamp":p(e.colorRamp,t)}}function p(e,t){if(e&&(e.fromColor&&(e.fromColor=t.toArray()),e.toColor)){const i=t.clone();i.a=0,e.toColor=i.toArray()}}function m(e,t,i=!1){const s=(0,n.lW)(e);if(i&&(t=360-t),"CIMTextSymbol"!==s?.type){if("CIMPointSymbol"===s?.type&&s.symbolLayers){const e=t-(s.angle||0);for(const t of s.symbolLayers)if((0,n.MM)(t)){let i=t.rotation||0;t.rotateClockwise?i-=e:i+=e,t.rotation=i}s.angle=t}}else s.angle=t}},70328(e,t,i){i.d(t,{BI:()=>v,DC:()=>d,Ej:()=>p,Ie:()=>y,Jt:()=>_,Ne:()=>m,RF:()=>u,aI:()=>T,fA:()=>a,gE:()=>l,hZ:()=>f,iT:()=>c,is:()=>b,qv:()=>S,vI:()=>g,vY:()=>o,v_:()=>C,vt:()=>r,w1:()=>h});var s=i(5443),n=(i(19419),i(4197));function r(e=C){return[e[0],e[1],e[2],e[3],e[4],e[5]]}function a(e,t,i,s,n,a,o=r()){return o[0]=e,o[1]=t,o[2]=i,o[3]=s,o[4]=n,o[5]=a,o}function o(e,t=r()){return function(e,t,i,s=r()){return f(s,S),function(e,t,i=0,s=t.length/3){let n=e[0],r=e[1],a=e[2],o=e[3],l=e[4],h=e[5];for(let e=0;e<s;e++)n=Math.min(n,t[i+3*e]),r=Math.min(r,t[i+3*e+1]),a=Math.min(a,t[i+3*e+2]),o=Math.max(o,t[i+3*e]),l=Math.max(l,t[i+3*e+1]),h=Math.max(h,t[i+3*e+2]);e[0]=n,e[1]=r,e[2]=a,e[3]=o,e[4]=l,e[5]=h}(s,e,t,i),s}(e,0,e.length/3,t)}function l(e,t=(0,n.jh)(24)){const[i,s,r,a,o,l]=e;return t[0]=i,t[1]=s,t[2]=r,t[3]=i,t[4]=s,t[5]=l,t[6]=i,t[7]=o,t[8]=r,t[9]=i,t[10]=o,t[11]=l,t[12]=a,t[13]=s,t[14]=r,t[15]=a,t[16]=s,t[17]=l,t[18]=a,t[19]=o,t[20]=r,t[21]=a,t[22]=o,t[23]=l,t}function h(e,t){const i=isFinite(e[2])||isFinite(e[5]);return new s.A(i?{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],zmin:e[2],zmax:e[5],spatialReference:t}:{xmin:e[0],xmax:e[3],ymin:e[1],ymax:e[4],spatialReference:t})}function u(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[3]),e[4]=Math.max(e[4],t[4]),e[5]=Math.max(e[5],t[5])}function d(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[3]=Math.max(e[3],t[2]),e[4]=Math.max(e[4],t[3])}function c(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.min(e[2],t[2]),e[3]=Math.max(e[3],t[0]),e[4]=Math.max(e[4],t[1]),e[5]=Math.max(e[5],t[2])}function p(e,t=[0,0,0]){return t[0]=function(e){return e[0]>=e[3]?0:e[3]-e[0]}(e),t[1]=function(e){return e[1]>=e[4]?0:e[4]-e[1]}(e),t[2]=function(e){return e[2]>=e[5]?0:e[5]-e[2]}(e),t}function m(e,t,i=e){return i[0]=t[0],i[1]=t[1],i[2]=t[2],i!==e&&(i[3]=e[3],i[4]=e[4],i[5]=e[5]),i}function g(e,t,i=e){return i[3]=t[0],i[4]=t[1],i[5]=t[2],i!==e&&(i[0]=e[0],i[1]=e[1],i[2]=e[2]),e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function y(e){return e?f(e,S):r(S)}function _(e,t){return e[0]=t[0],e[1]=t[1],e[2]=Number.NEGATIVE_INFINITY,e[3]=t[2],e[4]=t[3],e[5]=Number.POSITIVE_INFINITY,e}function v(e,t,i,s,n){return e[0]=t,e[1]=i,e[2]=Number.NEGATIVE_INFINITY,e[3]=s,e[4]=n,e[5]=Number.POSITIVE_INFINITY,e}function b(e){return 6===e.length}function T(e,t,i){if(null==e||null==t)return e===t;if(!b(e)||!b(t))return!1;if(i){for(let s=0;s<e.length;s++)if(!i(e[s],t[s]))return!1}else for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}const S=[1/0,1/0,1/0,-1/0,-1/0,-1/0],C=[0,0,0,0,0,0];r()},73179(e,t,i){i.d(t,{b:()=>l,h:()=>h});var s=i(4718),n=i(53966),r=i(84952),a=i(60694),o=i(10873);function l(e){const{nonStandardUrlAllowed:t=!1,separator:i}=e??{},r=(0,s.o8)(o.OZ),l=r.json?.write;return"object"==typeof l&&l&&(l.writer=function(e,t,s,n){(0,a.LS)(this,e,i,t,n)}),{...r,set:function(e){if(null==e)return void this._set("url",e);const i=(0,a.HZ)({layer:this,url:e,nonStandardUrlAllowed:t,logger:n.A.getLogger(this)});this._set("url",i.url),null!=i.layerId&&this._set("layerId",i.layerId)}}}function h(e,t){const{separator:i}=t??{},s=(0,r.An)(e.url);return null!=s&&(null!=e.dynamicDataSource?s.path=(0,r.fj)(s.path,"dynamicLayer"):null!=e.layerId&&(s.path=(0,r.fj)(s.path,i??"",e.layerId.toString()))),s}},73838(e,t,i){i.d(t,{rS:()=>N,M9:()=>P,oO:()=>L});var s=i(93637),n=i(77548),r=i(37757),a=i(49186),o=i(13313),l=i(97887),h=i(68548),u=i(58592),d=i(75981),c=i(65365),p=i(94985),m=i(31593),g=i(53930),f=i(68249),y=i(68197),_=i(7762),v=i(90629),b=i(27845),T=i(11506),S=i(39065),C=i(59868),w=i(93470);d.A.fromSimpleMarkerSymbol(C.UK),l.A.fromSimpleLineSymbol(C.A7),c.A.fromSimpleFillSymbol(C.Cx),new h.A({symbolLayers:new _.A([new b.A({material:{color:w.fT},edges:new S.A({size:(0,v.PN)(1),color:new y.A(w.JR)})})])});const E=new l.A({symbolLayers:new _.A([new T.A({material:{color:new y.A([0,0,0])},size:(0,v.PN)(1)})])}),k=new c.A({symbolLayers:new _.A([new b.A({outline:{color:new y.A([0,0,0]),size:(0,v.PN)(1)}})])});var I=i(33910);const x="#useCIMFallbackSymbology()",A={retainId:!1,ignoreDrivers:!1,hasLabelingContext:!0};var D=i(59923);function P(e,t,i,n){const r=M(e,{},{context:n,isLabelSymbol:!1});null!=r&&(0,s.sM)(i,r,t)}function L(e,t,i,s){const n=M(e,{},{context:s,isLabelSymbol:!0});null!=n&&(t[i]=n)}function O(e){return(0,I.wk)(e)||e instanceof r.A}function M(e,t,i){if(null==e)return null;const{context:s,isLabelSymbol:y}=i,_=s?.origin;if("web-scene"===_&&!O(e)){const i=function(e,t=A){if(!e)return{symbol:null};const{retainId:i=A.retainId,ignoreDrivers:s=A.ignoreDrivers,hasLabelingContext:n=A.hasLabelingContext,retainCIM:y=A.retainCIM,cimFallbackEnabled:_=A.cimFallbackEnabled}=t;let v=null;if((0,I.wk)(e))v=e.clone();else if("web-style"===e.type)v=e.clone();else if("cim"===e.type){const i=e.data?.symbol?.type;switch(i){case"CIMPointSymbol":v=y?e.clone():d.A.fromCIMSymbol(e);break;case"CIMLineSymbol":_&&(v=E.clone(),t?.logWarning?.(x,"Unsupported CIM line symbology converted to fallback 3D line symbology"));break;case"CIMPolygonSymbol":_&&(v=k.clone(),t?.logWarning?.(x,"Unsupported CIM polygon symbology converted to fallback 3D polygon symbology"))}if(!v)return{error:new a.A("symbol-conversion:unsupported-cim-symbol",`CIM symbol of type '${i||"unknown"}' is unsupported in 3D`,{symbol:e})}}else if(e instanceof m.A)v=l.A.fromSimpleLineSymbol(e);else if(e instanceof g.A)v=d.A.fromSimpleMarkerSymbol(e);else if(e instanceof u.A)v=d.A.fromPictureMarkerSymbol(e);else if(e instanceof p.A)v=t.geometryType&&"mesh"===t.geometryType?h.A.fromSimpleFillSymbol(e):c.A.fromSimpleFillSymbol(e);else{if(!(e instanceof f.A))return{error:new a.A("symbol-conversion:unsupported-2d-symbol",`2D symbol of type '${e.type||e.declaredClass}' is unsupported in 3D`,{symbol:e})};v=n?o.A.fromTextSymbol(e):d.A.fromTextSymbol(e)}return i&&v&&"cim"!==v.type&&(v.id=e.id),!s||"cim"===v.type||v instanceof r.A||v.symbolLayers.forEach(e=>e.ignoreDrivers=!0),{symbol:v}}(e,{retainCIM:!0,hasLabelingContext:y});return null!=i.symbol?i.symbol.write(t,s):((0,D.bA)(s,e,"Use 3D symbology instead when working with WebScene and SceneView",{error:i.error}),null)}return(0,n.TU)(s?.layer)&&function(e){return"polygon-3d"===e?.type||"line-3d"===e?.type}(e)?((0,D.bA)(s,e,`unsupported in layers of type ${s?.layer?.declaredClass}`),null):("web-map"===_||"portal-item"===_&&!(0,n.TU)(s?.layer))&&O(e)?((0,D.bA)(s,e,"Use 2D symbology and CIMSymbol instead when working with MapView"),null):e.write(t,s)}function N(e,t){return(0,I.Bu)(e,null,t)}},86875(e,t,i){i.r(t),i.d(t,{default:()=>Wc});var s=i(5482),n=i(68197),r=i(11254),a=i(51447),o=i(49186),l=i(53966),h=i(34727),u=i(25728),d=i(74887),c=i(36708),p=i(91429),m=i(56507),g=i(5443),f=i(82799),y=i(16930),_=i(4146),v=i(18768),b=i(63074),T=i(69208),S=i(16131),C=i(8303),w=i(25036),E=i(60694),k=i(10873),I=i(73179),x=i(69540),A=i(25482);let D=class extends((0,x.OU)(A.o)){constructor(e){super(e),this.framerate=null,this.containerFormat=null,this.gop=null,this.aspectRatio=null,this.klv=null}};(0,s.Cg)([(0,p.MZ)({type:String})],D.prototype,"framerate",void 0),(0,s.Cg)([(0,p.MZ)({type:String})],D.prototype,"containerFormat",void 0),(0,s.Cg)([(0,p.MZ)({type:Number})],D.prototype,"gop",void 0),(0,s.Cg)([(0,p.MZ)({type:String})],D.prototype,"aspectRatio",void 0),(0,s.Cg)([(0,p.MZ)({type:Object})],D.prototype,"klv",void 0),D=(0,s.Cg)([(0,p.$K)("esri.layers.support.PlaybackInfo")],D);const P=D;var L=i(6666),O=i(86738),M=i(39829);let N=class extends((0,x.OU)(A.o)){constructor(e){super(e),this.frameCenter=null,this.frameOutline=null,this.lineOfSight=null,this.sensorLocation=null,this.sensorTrail=null}};(0,s.Cg)([(0,p.MZ)({type:O.A})],N.prototype,"frameCenter",void 0),(0,s.Cg)([(0,p.MZ)({type:M.A})],N.prototype,"frameOutline",void 0),(0,s.Cg)([(0,p.MZ)({type:f.A})],N.prototype,"lineOfSight",void 0),(0,s.Cg)([(0,p.MZ)({type:O.A})],N.prototype,"sensorLocation",void 0),(0,s.Cg)([(0,p.MZ)({type:f.A})],N.prototype,"sensorTrail",void 0),N=(0,s.Cg)([(0,p.$K)("esri.layers.support.TelemetryData")],N);const R={type:Boolean,json:{write:!0}};let U=class extends((0,x.OU)(A.o)){constructor(e){super(e),this.frame=!1,this.frameCenter=!1,this.frameOutline=!0,this.lineOfSight=!0,this.sensorLocation=!0,this.sensorTrail=!0}};(0,s.Cg)([(0,p.MZ)(R)],U.prototype,"frame",void 0),(0,s.Cg)([(0,p.MZ)(R)],U.prototype,"frameCenter",void 0),(0,s.Cg)([(0,p.MZ)(R)],U.prototype,"frameOutline",void 0),(0,s.Cg)([(0,p.MZ)(R)],U.prototype,"lineOfSight",void 0),(0,s.Cg)([(0,p.MZ)(R)],U.prototype,"sensorLocation",void 0),(0,s.Cg)([(0,p.MZ)(R)],U.prototype,"sensorTrail",void 0),U=(0,s.Cg)([(0,p.$K)("esri.layers.support.TelemetryDisplay")],U);var B=i(56560),F=i(36005),q=i(43937);let j=class extends((0,x.OU)(A.o)){constructor(e){super(e),this.frame=null,this.controlPoints=null}readControlPoints(e){return e.map(e=>({sourcePoint:{x:e.frameX,y:e.frameY},mapPoint:new O.A(e.point)}))}writeControlPoints(e,t){null!=e&&function(e){return null!=e?.sourcePoint&&null!=e.mapPoint}(e[0])&&(t.controlPoints=e.map(e=>{const t=e.sourcePoint,i=e.mapPoint;return{frameX:t.x,frameY:t.y,point:i.toJSON()}}))}};(0,s.Cg)([(0,p.MZ)({type:String})],j.prototype,"frame",void 0),(0,s.Cg)([(0,p.MZ)({type:[B.A],json:{write:{allowNull:!1,isRequired:!0}}})],j.prototype,"controlPoints",void 0),(0,s.Cg)([(0,F.w)("controlPoints")],j.prototype,"readControlPoints",null),(0,s.Cg)([(0,q.K)("controlPoints")],j.prototype,"writeControlPoints",null),j=(0,s.Cg)([(0,p.$K)("esri.layers.support.VideoFrame")],j);const $=j;let H=class extends((0,x.OU)(A.o)){constructor(e){super(e),this.duration=null,this.end=null,this.start=null,this.timezone="UTC"}readEnd(e,t){return null!=t.end?new Date(t.end):null}writeEnd(e,t){t.end=e?e.getTime():null}readStart(e,t){return null!=t.start?new Date(t.start):null}writeStart(e,t){t.start=e?e.getTime():null}};(0,s.Cg)([(0,p.MZ)({type:Number,json:{write:{allowNull:!0}}})],H.prototype,"duration",void 0),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:{allowNull:!0}}})],H.prototype,"end",void 0),(0,s.Cg)([(0,F.w)("end")],H.prototype,"readEnd",null),(0,s.Cg)([(0,q.K)("end")],H.prototype,"writeEnd",null),(0,s.Cg)([(0,p.MZ)({type:Date,json:{write:{allowNull:!0}}})],H.prototype,"start",void 0),(0,s.Cg)([(0,F.w)("start")],H.prototype,"readStart",null),(0,s.Cg)([(0,q.K)("start")],H.prototype,"writeStart",null),(0,s.Cg)([(0,p.MZ)({type:String})],H.prototype,"timezone",void 0),H=(0,s.Cg)([(0,p.$K)("esri.layers.support.VideoTimeExtent")],H);const V=H;var z=i(69622),W=i(51699);class G extends EventTarget{constructor(){super(...arguments),this._readyState=0,this._responseType="",this.timeout=0,this._withCredentials=!1,this.onabort=null,this.onerror=null,this.onload=null,this.onloadend=null,this.onloadstart=null,this.onprogress=null,this.ontimeout=null,this.onreadystatechange=null,this.UNSENT=0,this.OPENED=1,this.HEADERS_RECEIVED=2,this.LOADING=3,this.DONE=4,this._abortController=null,this._error=null,this._options={},this._response=null,this._sendFlag=!1,this._url=""}get readyState(){return this._readyState}get response(){return""===this.responseType||"text"===this.responseType?this.responseText:this.readyState!==this.DONE||this._error||!this._response?null:this._response.data}get responseText(){return""!==this.responseType&&"text"!==this.responseType&&this._throwDOMException(),this.readyState!==this.DONE?"":this._response?this._response.data:null!=this._error?.raw?"string"==typeof this._error.raw?this._error.raw:JSON.stringify(this._error.raw):""}get responseType(){return this._responseType}set responseType(e){("document"!==e||globalThis instanceof Window)&&(this.readyState!==this.LOADING&&this.readyState!==this.DONE||this._throwDOMException(),this._responseType=e)}get responseURL(){return(this._response||this._error)?.url??""}get responseXML(){return""!==this.responseType&&"document"!==this.responseType&&this._throwDOMException(),this.readyState!==this.DONE?null:this._response?.data??null}get status(){return(this._response||this._error)?.httpStatus??0}get statusText(){return""}get upload(){return console.warn("upload not implemented"),null}get withCredentials(){return this._withCredentials}set withCredentials(e){this.readyState!==this.UNSENT&&this.readyState!==this.OPENED&&this._throwDOMException(),this._withCredentials=e}static{this.UNSENT=0}static{this.OPENED=1}static{this.HEADERS_RECEIVED=2}static{this.LOADING=3}static{this.DONE=4}abort(){this.readyState===this.OPENED&&this._sendFlag||this.readyState===this.HEADERS_RECEIVED||this.readyState===this.LOADING?(this._sendFlag=!1,this._error=null,this._response=null,this._abortController?.abort(),this._updateReadyState(this.DONE),this._dispatchProgressEvent("abort"),this._dispatchProgressEvent("loadend")):this.readyState===this.DONE&&this._updateReadyState(this.UNSENT)}getAllResponseHeaders(){let e="";const t=(this._response||this._error)?.getAllHeaders?.();if(t)for(const[i,s]of t)e+=`${i}: ${s}\r\n`;return e}getResponseHeader(e){return(this._response||this._error)?.getHeader?.(e)??null}open(e,t){switch(this._sendFlag=!1,this._options={},e){case"GET":this._options.method="auto";break;case"POST":this._options.method="post";break;case"HEAD":this._options.method="head";break;case"DELETE":this._options.method="delete";break;case"PUT":this._options.method="put"}this._url=t,this._error=null,this._response=null,this._abortController=new AbortController,this._updateReadyState(this.OPENED)}overrideMimeType(e){throw new Error("overrideMimeType not implemented")}send(e){(this.readyState!==this.OPENED||this._sendFlag)&&this._throwDOMException(),this._sendFlag=!0,this._updateReadyState(this.LOADING),this._dispatchProgressEvent("loadstart");const t=this._options;e instanceof URLSearchParams?t.body=e.toString():t.body=e,t.responseType=""===this.responseType?"text":"arraybuffer"===this.responseType?"array-buffer":this.responseType,t.signal=this._abortController?.signal,this.timeout&&(t.timeout=this.timeout),this.withCredentials&&(t.withCredentials=!0),(0,r.A)(this._url,t).then(e=>{this._response=e,this._updateReadyState(this.DONE),this._dispatchProgressEvent("load")}).catch(e=>{this._sendFlag&&(this._error=e.details,this._updateReadyState(this.DONE),(0,W.c8)(e)?this._dispatchProgressEvent("timeout"):"AbortError"===e.name?this._dispatchProgressEvent("abort"):this._dispatchProgressEvent("error"))}).finally(()=>{this._sendFlag&&this._dispatchProgressEvent("loadend")})}setRequestHeader(e,t){(this.readyState!==this.OPENED||this._sendFlag)&&this._throwDOMException(),this._options.headers??={},this._options.headers[e]=t}_dispatchProgressEvent(e){const t=new ProgressEvent(e,{loaded:0,total:0});this.dispatchEvent(t),this[`on${e}`]?.(t)}_throwDOMException(){throw new DOMException("","InvalidStateError")}_updateReadyState(e){if(this._readyState!==e&&(this._readyState=e,e!==this.UNSENT)){const e=new Event("readystatechange");this.dispatchEvent(e),this.onreadystatechange?.(e)}}}var X=i(29242),K=i(51850),Y=i(77690),Z=i(35522),Q=i(98764),J=i(9762),ee=i(79258),te=i(62046),ie=i(37531);const se="application/x-mpegURL",ne=10013,re=10014,ae=10015,oe=10023,le=10024,he=10025,ue=90001,de=90002;function ce(e,t,i){if(!e)return null;const s=e.clone();switch(s.type){case"simple-fill":(0,ie.dt)(s,i),s.outline.color=t;break;case"simple-line":(0,ie.dt)(s,t);break;case"simple-marker":(0,ie.dt)(s,t),s?.outline?.color&&(s.outline.color=t);break;case"cim":(0,te.Fe)(s,t)}return s}const pe=Math.PI/180;let me=class extends z.A{constructor(e){super(),this.averageElevation=0,this.imageHeight=0,this.imageWidth=0,this.metadataSupportsTransforms=!1,this.platformHeadingAngle=0,this.platformPitchAngle=0,this.platformRollAngle=0,this.sensorHeadingAngle=0,this.sensorAltitude=0,this.sensorHorizontalFieldOfView=0,this.sensorLatitude=0,this.sensorLongitude=0,this.sensorPitchAngle=0,this.sensorRollAngle=0,this.sensorVerticalFieldOfView=0,this.vttMetadata=new Map,this._createMat3FromValues=e=>{const t=e[0],i=e[1],s=e[2];return(0,X.fA)(t[0],i[0],s[0],t[1],i[1],s[1],t[2],i[2],s[2])},this._multiplyMat3=(e,t)=>{const i=(0,X.vt)();return(0,Y.lw)(i,e,t),i},this._transposeMat3=e=>{const t=(0,X.vt)();return(0,Y.mg)(t,e),t},this._calculateCameraFovForward=()=>this._createMat3FromValues([[0,0,1],[Math.tan(.5*this.sensorHorizontalFieldOfView*pe),0,0],[0,Math.tan(.5*this.sensorVerticalFieldOfView*pe),0]]),this._calculateCameraFovReverse=()=>this._createMat3FromValues([[0,1/Math.tan(.5*this.sensorHorizontalFieldOfView*pe),0],[0,0,1/Math.tan(.5*this.sensorVerticalFieldOfView*pe)],[1,0,0]]),this._calculateCameraLook=()=>this._getRotationMatrixZYX(this.sensorHeadingAngle*pe,this.sensorPitchAngle*pe,this.sensorRollAngle*pe),this._calculateImageDimensionsForward=()=>this._createMat3FromValues([[2/this.imageWidth,0,-1],[0,-2/this.imageHeight,-1],[0,0,1]]),this._calculateImageDimensionsReverse=()=>this._createMat3FromValues([[this.imageWidth/2,0,this.imageWidth/2],[0,-this.imageHeight/2,-this.imageHeight/2],[0,0,1]]),this._calculatePlatformPositionMatrix=()=>{const e=Math.sin(this.sensorLatitude*pe),t=Math.cos(this.sensorLatitude*pe),i=Math.sin(this.sensorLongitude*pe),s=Math.cos(this.sensorLongitude*pe);return this._createMat3FromValues([[-e*s,-i,-t*s],[-e*i,s,-t*i],[t,0,-e]])},this._calculatePlatformOrientation=()=>this._getRotationMatrixZYX(this.platformHeadingAngle*pe,this.platformPitchAngle*pe,this.platformRollAngle*pe),this._extractValues=e=>{this.imageWidth=e.get(ue)?.value,this.imageHeight=e.get(de)?.value;const t=e.get(10075)?.value;this.sensorAltitude=t??e.get(ae)?.value,this.sensorLatitude=e.get(ne)?.value,this.sensorLongitude=e.get(re)?.value,this.sensorHeadingAngle=e.get(10018)?.value,this.sensorPitchAngle=e.get(10019)?.value,this.sensorRollAngle=e.get(10020)?.value,this.sensorHorizontalFieldOfView=e.get(10016)?.value,this.sensorVerticalFieldOfView=e.get(10017)?.value,this.platformHeadingAngle=e.get(10005)?.value,this.platformPitchAngle=e.get(10006)?.value,this.platformRollAngle=e.get(10007)?.value,this.averageElevation=e.get(he)?.value||0},this._getRotationMatrixZYX=(e,t,i)=>{const s=Math.cos(e),n=Math.sin(e),r=Math.cos(t),a=Math.sin(t),o=Math.cos(i),l=Math.sin(i);return this._createMat3FromValues([[s*r,s*a*l-o*n,n*l+s*o*a],[r*n,s*o+n*a*l,o*n*a-s*l],[-a,r*l,r*o]])},this._initCameraSensor=()=>{const e=this._calculateCameraFovForward(),t=this._calculateCameraFovReverse(),i=this._calculateCameraLook(),s=this._calculateImageDimensionsForward(),n=this._calculateImageDimensionsReverse(),r=this._calculatePlatformPositionMatrix(),a=this._calculatePlatformOrientation(),o=this._multiplyMat3(this._multiplyMat3(r,a),i);this._imageToEarthTransform=this._multiplyMat3(this._multiplyMat3(o,e),s);const l=this._multiplyMat3(n,t);this._earthToImageTransform=this._multiplyMat3(l,this._transposeMat3(o)),this._platformPositionEcef=this._projectPointToECEF(this.sensorLongitude,this.sensorLatitude,this.sensorAltitude||this.averageElevation)},this._metadataSupportsTransforms=e=>{if(!e?.size)return!1;const t=e.get(ue)?.value??0,i=e.get(de)?.value??0;if(t<=0||i<=0)return!1;const s=e.get(10075)?.value,n=e.get(ae)?.value,r=e.get(ne)?.value,a=e.get(re)?.value;if(null==s&&null==n||null==r||null==a)return!1;const o=e.get(10005)?.value,l=e.get(10006)?.value,h=e.get(10007)?.value;if(null==o||null==l||null==h)return!1;const u=e.get(10016)?.value,d=e.get(10017)?.value;if(null==u||null==d)return!1;const c=e.get(10018)?.value,p=e.get(10019)?.value,m=e.get(10020)?.value;return null!=c&&null!=p&&null!=m},this._projectPointToECEF=(e,t,i)=>{const s=[];return(0,J.projectBuffer)([e,t,i],y.A.WGS84,0,s,Q.Y0,0),new O.A({x:s[0],y:s[1],z:s[2],spatialReference:Q.Y0})},this._projectImageVectorToEllipsoid=(e,t)=>{const i=ee.$O.semiMajorAxis+t,s=ee.$O.semiMinorAxis+t,n=s/i,r=i/s,{x:a,y:o,z:l}=this._platformPositionEcef,h=l??this.averageElevation,u=(0,K.fA)(a,o,r*h),d=(0,Z.Om)(e,e),c=(0,Z.Om)(e,u),p=(0,Z.Om)(u,u)-i*i,m=(-c-Math.sqrt(c*c-d*p))/d;if(m<0)return[NaN,NaN,NaN];const g=(0,K.vt)();return(0,Z.Ln)(g,u,e,m),g[2]=g[2]*n,g};const t=e?.videoMetadata;this.updateSensorModel(t)}updateSensorModel(e){e?.size&&(this._set("metadataSupportsTransforms",this._metadataSupportsTransforms(e)),this.metadataSupportsTransforms&&(this._extractValues(e),this._initCameraSensor()))}transformGeoToImage(e,t,i){const s=this._platformPositionEcef;if(!s)return[0,0];const{x:n,y:r,z:a}=s,o=(0,K.fA)(n,r,a),l=this._projectPointToECEF(e,t,i||this.averageElevation),h=(0,K.vt)(),u=(0,K.fA)(l.x,l.y,l.z);(0,Z.Re)(h,u,o),(0,Z.ei)(h,h,this._earthToImageTransform);const d=h[0],c=h[1],p=h[2];let m=(0,K.fA)(NaN,NaN,NaN);return isNaN(p)||(m=(0,K.fA)(d/p,c/p,p/p)),[m[0],m[1]]}transformImageToGeo(e,t){const i=(0,K.fA)(e,t,1),s=(0,K.vt)();(0,Z.ei)(s,i,this._imageToEarthTransform);const n=this._projectImageVectorToEllipsoid(s,this.averageElevation);let r;if(!isNaN(n[0])){const e=[];(0,J.projectBuffer)([n[0],n[1],n[2]],Q.Y0,0,e,y.A.WGS84,0),r=new O.A({x:e[0],y:e[1],z:e[2],spatialReference:y.A.WGS84})}return r}};(0,s.Cg)([(0,p.MZ)()],me.prototype,"averageElevation",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"imageHeight",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"imageWidth",void 0),(0,s.Cg)([(0,p.MZ)({readOnly:!0})],me.prototype,"metadataSupportsTransforms",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"platformHeadingAngle",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"platformPitchAngle",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"platformRollAngle",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"sensorHeadingAngle",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"sensorAltitude",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"sensorHorizontalFieldOfView",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"sensorLatitude",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"sensorLongitude",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"sensorPitchAngle",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"sensorRollAngle",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"sensorVerticalFieldOfView",void 0),(0,s.Cg)([(0,p.MZ)()],me.prototype,"vttMetadata",void 0),me=(0,s.Cg)([(0,p.$K)("esri.layers.video.VideoCameraSensorModel")],me);var ge,fe,ye=i(11053);function _e(){return fe?ge:(fe=1,e="undefined"!=typeof window?window:void 0!==ye.c?ye.c:"undefined"!=typeof self?self:{},ge=e);var e}const ve=(0,ye.g)(_e());var be,Te,Se,Ce,we,Ee,ke,Ie,xe,Ae,De,Pe,Le,Oe,Me,Ne,Re,Ue,Be,Fe,qe,je,$e,He,Ve,ze;function We(){if(Te)return be;Te=1;var e=Array.prototype.slice;return be=function(t,i){"length"in t||(t=[t]),t=e.call(t);for(;t.length;){var s=t.shift(),n=i(s);if(n)return n;s.childNodes&&s.childNodes.length&&(t=e.call(s.childNodes).concat(t))}}}function Ge(){return Ie?ke:(Ie=1,ke=function(e){var t=this,i=e.type;e.target||(e.target=t),t.listeners||(t.listeners={});var s=t.listeners[i];if(s)return s.forEach(function(i){e.currentTarget=t,"function"==typeof i?i(e):i.handleEvent(e)});t.parentNode&&t.parentNode.dispatchEvent(e)})}function Xe(){return Ae?xe:(Ae=1,xe=function(e,t){var i=this;i.listeners||(i.listeners={}),i.listeners[e]||(i.listeners[e]=[]),-1===i.listeners[e].indexOf(t)&&i.listeners[e].push(t)})}function Ke(){return Pe?De:(Pe=1,De=function(e,t){var i=this;if(i.listeners&&i.listeners[e]){var s=i.listeners[e],n=s.indexOf(t);-1!==n&&s.splice(n,1)}})}function Ye(){if(Ne)return Me;Ne=1;var e=We(),t=Ge(),i=Xe(),s=Ke(),n=function(){if(Oe)return Le;Oe=1;var e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];function t(e){switch(e.nodeType){case 3:return a(e.data);case 8:return"\x3c!--"+e.data+"--\x3e";default:return i(e)}}function i(i){var s=[],o=i.tagName;return"http://www.w3.org/1999/xhtml"===i.namespaceURI&&(o=o.toLowerCase()),s.push("<"+o+r(i)+function(e){var t=e.dataset,i=[];for(var s in t)i.push({name:"data-"+s,value:t[s]});return i.length?n(i):""}(i)),e.indexOf(o)>-1?s.push(" />"):(s.push(">"),i.childNodes.length?s.push.apply(s,i.childNodes.map(t)):i.textContent||i.innerText?s.push(a(i.textContent||i.innerText)):i.innerHTML&&s.push(i.innerHTML),s.push("</"+o+">")),s.join("")}function s(e,t){var i=typeof e[t];return"style"===t&&Object.keys(e.style).length>0||e.hasOwnProperty(t)&&("string"===i||"boolean"===i||"number"===i)&&"nodeName"!==t&&"className"!==t&&"tagName"!==t&&"textContent"!==t&&"innerText"!==t&&"namespaceURI"!==t&&"innerHTML"!==t}function n(e){var t=[];return e.forEach(function(e){var i=e.name,s=e.value;"style"===i&&(s=function(e){if("string"==typeof e)return e;var t="";return Object.keys(e).forEach(function(i){var s=e[i];i=i.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}),t+=i+":"+s+";"}),t}(s)),t.push(i+'="'+function(e){return a(e).replace(/"/g,"&quot;")}(s)+'"')}),t.length?" "+t.join(" "):""}function r(e){var t=[];for(var i in e)s(e,i)&&t.push({name:i,value:e[i]});for(var r in e._attributes)for(var a in e._attributes[r]){var o=e._attributes[r][a],l=(o.prefix?o.prefix+":":"")+a;t.push({name:l,value:o.value})}return e.className&&t.push({name:"class",value:e.className}),t.length?n(t):""}function a(e){var t="";return"string"==typeof e?t=e:e&&(t=e.toString()),t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}return Le=t}(),r="http://www.w3.org/1999/xhtml";function a(e,t,i){if(!(this instanceof a))return new a(e);var s=void 0===i?r:i||null;this.tagName=s===r?String(e).toUpperCase():e,this.nodeName=this.tagName,this.className="",this.dataset={},this.childNodes=[],this.parentNode=null,this.style={},this.ownerDocument=t||null,this.namespaceURI=s,this._attributes={},"INPUT"===this.tagName&&(this.type="text")}return Me=a,a.prototype.type="DOMElement",a.prototype.nodeType=1,a.prototype.appendChild=function(e){return e.parentNode&&e.parentNode.removeChild(e),this.childNodes.push(e),e.parentNode=this,e},a.prototype.replaceChild=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var i=this.childNodes.indexOf(t);return t.parentNode=null,this.childNodes[i]=e,e.parentNode=this,t},a.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);return this.childNodes.splice(t,1),e.parentNode=null,e},a.prototype.insertBefore=function(e,t){e.parentNode&&e.parentNode.removeChild(e);var i=null==t?-1:this.childNodes.indexOf(t);return i>-1?this.childNodes.splice(i,0,e):this.childNodes.push(e),e.parentNode=this,e},a.prototype.setAttributeNS=function(e,t,i){var s=null,n=t,r=t.indexOf(":");r>-1&&(s=t.substr(0,r),n=t.substr(r+1)),"INPUT"===this.tagName&&"type"===t?this.type=i:(this._attributes[e]||(this._attributes[e]={}))[n]={value:i,prefix:s}},a.prototype.getAttributeNS=function(e,t){var i=this._attributes[e],s=i&&i[t]&&i[t].value;return"INPUT"===this.tagName&&"type"===t?this.type:"string"!=typeof s?null:s},a.prototype.removeAttributeNS=function(e,t){var i=this._attributes[e];i&&Object.prototype.hasOwnProperty.call(i,t)&&delete i[t]},a.prototype.hasAttributeNS=function(e,t){var i=this._attributes[e];return!!i&&t in i},a.prototype.setAttribute=function(e,t){return this.setAttributeNS(null,e,t)},a.prototype.getAttribute=function(e){return this.getAttributeNS(null,e)},a.prototype.removeAttribute=function(e){return this.removeAttributeNS(null,e)},a.prototype.hasAttribute=function(e){return this.hasAttributeNS(null,e)},a.prototype.removeEventListener=s,a.prototype.addEventListener=i,a.prototype.dispatchEvent=t,a.prototype.focus=function(){},a.prototype.toString=function(){return n(this)},a.prototype.getElementsByClassName=function(t){var i=t.split(" "),s=[];return e(this,function(e){if(1===e.nodeType){var t=(e.className||"").split(" ");i.every(function(e){return-1!==t.indexOf(e)})&&s.push(e)}}),s},a.prototype.getElementsByTagName=function(t){t=t.toLowerCase();var i=[];return e(this.childNodes,function(e){1!==e.nodeType||"*"!==t&&e.tagName.toLowerCase()!==t||i.push(e)}),i},a.prototype.contains=function(t){return e(this,function(e){return t===e})||!1},Me}function Ze(){if(ze)return Ve;ze=1;var e,t=void 0!==ye.c?ye.c:"undefined"!=typeof window?window:{},i=function(){if(He)return $e;He=1;var e=function(){if(je)return qe;je=1;var e=We(),t=function(){if(Ce)return Se;function e(t,i){if(!(this instanceof e))return new e(t,i);this.data=t,this.nodeValue=t,this.length=t.length,this.ownerDocument=i||null}return Ce=1,Se=e,e.prototype.nodeType=8,e.prototype.nodeName="#comment",e.prototype.toString=function(){return"[object Comment]"},Se}(),i=function(){if(Ee)return we;function e(t,i){if(!(this instanceof e))return new e(t);this.data=t||"",this.length=this.data.length,this.ownerDocument=i||null}return Ee=1,we=e,e.prototype.type="DOMTextNode",e.prototype.nodeType=3,e.prototype.nodeName="#text",e.prototype.toString=function(){return this.data},e.prototype.replaceData=function(e,t,i){var s=this.data,n=s.substring(0,e),r=s.substring(e+t,s.length);this.data=n+i+r,this.length=this.data.length},we}(),s=Ye(),n=function(){if(Ue)return Re;Ue=1;var e=Ye();function t(e){if(!(this instanceof t))return new t;this.childNodes=[],this.parentNode=null,this.ownerDocument=e||null}return Re=t,t.prototype.type="DocumentFragment",t.prototype.nodeType=11,t.prototype.nodeName="#document-fragment",t.prototype.appendChild=e.prototype.appendChild,t.prototype.replaceChild=e.prototype.replaceChild,t.prototype.removeChild=e.prototype.removeChild,t.prototype.toString=function(){return this.childNodes.map(function(e){return String(e)}).join("")},Re}(),r=function(){if(Fe)return Be;function e(e){}return Fe=1,Be=e,e.prototype.initEvent=function(e,t,i){this.type=e,this.bubbles=t,this.cancelable=i},e.prototype.preventDefault=function(){},Be}(),a=Ge(),o=Xe(),l=Ke();function h(){if(!(this instanceof h))return new h;this.head=this.createElement("head"),this.body=this.createElement("body"),this.documentElement=this.createElement("html"),this.documentElement.appendChild(this.head),this.documentElement.appendChild(this.body),this.childNodes=[this.documentElement],this.nodeType=9}qe=h;var u=h.prototype;return u.createTextNode=function(e){return new i(e,this)},u.createElementNS=function(e,t){var i=null===e?null:String(e);return new s(t,this,i)},u.createElement=function(e){return new s(e,this)},u.createDocumentFragment=function(){return new n(this)},u.createEvent=function(e){return new r(e)},u.createComment=function(e){return new t(e,this)},u.getElementById=function(t){return t=String(t),e(this.childNodes,function(e){if(String(e.id)===t)return e})||null},u.getElementsByClassName=s.prototype.getElementsByClassName,u.getElementsByTagName=s.prototype.getElementsByTagName,u.contains=s.prototype.contains,u.removeEventListener=l,u.addEventListener=o,u.dispatchEvent=a,qe}();return $e=new e}();return"undefined"!=typeof document?e=document:(e=t["__GLOBAL_DOCUMENT_CACHE@4"])||(e=t["__GLOBAL_DOCUMENT_CACHE@4"]=i),Ve=e}const Qe=(0,ye.g)(Ze());var Je,et,tt,it,st,nt,rt,at,ot,lt,ht={exports:{}},ut={exports:{}};const dt=(0,ye.g)(function(){if(lt)return ht.exports;lt=1;var e=_e(),t=(Je||(Je=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var s in i)({}).hasOwnProperty.call(i,s)&&(e[s]=i[s])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ut)),ut.exports),i=function(){if(tt)return et;tt=1,et=function(t){if(!t)return!1;var i=e.call(t);return"[object Function]"===i||"function"==typeof t&&"[object RegExp]"!==i||"undefined"!=typeof window&&(t===window.setTimeout||t===window.alert||t===window.confirm||t===window.prompt)};var e=Object.prototype.toString;return et}(),s=function(){if(st)return it;function e(e,i){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=t(e))||i){s&&(e=s);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function t(e,t){if(e){if("string"==typeof e)return i(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,s=new Array(t);i<t;i++)s[i]=e[i];return s}return st=1,it=function(){function t(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1}var i=t.prototype;return i.getIsEnabled=function(){return this.enabled_},i.enable=function(){this.enabled_=!0},i.disable=function(){this.enabled_=!1},i.reset=function(){this.typeToInterceptorsMap_=new Map,this.enabled_=!1},i.addInterceptor=function(e,t){this.typeToInterceptorsMap_.has(e)||this.typeToInterceptorsMap_.set(e,new Set);var i=this.typeToInterceptorsMap_.get(e);return!i.has(t)&&(i.add(t),!0)},i.removeInterceptor=function(e,t){var i=this.typeToInterceptorsMap_.get(e);return!(!i||!i.has(t)||(i.delete(t),0))},i.clearInterceptorsByType=function(e){return!!this.typeToInterceptorsMap_.get(e)&&(this.typeToInterceptorsMap_.delete(e),this.typeToInterceptorsMap_.set(e,new Set),!0)},i.clear=function(){return!!this.typeToInterceptorsMap_.size&&(this.typeToInterceptorsMap_=new Map,!0)},i.getForType=function(e){return this.typeToInterceptorsMap_.get(e)||new Set},i.execute=function(t,i){for(var s,n=e(this.getForType(t));!(s=n()).done;){var r=s.value;try{i=r(i)}catch(e){}}return i},t}()}(),n=function(){if(rt)return nt;rt=1;var e=function(){function e(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1}var i=e.prototype;return i.getIsEnabled=function(){return this.enabled_},i.enable=function(){this.enabled_=!0},i.disable=function(){this.enabled_=!1},i.reset=function(){this.maxAttempts_=1,this.delayFactor_=.1,this.fuzzFactor_=.1,this.initialDelay_=1e3,this.enabled_=!1},i.getMaxAttempts=function(){return this.maxAttempts_},i.setMaxAttempts=function(e){this.maxAttempts_=e},i.getDelayFactor=function(){return this.delayFactor_},i.setDelayFactor=function(e){this.delayFactor_=e},i.getFuzzFactor=function(){return this.fuzzFactor_},i.setFuzzFactor=function(e){this.fuzzFactor_=e},i.getInitialDelay=function(){return this.initialDelay_},i.setInitialDelay=function(e){this.initialDelay_=e},i.createRetry=function(e){var i=void 0===e?{}:e,s=i.maxAttempts,n=i.delayFactor,r=i.fuzzFactor,a=i.initialDelay;return new t({maxAttempts:s||this.maxAttempts_,delayFactor:n||this.delayFactor_,fuzzFactor:r||this.fuzzFactor_,initialDelay:a||this.initialDelay_})},e}(),t=function(){function e(e){this.maxAttempts_=e.maxAttempts,this.delayFactor_=e.delayFactor,this.fuzzFactor_=e.fuzzFactor,this.currentDelay_=e.initialDelay,this.currentAttempt_=1}var t=e.prototype;return t.moveToNextAttempt=function(){this.currentAttempt_++;var e=this.currentDelay_*this.delayFactor_;this.currentDelay_=this.currentDelay_+e},t.shouldRetry=function(){return this.currentAttempt_<this.maxAttempts_},t.getCurrentDelay=function(){return this.currentDelay_},t.getCurrentMinPossibleDelay=function(){return(1-this.fuzzFactor_)*this.currentDelay_},t.getCurrentMaxPossibleDelay=function(){return(1+this.fuzzFactor_)*this.currentDelay_},t.getCurrentFuzzedDelay=function(){var e=this.getCurrentMinPossibleDelay(),t=this.getCurrentMaxPossibleDelay();return e+Math.random()*(t-e)},e}();return nt=e}();o.httpHandler=function(){if(ot)return at;ot=1;var e=_e();return at=function(t,i){return void 0===i&&(i=!1),function(s,n,r){if(s)t(s);else if(n.statusCode>=400&&n.statusCode<=599){var a=r;if(i)if(e.TextDecoder){var o=function(e){return void 0===e&&(e=""),e.toLowerCase().split(";").reduce(function(e,t){var i=t.split("="),s=i[0],n=i[1];return"charset"===s.trim()?n.trim():e},"utf-8")}(n.headers&&n.headers["content-type"]);try{a=new TextDecoder(o).decode(r)}catch(e){}}else a=String.fromCharCode.apply(null,new Uint8Array(r));t({cause:a})}else t(null,r)}}}(),o.requestInterceptorsStorage=new s,o.responseInterceptorsStorage=new s,o.retryManager=new n;var r=function(e){var t={};return e?(e.trim().split("\n").forEach(function(e){var i=e.indexOf(":"),s=e.slice(0,i).trim().toLowerCase(),n=e.slice(i+1).trim();void 0===t[s]?t[s]=n:Array.isArray(t[s])?t[s].push(n):t[s]=[t[s],n]}),t):t};function a(e,s,n){var r=e;return i(s)?(n=s,"string"==typeof e&&(r={uri:e})):r=t({},s,{uri:e}),r.callback=n,r}function o(e,t,i){return l(t=a(e,t,i))}function l(e){if(void 0===e.callback)throw new Error("callback argument missing");if(e.requestType&&o.requestInterceptorsStorage.getIsEnabled()){var t={uri:e.uri||e.url,headers:e.headers||{},body:e.body,metadata:e.metadata||{},retry:e.retry,timeout:e.timeout},i=o.requestInterceptorsStorage.execute(e.requestType,t);e.uri=i.uri,e.headers=i.headers,e.body=i.body,e.metadata=i.metadata,e.retry=i.retry,e.timeout=i.timeout}var s=!1,n=function(t,i,n){s||(s=!0,e.callback(t,i,n))};function a(){var e=void 0;if(e=p.response?p.response:p.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(p),b)try{e=JSON.parse(e)}catch(e){}return e}function h(t){if(clearTimeout(m),clearTimeout(e.retryTimeout),t instanceof Error||(t=new Error(""+(t||"Unknown XMLHttpRequest Error"))),t.statusCode=0,c||!o.retryManager.getIsEnabled()||!e.retry||!e.retry.shouldRetry()){if(e.requestType&&o.responseInterceptorsStorage.getIsEnabled()){var i={headers:T.headers||{},body:T.body,responseUrl:p.responseURL,responseType:p.responseType},s=o.responseInterceptorsStorage.execute(e.requestType,i);T.body=s.body,T.headers=s.headers}return n(t,T)}e.retryTimeout=setTimeout(function(){e.retry.moveToNextAttempt(),e.xhr=p,l(e)},e.retry.getCurrentFuzzedDelay())}function u(){if(!c){var t;clearTimeout(m),clearTimeout(e.retryTimeout),t=e.useXDR&&void 0===p.status?200:1223===p.status?204:p.status;var i=T,s=null;if(0!==t?(i={body:a(),statusCode:t,method:f,headers:{},url:g,rawRequest:p},p.getAllResponseHeaders&&(i.headers=r(p.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),e.requestType&&o.responseInterceptorsStorage.getIsEnabled()){var l={headers:i.headers||{},body:i.body,responseUrl:p.responseURL,responseType:p.responseType},h=o.responseInterceptorsStorage.execute(e.requestType,l);i.body=h.body,i.headers=h.headers}return n(s,i,i.body)}}var d,c,p=e.xhr||null;p||(p=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var m,g=p.url=e.uri||e.url,f=p.method=e.method||"GET",y=e.body||e.data,_=p.headers=e.headers||{},v=!!e.sync,b=!1,T={body:void 0,headers:{},statusCode:0,method:f,url:g,rawRequest:p};if("json"in e&&!1!==e.json&&(b=!0,_.accept||_.Accept||(_.Accept="application/json"),"GET"!==f&&"HEAD"!==f&&(_["content-type"]||_["Content-Type"]||(_["Content-Type"]="application/json"),y=JSON.stringify(!0===e.json?y:e.json))),p.onreadystatechange=function(){4!==p.readyState||o.responseInterceptorsStorage.getIsEnabled()||setTimeout(u,0)},p.onload=u,p.onerror=h,p.onprogress=function(){},p.onabort=function(){c=!0,clearTimeout(e.retryTimeout)},p.ontimeout=h,p.open(f,g,!v,e.username,e.password),v||(p.withCredentials=!!e.withCredentials),!v&&e.timeout>0&&(m=setTimeout(function(){if(!c){c=!0,p.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",h(e)}},e.timeout)),p.setRequestHeader)for(d in _)_.hasOwnProperty(d)&&p.setRequestHeader(d,_[d]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(p.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(p),p.send(y||null),p}return ht.exports=o,ht.exports.default=o,o.XMLHttpRequest=e.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:e.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(e){o["delete"===e?"del":e]=function(t,i,s){return(i=a(t,i,s)).method=e.toUpperCase(),l(i)}}),ht.exports}());var ct,pt,mt,gt,ft,yt,_t,vt={exports:{}};function bt(){if(pt)return ct;pt=1;var e=Ze(),t=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function i(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,i,s){return 3600*(0|e)+60*(0|t)+(0|i)+(0|s)/1e3}var i=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return i?i[3]?t(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?t(i[1],i[2],0,i[4]):t(0,i[1],i[2],i[4]):null}function n(){this.values=t(null)}function r(e,t,i,s){var n=s?e.split(s):[e];for(var r in n)if("string"==typeof n[r]){var a=n[r].split(i);2===a.length&&t(a[0].trim(),a[1].trim())}}function a(e,t,a){var o=e;function l(){var t=s(e);if(null===t)throw new i(i.Errors.BadTimeStamp,"Malformed timestamp: "+o);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function h(){e=e.replace(/^\s+/,"")}if(h(),t.startTime=l(),h(),"--\x3e"!==e.substr(0,3))throw new i(i.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+o);e=e.substr(3),h(),t.endTime=l(),h(),function(e,t){var i=new n;r(e,function(e,t){switch(e){case"region":for(var s=a.length-1;s>=0;s--)if(a[s].id===t){i.set(e,a[s].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var n=t.split(","),r=n[0];i.integer(e,r),i.percent(e,r)&&i.set("snapToLines",!1),i.alt(e,r,["auto"]),2===n.length&&i.alt("lineAlign",n[1],["start","center","end"]);break;case"position":n=t.split(","),i.percent(e,n[0]),2===n.length&&i.alt("positionAlign",n[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(e){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(e){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(e){t.po