/**
 * @license
 * Cesium - https://github.com/CesiumGS/cesium
 * Version 1.140.0
 *
 * Copyright 2011-2022 Cesium Contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Columbus View (Pat. Pend.)
 *
 * Portions licensed separately.
 * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
 */

import{a as mt,b as L}from"./chunk-23ZQ2IVV.js";import{a as Ee}from"./chunk-EDVBB7SS.js";import{a as ve,b as ce,c as Re,d as nt}from"./chunk-FFBVWF2L.js";import{a as v,b as k,c as we}from"./chunk-QKUIYMGC.js";import{a as O}from"./chunk-WBOV35NL.js";import{a as T,b as l}from"./chunk-TNSUQXWK.js";import{a as pt,c as dt,d as $e,e as h}from"./chunk-ILRYTWTP.js";var _n=dt((Ye,Xe)=>{/*! https://mths.be/punycode v1.4.0 by @mathias */(function(e){var t=typeof Ye=="object"&&Ye&&!Ye.nodeType&&Ye,n=typeof Xe=="object"&&Xe&&!Xe.nodeType&&Xe,r=typeof global=="object"&&global;(r.global===r||r.window===r||r.self===r)&&(e=r);var s,o=2147483647,c=36,u=1,p=26,y=38,g=700,w=72,P=128,C="-",M=/^xn--/,I=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,z={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},W=c-u,H=Math.floor,J=String.fromCharCode,ee;function te(m){throw new RangeError(z[m])}function Se(m,A){for(var U=m.length,F=[];U--;)F[U]=A(m[U]);return F}function je(m,A){var U=m.split("@"),F="";U.length>1&&(F=U[0]+"@",m=U[1]),m=m.replace(N,".");var Z=m.split("."),G=Se(Z,A).join(".");return F+G}function ye(m){for(var A=[],U=0,F=m.length,Z,G;U<F;)Z=m.charCodeAt(U++),Z>=55296&&Z<=56319&&U<F?(G=m.charCodeAt(U++),(G&64512)==56320?A.push(((Z&1023)<<10)+(G&1023)+65536):(A.push(Z),U--)):A.push(Z);return A}function ge(m){return Se(m,function(A){var U="";return A>65535&&(A-=65536,U+=J(A>>>10&1023|55296),A=56320|A&1023),U+=J(A),U}).join("")}function ue(m){return m-48<10?m-22:m-65<26?m-65:m-97<26?m-97:c}function i(m,A){return m+22+75*(m<26)-((A!=0)<<5)}function a(m,A,U){var F=0;for(m=U?H(m/g):m>>1,m+=H(m/A);m>W*p>>1;F+=c)m=H(m/W);return H(F+(W+1)*m/(m+y))}function f(m){var A=[],U=m.length,F,Z=0,G=P,$=w,ne,se,he,ae,re,le,pe,Ce,ke;for(ne=m.lastIndexOf(C),ne<0&&(ne=0),se=0;se<ne;++se)m.charCodeAt(se)>=128&&te("not-basic"),A.push(m.charCodeAt(se));for(he=ne>0?ne+1:0;he<U;){for(ae=Z,re=1,le=c;he>=U&&te("invalid-input"),pe=ue(m.charCodeAt(he++)),(pe>=c||pe>H((o-Z)/re))&&te("overflow"),Z+=pe*re,Ce=le<=$?u:le>=$+p?p:le-$,!(pe<Ce);le+=c)ke=c-Ce,re>H(o/ke)&&te("overflow"),re*=ke;F=A.length+1,$=a(Z-ae,F,ae==0),H(Z/F)>o-G&&te("overflow"),G+=H(Z/F),Z%=F,A.splice(Z++,0,G)}return ge(A)}function d(m){var A,U,F,Z,G,$,ne,se,he,ae,re,le=[],pe,Ce,ke,Bt;for(m=ye(m),pe=m.length,A=P,U=0,G=w,$=0;$<pe;++$)re=m[$],re<128&&le.push(J(re));for(F=Z=le.length,Z&&le.push(C);F<pe;){for(ne=o,$=0;$<pe;++$)re=m[$],re>=A&&re<ne&&(ne=re);for(Ce=F+1,ne-A>H((o-U)/Ce)&&te("overflow"),U+=(ne-A)*Ce,A=ne,$=0;$<pe;++$)if(re=m[$],re<A&&++U>o&&te("overflow"),re==A){for(se=U,he=c;ae=he<=G?u:he>=G+p?p:he-G,!(se<ae);he+=c)Bt=se-ae,ke=c-ae,le.push(J(i(ae+Bt%ke,0))),se=H(Bt/ke);le.push(J(i(se,0))),G=a(U,Ce,F==Z),U=0,++F}++U,++A}return le.join("")}function b(m){return je(m,function(A){return M.test(A)?f(A.slice(4).toLowerCase()):A})}function S(m){return je(m,function(A){return I.test(A)?"xn--"+d(A):A})}if(s={version:"1.3.2",ucs2:{decode:ye,encode:ge},decode:f,encode:d,toASCII:S,toUnicode:b},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return s});else if(t&&n)if(Xe.exports==t)n.exports=s;else for(ee in s)s.hasOwnProperty(ee)&&(t[ee]=s[ee]);else e.punycode=s})(Ye)});var Sn=dt((On,Ot)=>{/*!
 * URI.js - Mutating URLs
 * IPv6 Support
 *
 * Version: 1.19.11
 *
 * Author: Rodney Rehm
 * Web: http://medialize.github.io/URI.js/
 *
 * Licensed under
 *   MIT License http://www.opensource.org/licenses/mit-license
 *
 */(function(e,t){"use strict";typeof Ot=="object"&&Ot.exports?Ot.exports=t():typeof define=="function"&&define.amd?define(t):e.IPv6=t(e)})(On,function(e){"use strict";var t=e&&e.IPv6;function n(s){var o=s.toLowerCase(),c=o.split(":"),u=c.length,p=8;c[0]===""&&c[1]===""&&c[2]===""?(c.shift(),c.shift()):c[0]===""&&c[1]===""?c.shift():c[u-1]===""&&c[u-2]===""&&c.pop(),u=c.length,c[u-1].indexOf(".")!==-1&&(p=7);var y;for(y=0;y<u&&c[y]!=="";y++);if(y<p)for(c.splice(y,1,"0000");c.length<p;)c.splice(y,0,"0000");for(var g,w=0;w<p;w++){g=c[w].split("");for(var P=0;P<3&&(g[0]==="0"&&g.length>1);P++)g.splice(0,1);c[w]=g.join("")}var C=-1,M=0,I=0,N=-1,z=!1;for(w=0;w<p;w++)z?c[w]==="0"?I+=1:(z=!1,I>M&&(C=N,M=I)):c[w]==="0"&&(z=!0,N=w,I=1);I>M&&(C=N,M=I),M>1&&c.splice(C,M,""),u=c.length;var W="";for(c[0]===""&&(W=":"),w=0;w<u&&(W+=c[w],w!==u-1);w++)W+=":";return c[u-1]===""&&(W+=":"),W}function r(){return e.IPv6===this&&(e.IPv6=t),this}return{best:n,noConflict:r}})});var En=dt((vn,St)=>{/*!
 * URI.js - Mutating URLs
 * Second Level Domain (SLD) Support
 *
 * Version: 1.19.11
 *
 * Author: Rodney Rehm
 * Web: http://medialize.github.io/URI.js/
 *
 * Licensed under
 *   MIT License http://www.opensource.org/licenses/mit-license
 *
 */(function(e,t){"use strict";typeof St=="object"&&St.exports?St.exports=t():typeof define=="function"&&define.amd?define(t):e.SecondLevelDomains=t(e)})(vn,function(e){"use strict";var t=e&&e.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(r){var s=r.lastIndexOf(".");if(s<=0||s>=r.length-1)return!1;var o=r.lastIndexOf(".",s-1);if(o<=0||o>=s-1)return!1;var c=n.list[r.slice(s+1)];return c?c.indexOf(" "+r.slice(o+1,s)+" ")>=0:!1},is:function(r){var s=r.lastIndexOf(".");if(s<=0||s>=r.length-1)return!1;var o=r.lastIndexOf(".",s-1);if(o>=0)return!1;var c=n.list[r.slice(s+1)];return c?c.indexOf(" "+r.slice(0,s)+" ")>=0:!1},get:function(r){var s=r.lastIndexOf(".");if(s<=0||s>=r.length-1)return null;var o=r.lastIndexOf(".",s-1);if(o<=0||o>=s-1)return null;var c=n.list[r.slice(s+1)];return!c||c.indexOf(" "+r.slice(o+1,s)+" ")<0?null:r.slice(o+1)},noConflict:function(){return e.SecondLevelDomains===this&&(e.SecondLevelDomains=t),this}};return n})});var ze=dt((Tn,vt)=>{/*!
 * URI.js - Mutating URLs
 *
 * Version: 1.19.11
 *
 * Author: Rodney Rehm
 * Web: http://medialize.github.io/URI.js/
 *
 * Licensed under
 *   MIT License http://www.opensource.org/licenses/mit-license
 *
 */(function(e,t){"use strict";typeof vt=="object"&&vt.exports?vt.exports=t(_n(),Sn(),En()):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],t):e.URI=t(e.punycode,e.IPv6,e.SecondLevelDomains,e)})(Tn,function(e,t,n,r){"use strict";var s=r&&r.URI;function o(i,a){var f=arguments.length>=1,d=arguments.length>=2;if(!(this instanceof o))return f?d?new o(i,a):new o(i):new o;if(i===void 0){if(f)throw new TypeError("undefined is not a valid argument for URI");typeof location<"u"?i=location.href+"":i=""}if(i===null&&f)throw new TypeError("null is not a valid argument for URI");return this.href(i),a!==void 0?this.absoluteTo(a):this}function c(i){return/^[0-9]+$/.test(i)}o.version="1.19.11";var u=o.prototype,p=Object.prototype.hasOwnProperty;function y(i){return i.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function g(i){return i===void 0?"Undefined":String(Object.prototype.toString.call(i)).slice(8,-1)}function w(i){return g(i)==="Array"}function P(i,a){var f={},d,b;if(g(a)==="RegExp")f=null;else if(w(a))for(d=0,b=a.length;d<b;d++)f[a[d]]=!0;else f[a]=!0;for(d=0,b=i.length;d<b;d++){var S=f&&f[i[d]]!==void 0||!f&&a.test(i[d]);S&&(i.splice(d,1),b--,d--)}return i}function C(i,a){var f,d;if(w(a)){for(f=0,d=a.length;f<d;f++)if(!C(i,a[f]))return!1;return!0}var b=g(a);for(f=0,d=i.length;f<d;f++)if(b==="RegExp"){if(typeof i[f]=="string"&&i[f].match(a))return!0}else if(i[f]===a)return!0;return!1}function M(i,a){if(!w(i)||!w(a)||i.length!==a.length)return!1;i.sort(),a.sort();for(var f=0,d=i.length;f<d;f++)if(i[f]!==a[f])return!1;return!0}function I(i){var a=/^\/+|\/+$/g;return i.replace(a,"")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/ig,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.leading_whitespace_expression=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,o.ascii_tab_whitespace=/[\u0009\u000A\u000D]+/g,o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(i){if(!(!i||!i.nodeName)){var a=i.nodeName.toLowerCase();if(!(a==="input"&&i.type!=="image"))return o.domAttributes[a]}};function N(i){return escape(i)}function z(i){return encodeURIComponent(i).replace(/[!'()*]/g,N).replace(/\*/g,"%2A")}o.encode=z,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=z,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/ig,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(i,a){var f=o.encode(i+"");return a===void 0&&(a=o.escapeQuerySpace),a?f.replace(/%20/g,"+"):f},o.decodeQuery=function(i,a){i+="",a===void 0&&(a=o.escapeQuerySpace);try{return o.decode(a?i.replace(/\+/g,"%20"):i)}catch{return i}};var W={encode:"encode",decode:"decode"},H,J=function(i,a){return function(f){try{return o[a](f+"").replace(o.characters[i][a].expression,function(d){return o.characters[i][a].map[d]})}catch{return f}}};for(H in W)o[H+"PathSegment"]=J("pathname",W[H]),o[H+"UrnPathSegment"]=J("urnpath",W[H]);var ee=function(i,a,f){return function(d){var b;f?b=function(U){return o[a](o[f](U))}:b=o[a];for(var S=(d+"").split(i),m=0,A=S.length;m<A;m++)S[m]=b(S[m]);return S.join(i)}};o.decodePath=ee("/","decodePathSegment"),o.decodeUrnPath=ee(":","decodeUrnPathSegment"),o.recodePath=ee("/","encodePathSegment","decode"),o.recodeUrnPath=ee(":","encodeUrnPathSegment","decode"),o.encodeReserved=J("reserved","encode"),o.parse=function(i,a){var f;return a||(a={preventInvalidHostname:o.preventInvalidHostname}),i=i.replace(o.leading_whitespace_expression,""),i=i.replace(o.ascii_tab_whitespace,""),f=i.indexOf("#"),f>-1&&(a.fragment=i.substring(f+1)||null,i=i.substring(0,f)),f=i.indexOf("?"),f>-1&&(a.query=i.substring(f+1)||null,i=i.substring(0,f)),i=i.replace(/^(https?|ftp|wss?)?:+[/\\]*/i,"$1://"),i=i.replace(/^[/\\]{2,}/i,"//"),i.substring(0,2)==="//"?(a.protocol=null,i=i.substring(2),i=o.parseAuthority(i,a)):(f=i.indexOf(":"),f>-1&&(a.protocol=i.substring(0,f)||null,a.protocol&&!a.protocol.match(o.protocol_expression)?a.protocol=void 0:i.substring(f+1,f+3).replace(/\\/g,"/")==="//"?(i=i.substring(f+3),i=o.parseAuthority(i,a)):(i=i.substring(f+1),a.urn=!0))),a.path=i,a},o.parseHost=function(i,a){i||(i=""),i=i.replace(/\\/g,"/");var f=i.indexOf("/"),d,b;if(f===-1&&(f=i.length),i.charAt(0)==="[")d=i.indexOf("]"),a.hostname=i.substring(1,d)||null,a.port=i.substring(d+2,f)||null,a.port==="/"&&(a.port=null);else{var S=i.indexOf(":"),m=i.indexOf("/"),A=i.indexOf(":",S+1);A!==-1&&(m===-1||A<m)?(a.hostname=i.substring(0,f)||null,a.port=null):(b=i.substring(0,f).split(":"),a.hostname=b[0]||null,a.port=b[1]||null)}return a.hostname&&i.substring(f).charAt(0)!=="/"&&(f++,i="/"+i),a.preventInvalidHostname&&o.ensureValidHostname(a.hostname,a.protocol),a.port&&o.ensureValidPort(a.port),i.substring(f)||"/"},o.parseAuthority=function(i,a){return i=o.parseUserinfo(i,a),o.parseHost(i,a)},o.parseUserinfo=function(i,a){var f=i,d=i.indexOf("\\");d!==-1&&(i=i.replace(/\\/g,"/"));var b=i.indexOf("/"),S=i.lastIndexOf("@",b>-1?b:i.length-1),m;return S>-1&&(b===-1||S<b)?(m=i.substring(0,S).split(":"),a.username=m[0]?o.decode(m[0]):null,m.shift(),a.password=m[0]?o.decode(m.join(":")):null,i=f.substring(S+1)):(a.username=null,a.password=null),i},o.parseQuery=function(i,a){if(!i)return{};if(i=i.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!i)return{};for(var f={},d=i.split("&"),b=d.length,S,m,A,U=0;U<b;U++)S=d[U].split("="),m=o.decodeQuery(S.shift(),a),A=S.length?o.decodeQuery(S.join("="),a):null,m!=="__proto__"&&(p.call(f,m)?((typeof f[m]=="string"||f[m]===null)&&(f[m]=[f[m]]),f[m].push(A)):f[m]=A);return f},o.build=function(i){var a="",f=!1;return i.protocol&&(a+=i.protocol+":"),!i.urn&&(a||i.hostname)&&(a+="//",f=!0),a+=o.buildAuthority(i)||"",typeof i.path=="string"&&(i.path.charAt(0)!=="/"&&f&&(a+="/"),a+=i.path),typeof i.query=="string"&&i.query&&(a+="?"+i.query),typeof i.fragment=="string"&&i.fragment&&(a+="#"+i.fragment),a},o.buildHost=function(i){var a="";if(i.hostname)o.ip6_expression.test(i.hostname)?a+="["+i.hostname+"]":a+=i.hostname;else return"";return i.port&&(a+=":"+i.port),a},o.buildAuthority=function(i){return o.buildUserinfo(i)+o.buildHost(i)},o.buildUserinfo=function(i){var a="";return i.username&&(a+=o.encode(i.username)),i.password&&(a+=":"+o.encode(i.password)),a&&(a+="@"),a},o.buildQuery=function(i,a,f){var d="",b,S,m,A;for(S in i)if(S!=="__proto__"&&p.call(i,S))if(w(i[S]))for(b={},m=0,A=i[S].length;m<A;m++)i[S][m]!==void 0&&b[i[S][m]+""]===void 0&&(d+="&"+o.buildQueryParameter(S,i[S][m],f),a!==!0&&(b[i[S][m]+""]=!0));else i[S]!==void 0&&(d+="&"+o.buildQueryParameter(S,i[S],f));return d.substring(1)},o.buildQueryParameter=function(i,a,f){return o.encodeQuery(i,f)+(a!==null?"="+o.encodeQuery(a,f):"")},o.addQuery=function(i,a,f){if(typeof a=="object")for(var d in a)p.call(a,d)&&o.addQuery(i,d,a[d]);else if(typeof a=="string"){if(i[a]===void 0){i[a]=f;return}else typeof i[a]=="string"&&(i[a]=[i[a]]);w(f)||(f=[f]),i[a]=(i[a]||[]).concat(f)}else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")},o.setQuery=function(i,a,f){if(typeof a=="object")for(var d in a)p.call(a,d)&&o.setQuery(i,d,a[d]);else if(typeof a=="string")i[a]=f===void 0?null:f;else throw new TypeError("URI.setQuery() accepts an object, string as the name parameter")},o.removeQuery=function(i,a,f){var d,b,S;if(w(a))for(d=0,b=a.length;d<b;d++)i[a[d]]=void 0;else if(g(a)==="RegExp")for(S in i)a.test(S)&&(i[S]=void 0);else if(typeof a=="object")for(S in a)p.call(a,S)&&o.removeQuery(i,S,a[S]);else if(typeof a=="string")f!==void 0?g(f)==="RegExp"?!w(i[a])&&f.test(i[a])?i[a]=void 0:i[a]=P(i[a],f):i[a]===String(f)&&(!w(f)||f.length===1)?i[a]=void 0:w(i[a])&&(i[a]=P(i[a],f)):i[a]=void 0;else throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter")},o.hasQuery=function(i,a,f,d){switch(g(a)){case"String":break;case"RegExp":for(var b in i)if(p.call(i,b)&&a.test(b)&&(f===void 0||o.hasQuery(i,b,f)))return!0;return!1;case"Object":for(var S in a)if(p.call(a,S)&&!o.hasQuery(i,S,a[S]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(g(f)){case"Undefined":return a in i;case"Boolean":var m=!!(w(i[a])?i[a].length:i[a]);return f===m;case"Function":return!!f(i[a],a,i);case"Array":if(!w(i[a]))return!1;var A=d?C:M;return A(i[a],f);case"RegExp":return w(i[a])?d?C(i[a],f):!1:!!(i[a]&&i[a].match(f));case"Number":f=String(f);case"String":return w(i[a])?d?C(i[a],f):!1:i[a]===f;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var i=[],a=[],f=0,d=0;d<arguments.length;d++){var b=new o(arguments[d]);i.push(b);for(var S=b.segment(),m=0;m<S.length;m++)typeof S[m]=="string"&&a.push(S[m]),S[m]&&f++}if(!a.length||!f)return new o("");var A=new o("").segment(a);return(i[0].path()===""||i[0].path().slice(0,1)==="/")&&A.path("/"+A.path()),A.normalize()},o.commonPath=function(i,a){var f=Math.min(i.length,a.length),d;for(d=0;d<f;d++)if(i.charAt(d)!==a.charAt(d)){d--;break}return d<1?i.charAt(0)===a.charAt(0)&&i.charAt(0)==="/"?"/":"":((i.charAt(d)!=="/"||a.charAt(d)!=="/")&&(d=i.substring(0,d).lastIndexOf("/")),i.substring(0,d+1))},o.withinString=function(i,a,f){f||(f={});var d=f.start||o.findUri.start,b=f.end||o.findUri.end,S=f.trim||o.findUri.trim,m=f.parens||o.findUri.parens,A=/[a-z0-9-]=["']?$/i;for(d.lastIndex=0;;){var U=d.exec(i);if(!U)break;var F=U.index;if(f.ignoreHtml){var Z=i.slice(Math.max(F-3,0),F);if(Z&&A.test(Z))continue}for(var G=F+i.slice(F).search(b),$=i.slice(F,G),ne=-1;;){var se=m.exec($);if(!se)break;var he=se.index+se[0].length;ne=Math.max(ne,he)}if(ne>-1?$=$.slice(0,ne)+$.slice(ne).replace(S,""):$=$.replace(S,""),!($.length<=U[0].length)&&!(f.ignore&&f.ignore.test($))){G=F+$.length;var ae=a($,F,G,i);if(ae===void 0){d.lastIndex=G;continue}ae=String(ae),i=i.slice(0,F)+ae+i.slice(G),d.lastIndex=F+ae.length}}return d.lastIndex=0,i},o.ensureValidHostname=function(i,a){var f=!!i,d=!!a,b=!1;if(d&&(b=C(o.hostProtocols,a)),b&&!f)throw new TypeError("Hostname cannot be empty, if protocol is "+a);if(i&&i.match(o.invalid_hostname_characters)){if(!e)throw new TypeError('Hostname "'+i+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(e.toASCII(i).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+i+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(i){if(i){var a=Number(i);if(!(c(a)&&a>0&&a<65536))throw new TypeError('Port "'+i+'" is not a valid port')}},o.noConflict=function(i){if(i){var a={URI:this.noConflict()};return r.URITemplate&&typeof r.URITemplate.noConflict=="function"&&(a.URITemplate=r.URITemplate.noConflict()),r.IPv6&&typeof r.IPv6.noConflict=="function"&&(a.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&typeof r.SecondLevelDomains.noConflict=="function"&&(a.SecondLevelDomains=r.SecondLevelDomains.noConflict()),a}else r.URI===this&&(r.URI=s);return this},u.build=function(i){return i===!0?this._deferred_build=!0:(i===void 0||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},u.clone=function(){return new o(this)},u.valueOf=u.toString=function(){return this.build(!1)._string};function te(i){return function(a,f){return a===void 0?this._parts[i]||"":(this._parts[i]=a||null,this.build(!f),this)}}function Se(i,a){return function(f,d){return f===void 0?this._parts[i]||"":(f!==null&&(f=f+"",f.charAt(0)===a&&(f=f.substring(1))),this._parts[i]=f,this.build(!d),this)}}u.protocol=te("protocol"),u.username=te("username"),u.password=te("password"),u.hostname=te("hostname"),u.port=te("port"),u.query=Se("query","?"),u.fragment=Se("fragment","#"),u.search=function(i,a){var f=this.query(i,a);return typeof f=="string"&&f.length?"?"+f:f},u.hash=function(i,a){var f=this.fragment(i,a);return typeof f=="string"&&f.length?"#"+f:f},u.pathname=function(i,a){if(i===void 0||i===!0){var f=this._parts.path||(this._parts.hostname?"/":"");return i?(this._parts.urn?o.decodeUrnPath:o.decodePath)(f):f}else return this._parts.urn?this._parts.path=i?o.recodeUrnPath(i):"":this._parts.path=i?o.recodePath(i):"/",this.build(!a),this},u.path=u.pathname,u.href=function(i,a){var f;if(i===void 0)return this.toString();this._string="",this._parts=o._parts();var d=i instanceof o,b=typeof i=="object"&&(i.hostname||i.path||i.pathname);if(i.nodeName){var S=o.getDomAttribute(i);i=i[S]||"",b=!1}if(!d&&b&&i.pathname!==void 0&&(i=i.toString()),typeof i=="string"||i instanceof String)this._parts=o.parse(String(i),this._parts);else if(d||b){var m=d?i._parts:i;for(f in m)f!=="query"&&p.call(this._parts,f)&&(this._parts[f]=m[f]);m.query&&this.query(m.query,!1)}else throw new TypeError("invalid input");return this.build(!a),this},u.is=function(i){var a=!1,f=!1,d=!1,b=!1,S=!1,m=!1,A=!1,U=!this._parts.urn;switch(this._parts.hostname&&(U=!1,f=o.ip4_expression.test(this._parts.hostname),d=o.ip6_expression.test(this._parts.hostname),a=f||d,b=!a,S=b&&n&&n.has(this._parts.hostname),m=b&&o.idn_expression.test(this._parts.hostname),A=b&&o.punycode_expression.test(this._parts.hostname)),i.toLowerCase()){case"relative":return U;case"absolute":return!U;case"domain":case"name":return b;case"sld":return S;case"ip":return a;case"ip4":case"ipv4":case"inet4":return f;case"ip6":case"ipv6":case"inet6":return d;case"idn":return m;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return A}return null};var je=u.protocol,ye=u.port,ge=u.hostname;u.protocol=function(i,a){if(i&&(i=i.replace(/:(\/\/)?$/,""),!i.match(o.protocol_expression)))throw new TypeError('Protocol "'+i+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return je.call(this,i,a)},u.scheme=u.protocol,u.port=function(i,a){return this._parts.urn?i===void 0?"":this:(i!==void 0&&(i===0&&(i=null),i&&(i+="",i.charAt(0)===":"&&(i=i.substring(1)),o.ensureValidPort(i))),ye.call(this,i,a))},u.hostname=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(i!==void 0){var f={preventInvalidHostname:this._parts.preventInvalidHostname},d=o.parseHost(i,f);if(d!=="/")throw new TypeError('Hostname "'+i+'" contains characters other than [A-Z0-9.-]');i=f.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(i,this._parts.protocol)}return ge.call(this,i,a)},u.origin=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(i===void 0){var f=this.protocol(),d=this.authority();return d?(f?f+"://":"")+this.authority():""}else{var b=o(i);return this.protocol(b.protocol()).authority(b.authority()).build(!a),this}},u.host=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(i===void 0)return this._parts.hostname?o.buildHost(this._parts):"";var f=o.parseHost(i,this._parts);if(f!=="/")throw new TypeError('Hostname "'+i+'" contains characters other than [A-Z0-9.-]');return this.build(!a),this},u.authority=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(i===void 0)return this._parts.hostname?o.buildAuthority(this._parts):"";var f=o.parseAuthority(i,this._parts);if(f!=="/")throw new TypeError('Hostname "'+i+'" contains characters other than [A-Z0-9.-]');return this.build(!a),this},u.userinfo=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(i===void 0){var f=o.buildUserinfo(this._parts);return f&&f.substring(0,f.length-1)}else return i[i.length-1]!=="@"&&(i+="@"),o.parseUserinfo(i,this._parts),this.build(!a),this},u.resource=function(i,a){var f;return i===void 0?this.path()+this.search()+this.hash():(f=o.parse(i),this._parts.path=f.path,this._parts.query=f.query,this._parts.fragment=f.fragment,this.build(!a),this)},u.subdomain=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(i===void 0){if(!this._parts.hostname||this.is("IP"))return"";var f=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,f)||""}else{var d=this._parts.hostname.length-this.domain().length,b=this._parts.hostname.substring(0,d),S=new RegExp("^"+y(b));if(i&&i.charAt(i.length-1)!=="."&&(i+="."),i.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");return i&&o.ensureValidHostname(i,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(S,i),this.build(!a),this}},u.domain=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(typeof i=="boolean"&&(a=i,i=void 0),i===void 0){if(!this._parts.hostname||this.is("IP"))return"";var f=this._parts.hostname.match(/\./g);if(f&&f.length<2)return this._parts.hostname;var d=this._parts.hostname.length-this.tld(a).length-1;return d=this._parts.hostname.lastIndexOf(".",d-1)+1,this._parts.hostname.substring(d)||""}else{if(!i)throw new TypeError("cannot set domain empty");if(i.indexOf(":")!==-1)throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(i,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=i;else{var b=new RegExp(y(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(b,i)}return this.build(!a),this}},u.tld=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(typeof i=="boolean"&&(a=i,i=void 0),i===void 0){if(!this._parts.hostname||this.is("IP"))return"";var f=this._parts.hostname.lastIndexOf("."),d=this._parts.hostname.substring(f+1);return a!==!0&&n&&n.list[d.toLowerCase()]&&n.get(this._parts.hostname)||d}else{var b;if(i)if(i.match(/[^a-zA-Z0-9-]/))if(n&&n.is(i))b=new RegExp(y(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(b,i);else throw new TypeError('TLD "'+i+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");b=new RegExp(y(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(b,i)}else throw new TypeError("cannot set TLD empty");return this.build(!a),this}},u.directory=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(i===void 0||i===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var f=this._parts.path.length-this.filename().length-1,d=this._parts.path.substring(0,f)||(this._parts.hostname?"/":"");return i?o.decodePath(d):d}else{var b=this._parts.path.length-this.filename().length,S=this._parts.path.substring(0,b),m=new RegExp("^"+y(S));return this.is("relative")||(i||(i="/"),i.charAt(0)!=="/"&&(i="/"+i)),i&&i.charAt(i.length-1)!=="/"&&(i+="/"),i=o.recodePath(i),this._parts.path=this._parts.path.replace(m,i),this.build(!a),this}},u.filename=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(typeof i!="string"){if(!this._parts.path||this._parts.path==="/")return"";var f=this._parts.path.lastIndexOf("/"),d=this._parts.path.substring(f+1);return i?o.decodePathSegment(d):d}else{var b=!1;i.charAt(0)==="/"&&(i=i.substring(1)),i.match(/\.?\//)&&(b=!0);var S=new RegExp(y(this.filename())+"$");return i=o.recodePath(i),this._parts.path=this._parts.path.replace(S,i),b?this.normalizePath(a):this.build(!a),this}},u.suffix=function(i,a){if(this._parts.urn)return i===void 0?"":this;if(i===void 0||i===!0){if(!this._parts.path||this._parts.path==="/")return"";var f=this.filename(),d=f.lastIndexOf("."),b,S;return d===-1?"":(b=f.substring(d+1),S=/^[a-z0-9%]+$/i.test(b)?b:"",i?o.decodePathSegment(S):S)}else{i.charAt(0)==="."&&(i=i.substring(1));var m=this.suffix(),A;if(m)i?A=new RegExp(y(m)+"$"):A=new RegExp(y("."+m)+"$");else{if(!i)return this;this._parts.path+="."+o.recodePath(i)}return A&&(i=o.recodePath(i),this._parts.path=this._parts.path.replace(A,i)),this.build(!a),this}},u.segment=function(i,a,f){var d=this._parts.urn?":":"/",b=this.path(),S=b.substring(0,1)==="/",m=b.split(d);if(i!==void 0&&typeof i!="number"&&(f=a,a=i,i=void 0),i!==void 0&&typeof i!="number")throw new Error('Bad segment "'+i+'", must be 0-based integer');if(S&&m.shift(),i<0&&(i=Math.max(m.length+i,0)),a===void 0)return i===void 0?m:m[i];if(i===null||m[i]===void 0)if(w(a)){m=[];for(var A=0,U=a.length;A<U;A++)!a[A].length&&(!m.length||!m[m.length-1].length)||(m.length&&!m[m.length-1].length&&m.pop(),m.push(I(a[A])))}else(a||typeof a=="string")&&(a=I(a),m[m.length-1]===""?m[m.length-1]=a:m.push(a));else a?m[i]=I(a):m.splice(i,1);return S&&m.unshift(""),this.path(m.join(d),f)},u.segmentCoded=function(i,a,f){var d,b,S;if(typeof i!="number"&&(f=a,a=i,i=void 0),a===void 0){if(d=this.segment(i,a,f),!w(d))d=d!==void 0?o.decode(d):void 0;else for(b=0,S=d.length;b<S;b++)d[b]=o.decode(d[b]);return d}if(!w(a))a=typeof a=="string"||a instanceof String?o.encode(a):a;else for(b=0,S=a.length;b<S;b++)a[b]=o.encode(a[b]);return this.segment(i,a,f)};var ue=u.query;return u.query=function(i,a){if(i===!0)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof i=="function"){var f=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),d=i.call(this,f);return this._parts.query=o.buildQuery(d||f,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!a),this}else return i!==void 0&&typeof i!="string"?(this._parts.query=o.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!a),this):ue.call(this,i,a)},u.setQuery=function(i,a,f){var d=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof i=="string"||i instanceof String)d[i]=a!==void 0?a:null;else if(typeof i=="object")for(var b in i)p.call(i,b)&&(d[b]=i[b]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");return this._parts.query=o.buildQuery(d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof i!="string"&&(f=a),this.build(!f),this},u.addQuery=function(i,a,f){var d=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(d,i,a===void 0?null:a),this._parts.query=o.buildQuery(d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof i!="string"&&(f=a),this.build(!f),this},u.removeQuery=function(i,a,f){var d=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(d,i,a),this._parts.query=o.buildQuery(d,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof i!="string"&&(f=a),this.build(!f),this},u.hasQuery=function(i,a,f){var d=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(d,i,a,f)},u.setSearch=u.setQuery,u.addSearch=u.addQuery,u.removeSearch=u.removeQuery,u.hasSearch=u.hasQuery,u.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},u.normalizeProtocol=function(i){return typeof this._parts.protocol=="string"&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!i)),this},u.normalizeHostname=function(i){return this._parts.hostname&&(this.is("IDN")&&e?this._parts.hostname=e.toASCII(this._parts.hostname):this.is("IPv6")&&t&&(this._parts.hostname=t.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!i)),this},u.normalizePort=function(i){return typeof this._parts.protocol=="string"&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!i)),this},u.normalizePath=function(i){var a=this._parts.path;if(!a)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!i),this;if(this._parts.path==="/")return this;a=o.recodePath(a);var f,d="",b,S;for(a.charAt(0)!=="/"&&(f=!0,a="/"+a),(a.slice(-3)==="/.."||a.slice(-2)==="/.")&&(a+="/"),a=a.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),f&&(d=a.substring(1).match(/^(\.\.\/)+/)||"",d&&(d=d[0]));b=a.search(/\/\.\.(\/|$)/),b!==-1;){if(b===0){a=a.substring(3);continue}S=a.substring(0,b).lastIndexOf("/"),S===-1&&(S=b),a=a.substring(0,S)+a.substring(b+3)}return f&&this.is("relative")&&(a=d+a.substring(1)),this._parts.path=a,this.build(!i),this},u.normalizePathname=u.normalizePath,u.normalizeQuery=function(i){return typeof this._parts.query=="string"&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!i)),this},u.normalizeFragment=function(i){return this._parts.fragment||(this._parts.fragment=null,this.build(!i)),this},u.normalizeSearch=u.normalizeQuery,u.normalizeHash=u.normalizeFragment,u.iso8859=function(){var i=o.encode,a=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=i,o.decode=a}return this},u.unicode=function(){var i=o.encode,a=o.decode;o.encode=z,o.decode=unescape;try{this.normalize()}finally{o.encode=i,o.decode=a}return this},u.readable=function(){var i=this.clone();i.username("").password("").normalize();var a="";if(i._parts.protocol&&(a+=i._parts.protocol+"://"),i._parts.hostname&&(i.is("punycode")&&e?(a+=e.toUnicode(i._parts.hostname),i._parts.port&&(a+=":"+i._parts.port)):a+=i.host()),i._parts.hostname&&i._parts.path&&i._parts.path.charAt(0)!=="/"&&(a+="/"),a+=i.path(!0),i._parts.query){for(var f="",d=0,b=i._parts.query.split("&"),S=b.length;d<S;d++){var m=(b[d]||"").split("=");f+="&"+o.decodeQuery(m[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),m[1]!==void 0&&(f+="="+o.decodeQuery(m[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}a+="?"+f.substring(1)}return a+=o.decodeQuery(i.hash(),!0),a},u.absoluteTo=function(i){var a=this.clone(),f=["protocol","username","password","hostname","port"],d,b,S;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(i instanceof o||(i=new o(i)),a._parts.protocol||(a._parts.protocol=i._parts.protocol,this._parts.hostname))return a;for(b=0;S=f[b];b++)a._parts[S]=i._parts[S];return a._parts.path?(a._parts.path.substring(-2)===".."&&(a._parts.path+="/"),a.path().charAt(0)!=="/"&&(d=i.directory(),d=d||(i.path().indexOf("/")===0?"/":""),a._parts.path=(d?d+"/":"")+a._parts.path,a.normalizePath())):(a._parts.path=i._parts.path,a._parts.query||(a._parts.query=i._parts.query)),a.build(),a},u.relativeTo=function(i){var a=this.clone().normalize(),f,d,b,S,m;if(a._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(i=new o(i).normalize(),f=a._parts,d=i._parts,S=a.path(),m=i.path(),S.charAt(0)!=="/")throw new Error("URI is already relative");if(m.charAt(0)!=="/")throw new Error("Cannot calculate a URI relative to another relative URI");if(f.protocol===d.protocol&&(f.protocol=null),f.username!==d.username||f.password!==d.password||f.protocol!==null||f.username!==null||f.password!==null)return a.build();if(f.hostname===d.hostname&&f.port===d.port)f.hostname=null,f.port=null;else return a.build();if(S===m)return f.path="",a.build();if(b=o.commonPath(S,m),!b)return a.build();var A=d.path.substring(b.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return f.path=A+f.path.substring(b.length)||"./",a.build()},u.equals=function(i){var a=this.clone(),f=new o(i),d={},b={},S={},m,A,U;if(a.normalize(),f.normalize(),a.toString()===f.toString())return!0;if(m=a.query(),A=f.query(),a.query(""),f.query(""),a.toString()!==f.toString()||m.length!==A.length)return!1;d=o.parseQuery(m,this._parts.escapeQuerySpace),b=o.parseQuery(A,this._parts.escapeQuerySpace);for(U in d)if(p.call(d,U)){if(w(d[U])){if(!M(d[U],b[U]))return!1}else if(d[U]!==b[U])return!1;S[U]=!0}for(U in b)if(p.call(b,U)&&!S[U])return!1;return!0},u.preventInvalidHostname=function(i){return this._parts.preventInvalidHostname=!!i,this},u.duplicateQueryParameters=function(i){return this._parts.duplicateQueryParameters=!!i,this},u.escapeQuerySpace=function(i){return this._parts.escapeQuerySpace=!!i,this},o})});function yn(e,t,n){n=n??!1;let r={},s=h(e),o=h(t),c,u,p;if(s)for(c in e)e.hasOwnProperty(c)&&(u=e[c],o&&n&&typeof u=="object"&&t.hasOwnProperty(c)?(p=t[c],typeof p=="object"?r[c]=yn(u,p,n):r[c]=u):r[c]=u);if(o)for(c in t)t.hasOwnProperty(c)&&!r.hasOwnProperty(c)&&(p=t[c],r[c]=p);return r}var Pe=yn;function _r(e,t,n){l.defined("array",e),l.defined("itemToFind",t),l.defined("comparator",n);let r=0,s=e.length-1,o,c;for(;r<=s;){if(o=~~((r+s)/2),c=n(e[o],t),c<0){r=o+1;continue}if(c>0){s=o-1;continue}return o}return~(s+1)}var Ne=_r;function Or(e,t,n,r,s){this.xPoleWander=e,this.yPoleWander=t,this.xPoleOffset=n,this.yPoleOffset=r,this.ut1MinusUtc=s}var rt=Or;function Sr(e){if(e===null||isNaN(e))throw new T("year is required and must be a number.");return e%4===0&&e%100!==0||e%400===0}var ot=Sr;var gn=[31,28,31,30,31,30,31,31,30,31,30,31];function vr(e,t,n,r,s,o,c,u){e=e??1,t=t??1,n=n??1,r=r??0,s=s??0,o=o??0,c=c??0,u=u??!1,I(),N(),this.year=e,this.month=t,this.day=n,this.hour=r,this.minute=s,this.second=o,this.millisecond=c,this.isLeapSecond=u;function I(){l.typeOf.number.greaterThanOrEquals("Year",e,1),l.typeOf.number.lessThanOrEquals("Year",e,9999),l.typeOf.number.greaterThanOrEquals("Month",t,1),l.typeOf.number.lessThanOrEquals("Month",t,12),l.typeOf.number.greaterThanOrEquals("Day",n,1),l.typeOf.number.lessThanOrEquals("Day",n,31),l.typeOf.number.greaterThanOrEquals("Hour",r,0),l.typeOf.number.lessThanOrEquals("Hour",r,23),l.typeOf.number.greaterThanOrEquals("Minute",s,0),l.typeOf.number.lessThanOrEquals("Minute",s,59),l.typeOf.bool("IsLeapSecond",u),l.typeOf.number.greaterThanOrEquals("Second",o,0),l.typeOf.number.lessThanOrEquals("Second",o,u?60:59),l.typeOf.number.greaterThanOrEquals("Millisecond",c,0),l.typeOf.number.lessThan("Millisecond",c,1e3)}function N(){let z=t===2&&ot(e)?gn[t-1]+1:gn[t-1];if(n>z)throw new T("Month and Day represents invalid date")}}var yt=vr;function Er(e,t){this.julianDate=e,this.offset=t}var Q=Er;var Tr={SECONDS_PER_MILLISECOND:.001,SECONDS_PER_MINUTE:60,MINUTES_PER_HOUR:60,HOURS_PER_DAY:24,SECONDS_PER_HOUR:3600,MINUTES_PER_DAY:1440,SECONDS_PER_DAY:86400,DAYS_PER_JULIAN_CENTURY:36525,PICOSECOND:1e-9,MODIFIED_JULIAN_DATE_DIFFERENCE:24000005e-1},V=Object.freeze(Tr);var xr={UTC:0,TAI:1},j=Object.freeze(xr);var bn=new yt,gt=[31,28,31,30,31,30,31,31,30,31,30,31],wt=29;function Qt(e,t){return x.compare(e.julianDate,t.julianDate)}var Ve=new Q;function _t(e){Ve.julianDate=e;let t=x.leapSeconds,n=Ne(t,Ve,Qt);n<0&&(n=~n),n>=t.length&&(n=t.length-1);let r=t[n].offset;n>0&&x.secondsDifference(t[n].julianDate,e)>r&&(n--,r=t[n].offset),x.addSeconds(e,r,e)}function wn(e,t){Ve.julianDate=e;let n=x.leapSeconds,r=Ne(n,Ve,Qt);if(r<0&&(r=~r),r===0)return x.addSeconds(e,-n[0].offset,t);if(r>=n.length)return x.addSeconds(e,-n[r-1].offset,t);let s=x.secondsDifference(n[r].julianDate,e);if(s===0)return x.addSeconds(e,-n[r].offset,t);if(!(s<=1))return x.addSeconds(e,-n[--r].offset,t)}function Ie(e,t,n){let r=t/V.SECONDS_PER_DAY|0;return e+=r,t-=V.SECONDS_PER_DAY*r,t<0&&(e--,t+=V.SECONDS_PER_DAY),n.dayNumber=e,n.secondsOfDay=t,n}function Ht(e,t,n,r,s,o,c){let u=(t-14)/12|0,p=e+4800+u,y=(1461*p/4|0)+(367*(t-2-12*u)/12|0)-(3*((p+100)/100|0)/4|0)+n-32075;r=r-12,r<0&&(r+=24);let g=o+(r*V.SECONDS_PER_HOUR+s*V.SECONDS_PER_MINUTE+c*V.SECONDS_PER_MILLISECOND);return g>=43200&&(y-=1),[y,g]}var Ar=/^(\d{4})$/,Cr=/^(\d{4})-(\d{2})$/,Rr=/^(\d{4})-?(\d{3})$/,Pr=/^(\d{4})-?W(\d{2})-?(\d{1})?$/,Ir=/^(\d{4})-?(\d{2})-?(\d{2})$/,Wt=/([Z+\-])?(\d{2})?:?(\d{2})?$/,Ur=/^(\d{2})(\.\d+)?/.source+Wt.source,Mr=/^(\d{2}):?(\d{2})(\.\d+)?/.source+Wt.source,Dr=/^(\d{2}):?(\d{2}):?(\d{2})(\.\d+)?/.source+Wt.source,de="Invalid ISO 8601 date.";function x(e,t,n){this.dayNumber=void 0,this.secondsOfDay=void 0,e=e??0,t=t??0,n=n??j.UTC;let r=e|0;t=t+(e-r)*V.SECONDS_PER_DAY,Ie(r,t,this),n===j.UTC&&_t(this)}x.fromGregorianDate=function(e,t){if(!(e instanceof yt))throw new T("date must be a valid GregorianDate.");let n=Ht(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond);return h(t)?(Ie(n[0],n[1],t),_t(t),t):new x(n[0],n[1],j.UTC)};x.fromDate=function(e,t){if(!(e instanceof Date)||isNaN(e.getTime()))throw new T("date must be a valid JavaScript Date.");let n=Ht(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds());return h(t)?(Ie(n[0],n[1],t),_t(t),t):new x(n[0],n[1],j.UTC)};x.fromIso8601=function(e,t){if(typeof e!="string")throw new T(de);e=e.replace(",",".");let n=e.split("T"),r,s=1,o=1,c=0,u=0,p=0,y=0,g=n[0],w=n[1],P,C;if(!h(g))throw new T(de);let M;if(n=g.match(Ir),n!==null){if(M=g.split("-").length-1,M>0&&M!==2)throw new T(de);r=+n[1],s=+n[2],o=+n[3]}else if(n=g.match(Cr),n!==null)r=+n[1],s=+n[2];else if(n=g.match(Ar),n!==null)r=+n[1];else{let W;if(n=g.match(Rr),n!==null){if(r=+n[1],W=+n[2],C=ot(r),W<1||C&&W>366||!C&&W>365)throw new T(de)}else if(n=g.match(Pr),n!==null){r=+n[1];let H=+n[2],J=+n[3]||0;if(M=g.split("-").length-1,M>0&&(!h(n[3])&&M!==1||h(n[3])&&M!==2))throw new T(de);let ee=new Date(Date.UTC(r,0,4));W=H*7+J-ee.getUTCDay()-3}else throw new T(de);P=new Date(Date.UTC(r,0,1)),P.setUTCDate(W),s=P.getUTCMonth()+1,o=P.getUTCDate()}if(C=ot(r),s<1||s>12||o<1||(s!==2||!C)&&o>gt[s-1]||C&&s===2&&o>wt)throw new T(de);let I;if(h(w)){if(n=w.match(Dr),n!==null){if(M=w.split(":").length-1,M>0&&M!==2&&M!==3)throw new T(de);c=+n[1],u=+n[2],p=+n[3],y=+(n[4]||0)*1e3,I=5}else if(n=w.match(Mr),n!==null){if(M=w.split(":").length-1,M>2)throw new T(de);c=+n[1],u=+n[2],p=+(n[3]||0)*60,I=4}else if(n=w.match(Ur),n!==null)c=+n[1],u=+(n[2]||0)*60,I=3;else throw new T(de);if(u>=60||p>=61||c>24||c===24&&(u>0||p>0||y>0))throw new T(de);let W=n[I],H=+n[I+1],J=+(n[I+2]||0);switch(W){case"+":c=c-H,u=u-J;break;case"-":c=c+H,u=u+J;break;case"Z":break;default:u=u+new Date(Date.UTC(r,s-1,o,c,u)).getTimezoneOffset();break}}let N=p===60;for(N&&p--;u>=60;)u-=60,c++;for(;c>=24;)c-=24,o++;for(P=C&&s===2?wt:gt[s-1];o>P;)o-=P,s++,s>12&&(s-=12,r++),P=C&&s===2?wt:gt[s-1];for(;u<0;)u+=60,c--;for(;c<0;)c+=24,o--;for(;o<1;)s--,s<1&&(s+=12,r--),P=C&&s===2?wt:gt[s-1],o+=P;let z=Ht(r,s,o,c,u,p,y);return h(t)?(Ie(z[0],z[1],t),_t(t)):t=new x(z[0],z[1],j.UTC),N&&x.addSeconds(t,1,t),t};x.now=function(e){return x.fromDate(new Date,e)};var bt=new x(0,0,j.TAI);x.toGregorianDate=function(e,t){if(!h(e))throw new T("julianDate is required.");let n=!1,r=wn(e,bt);h(r)||(x.addSeconds(e,-1,bt),r=wn(bt,bt),n=!0);let s=r.dayNumber,o=r.secondsOfDay;o>=43200&&(s+=1);let c=s+68569|0,u=4*c/146097|0;c=c-((146097*u+3)/4|0)|0;let p=4e3*(c+1)/1461001|0;c=c-(1461*p/4|0)+31|0;let y=80*c/2447|0,g=c-(2447*y/80|0)|0;c=y/11|0;let w=y+2-12*c|0,P=100*(u-49)+p+c|0,C=o/V.SECONDS_PER_HOUR|0,M=o-C*V.SECONDS_PER_HOUR,I=M/V.SECONDS_PER_MINUTE|0;M=M-I*V.SECONDS_PER_MINUTE;let N=M|0,z=(M-N)/V.SECONDS_PER_MILLISECOND;return C+=12,C>23&&(C-=24),n&&(N+=1),h(t)?(t.year=P,t.month=w,t.day=g,t.hour=C,t.minute=I,t.second=N,t.millisecond=z,t.isLeapSecond=n,t):new yt(P,w,g,C,I,N,z,n)};x.toDate=function(e){if(!h(e))throw new T("julianDate is required.");let t=x.toGregorianDate(e,bn),n=t.second;return t.isLeapSecond&&(n-=1),new Date(Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,n,t.millisecond))};x.toIso8601=function(e,t){if(!h(e))throw new T("julianDate is required.");let n=x.toGregorianDate(e,bn),r=n.year,s=n.month,o=n.day,c=n.hour,u=n.minute,p=n.second,y=n.millisecond;r===1e4&&s===1&&o===1&&c===0&&u===0&&p===0&&y===0&&(r=9999,s=12,o=31,c=24);let g;if(!h(t)&&y!==0){let w=y*.01;return g=w<1e-6?w.toFixed(20).replace(".","").replace(/0+$/,""):w.toString().replace(".",""),`${r.toString().padStart(4,"0")}-${s.toString().padStart(2,"0")}-${o.toString().padStart(2,"0")}T${c.toString().padStart(2,"0")}:${u.toString().padStart(2,"0")}:${p.toString().padStart(2,"0")}.${g}Z`}return!h(t)||t===0?`${r.toString().padStart(4,"0")}-${s.toString().padStart(2,"0")}-${o.toString().padStart(2,"0")}T${c.toString().padStart(2,"0")}:${u.toString().padStart(2,"0")}:${p.toString().padStart(2,"0")}Z`:(g=(y*.01).toFixed(t).replace(".","").slice(0,t),`${r.toString().padStart(4,"0")}-${s.toString().padStart(2,"0")}-${o.toString().padStart(2,"0")}T${c.toString().padStart(2,"0")}:${u.toString().padStart(2,"0")}:${p.toString().padStart(2,"0")}.${g}Z`)};x.clone=function(e,t){if(h(e))return h(t)?(t.dayNumber=e.dayNumber,t.secondsOfDay=e.secondsOfDay,t):new x(e.dayNumber,e.secondsOfDay,j.TAI)};x.compare=function(e,t){if(!h(e))throw new T("left is required.");if(!h(t))throw new T("right is required.");let n=e.dayNumber-t.dayNumber;return n!==0?n:e.secondsOfDay-t.secondsOfDay};x.equals=function(e,t){return e===t||h(e)&&h(t)&&e.dayNumber===t.dayNumber&&e.secondsOfDay===t.secondsOfDay};x.equalsEpsilon=function(e,t,n){return n=n??0,e===t||h(e)&&h(t)&&Math.abs(x.secondsDifference(e,t))<=n};x.totalDays=function(e){if(!h(e))throw new T("julianDate is required.");return e.dayNumber+e.secondsOfDay/V.SECONDS_PER_DAY};x.secondsDifference=function(e,t){if(!h(e))throw new T("left is required.");if(!h(t))throw new T("right is required.");return(e.dayNumber-t.dayNumber)*V.SECONDS_PER_DAY+(e.secondsOfDay-t.secondsOfDay)};x.daysDifference=function(e,t){if(!h(e))throw new T("left is required.");if(!h(t))throw new T("right is required.");let n=e.dayNumber-t.dayNumber,r=(e.secondsOfDay-t.secondsOfDay)/V.SECONDS_PER_DAY;return n+r};x.computeTaiMinusUtc=function(e){Ve.julianDate=e;let t=x.leapSeconds,n=Ne(t,Ve,Qt);return n<0&&(n=~n,--n,n<0&&(n=0)),t[n].offset};x.addSeconds=function(e,t,n){if(!h(e))throw new T("julianDate is required.");if(!h(t))throw new T("seconds is required.");if(!h(n))throw new T("result is required.");return Ie(e.dayNumber,e.secondsOfDay+t,n)};x.addMinutes=function(e,t,n){if(!h(e))throw new T("julianDate is required.");if(!h(t))throw new T("minutes is required.");if(!h(n))throw new T("result is required.");let r=e.secondsOfDay+t*V.SECONDS_PER_MINUTE;return Ie(e.dayNumber,r,n)};x.addHours=function(e,t,n){if(!h(e))throw new T("julianDate is required.");if(!h(t))throw new T("hours is required.");if(!h(n))throw new T("result is required.");let r=e.secondsOfDay+t*V.SECONDS_PER_HOUR;return Ie(e.dayNumber,r,n)};x.addDays=function(e,t,n){if(!h(e))throw new T("julianDate is required.");if(!h(t))throw new T("days is required.");if(!h(n))throw new T("result is required.");let r=e.dayNumber+t;return Ie(r,e.secondsOfDay,n)};x.lessThan=function(e,t){return x.compare(e,t)<0};x.lessThanOrEquals=function(e,t){return x.compare(e,t)<=0};x.greaterThan=function(e,t){return x.compare(e,t)>0};x.greaterThanOrEquals=function(e,t){return x.compare(e,t)>=0};x.prototype.clone=function(e){return x.clone(this,e)};x.prototype.equals=function(e){return x.equals(this,e)};x.prototype.equalsEpsilon=function(e,t){return x.equalsEpsilon(this,e,t)};x.prototype.toString=function(){return x.toIso8601(this)};x.leapSeconds=[new Q(new x(2441317,43210,j.TAI),10),new Q(new x(2441499,43211,j.TAI),11),new Q(new x(2441683,43212,j.TAI),12),new Q(new x(2442048,43213,j.TAI),13),new Q(new x(2442413,43214,j.TAI),14),new Q(new x(2442778,43215,j.TAI),15),new Q(new x(2443144,43216,j.TAI),16),new Q(new x(2443509,43217,j.TAI),17),new Q(new x(2443874,43218,j.TAI),18),new Q(new x(2444239,43219,j.TAI),19),new Q(new x(2444786,43220,j.TAI),20),new Q(new x(2445151,43221,j.TAI),21),new Q(new x(2445516,43222,j.TAI),22),new Q(new x(2446247,43223,j.TAI),23),new Q(new x(2447161,43224,j.TAI),24),new Q(new x(2447892,43225,j.TAI),25),new Q(new x(2448257,43226,j.TAI),26),new Q(new x(2448804,43227,j.TAI),27),new Q(new x(2449169,43228,j.TAI),28),new Q(new x(2449534,43229,j.TAI),29),new Q(new x(2450083,43230,j.TAI),30),new Q(new x(2450630,43231,j.TAI),31),new Q(new x(2451179,43232,j.TAI),32),new Q(new x(2453736,43233,j.TAI),33),new Q(new x(2454832,43234,j.TAI),34),new Q(new x(2456109,43235,j.TAI),35),new Q(new x(2457204,43236,j.TAI),36),new Q(new x(2457754,43237,j.TAI),37)];var K=x;var Xn=$e(ze(),1);function qr(e){return(e.length===0||e[e.length-1]!=="/")&&(e=`${e}/`),e}var xn=qr;function An(e,t){if(e===null||typeof e!="object")return e;t=t??!1;let n=new e.constructor;for(let r in e)if(e.hasOwnProperty(r)){let s=e[r];t&&(s=An(s,t)),n[r]=s}return n}var Je=An;function jr(){let e,t,n=new Promise(function(r,s){e=r,t=s});return{resolve:e,reject:t,promise:n}}var Fe=jr;var Cn=$e(ze(),1);function $t(e,t){let n;return typeof document<"u"&&(n=document),$t._implementation(e,t,n)}$t._implementation=function(e,t,n){if(!h(e))throw new T("relative uri is required.");if(!h(t)){if(typeof n>"u")return e;t=n.baseURI??n.location.href}let r=new Cn.default(e);return r.scheme()!==""?r.toString():r.absoluteTo(t).toString()};var it=$t;var Rn=$e(ze(),1);function kr(e,t){if(!h(e))throw new T("uri is required.");let n="",r=e.lastIndexOf("/");return r!==-1&&(n=e.substring(0,r+1)),t&&(e=new Rn.default(e),e.query().length!==0&&(n+=`?${e.query()}`),e.fragment().length!==0&&(n+=`#${e.fragment()}`)),n}var Pn=kr;var In=$e(ze(),1);function Nr(e){if(!h(e))throw new T("uri is required.");let t=new In.default(e);t.normalize();let n=t.path(),r=n.lastIndexOf("/");return r!==-1&&(n=n.substr(r+1)),r=n.lastIndexOf("."),r===-1?n="":n=n.substr(r+1),n}var Un=Nr;var Mn={};function zr(e,t,n){h(t)||(t=e.width),h(n)||(n=e.height);let r=Mn[t];h(r)||(r={},Mn[t]=r);let s=r[n];if(!h(s)){let o=document.createElement("canvas");o.width=t,o.height=n,s=o.getContext("2d",{willReadFrequently:!0}),s.globalCompositeOperation="copy",r[n]=s}return s.drawImage(e,0,0,t,n),s.getImageData(0,0,t,n).data}var Vt=zr;var Fr=/^blob:/i;function Lr(e){return l.typeOf.string("uri",e),Fr.test(e)}var Et=Lr;var be;function Br(e){h(be)||(be=document.createElement("a")),be.href=window.location.href;let t=be.host,n=be.protocol;return be.href=e,be.href=be.href,n!==be.protocol||t!==be.host}var Dn=Br;var Qr=/^data:/i;function Hr(e){return l.typeOf.string("uri",e),Qr.test(e)}var Tt=Hr;function Wr(e){let t=document.createElement("script");return t.async=!0,t.src=e,new Promise((n,r)=>{window.crossOriginIsolated&&t.setAttribute("crossorigin","anonymous");let s=document.getElementsByTagName("head")[0];t.onload=function(){t.onload=void 0,s.removeChild(t),n()},t.onerror=function(o){r(o)},s.appendChild(t)})}var qn=Wr;function $r(e){if(!h(e))throw new T("obj is required.");let t="";for(let n in e)if(e.hasOwnProperty(n)){let r=e[n],s=`${encodeURIComponent(n)}=`;if(Array.isArray(r))for(let o=0,c=r.length;o<c;++o)t+=`${s+encodeURIComponent(r[o])}&`;else t+=`${s+encodeURIComponent(r)}&`}return t=t.slice(0,-1),t}var jn=$r;function Vr(e){if(!h(e))throw new T("queryString is required.");let t={};if(e==="")return t;let n=e.replace(/\+/g,"%20").split(/[&;]/);for(let r=0,s=n.length;r<s;++r){let o=n[r].split("="),c=decodeURIComponent(o[0]),u=o[1];h(u)?u=decodeURIComponent(u):u="";let p=t[c];typeof p=="string"?t[c]=[p,u]:Array.isArray(p)?p.push(u):t[c]=u}return t}var kn=Vr;var Yr={UNISSUED:0,ISSUED:1,ACTIVE:2,RECEIVED:3,CANCELLED:4,FAILED:5},X=Object.freeze(Yr);var Xr={TERRAIN:0,IMAGERY:1,TILES3D:2,OTHER:3},Nn=Object.freeze(Xr);function xt(e){e=e??we.EMPTY_OBJECT;let t=e.throttleByServer??!1,n=e.throttle??!1;this.url=e.url,this.requestFunction=e.requestFunction,this.cancelFunction=e.cancelFunction,this.priorityFunction=e.priorityFunction,this.priority=e.priority??0,this.throttle=n,this.throttleByServer=t,this.type=e.type??Nn.OTHER,this.serverKey=e.serverKey,this.state=X.UNISSUED,this.deferred=void 0,this.cancelled=!1}xt.prototype.cancel=function(){this.cancelled=!0};xt.prototype.clone=function(e){return h(e)?(e.url=this.url,e.requestFunction=this.requestFunction,e.cancelFunction=this.cancelFunction,e.priorityFunction=this.priorityFunction,e.priority=this.priority,e.throttle=this.throttle,e.throttleByServer=this.throttleByServer,e.type=this.type,e.serverKey=this.serverKey,e.state=X.UNISSUED,e.deferred=void 0,e.cancelled=!1,e):new xt(this)};var zn=xt;function Jr(e){let t={};if(!e)return t;let n=e.split(`\r
`);for(let r=0;r<n.length;++r){let s=n[r],o=s.indexOf(": ");if(o>0){let c=s.substring(0,o),u=s.substring(o+2);t[c]=u}}return t}var Fn=Jr;function Ln(e,t,n){this.statusCode=e,this.response=t,this.responseHeaders=n,typeof this.responseHeaders=="string"&&(this.responseHeaders=Fn(this.responseHeaders))}Ln.prototype.toString=function(){let e="Request has failed.";return h(this.statusCode)&&(e+=` Status Code: ${this.statusCode}`),e};var st=Ln;var At=$e(ze(),1);function at(){this._listeners=new Map,this._toRemove=new Map,this._toAdd=new Map,this._invokingListeners=!1,this._listenerCount=0}Object.defineProperties(at.prototype,{numberOfListeners:{get:function(){return this._listenerCount}}});at.prototype.addEventListener=function(e,t){l.typeOf.func("listener",e);let n=this,r=n._invokingListeners?n._toAdd:n._listeners;return Xt(this,r,e,t)&&n._listenerCount++,function(){n.removeEventListener(e,t)}};function Xt(e,t,n,r){t.has(n)||t.set(n,new Set);let s=t.get(n);return s.has(r)?!1:(s.add(r),!0)}at.prototype.removeEventListener=function(e,t){l.typeOf.func("listener",e);let n=Yt(this,this._listeners,e,t),r=Yt(this,this._toAdd,e,t),s=n||r;return s&&this._listenerCount--,s};function Yt(e,t,n,r){let s=t.get(n);if(!s||!s.has(r))return!1;if(e._invokingListeners){if(!Xt(e,e._toRemove,n,r))return!1}else s.delete(r),s.size===0&&t.delete(n);return!0}at.prototype.raiseEvent=function(){this._invokingListeners=!0;for(let[e,t]of this._listeners.entries())if(h(e))for(let n of t)e.apply(n,arguments);this._invokingListeners=!1;for(let[e,t]of this._toAdd.entries())for(let n of t)Xt(this,this._listeners,e,n);this._toAdd.clear();for(let[e,t]of this._toRemove.entries())for(let n of t)Yt(this,this._listeners,e,n);this._toRemove.clear()};var Bn=at;function Le(e){l.typeOf.object("options",e),l.defined("options.comparator",e.comparator),this._comparator=e.comparator,this._array=[],this._length=0,this._maximumLength=void 0}Object.defineProperties(Le.prototype,{length:{get:function(){return this._length}},internalArray:{get:function(){return this._array}},maximumLength:{get:function(){return this._maximumLength},set:function(e){l.typeOf.number.greaterThanOrEquals("maximumLength",e,0);let t=this._length;if(e<t){let n=this._array;for(let r=e;r<t;++r)n[r]=void 0;this._length=e,n.length=e}this._maximumLength=e}},comparator:{get:function(){return this._comparator}}});function Jt(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}Le.prototype.reserve=function(e){e=e??this._length,this._array.length=e};Le.prototype.heapify=function(e){e=e??0;let t=this._length,n=this._comparator,r=this._array,s=-1,o=!0;for(;o;){let c=2*(e+1),u=c-1;u<t&&n(r[u],r[e])<0?s=u:s=e,c<t&&n(r[c],r[s])<0&&(s=c),s!==e?(Jt(r,s,e),e=s):o=!1}};Le.prototype.resort=function(){let e=this._length;for(let t=Math.ceil(e/2);t>=0;--t)this.heapify(t)};Le.prototype.insert=function(e){l.defined("element",e);let t=this._array,n=this._comparator,r=this._maximumLength,s=this._length++;for(s<t.length?t[s]=e:t.push(e);s!==0;){let c=Math.floor((s-1)/2);if(n(t[s],t[c])<0)Jt(t,s,c),s=c;else break}let o;return h(r)&&this._length>r&&(o=t[r],this._length=r),o};Le.prototype.pop=function(e){if(e=e??0,this._length===0)return;l.typeOf.number.lessThan("index",e,this._length);let t=this._array,n=t[e];return Jt(t,e,--this._length),this.heapify(e),t[this._length]=void 0,n};var Qn=Le;function Zr(e,t){return e.priority-t.priority}var B={numberOfAttemptedRequests:0,numberOfActiveRequests:0,numberOfCancelledRequests:0,numberOfCancelledActiveRequests:0,numberOfFailedRequests:0,numberOfActiveRequestsEver:0,lastNumberOfActiveRequests:0},Ze=20,oe=new Qn({comparator:Zr});oe.maximumLength=Ze;oe.reserve(Ze);var _e=[],Te={},Gr=typeof document<"u"?new At.default(document.location.href):new At.default,Ct=new Bn;function Y(){}Y.maximumRequests=50;Y.maximumRequestsPerServer=18;Y.requestsByServer={};Y.throttleRequests=!0;Y.debugShowStatistics=!1;Y.requestCompletedEvent=Ct;Object.defineProperties(Y,{statistics:{get:function(){return B}},priorityHeapLength:{get:function(){return Ze},set:function(e){if(e<Ze)for(;oe.length>e;){let t=oe.pop();Be(t)}Ze=e,oe.maximumLength=e,oe.reserve(e)}}});function Hn(e){h(e.priorityFunction)&&(e.priority=e.priorityFunction())}Y.serverHasOpenSlots=function(e,t){t=t??1;let n=Y.requestsByServer[e]??Y.maximumRequestsPerServer;return Te[e]+t<=n};Y.heapHasOpenSlots=function(e){return oe.length+e<=Ze};function Wn(e){return e.state===X.UNISSUED&&(e.state=X.ISSUED,e.deferred=Fe()),e.deferred.promise}function Kr(e){return function(t){if(e.state===X.CANCELLED)return;let n=e.deferred;--B.numberOfActiveRequests,--Te[e.serverKey],Ct.raiseEvent(),e.state=X.RECEIVED,e.deferred=void 0,n.resolve(t)}}function eo(e){return function(t){e.state!==X.CANCELLED&&(++B.numberOfFailedRequests,--B.numberOfActiveRequests,--Te[e.serverKey],Ct.raiseEvent(t),e.state=X.FAILED,e.deferred.reject(t))}}function $n(e){let t=Wn(e);return e.state=X.ACTIVE,_e.push(e),++B.numberOfActiveRequests,++B.numberOfActiveRequestsEver,++Te[e.serverKey],e.requestFunction().then(Kr(e)).catch(eo(e)),t}function Be(e){let t=e.state===X.ACTIVE;if(e.state=X.CANCELLED,++B.numberOfCancelledRequests,h(e.deferred)){let n=e.deferred;e.deferred=void 0,n.reject()}t&&(--B.numberOfActiveRequests,--Te[e.serverKey],++B.numberOfCancelledActiveRequests),h(e.cancelFunction)&&e.cancelFunction()}Y.update=function(){let e,t,n=0,r=_e.length;for(e=0;e<r;++e){if(t=_e[e],t.cancelled&&Be(t),t.state!==X.ACTIVE){++n;continue}n>0&&(_e[e-n]=t)}_e.length-=n;let s=oe.internalArray,o=oe.length;for(e=0;e<o;++e)Hn(s[e]);oe.resort();let c=Math.max(Y.maximumRequests-_e.length,0),u=0;for(;u<c&&oe.length>0;){if(t=oe.pop(),t.cancelled){Be(t);continue}if(t.throttleByServer&&!Y.serverHasOpenSlots(t.serverKey)){Be(t);continue}$n(t),++u}to()};Y.getServerKey=function(e){l.typeOf.string("url",e);let t=new At.default(e);t.scheme()===""&&(t=t.absoluteTo(Gr),t.normalize());let n=t.authority();/:/.test(n)||(n=`${n}:${t.scheme()==="https"?"443":"80"}`);let r=Te[n];return h(r)||(Te[n]=0),n};Y.request=function(e){if(l.typeOf.object("request",e),l.typeOf.string("request.url",e.url),l.typeOf.func("request.requestFunction",e.requestFunction),Tt(e.url)||Et(e.url))return Ct.raiseEvent(),e.state=X.RECEIVED,e.requestFunction();if(++B.numberOfAttemptedRequests,h(e.serverKey)||(e.serverKey=Y.getServerKey(e.url)),Y.throttleRequests&&e.throttleByServer&&!Y.serverHasOpenSlots(e.serverKey))return;if(!Y.throttleRequests||!e.throttle)return $n(e);if(_e.length>=Y.maximumRequests)return;Hn(e);let t=oe.insert(e);if(h(t)){if(t===e)return;Be(t)}return Wn(e)};function to(){Y.debugShowStatistics&&(B.numberOfActiveRequests===0&&B.lastNumberOfActiveRequests>0&&(B.numberOfAttemptedRequests>0&&(console.log(`Number of attempted requests: ${B.numberOfAttemptedRequests}`),B.numberOfAttemptedRequests=0),B.numberOfCancelledRequests>0&&(console.log(`Number of cancelled requests: ${B.numberOfCancelledRequests}`),B.numberOfCancelledRequests=0),B.numberOfCancelledActiveRequests>0&&(console.log(`Number of cancelled active requests: ${B.numberOfCancelledActiveRequests}`),B.numberOfCancelledActiveRequests=0),B.numberOfFailedRequests>0&&(console.log(`Number of failed requests: ${B.numberOfFailedRequests}`),B.numberOfFailedRequests=0)),B.lastNumberOfActiveRequests=B.numberOfActiveRequests)}Y.clearForSpecs=function(){for(;oe.length>0;){let t=oe.pop();Be(t)}let e=_e.length;for(let t=0;t<e;++t)Be(_e[t]);_e.length=0,Te={},B.numberOfAttemptedRequests=0,B.numberOfActiveRequests=0,B.numberOfCancelledRequests=0,B.numberOfCancelledActiveRequests=0,B.numberOfFailedRequests=0,B.numberOfActiveRequestsEver=0,B.lastNumberOfActiveRequests=0};Y.numberOfActiveRequestsByServer=function(e){return Te[e]};Y.requestHeap=oe;var Rt=Y;var Vn=$e(ze(),1);var ct={},Ge={};ct.add=function(e,t){if(!h(e))throw new T("host is required.");if(!h(t)||t<=0)throw new T("port is required to be greater than 0.");let n=`${e.toLowerCase()}:${t}`;h(Ge[n])||(Ge[n]=!0)};ct.remove=function(e,t){if(!h(e))throw new T("host is required.");if(!h(t)||t<=0)throw new T("port is required to be greater than 0.");let n=`${e.toLowerCase()}:${t}`;h(Ge[n])&&delete Ge[n]};function no(e){let t=new Vn.default(e);t.normalize();let n=t.authority();if(n.length!==0){if(t.authority(n),n.indexOf("@")!==-1&&(n=n.split("@")[1]),n.indexOf(":")===-1){let r=t.scheme();if(r.length===0&&(r=window.location.protocol,r=r.substring(0,r.length-1)),r==="http")n+=":80";else if(r==="https")n+=":443";else return}return n}}ct.contains=function(e){if(!h(e))throw new T("url is required.");let t=no(e);return!!(h(t)&&h(Ge[t]))};ct.clear=function(){Ge={}};var Zt=ct;var Jn=(function(){try{let e=new XMLHttpRequest;return e.open("GET","#",!0),e.responseType="blob",e.responseType==="blob"}catch{return!1}})();function E(e){e=e??we.EMPTY_OBJECT,typeof e=="string"&&(e={url:e}),l.typeOf.string("options.url",e.url),this._url=void 0,this._templateValues=Oe(e.templateValues,{}),this._queryParameters=Oe(e.queryParameters,{}),this.headers=Oe(e.headers,{}),this.request=e.request??new zn,this.proxy=e.proxy,this.retryCallback=e.retryCallback,this.retryAttempts=e.retryAttempts??0,this._retryCount=0,e.parseUrl??!0?this.parseUrl(e.url,!0,!0):this._url=e.url,this._credits=e.credits}function Oe(e,t){return h(e)?Je(e):t}E.createIfNeeded=function(e){return e instanceof E?e.getDerivedResource({request:e.request}):typeof e!="string"?e:new E({url:e})};var Ke;E.supportsImageBitmapOptions=function(){return h(Ke)?Ke:typeof createImageBitmap!="function"?(Ke=Promise.resolve(!1),Ke):(Ke=E.fetchBlob({url:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAABGdBTUEAAE4g3rEiDgAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADElEQVQI12Ng6GAAAAEUAIngE3ZiAAAAAElFTkSuQmCC"}).then(function(t){let n={imageOrientation:"flipY",premultiplyAlpha:"none",colorSpaceConversion:"none"};return Promise.all([createImageBitmap(t,n),createImageBitmap(t)])}).then(function(t){let n=Vt(t[0]),r=Vt(t[1]);return n[1]!==r[1]}).catch(function(){return!1}),Ke)};Object.defineProperties(E,{isBlobSupported:{get:function(){return Jn}}});Object.defineProperties(E.prototype,{queryParameters:{get:function(){return this._queryParameters}},templateValues:{get:function(){return this._templateValues}},url:{get:function(){return this.getUrlComponent(!0,!0)},set:function(e){this.parseUrl(e,!1,!1)}},extension:{get:function(){return Un(this._url)}},isDataUri:{get:function(){return Tt(this._url)}},isBlobUri:{get:function(){return Et(this._url)}},isCrossOriginUrl:{get:function(){return Dn(this._url)}},hasHeaders:{get:function(){return Object.keys(this.headers).length>0}},credits:{get:function(){return this._credits}}});E.prototype.toString=function(){return this.getUrlComponent(!0,!0)};E.prototype.parseUrl=function(e,t,n,r){let s=new Xn.default(e),o=ro(s.query());this._queryParameters=t?It(o,this.queryParameters,n):o,s.search(""),s.fragment(""),h(r)&&s.scheme()===""&&(s=s.absoluteTo(it(r))),this._url=s.toString()};function ro(e){return e.length===0?{}:e.indexOf("=")===-1?{[e]:void 0}:kn(e)}function It(e,t,n){if(!n)return Pe(e,t);let r=Je(e,!0);for(let s in t)if(t.hasOwnProperty(s)){let o=r[s],c=t[s];h(o)?(Array.isArray(o)||(o=r[s]=[o]),r[s]=o.concat(c)):r[s]=Array.isArray(c)?c.slice():c}return r}E.prototype.getUrlComponent=function(e,t){if(this.isDataUri)return this._url;let n=this._url;e&&(n=`${n}${oo(this.queryParameters)}`),n=n.replace(/%7B/g,"{").replace(/%7D/g,"}");let r=this._templateValues;return Object.keys(r).length>0&&(n=n.replace(/{(.*?)}/g,function(s,o){let c=r[o];return h(c)?encodeURIComponent(c):s})),t&&h(this.proxy)&&(n=this.proxy.getURL(n)),n};function oo(e){let t=Object.keys(e);return t.length===0?"":t.length===1&&!h(e[t[0]])?`?${t[0]}`:`?${jn(e)}`}E.prototype.setQueryParameters=function(e,t){t?this._queryParameters=It(this._queryParameters,e,!1):this._queryParameters=It(e,this._queryParameters,!1)};E.prototype.appendQueryParameters=function(e){this._queryParameters=It(e,this._queryParameters,!0)};E.prototype.setTemplateValues=function(e,t){t?this._templateValues=Pe(this._templateValues,e):this._templateValues=Pe(e,this._templateValues)};E.prototype.getDerivedResource=function(e){let t=this.clone();if(t._retryCount=0,h(e.url)){let n=e.preserveQueryParameters??!1;t.parseUrl(e.url,!0,n,this._url)}return h(e.queryParameters)&&(t._queryParameters=Pe(e.queryParameters,t.queryParameters)),h(e.templateValues)&&(t._templateValues=Pe(e.templateValues,t.templateValues)),h(e.headers)&&(t.headers=Pe(e.headers,t.headers)),h(e.proxy)&&(t.proxy=e.proxy),h(e.request)&&(t.request=e.request),h(e.retryCallback)&&(t.retryCallback=e.retryCallback),h(e.retryAttempts)&&(t.retryAttempts=e.retryAttempts),t};E.prototype.retryOnError=function(e){let t=this.retryCallback;if(typeof t!="function"||this._retryCount>=this.retryAttempts)return Promise.resolve(!1);let n=this;return Promise.resolve(t(this,e)).then(function(r){return++n._retryCount,r})};E.prototype.clone=function(e){return h(e)?(e._url=this._url,e._queryParameters=Je(this._queryParameters),e._templateValues=Je(this._templateValues),e.headers=Je(this.headers),e.proxy=this.proxy,e.retryCallback=this.retryCallback,e.retryAttempts=this.retryAttempts,e._retryCount=0,e.request=this.request.clone(),e):new E({url:this._url,queryParameters:this.queryParameters,templateValues:this.templateValues,headers:this.headers,proxy:this.proxy,retryCallback:this.retryCallback,retryAttempts:this.retryAttempts,request:this.request.clone(),parseUrl:!1,credits:h(this.credits)?this.credits.slice():void 0})};E.prototype.getBaseUri=function(e){return Pn(this.getUrlComponent(e),e)};E.prototype.appendForwardSlash=function(){this._url=xn(this._url)};E.prototype.fetchArrayBuffer=function(){return this.fetch({responseType:"arraybuffer"})};E.fetchArrayBuffer=function(e){return new E(e).fetchArrayBuffer()};E.prototype.fetchBlob=function(){return this.fetch({responseType:"blob"})};E.fetchBlob=function(e){return new E(e).fetchBlob()};E.prototype.fetchImage=function(e){e=e??we.EMPTY_OBJECT;let t=e.preferImageBitmap??!1,n=e.preferBlob??!1,r=e.flipY??!1,s=e.skipColorSpaceConversion??!1;if(Gt(this.request),!Jn||this.isDataUri||this.isBlobUri||!this.hasHeaders&&!n)return this._fetchImage({resource:this,flipY:r,skipColorSpaceConversion:s,preferImageBitmap:t});let o=this.fetchBlob();if(!h(o))return;let c,u,p,y;return E.supportsImageBitmapOptions().then(function(g){return c=g,u=c&&t,o}).then(function(g){if(!h(g))return;if(y=g,u)return E.createImageBitmapFromBlob(g,{flipY:r,premultiplyAlpha:!1,skipColorSpaceConversion:s});let w=window.URL.createObjectURL(g);return p=new E({url:w}),p._fetchImage({flipY:r,skipColorSpaceConversion:s,preferImageBitmap:!1})}).then(function(g){if(h(g))return g.blob=y,u||window.URL.revokeObjectURL(p.url),g}).catch(function(g){return h(p)&&window.URL.revokeObjectURL(p.url),g.blob=y,Promise.reject(g)})};E.prototype._fetchImage=function(e){let t=this,n=e.flipY,r=e.skipColorSpaceConversion,s=e.preferImageBitmap,o=t.request;o.url=t.url,o.requestFunction=function(){let u=!1;!t.isDataUri&&!t.isBlobUri&&(u=t.isCrossOriginUrl);let p=Fe();return E._Implementations.createImage(o,u,p,n,r,s),p.promise};let c=Rt.request(o);if(h(c))return c.catch(function(u){return o.state!==X.FAILED?Promise.reject(u):t.retryOnError(u).then(function(p){return p?(o.state=X.UNISSUED,o.deferred=void 0,t._fetchImage({flipY:n,skipColorSpaceConversion:r,preferImageBitmap:s})):Promise.reject(u)})})};E.fetchImage=function(e){return new E(e).fetchImage({flipY:e.flipY,skipColorSpaceConversion:e.skipColorSpaceConversion,preferBlob:e.preferBlob,preferImageBitmap:e.preferImageBitmap})};E.prototype.fetchText=function(){return this.fetch({responseType:"text"})};E.fetchText=function(e){return new E(e).fetchText()};E.prototype.fetchJson=function(){let e=this.fetch({responseType:"text",headers:{Accept:"application/json,*/*;q=0.01"}});if(h(e))return e.then(function(t){if(h(t))return JSON.parse(t)})};E.fetchJson=function(e){return new E(e).fetchJson()};E.prototype.fetchXML=function(){return this.fetch({responseType:"document",overrideMimeType:"text/xml"})};E.fetchXML=function(e){return new E(e).fetchXML()};E.prototype.fetchJsonp=function(e){e=e??"callback",Gt(this.request);let t;do t=`loadJsonp${O.nextRandomNumber().toString().substring(2,8)}`;while(h(window[t]));return Zn(this,e,t)};function Zn(e,t,n){let r={};r[t]=n,e.setQueryParameters(r);let s=e.request,o=e.url;s.url=o,s.requestFunction=function(){let u=Fe();return window[n]=function(p){u.resolve(p);try{delete window[n]}catch{window[n]=void 0}},E._Implementations.loadAndExecuteScript(o,n,u),u.promise};let c=Rt.request(s);if(h(c))return c.catch(function(u){return s.state!==X.FAILED?Promise.reject(u):e.retryOnError(u).then(function(p){return p?(s.state=X.UNISSUED,s.deferred=void 0,Zn(e,t,n)):Promise.reject(u)})})}E.fetchJsonp=function(e){return new E(e).fetchJsonp(e.callbackParameterName)};E.prototype._makeRequest=function(e){let t=this;Gt(t.request);let n=t.request,r=t.url;n.url=r,n.requestFunction=function(){let o=e.responseType,c=Pe(e.headers,t.headers),u=e.overrideMimeType,p=e.method,y=e.data,g=Fe(),w=E._Implementations.loadWithXhr(r,o,p,y,c,g,u);return h(w)&&h(w.abort)&&(n.cancelFunction=function(){w.abort()}),g.promise};let s=Rt.request(n);if(h(s))return s.then(function(o){return n.cancelFunction=void 0,o}).catch(function(o){return n.cancelFunction=void 0,n.state!==X.FAILED?Promise.reject(o):t.retryOnError(o).then(function(c){return c?(n.state=X.UNISSUED,n.deferred=void 0,t.fetch(e)):Promise.reject(o)})})};function Gt(e){if(e.state===X.ISSUED||e.state===X.ACTIVE)throw new Ee("The Resource is already being fetched.");e.state=X.UNISSUED,e.deferred=void 0}var io=/^data:(.*?)(;base64)?,(.*)$/;function Pt(e,t){let n=decodeURIComponent(t);return e?atob(n):n}function Yn(e,t){let n=Pt(e,t),r=new ArrayBuffer(n.length),s=new Uint8Array(r);for(let o=0;o<n.length;o++)s[o]=n.charCodeAt(o);return r}function so(e,t){t=t??"";let n=e[1],r=!!e[2],s=e[3],o,c;switch(t){case"":case"text":return Pt(r,s);case"arraybuffer":return Yn(r,s);case"blob":return o=Yn(r,s),new Blob([o],{type:n});case"document":return c=new DOMParser,c.parseFromString(Pt(r,s),n);case"json":return JSON.parse(Pt(r,s));default:throw new T(`Unhandled responseType: ${t}`)}}E.prototype.fetch=function(e){return e=Oe(e,{}),e.method="GET",this._makeRequest(e)};E.fetch=function(e){return new E(e).fetch({responseType:e.responseType,overrideMimeType:e.overrideMimeType})};E.prototype.delete=function(e){return e=Oe(e,{}),e.method="DELETE",this._makeRequest(e)};E.delete=function(e){return new E(e).delete({responseType:e.responseType,overrideMimeType:e.overrideMimeType,data:e.data})};E.prototype.head=function(e){return e=Oe(e,{}),e.method="HEAD",this._makeRequest(e)};E.head=function(e){return new E(e).head({responseType:e.responseType,overrideMimeType:e.overrideMimeType})};E.prototype.options=function(e){return e=Oe(e,{}),e.method="OPTIONS",this._makeRequest(e)};E.options=function(e){return new E(e).options({responseType:e.responseType,overrideMimeType:e.overrideMimeType})};E.prototype.post=function(e,t){return l.defined("data",e),t=Oe(t,{}),t.method="POST",t.data=e,this._makeRequest(t)};E.post=function(e){return new E(e).post(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})};E.prototype.put=function(e,t){return l.defined("data",e),t=Oe(t,{}),t.method="PUT",t.data=e,this._makeRequest(t)};E.put=function(e){return new E(e).put(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})};E.prototype.patch=function(e,t){return l.defined("data",e),t=Oe(t,{}),t.method="PATCH",t.data=e,this._makeRequest(t)};E.patch=function(e){return new E(e).patch(e.data,{responseType:e.responseType,overrideMimeType:e.overrideMimeType})};E._Implementations={};E._Implementations.loadImageElement=function(e,t,n){let r=new Image;r.onload=function(){r.naturalWidth===0&&r.naturalHeight===0&&r.width===0&&r.height===0&&(r.width=300,r.height=150),n.resolve(r)},r.onerror=function(s){n.reject(s)},t&&(Zt.contains(e)?r.crossOrigin="use-credentials":r.crossOrigin=""),r.src=e};E._Implementations.createImage=function(e,t,n,r,s,o,c){let u=e.url;E.supportsImageBitmapOptions().then(function(p){if(!(p&&o)){E._Implementations.loadImageElement(u,t,n);return}let y="blob",g="GET",w=Fe(),P=E._Implementations.loadWithXhr(u,y,g,void 0,c,w,void 0,void 0,void 0);return h(P)&&h(P.abort)&&(e.cancelFunction=function(){P.abort()}),w.promise.then(function(C){if(!h(C)){n.reject(new Ee(`Successfully retrieved ${u} but it contained no content.`));return}return E.createImageBitmapFromBlob(C,{flipY:r,premultiplyAlpha:!1,skipColorSpaceConversion:s})}).then(function(C){n.resolve(C)})}).catch(function(p){n.reject(p)})};E.createImageBitmapFromBlob=function(e,t){return l.defined("options",t),l.typeOf.bool("options.flipY",t.flipY),l.typeOf.bool("options.premultiplyAlpha",t.premultiplyAlpha),l.typeOf.bool("options.skipColorSpaceConversion",t.skipColorSpaceConversion),createImageBitmap(e,{imageOrientation:t.flipY?"flipY":"none",premultiplyAlpha:t.premultiplyAlpha?"premultiply":"none",colorSpaceConversion:t.skipColorSpaceConversion?"none":"default"})};function ao(e,t,n,r,s,o,c){fetch(e,{method:n,headers:s}).then(async u=>{if(!u.ok){let p={};u.headers.forEach((y,g)=>{p[g]=y}),o.reject(new st(u.status,u,p));return}switch(t){case"text":o.resolve(u.text());break;case"json":o.resolve(u.json());break;default:o.resolve(new Uint8Array(await u.arrayBuffer()).buffer);break}}).catch(()=>{o.reject(new st)})}var co=typeof XMLHttpRequest>"u";E._Implementations.loadWithXhr=function(e,t,n,r,s,o,c){let u=io.exec(e);if(u!==null){o.resolve(so(u,t));return}if(co){ao(e,t,n,r,s,o,c);return}let p=new XMLHttpRequest;if(Zt.contains(e)&&(p.withCredentials=!0),p.open(n,e,!0),h(c)&&h(p.overrideMimeType)&&p.overrideMimeType(c),h(s))for(let g in s)s.hasOwnProperty(g)&&p.setRequestHeader(g,s[g]);h(t)&&(p.responseType=t);let y=!1;return typeof e=="string"&&(y=e.indexOf("file://")===0||typeof window<"u"&&window.location.origin==="file://"),p.onload=function(){if((p.status<200||p.status>=300)&&!(y&&p.status===0)){o.reject(new st(p.status,p.response,p.getAllResponseHeaders()));return}let g=p.response,w=p.responseType;if(n==="HEAD"||n==="OPTIONS"){let C=p.getAllResponseHeaders().trim().split(/[\r\n]+/),M={};C.forEach(function(I){let N=I.split(": "),z=N.shift();M[z]=N.join(": ")}),o.resolve(M);return}if(p.status===204)o.resolve(void 0);else if(h(g)&&(!h(t)||w===t))o.resolve(g);else if(t==="json"&&typeof g=="string")try{o.resolve(JSON.parse(g))}catch(P){o.reject(P)}else(w===""||w==="document")&&h(p.responseXML)&&p.responseXML.hasChildNodes()?o.resolve(p.responseXML):(w===""||w==="text")&&h(p.responseText)?o.resolve(p.responseText):o.reject(new Ee("Invalid XMLHttpRequest response type."))},p.onerror=function(g){o.reject(new st)},p.send(r),p};E._Implementations.loadAndExecuteScript=function(e,t,n){return qn(e,t).catch(function(r){n.reject(r)})};E._DefaultImplementations={};E._DefaultImplementations.createImage=E._Implementations.createImage;E._DefaultImplementations.loadWithXhr=E._Implementations.loadWithXhr;E._DefaultImplementations.loadAndExecuteScript=E._Implementations.loadAndExecuteScript;E.DEFAULT=Object.freeze(new E({url:typeof document>"u"?"":document.location.href.split("?")[0]}));var Ue=E;function ft(e){e=e??we.EMPTY_OBJECT,this._dates=void 0,this._samples=void 0,this._dateColumn=-1,this._xPoleWanderRadiansColumn=-1,this._yPoleWanderRadiansColumn=-1,this._ut1MinusUtcSecondsColumn=-1,this._xCelestialPoleOffsetRadiansColumn=-1,this._yCelestialPoleOffsetRadiansColumn=-1,this._taiMinusUtcSecondsColumn=-1,this._columnCount=0,this._lastIndex=-1,this._addNewLeapSeconds=e.addNewLeapSeconds??!0,h(e.data)?Gn(this,e.data):Gn(this,{columnNames:["dateIso8601","modifiedJulianDateUtc","xPoleWanderRadians","yPoleWanderRadians","ut1MinusUtcSeconds","lengthOfDayCorrectionSeconds","xCelestialPoleOffsetRadians","yCelestialPoleOffsetRadians","taiMinusUtcSeconds"],samples:[]})}ft.fromUrl=async function(e,t){l.defined("url",e),t=t??we.EMPTY_OBJECT;let n=Ue.createIfNeeded(e),r;try{r=await n.fetchJson()}catch{throw new Ee(`An error occurred while retrieving the EOP data from the URL ${n.url}.`)}return new ft({addNewLeapSeconds:t.addNewLeapSeconds,data:r})};ft.NONE=Object.freeze({compute:function(e,t){return h(t)?(t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0):t=new rt(0,0,0,0,0),t}});ft.prototype.compute=function(e,t){if(!h(this._samples))return;if(h(t)||(t=new rt(0,0,0,0,0)),this._samples.length===0)return t.xPoleWander=0,t.yPoleWander=0,t.xPoleOffset=0,t.yPoleOffset=0,t.ut1MinusUtc=0,t;let n=this._dates,r=this._lastIndex,s=0,o=0;if(h(r)){let u=n[r],p=n[r+1],y=K.lessThanOrEquals(u,e),g=!h(p),w=g||K.greaterThanOrEquals(p,e);if(y&&w)return s=r,!g&&p.equals(e)&&++s,o=s+1,er(this,n,this._samples,e,s,o,t),t}let c=Ne(n,e,K.compare,this._dateColumn);return c>=0?(c<n.length-1&&n[c+1].equals(e)&&++c,s=c,o=c):(o=~c,s=o-1,s<0&&(s=0)),this._lastIndex=s,er(this,n,this._samples,e,s,o,t),t};function uo(e,t){return K.compare(e.julianDate,t)}function Gn(e,t){if(!h(t.columnNames))throw new Ee("Error in loaded EOP data: The columnNames property is required.");if(!h(t.samples))throw new Ee("Error in loaded EOP data: The samples property is required.");let n=t.columnNames.indexOf("modifiedJulianDateUtc"),r=t.columnNames.indexOf("xPoleWanderRadians"),s=t.columnNames.indexOf("yPoleWanderRadians"),o=t.columnNames.indexOf("ut1MinusUtcSeconds"),c=t.columnNames.indexOf("xCelestialPoleOffsetRadians"),u=t.columnNames.indexOf("yCelestialPoleOffsetRadians"),p=t.columnNames.indexOf("taiMinusUtcSeconds");if(n<0||r<0||s<0||o<0||c<0||u<0||p<0)throw new Ee("Error in loaded EOP data: The columnNames property must include modifiedJulianDateUtc, xPoleWanderRadians, yPoleWanderRadians, ut1MinusUtcSeconds, xCelestialPoleOffsetRadians, yCelestialPoleOffsetRadians, and taiMinusUtcSeconds columns");let y=e._samples=t.samples,g=e._dates=[];e._dateColumn=n,e._xPoleWanderRadiansColumn=r,e._yPoleWanderRadiansColumn=s,e._ut1MinusUtcSecondsColumn=o,e._xCelestialPoleOffsetRadiansColumn=c,e._yCelestialPoleOffsetRadiansColumn=u,e._taiMinusUtcSecondsColumn=p,e._columnCount=t.columnNames.length,e._lastIndex=void 0;let w,P=e._addNewLeapSeconds;for(let C=0,M=y.length;C<M;C+=e._columnCount){let I=y[C+n],N=y[C+p],z=I+V.MODIFIED_JULIAN_DATE_DIFFERENCE,W=new K(z,N,j.TAI);if(g.push(W),P){if(N!==w&&h(w)){let H=K.leapSeconds,J=Ne(H,W,uo);if(J<0){let ee=new Q(W,N);H.splice(~J,0,ee)}}w=N}}}function Kn(e,t,n,r,s){let o=n*r;s.xPoleWander=t[o+e._xPoleWanderRadiansColumn],s.yPoleWander=t[o+e._yPoleWanderRadiansColumn],s.xPoleOffset=t[o+e._xCelestialPoleOffsetRadiansColumn],s.yPoleOffset=t[o+e._yCelestialPoleOffsetRadiansColumn],s.ut1MinusUtc=t[o+e._ut1MinusUtcSecondsColumn]}function ut(e,t,n){return t+e*(n-t)}function er(e,t,n,r,s,o,c){let u=e._columnCount;if(o>t.length-1)return c.xPoleWander=0,c.yPoleWander=0,c.xPoleOffset=0,c.yPoleOffset=0,c.ut1MinusUtc=0,c;let p=t[s],y=t[o];if(p.equals(y)||r.equals(p))return Kn(e,n,s,u,c),c;if(r.equals(y))return Kn(e,n,o,u,c),c;let g=K.secondsDifference(r,p)/K.secondsDifference(y,p),w=s*u,P=o*u,C=n[w+e._ut1MinusUtcSecondsColumn],M=n[P+e._ut1MinusUtcSecondsColumn],I=M-C;if(I>.5||I<-.5){let N=n[w+e._taiMinusUtcSecondsColumn],z=n[P+e._taiMinusUtcSecondsColumn];N!==z&&(y.equals(r)?C=M:M-=z-N)}return c.xPoleWander=ut(g,n[w+e._xPoleWanderRadiansColumn],n[P+e._xPoleWanderRadiansColumn]),c.yPoleWander=ut(g,n[w+e._yPoleWanderRadiansColumn],n[P+e._yPoleWanderRadiansColumn]),c.xPoleOffset=ut(g,n[w+e._xCelestialPoleOffsetRadiansColumn],n[P+e._xCelestialPoleOffsetRadiansColumn]),c.yPoleOffset=ut(g,n[w+e._yCelestialPoleOffsetRadiansColumn],n[P+e._yCelestialPoleOffsetRadiansColumn]),c.ut1MinusUtc=ut(g,C,M),c}var tr=ft;function ie(e,t,n){this.heading=e??0,this.pitch=t??0,this.roll=n??0}ie.fromQuaternion=function(e,t){if(!h(e))throw new T("quaternion is required");h(t)||(t=new ie);let n=2*(e.w*e.y-e.z*e.x),r=1-2*(e.x*e.x+e.y*e.y),s=2*(e.w*e.x+e.y*e.z),o=1-2*(e.y*e.y+e.z*e.z),c=2*(e.w*e.z+e.x*e.y);return t.heading=-Math.atan2(c,o),t.roll=Math.atan2(s,r),t.pitch=-O.asinClamped(n),t};ie.fromDegrees=function(e,t,n,r){if(!h(e))throw new T("heading is required");if(!h(t))throw new T("pitch is required");if(!h(n))throw new T("roll is required");return h(r)||(r=new ie),r.heading=e*O.RADIANS_PER_DEGREE,r.pitch=t*O.RADIANS_PER_DEGREE,r.roll=n*O.RADIANS_PER_DEGREE,r};ie.clone=function(e,t){if(h(e))return h(t)?(t.heading=e.heading,t.pitch=e.pitch,t.roll=e.roll,t):new ie(e.heading,e.pitch,e.roll)};ie.equals=function(e,t){return e===t||h(e)&&h(t)&&e.heading===t.heading&&e.pitch===t.pitch&&e.roll===t.roll};ie.equalsEpsilon=function(e,t,n,r){return e===t||h(e)&&h(t)&&O.equalsEpsilon(e.heading,t.heading,n,r)&&O.equalsEpsilon(e.pitch,t.pitch,n,r)&&O.equalsEpsilon(e.roll,t.roll,n,r)};ie.prototype.clone=function(e){return ie.clone(this,e)};ie.prototype.equals=function(e){return ie.equals(this,e)};ie.prototype.equalsEpsilon=function(e,t,n){return ie.equalsEpsilon(this,e,t,n)};ie.prototype.toString=function(){return`(${this.heading}, ${this.pitch}, ${this.roll})`};var Ut=ie;var nr=/((?:.*\/)|^)Cesium\.js(?:\?|\#|$)/;function fo(){let e=document.getElementsByTagName("script");for(let t=0,n=e.length;t<n;++t){let r=e[t].getAttribute("src"),s=nr.exec(r);if(s!==null)return s[1]}}var Mt;function rr(e){return typeof document>"u"?e:(h(Mt)||(Mt=document.createElement("a")),Mt.href=e,Mt.href)}var Qe;function or(){if(h(Qe))return Qe;let e;if(typeof CESIUM_BASE_URL<"u"?e=CESIUM_BASE_URL:h(import.meta?.url)?e=it(".",import.meta.url):typeof define=="object"&&h(define.amd)&&!define.amd.toUrlUndefined&&h(pt.toUrl)?e=it("..",He("Core/buildModuleUrl.js")):e=fo(),!h(e))throw new T("Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL.");return Qe=new Ue({url:rr(e)}),Qe.appendForwardSlash(),Qe}function ho(e){return rr(pt.toUrl(`../${e}`))}function ir(e){return or().getDerivedResource({url:e}).url}var Dt;function He(e){return h(Dt)||(typeof define=="object"&&h(define.amd)&&!define.amd.toUrlUndefined&&h(pt.toUrl)?Dt=ho:Dt=ir),Dt(e)}He._cesiumScriptRegex=nr;He._buildModuleUrlFromBaseUrl=ir;He._clearBaseResource=function(){Qe=void 0};He.setBaseUrl=function(e){Qe=Ue.DEFAULT.getDerivedResource({url:e})};He.getCesiumBaseUrl=or;var sr=He;function lo(e,t,n){this.x=e,this.y=t,this.s=n}var qt=lo;function tn(e){e=e??we.EMPTY_OBJECT,this._xysFileUrlTemplate=Ue.createIfNeeded(e.xysFileUrlTemplate),this._interpolationOrder=e.interpolationOrder??9,this._sampleZeroJulianEphemerisDate=e.sampleZeroJulianEphemerisDate??24423965e-1,this._sampleZeroDateTT=new K(this._sampleZeroJulianEphemerisDate,0,j.TAI),this._stepSizeDays=e.stepSizeDays??1,this._samplesPerXysFile=e.samplesPerXysFile??1e3,this._totalSamples=e.totalSamples??27426,this._samples=new Array(this._totalSamples*3),this._chunkDownloadsInProgress=[];let t=this._interpolationOrder,n=this._denominators=new Array(t+1),r=this._xTable=new Array(t+1),s=Math.pow(this._stepSizeDays,t);for(let o=0;o<=t;++o){n[o]=s,r[o]=o*this._stepSizeDays;for(let c=0;c<=t;++c)c!==o&&(n[o]*=o-c);n[o]=1/n[o]}this._work=new Array(t+1),this._coef=new Array(t+1)}var po=new K(0,0,j.TAI);function Kt(e,t,n){let r=po;return r.dayNumber=t,r.secondsOfDay=n,K.daysDifference(r,e._sampleZeroDateTT)}tn.prototype.preload=function(e,t,n,r){let s=Kt(this,e,t),o=Kt(this,n,r),c=s/this._stepSizeDays-this._interpolationOrder/2|0;c<0&&(c=0);let u=o/this._stepSizeDays-this._interpolationOrder/2|0+this._interpolationOrder;u>=this._totalSamples&&(u=this._totalSamples-1);let p=c/this._samplesPerXysFile|0,y=u/this._samplesPerXysFile|0,g=[];for(let w=p;w<=y;++w)g.push(en(this,w));return Promise.all(g)};tn.prototype.computeXysRadians=function(e,t,n){let r=Kt(this,e,t);if(r<0)return;let s=r/this._stepSizeDays|0;if(s>=this._totalSamples)return;let o=this._interpolationOrder,c=s-(o/2|0);c<0&&(c=0);let u=c+o;u>=this._totalSamples&&(u=this._totalSamples-1,c=u-o,c<0&&(c=0));let p=!1,y=this._samples;if(h(y[c*3])||(en(this,c/this._samplesPerXysFile|0),p=!0),h(y[u*3])||(en(this,u/this._samplesPerXysFile|0),p=!0),p)return;h(n)?(n.x=0,n.y=0,n.s=0):n=new qt(0,0,0);let g=r-c*this._stepSizeDays,w=this._work,P=this._denominators,C=this._coef,M=this._xTable,I,N;for(I=0;I<=o;++I)w[I]=g-M[I];for(I=0;I<=o;++I){for(C[I]=1,N=0;N<=o;++N)N!==I&&(C[I]*=w[N]);C[I]*=P[I];let z=(c+I)*3;n.x+=C[I]*y[z++],n.y+=C[I]*y[z++],n.s+=C[I]*y[z]}return n};function en(e,t){if(e._chunkDownloadsInProgress[t])return e._chunkDownloadsInProgress[t];let n,r=e._xysFileUrlTemplate;h(r)?n=r.getDerivedResource({templateValues:{0:t}}):n=new Ue({url:sr(`Assets/IAU2006_XYS/IAU2006_XYS_${t}.json`)});let s=n.fetchJson().then(function(o){e._chunkDownloadsInProgress[t]=!1;let c=e._samples,u=o.samples,p=t*e._samplesPerXysFile*3;for(let y=0,g=u.length;y<g;++y)c[p+y]=u[y]});return e._chunkDownloadsInProgress[t]=s,s}var ar=tn;function _(e,t,n,r){this.x=e??0,this.y=t??0,this.z=n??0,this.w=r??0}var ht=new v;_.fromAxisAngle=function(e,t,n){l.typeOf.object("axis",e),l.typeOf.number("angle",t);let r=t/2,s=Math.sin(r);ht=v.normalize(e,ht);let o=ht.x*s,c=ht.y*s,u=ht.z*s,p=Math.cos(r);return h(n)?(n.x=o,n.y=c,n.z=u,n.w=p,n):new _(o,c,u,p)};var mo=[1,2,0],yo=new Array(3);_.fromRotationMatrix=function(e,t){l.typeOf.object("matrix",e);let n,r,s,o,c,u=e[k.COLUMN0ROW0],p=e[k.COLUMN1ROW1],y=e[k.COLUMN2ROW2],g=u+p+y;if(g>0)n=Math.sqrt(g+1),c=.5*n,n=.5/n,r=(e[k.COLUMN1ROW2]-e[k.COLUMN2ROW1])*n,s=(e[k.COLUMN2ROW0]-e[k.COLUMN0ROW2])*n,o=(e[k.COLUMN0ROW1]-e[k.COLUMN1ROW0])*n;else{let w=mo,P=0;p>u&&(P=1),y>u&&y>p&&(P=2);let C=w[P],M=w[C];n=Math.sqrt(e[k.getElementIndex(P,P)]-e[k.getElementIndex(C,C)]-e[k.getElementIndex(M,M)]+1);let I=yo;I[P]=.5*n,n=.5/n,c=(e[k.getElementIndex(M,C)]-e[k.getElementIndex(C,M)])*n,I[C]=(e[k.getElementIndex(C,P)]+e[k.getElementIndex(P,C)])*n,I[M]=(e[k.getElementIndex(M,P)]+e[k.getElementIndex(P,M)])*n,r=-I[0],s=-I[1],o=-I[2]}return h(t)?(t.x=r,t.y=s,t.z=o,t.w=c,t):new _(r,s,o,c)};var cr=new _,ur=new _,nn=new _,fr=new _;_.fromHeadingPitchRoll=function(e,t){return l.typeOf.object("headingPitchRoll",e),fr=_.fromAxisAngle(v.UNIT_X,e.roll,cr),nn=_.fromAxisAngle(v.UNIT_Y,-e.pitch,t),t=_.multiply(nn,fr,nn),ur=_.fromAxisAngle(v.UNIT_Z,-e.heading,cr),_.multiply(ur,t,t)};var jt=new v,rn=new v,me=new _,hr=new _,kt=new _;_.packedLength=4;_.pack=function(e,t,n){return l.typeOf.object("value",e),l.defined("array",t),n=n??0,t[n++]=e.x,t[n++]=e.y,t[n++]=e.z,t[n]=e.w,t};_.unpack=function(e,t,n){return l.defined("array",e),t=t??0,h(n)||(n=new _),n.x=e[t],n.y=e[t+1],n.z=e[t+2],n.w=e[t+3],n};_.packedInterpolationLength=3;_.convertPackedArrayForInterpolation=function(e,t,n,r){_.unpack(e,n*4,kt),_.conjugate(kt,kt);for(let s=0,o=n-t+1;s<o;s++){let c=s*3;_.unpack(e,(t+s)*4,me),_.multiply(me,kt,me),me.w<0&&_.negate(me,me),_.computeAxis(me,jt);let u=_.computeAngle(me);h(r)||(r=[]),r[c]=jt.x*u,r[c+1]=jt.y*u,r[c+2]=jt.z*u}};_.unpackInterpolationResult=function(e,t,n,r,s){h(s)||(s=new _),v.fromArray(e,0,rn);let o=v.magnitude(rn);return _.unpack(t,r*4,hr),o===0?_.clone(_.IDENTITY,me):_.fromAxisAngle(rn,o,me),_.multiply(me,hr,s)};_.clone=function(e,t){if(h(e))return h(t)?(t.x=e.x,t.y=e.y,t.z=e.z,t.w=e.w,t):new _(e.x,e.y,e.z,e.w)};_.conjugate=function(e,t){return l.typeOf.object("quaternion",e),l.typeOf.object("result",t),t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=e.w,t};_.magnitudeSquared=function(e){return l.typeOf.object("quaternion",e),e.x*e.x+e.y*e.y+e.z*e.z+e.w*e.w};_.magnitude=function(e){return Math.sqrt(_.magnitudeSquared(e))};_.normalize=function(e,t){l.typeOf.object("result",t);let n=1/_.magnitude(e),r=e.x*n,s=e.y*n,o=e.z*n,c=e.w*n;return t.x=r,t.y=s,t.z=o,t.w=c,t};_.inverse=function(e,t){l.typeOf.object("result",t);let n=_.magnitudeSquared(e);return t=_.conjugate(e,t),_.multiplyByScalar(t,1/n,t)};_.add=function(e,t,n){return l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",n),n.x=e.x+t.x,n.y=e.y+t.y,n.z=e.z+t.z,n.w=e.w+t.w,n};_.subtract=function(e,t,n){return l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",n),n.x=e.x-t.x,n.y=e.y-t.y,n.z=e.z-t.z,n.w=e.w-t.w,n};_.negate=function(e,t){return l.typeOf.object("quaternion",e),l.typeOf.object("result",t),t.x=-e.x,t.y=-e.y,t.z=-e.z,t.w=-e.w,t};_.dot=function(e,t){return l.typeOf.object("left",e),l.typeOf.object("right",t),e.x*t.x+e.y*t.y+e.z*t.z+e.w*t.w};_.multiply=function(e,t,n){l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",n);let r=e.x,s=e.y,o=e.z,c=e.w,u=t.x,p=t.y,y=t.z,g=t.w,w=c*u+r*g+s*y-o*p,P=c*p-r*y+s*g+o*u,C=c*y+r*p-s*u+o*g,M=c*g-r*u-s*p-o*y;return n.x=w,n.y=P,n.z=C,n.w=M,n};_.multiplyByScalar=function(e,t,n){return l.typeOf.object("quaternion",e),l.typeOf.number("scalar",t),l.typeOf.object("result",n),n.x=e.x*t,n.y=e.y*t,n.z=e.z*t,n.w=e.w*t,n};_.divideByScalar=function(e,t,n){return l.typeOf.object("quaternion",e),l.typeOf.number("scalar",t),l.typeOf.object("result",n),n.x=e.x/t,n.y=e.y/t,n.z=e.z/t,n.w=e.w/t,n};_.computeAxis=function(e,t){l.typeOf.object("quaternion",e),l.typeOf.object("result",t);let n=e.w;if(Math.abs(n-1)<O.EPSILON6||Math.abs(n+1)<O.EPSILON6)return t.x=1,t.y=t.z=0,t;let r=1/Math.sqrt(1-n*n);return t.x=e.x*r,t.y=e.y*r,t.z=e.z*r,t};_.computeAngle=function(e){return l.typeOf.object("quaternion",e),Math.abs(e.w-1)<O.EPSILON6?0:2*Math.acos(e.w)};var on=new _;_.lerp=function(e,t,n,r){return l.typeOf.object("start",e),l.typeOf.object("end",t),l.typeOf.number("t",n),l.typeOf.object("result",r),on=_.multiplyByScalar(t,n,on),r=_.multiplyByScalar(e,1-n,r),_.add(on,r,r)};var lr=new _,sn=new _,an=new _;_.slerp=function(e,t,n,r){l.typeOf.object("start",e),l.typeOf.object("end",t),l.typeOf.number("t",n),l.typeOf.object("result",r);let s=_.dot(e,t),o=t;if(s<0&&(s=-s,o=lr=_.negate(t,lr)),1-s<O.EPSILON6)return _.lerp(e,o,n,r);let c=Math.acos(s);return sn=_.multiplyByScalar(e,Math.sin((1-n)*c),sn),an=_.multiplyByScalar(o,Math.sin(n*c),an),r=_.add(sn,an,r),_.multiplyByScalar(r,1/Math.sin(c),r)};_.log=function(e,t){l.typeOf.object("quaternion",e),l.typeOf.object("result",t);let n=O.acosClamped(e.w),r=0;return n!==0&&(r=n/Math.sin(n)),v.multiplyByScalar(e,r,t)};_.exp=function(e,t){l.typeOf.object("cartesian",e),l.typeOf.object("result",t);let n=v.magnitude(e),r=0;return n!==0&&(r=Math.sin(n)/n),t.x=e.x*r,t.y=e.y*r,t.z=e.z*r,t.w=Math.cos(n),t};var go=new v,wo=new v,lt=new _,et=new _;_.computeInnerQuadrangle=function(e,t,n,r){l.typeOf.object("q0",e),l.typeOf.object("q1",t),l.typeOf.object("q2",n),l.typeOf.object("result",r);let s=_.conjugate(t,lt);_.multiply(s,n,et);let o=_.log(et,go);_.multiply(s,e,et);let c=_.log(et,wo);return v.add(o,c,o),v.multiplyByScalar(o,.25,o),v.negate(o,o),_.exp(o,lt),_.multiply(t,lt,r)};_.squad=function(e,t,n,r,s,o){l.typeOf.object("q0",e),l.typeOf.object("q1",t),l.typeOf.object("s0",n),l.typeOf.object("s1",r),l.typeOf.number("t",s),l.typeOf.object("result",o);let c=_.slerp(e,t,s,lt),u=_.slerp(n,r,s,et);return _.slerp(c,u,2*s*(1-s),o)};var bo=new _,pr=1.9011074535173003,Nt=nt.supportsTypedArrays()?new Float32Array(8):[],zt=nt.supportsTypedArrays()?new Float32Array(8):[],xe=nt.supportsTypedArrays()?new Float32Array(8):[],Ae=nt.supportsTypedArrays()?new Float32Array(8):[];for(let e=0;e<7;++e){let t=e+1,n=2*t+1;Nt[e]=1/(t*n),zt[e]=t/n}Nt[7]=pr/136;zt[7]=pr*8/17;_.fastSlerp=function(e,t,n,r){l.typeOf.object("start",e),l.typeOf.object("end",t),l.typeOf.number("t",n),l.typeOf.object("result",r);let s=_.dot(e,t),o;s>=0?o=1:(o=-1,s=-s);let c=s-1,u=1-n,p=n*n,y=u*u;for(let C=7;C>=0;--C)xe[C]=(Nt[C]*p-zt[C])*c,Ae[C]=(Nt[C]*y-zt[C])*c;let g=o*n*(1+xe[0]*(1+xe[1]*(1+xe[2]*(1+xe[3]*(1+xe[4]*(1+xe[5]*(1+xe[6]*(1+xe[7])))))))),w=u*(1+Ae[0]*(1+Ae[1]*(1+Ae[2]*(1+Ae[3]*(1+Ae[4]*(1+Ae[5]*(1+Ae[6]*(1+Ae[7])))))))),P=_.multiplyByScalar(e,w,bo);return _.multiplyByScalar(t,g,r),_.add(P,r,r)};_.fastSquad=function(e,t,n,r,s,o){l.typeOf.object("q0",e),l.typeOf.object("q1",t),l.typeOf.object("s0",n),l.typeOf.object("s1",r),l.typeOf.number("t",s),l.typeOf.object("result",o);let c=_.fastSlerp(e,t,s,lt),u=_.fastSlerp(n,r,s,et);return _.fastSlerp(c,u,2*s*(1-s),o)};_.equals=function(e,t){return e===t||h(e)&&h(t)&&e.x===t.x&&e.y===t.y&&e.z===t.z&&e.w===t.w};_.equalsEpsilon=function(e,t,n){return n=n??0,e===t||h(e)&&h(t)&&Math.abs(e.x-t.x)<=n&&Math.abs(e.y-t.y)<=n&&Math.abs(e.z-t.z)<=n&&Math.abs(e.w-t.w)<=n};_.ZERO=Object.freeze(new _(0,0,0,0));_.IDENTITY=Object.freeze(new _(0,0,0,1));_.prototype.clone=function(e){return _.clone(this,e)};_.prototype.equals=function(e){return _.equals(this,e)};_.prototype.equalsEpsilon=function(e,t){return _.equalsEpsilon(this,e,t)};_.prototype.toString=function(){return`(${this.x}, ${this.y}, ${this.z}, ${this.w})`};var We=_;var q={},cn={up:{south:"east",north:"west",west:"south",east:"north"},down:{south:"west",north:"east",west:"north",east:"south"},south:{up:"west",down:"east",west:"down",east:"up"},north:{up:"east",down:"west",west:"up",east:"down"},west:{up:"north",down:"south",north:"down",south:"up"},east:{up:"south",down:"north",north:"up",south:"down"}},tt={north:[-1,0,0],east:[0,1,0],up:[0,0,1],south:[1,0,0],west:[0,-1,0],down:[0,0,-1]},un={},fe={east:new v,north:new v,up:new v,west:new v,south:new v,down:new v},Me=new v,De=new v,qe=new v;q.localFrameToFixedFrameGenerator=function(e,t){if(!cn.hasOwnProperty(e)||!cn[e].hasOwnProperty(t))throw new T("firstAxis and secondAxis must be east, north, up, west, south or down.");let n=cn[e][t],r,s=e+t;return h(un[s])?r=un[s]:(r=function(o,c,u){if(!h(o))throw new T("origin is required.");if(isNaN(o.x)||isNaN(o.y)||isNaN(o.z))throw new T("origin has a NaN component");if(h(u)||(u=new L),v.equalsEpsilon(o,v.ZERO,O.EPSILON14))v.unpack(tt[e],0,Me),v.unpack(tt[t],0,De),v.unpack(tt[n],0,qe);else if(O.equalsEpsilon(o.x,0,O.EPSILON14)&&O.equalsEpsilon(o.y,0,O.EPSILON14)){let p=O.sign(o.z);v.unpack(tt[e],0,Me),e!=="east"&&e!=="west"&&v.multiplyByScalar(Me,p,Me),v.unpack(tt[t],0,De),t!=="east"&&t!=="west"&&v.multiplyByScalar(De,p,De),v.unpack(tt[n],0,qe),n!=="east"&&n!=="west"&&v.multiplyByScalar(qe,p,qe)}else{c=c??Re.default,c.geodeticSurfaceNormal(o,fe.up);let p=fe.up,y=fe.east;y.x=-o.y,y.y=o.x,y.z=0,v.normalize(y,fe.east),v.cross(p,y,fe.north),v.multiplyByScalar(fe.up,-1,fe.down),v.multiplyByScalar(fe.east,-1,fe.west),v.multiplyByScalar(fe.north,-1,fe.south),Me=fe[e],De=fe[t],qe=fe[n]}return u[0]=Me.x,u[1]=Me.y,u[2]=Me.z,u[3]=0,u[4]=De.x,u[5]=De.y,u[6]=De.z,u[7]=0,u[8]=qe.x,u[9]=qe.y,u[10]=qe.z,u[11]=0,u[12]=o.x,u[13]=o.y,u[14]=o.z,u[15]=1,u},un[s]=r),r};q.eastNorthUpToFixedFrame=q.localFrameToFixedFrameGenerator("east","north");q.northEastDownToFixedFrame=q.localFrameToFixedFrameGenerator("north","east");q.northUpEastToFixedFrame=q.localFrameToFixedFrameGenerator("north","up");q.northWestUpToFixedFrame=q.localFrameToFixedFrameGenerator("north","west");var _o=new We,Oo=new v(1,1,1),So=new L;q.headingPitchRollToFixedFrame=function(e,t,n,r,s){l.typeOf.object("HeadingPitchRoll",t),r=r??q.eastNorthUpToFixedFrame;let o=We.fromHeadingPitchRoll(t,_o),c=L.fromTranslationQuaternionRotationScale(v.ZERO,o,Oo,So);return s=r(e,n,s),L.multiply(s,c,s)};var vo=new L,Eo=new k;q.headingPitchRollQuaternion=function(e,t,n,r,s){l.typeOf.object("HeadingPitchRoll",t);let o=q.headingPitchRollToFixedFrame(e,t,n,r,vo),c=L.getMatrix3(o,Eo);return We.fromRotationMatrix(c,s)};var To=new v(1,1,1),xo=new v,dr=new L,Ao=new L,Co=new k,Ro=new We;q.fixedFrameToHeadingPitchRoll=function(e,t,n,r){l.defined("transform",e),t=t??Re.default,n=n??q.eastNorthUpToFixedFrame,h(r)||(r=new Ut);let s=L.getTranslation(e,xo);if(v.equals(s,v.ZERO))return r.heading=0,r.pitch=0,r.roll=0,r;let o=L.inverseTransformation(n(s,t,dr),dr),c=L.setScale(e,To,Ao);c=L.setTranslation(c,v.ZERO,c),o=L.multiply(o,c,o);let u=We.fromRotationMatrix(L.getMatrix3(o,Co),Ro);return u=We.normalize(u,u),Ut.fromQuaternion(u,r)};var Po=6*3600+2460+50.54841,Io=8640184812866e-6,Uo=.093104,Mo=-62e-7,Do=11772758384668e-32,qo=72921158553e-15,jo=O.TWO_PI/86400,Ft=new K;q.computeIcrfToCentralBodyFixedMatrix=function(e,t){let n=q.computeIcrfToFixedMatrix(e,t);return h(n)||(n=q.computeTemeToPseudoFixedMatrix(e,t)),n};q.computeTemeToPseudoFixedMatrix=function(e,t){if(!h(e))throw new T("date is required.");Ft=K.addSeconds(e,-K.computeTaiMinusUtc(e),Ft);let n=Ft.dayNumber,r=Ft.secondsOfDay,s,o=n-2451545;r>=43200?s=(o+.5)/V.DAYS_PER_JULIAN_CENTURY:s=(o-.5)/V.DAYS_PER_JULIAN_CENTURY;let u=(Po+s*(Io+s*(Uo+s*Mo)))*jo%O.TWO_PI,p=qo+Do*(n-24515455e-1),y=(r+V.SECONDS_PER_DAY*.5)%V.SECONDS_PER_DAY,g=u+p*y,w=Math.cos(g),P=Math.sin(g);return h(t)?(t[0]=w,t[1]=-P,t[2]=0,t[3]=P,t[4]=w,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t):new k(w,P,0,-P,w,0,0,0,1)};q.iau2006XysData=new ar;q.earthOrientationParameters=tr.NONE;var ln=32.184,ko=2451545;q.preloadIcrfFixed=function(e){let t=e.start.dayNumber,n=e.start.secondsOfDay+ln,r=e.stop.dayNumber,s=e.stop.secondsOfDay+ln;return q.iau2006XysData.preload(t,n,r,s)};q.computeIcrfToFixedMatrix=function(e,t){if(!h(e))throw new T("date is required.");h(t)||(t=new k);let n=q.computeFixedToIcrfMatrix(e,t);if(h(n))return k.transpose(n,t)};var No=32.184,zo=2451545,Lt=new Ut,Fo=new k,Lo=new K;q.computeMoonFixedToIcrfMatrix=function(e,t){if(!h(e))throw new T("date is required.");h(t)||(t=new k);let n=K.addSeconds(e,No,Lo),r=K.totalDays(n)-zo,s=O.toRadians(12.112)-O.toRadians(.052992)*r,o=O.toRadians(24.224)-O.toRadians(.105984)*r,c=O.toRadians(227.645)+O.toRadians(13.012)*r,u=O.toRadians(261.105)+O.toRadians(13.340716)*r,p=O.toRadians(358)+O.toRadians(.9856)*r;return Lt.pitch=O.toRadians(180)-O.toRadians(3.878)*Math.sin(s)-O.toRadians(.12)*Math.sin(o)+O.toRadians(.07)*Math.sin(c)-O.toRadians(.017)*Math.sin(u),Lt.roll=O.toRadians(66.53-90)+O.toRadians(1.543)*Math.cos(s)+O.toRadians(.24)*Math.cos(o)-O.toRadians(.028)*Math.cos(c)+O.toRadians(.007)*Math.cos(u),Lt.heading=O.toRadians(244.375-90)+O.toRadians(13.17635831)*r+O.toRadians(3.558)*Math.sin(s)+O.toRadians(.121)*Math.sin(o)-O.toRadians(.064)*Math.sin(c)+O.toRadians(.016)*Math.sin(u)+O.toRadians(.025)*Math.sin(p),k.fromHeadingPitchRoll(Lt,Fo)};q.computeIcrfToMoonFixedMatrix=function(e,t){if(!h(e))throw new T("date is required.");h(t)||(t=new k);let n=q.computeMoonFixedToIcrfMatrix(e,t);if(h(n))return k.transpose(n,t)};var Bo=new qt(0,0,0),Qo=new rt(0,0,0,0,0,0),fn=new k,hn=new k;q.computeFixedToIcrfMatrix=function(e,t){if(!h(e))throw new T("date is required.");h(t)||(t=new k);let n=q.earthOrientationParameters.compute(e,Qo);if(!h(n))return;let r=e.dayNumber,s=e.secondsOfDay+ln,o=q.iau2006XysData.computeXysRadians(r,s,Bo);if(!h(o))return;let c=o.x+n.xPoleOffset,u=o.y+n.yPoleOffset,p=1/(1+Math.sqrt(1-c*c-u*u)),y=fn;y[0]=1-p*c*c,y[3]=-p*c*u,y[6]=c,y[1]=-p*c*u,y[4]=1-p*u*u,y[7]=u,y[2]=-c,y[5]=-u,y[8]=1-p*(c*c+u*u);let g=k.fromRotationZ(-o.s,hn),w=k.multiply(y,g,fn),P=e.dayNumber,C=e.secondsOfDay-K.computeTaiMinusUtc(e)+n.ut1MinusUtc,M=P-2451545,I=C/V.SECONDS_PER_DAY,N=.779057273264+I+.00273781191135448*(M+I);N=N%1*O.TWO_PI;let z=k.fromRotationZ(N,hn),W=k.multiply(w,z,fn),H=Math.cos(n.xPoleWander),J=Math.cos(n.yPoleWander),ee=Math.sin(n.xPoleWander),te=Math.sin(n.yPoleWander),Se=r-ko+s/V.SECONDS_PER_DAY;Se/=36525;let je=-47e-6*Se*O.RADIANS_PER_DEGREE/3600,ye=Math.cos(je),ge=Math.sin(je),ue=hn;return ue[0]=H*ye,ue[1]=H*ge,ue[2]=ee,ue[3]=-J*ge+te*ee*ye,ue[4]=J*ye+te*ee*ge,ue[5]=-te*H,ue[6]=-te*ge-J*ee*ye,ue[7]=te*ye-J*ee*ge,ue[8]=J*H,k.multiply(W,ue,t)};var Ho=new mt;q.pointToWindowCoordinates=function(e,t,n,r){return r=q.pointToGLWindowCoordinates(e,t,n,r),r.y=2*t[5]-r.y,r};q.pointToGLWindowCoordinates=function(e,t,n,r){if(!h(e))throw new T("modelViewProjectionMatrix is required.");if(!h(t))throw new T("viewportTransformation is required.");if(!h(n))throw new T("point is required.");h(r)||(r=new ce);let s=Ho;return L.multiplyByVector(e,mt.fromElements(n.x,n.y,n.z,1,s),s),mt.multiplyByScalar(s,1/s.w,s),L.multiplyByVector(t,s,s),ce.fromCartesian4(s,r)};var Wo=new v,$o=new v,Vo=new v;q.rotationMatrixFromPositionVelocity=function(e,t,n,r){if(!h(e))throw new T("position is required.");if(!h(t))throw new T("velocity is required.");let s=(n??Re.default).geodeticSurfaceNormal(e,Wo),o=v.cross(t,s,$o);v.equalsEpsilon(o,v.ZERO,O.EPSILON6)&&(o=v.clone(v.UNIT_X,o));let c=v.cross(o,t,Vo);return v.normalize(c,c),v.cross(t,c,o),v.negate(o,o),v.normalize(o,o),h(r)||(r=new k),r[0]=t.x,r[1]=t.y,r[2]=t.z,r[3]=o.x,r[4]=o.y,r[5]=o.z,r[6]=c.x,r[7]=c.y,r[8]=c.z,r};q.SWIZZLE_3D_TO_2D_MATRIX=Object.freeze(new L(0,0,1,0,1,0,0,0,0,1,0,0,0,0,0,1));var mr=new ve,pn=new v,Yo=new v,Xo=new k,dn=new L,yr=new L;q.basisTo2D=function(e,t,n){if(!h(e))throw new T("projection is required.");if(!h(t))throw new T("matrix is required.");if(!h(n))throw new T("result is required.");let r=L.getTranslation(t,Yo),s=e.ellipsoid,o;if(v.equals(r,v.ZERO))o=v.clone(v.ZERO,pn);else{let g=s.cartesianToCartographic(r,mr);o=e.project(g,pn),v.fromElements(o.z,o.x,o.y,o)}let c=q.eastNorthUpToFixedFrame(r,s,dn),u=L.inverseTransformation(c,yr),p=L.getMatrix3(t,Xo),y=L.multiplyByMatrix3(u,p,n);return L.multiply(q.SWIZZLE_3D_TO_2D_MATRIX,y,n),L.setTranslation(n,o,n),n};q.ellipsoidTo2DModelMatrix=function(e,t,n){if(!h(e))throw new T("projection is required.");if(!h(t))throw new T("center is required.");if(!h(n))throw new T("result is required.");let r=e.ellipsoid,s=q.eastNorthUpToFixedFrame(t,r,dn),o=L.inverseTransformation(s,yr),c=r.cartesianToCartographic(t,mr),u=e.project(c,pn);v.fromElements(u.z,u.x,u.y,u);let p=L.fromTranslation(u,dn);return L.multiply(q.SWIZZLE_3D_TO_2D_MATRIX,o,n),L.multiply(p,n,n),n};var gr=q;function D(e,t,n,r){this.west=e??0,this.south=t??0,this.east=n??0,this.north=r??0}Object.defineProperties(D.prototype,{width:{get:function(){return D.computeWidth(this)}},height:{get:function(){return D.computeHeight(this)}}});D.packedLength=4;D.pack=function(e,t,n){return l.typeOf.object("value",e),l.defined("array",t),n=n??0,t[n++]=e.west,t[n++]=e.south,t[n++]=e.east,t[n]=e.north,t};D.unpack=function(e,t,n){return l.defined("array",e),t=t??0,h(n)||(n=new D),n.west=e[t++],n.south=e[t++],n.east=e[t++],n.north=e[t],n};D.computeWidth=function(e){l.typeOf.object("rectangle",e);let t=e.east,n=e.west;return t<n&&(t+=O.TWO_PI),t-n};D.computeHeight=function(e){return l.typeOf.object("rectangle",e),e.north-e.south};D.fromDegrees=function(e,t,n,r,s){return e=O.toRadians(e??0),t=O.toRadians(t??0),n=O.toRadians(n??0),r=O.toRadians(r??0),h(s)?(s.west=e,s.south=t,s.east=n,s.north=r,s):new D(e,t,n,r)};D.fromRadians=function(e,t,n,r,s){return h(s)?(s.west=e??0,s.south=t??0,s.east=n??0,s.north=r??0,s):new D(e,t,n,r)};D.fromCartographicArray=function(e,t){l.defined("cartographics",e);let n=Number.MAX_VALUE,r=-Number.MAX_VALUE,s=Number.MAX_VALUE,o=-Number.MAX_VALUE,c=Number.MAX_VALUE,u=-Number.MAX_VALUE;for(let p=0,y=e.length;p<y;p++){let g=e[p];n=Math.min(n,g.longitude),r=Math.max(r,g.longitude),c=Math.min(c,g.latitude),u=Math.max(u,g.latitude);let w=g.longitude>=0?g.longitude:g.longitude+O.TWO_PI;s=Math.min(s,w),o=Math.max(o,w)}return r-n>o-s&&(n=s,r=o,r>O.PI&&(r=r-O.TWO_PI),n>O.PI&&(n=n-O.TWO_PI)),h(t)?(t.west=n,t.south=c,t.east=r,t.north=u,t):new D(n,c,r,u)};D.fromCartesianArray=function(e,t,n){l.defined("cartesians",e),t=t??Re.default;let r=Number.MAX_VALUE,s=-Number.MAX_VALUE,o=Number.MAX_VALUE,c=-Number.MAX_VALUE,u=Number.MAX_VALUE,p=-Number.MAX_VALUE;for(let y=0,g=e.length;y<g;y++){let w=t.cartesianToCartographic(e[y]);r=Math.min(r,w.longitude),s=Math.max(s,w.longitude),u=Math.min(u,w.latitude),p=Math.max(p,w.latitude);let P=w.longitude>=0?w.longitude:w.longitude+O.TWO_PI;o=Math.min(o,P),c=Math.max(c,P)}return s-r>c-o&&(r=o,s=c,s>O.PI&&(s=s-O.TWO_PI),r>O.PI&&(r=r-O.TWO_PI)),h(n)?(n.west=r,n.south=u,n.east=s,n.north=p,n):new D(r,u,s,p)};var Jo=new v,Zo=new v,Go=new v,Ko=new v,ei=new v,mn=new Array(5);for(let e=0;e<mn.length;++e)mn[e]=new v;D.fromBoundingSphere=function(e,t,n){l.typeOf.object("boundingSphere",e);let r=e.center,s=e.radius;if(h(t)||(t=Re.default),h(n)||(n=new D),v.equals(r,v.ZERO))return D.clone(D.MAX_VALUE,n),n;let o=gr.eastNorthUpToFixedFrame(r,t,Jo),c=L.multiplyByPointAsVector(o,v.UNIT_X,Zo);v.normalize(c,c);let u=L.multiplyByPointAsVector(o,v.UNIT_Y,Go);v.normalize(u,u),v.multiplyByScalar(u,s,u),v.multiplyByScalar(c,s,c);let p=v.negate(u,ei),y=v.negate(c,Ko),g=mn,w=g[0];return v.add(r,u,w),w=g[1],v.add(r,y,w),w=g[2],v.add(r,p,w),w=g[3],v.add(r,c,w),g[4]=r,D.fromCartesianArray(g,t,n)};D.clone=function(e,t){if(h(e))return h(t)?(t.west=e.west,t.south=e.south,t.east=e.east,t.north=e.north,t):new D(e.west,e.south,e.east,e.north)};D.equalsEpsilon=function(e,t,n){return n=n??0,e===t||h(e)&&h(t)&&Math.abs(e.west-t.west)<=n&&Math.abs(e.south-t.south)<=n&&Math.abs(e.east-t.east)<=n&&Math.abs(e.north-t.north)<=n};D.prototype.clone=function(e){return D.clone(this,e)};D.prototype.equals=function(e){return D.equals(this,e)};D.equals=function(e,t){return e===t||h(e)&&h(t)&&e.west===t.west&&e.south===t.south&&e.east===t.east&&e.north===t.north};D.prototype.equalsEpsilon=function(e,t){return D.equalsEpsilon(this,e,t)};D._validate=function(e){l.typeOf.object("rectangle",e);let t=e.north;l.typeOf.number.greaterThanOrEquals("north",t,-O.PI_OVER_TWO),l.typeOf.number.lessThanOrEquals("north",t,O.PI_OVER_TWO);let n=e.south;l.typeOf.number.greaterThanOrEquals("south",n,-O.PI_OVER_TWO),l.typeOf.number.lessThanOrEquals("south",n,O.PI_OVER_TWO);let r=e.west;l.typeOf.number.greaterThanOrEquals("west",r,-Math.PI),l.typeOf.number.lessThanOrEquals("west",r,Math.PI);let s=e.east;l.typeOf.number.greaterThanOrEquals("east",s,-Math.PI),l.typeOf.number.lessThanOrEquals("east",s,Math.PI)};D.southwest=function(e,t){return l.typeOf.object("rectangle",e),h(t)?(t.longitude=e.west,t.latitude=e.south,t.height=0,t):new ve(e.west,e.south)};D.northwest=function(e,t){return l.typeOf.object("rectangle",e),h(t)?(t.longitude=e.west,t.latitude=e.north,t.height=0,t):new ve(e.west,e.north)};D.northeast=function(e,t){return l.typeOf.object("rectangle",e),h(t)?(t.longitude=e.east,t.latitude=e.north,t.height=0,t):new ve(e.east,e.north)};D.southeast=function(e,t){return l.typeOf.object("rectangle",e),h(t)?(t.longitude=e.east,t.latitude=e.south,t.height=0,t):new ve(e.east,e.south)};D.center=function(e,t){l.typeOf.object("rectangle",e);let n=e.east,r=e.west;n<r&&(n+=O.TWO_PI);let s=O.negativePiToPi((r+n)*.5),o=(e.south+e.north)*.5;return h(t)?(t.longitude=s,t.latitude=o,t.height=0,t):new ve(s,o)};D.intersection=function(e,t,n){l.typeOf.object("rectangle",e),l.typeOf.object("otherRectangle",t);let r=e.east,s=e.west,o=t.east,c=t.west;r<s&&o>0?r+=O.TWO_PI:o<c&&r>0&&(o+=O.TWO_PI),r<s&&c<0?c+=O.TWO_PI:o<c&&s<0&&(s+=O.TWO_PI);let u=O.negativePiToPi(Math.max(s,c)),p=O.negativePiToPi(Math.min(r,o));if((e.west<e.east||t.west<t.east)&&p<=u)return;let y=Math.max(e.south,t.south),g=Math.min(e.north,t.north);if(!(y>=g))return h(n)?(n.west=u,n.south=y,n.east=p,n.north=g,n):new D(u,y,p,g)};D.simpleIntersection=function(e,t,n){l.typeOf.object("rectangle",e),l.typeOf.object("otherRectangle",t);let r=Math.max(e.west,t.west),s=Math.max(e.south,t.south),o=Math.min(e.east,t.east),c=Math.min(e.north,t.north);if(!(s>=c||r>=o))return h(n)?(n.west=r,n.south=s,n.east=o,n.north=c,n):new D(r,s,o,c)};D.union=function(e,t,n){l.typeOf.object("rectangle",e),l.typeOf.object("otherRectangle",t),h(n)||(n=new D);let r=e.east,s=e.west,o=t.east,c=t.west;r<s&&o>0?r+=O.TWO_PI:o<c&&r>0&&(o+=O.TWO_PI),r<s&&c<0?c+=O.TWO_PI:o<c&&s<0&&(s+=O.TWO_PI);let u=O.negativePiToPi(Math.min(s,c)),p=O.negativePiToPi(Math.max(r,o));return n.west=u,n.south=Math.min(e.south,t.south),n.east=p,n.north=Math.max(e.north,t.north),n};D.expand=function(e,t,n){return l.typeOf.object("rectangle",e),l.typeOf.object("cartographic",t),h(n)||(n=new D),n.west=Math.min(e.west,t.longitude),n.south=Math.min(e.south,t.latitude),n.east=Math.max(e.east,t.longitude),n.north=Math.max(e.north,t.latitude),n};D.contains=function(e,t){l.typeOf.object("rectangle",e),l.typeOf.object("cartographic",t);let n=t.longitude,r=t.latitude,s=e.west,o=e.east;return o<s&&(o+=O.TWO_PI,n<0&&(n+=O.TWO_PI)),(n>s||O.equalsEpsilon(n,s,O.EPSILON14))&&(n<o||O.equalsEpsilon(n,o,O.EPSILON14))&&r>=e.south&&r<=e.north};var ti=new ve;D.subsample=function(e,t,n,r){l.typeOf.object("rectangle",e),t=t??Re.default,n=n??0,h(r)||(r=[]);let s=0,o=e.north,c=e.south,u=e.east,p=e.west,y=ti;y.height=n,y.longitude=p,y.latitude=o,r[s]=t.cartographicToCartesian(y,r[s]),s++,y.longitude=u,r[s]=t.cartographicToCartesian(y,r[s]),s++,y.latitude=c,r[s]=t.cartographicToCartesian(y,r[s]),s++,y.longitude=p,r[s]=t.cartographicToCartesian(y,r[s]),s++,o<0?y.latitude=o:c>0?y.latitude=c:y.latitude=0;for(let g=1;g<8;++g)y.longitude=-Math.PI+g*O.PI_OVER_TWO,D.contains(e,y)&&(r[s]=t.cartographicToCartesian(y,r[s]),s++);return y.latitude===0&&(y.longitude=p,r[s]=t.cartographicToCartesian(y,r[s]),s++,y.longitude=u,r[s]=t.cartographicToCartesian(y,r[s]),s++),r.length=s,r};D.subsection=function(e,t,n,r,s,o){if(l.typeOf.object("rectangle",e),l.typeOf.number.greaterThanOrEquals("westLerp",t,0),l.typeOf.number.lessThanOrEquals("westLerp",t,1),l.typeOf.number.greaterThanOrEquals("southLerp",n,0),l.typeOf.number.lessThanOrEquals("southLerp",n,1),l.typeOf.number.greaterThanOrEquals("eastLerp",r,0),l.typeOf.number.lessThanOrEquals("eastLerp",r,1),l.typeOf.number.greaterThanOrEquals("northLerp",s,0),l.typeOf.number.lessThanOrEquals("northLerp",s,1),l.typeOf.number.lessThanOrEquals("westLerp",t,r),l.typeOf.number.lessThanOrEquals("southLerp",n,s),h(o)||(o=new D),e.west<=e.east){let u=e.east-e.west;o.west=e.west+t*u,o.east=e.west+r*u}else{let u=O.TWO_PI+e.east-e.west;o.west=O.negativePiToPi(e.west+t*u),o.east=O.negativePiToPi(e.west+r*u)}let c=e.north-e.south;return o.south=e.south+n*c,o.north=e.south+s*c,t===1&&(o.west=e.east),r===1&&(o.east=e.east),n===1&&(o.south=e.north),s===1&&(o.north=e.north),o};D.MAX_VALUE=Object.freeze(new D(-Math.PI,-O.PI_OVER_TWO,Math.PI,O.PI_OVER_TWO));var mc=D;function R(e,t,n,r){this[0]=e??0,this[1]=n??0,this[2]=t??0,this[3]=r??0}R.packedLength=4;R.pack=function(e,t,n){return l.typeOf.object("value",e),l.defined("array",t),n=n??0,t[n++]=e[0],t[n++]=e[1],t[n++]=e[2],t[n++]=e[3],t};R.unpack=function(e,t,n){return l.defined("array",e),t=t??0,h(n)||(n=new R),n[0]=e[t++],n[1]=e[t++],n[2]=e[t++],n[3]=e[t++],n};R.packArray=function(e,t){l.defined("array",e);let n=e.length,r=n*4;if(!h(t))t=new Array(r);else{if(!Array.isArray(t)&&t.length!==r)throw new T("If result is a typed array, it must have exactly array.length * 4 elements");t.length!==r&&(t.length=r)}for(let s=0;s<n;++s)R.pack(e[s],t,s*4);return t};R.unpackArray=function(e,t){if(l.defined("array",e),l.typeOf.number.greaterThanOrEquals("array.length",e.length,4),e.length%4!==0)throw new T("array length must be a multiple of 4.");let n=e.length;h(t)?t.length=n/4:t=new Array(n/4);for(let r=0;r<n;r+=4){let s=r/4;t[s]=R.unpack(e,r,t[s])}return t};R.clone=function(e,t){if(h(e))return h(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):new R(e[0],e[2],e[1],e[3])};R.fromArray=R.unpack;R.fromColumnMajorArray=function(e,t){return l.defined("values",e),R.clone(e,t)};R.fromRowMajorArray=function(e,t){return l.defined("values",e),h(t)?(t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3],t):new R(e[0],e[1],e[2],e[3])};R.fromScale=function(e,t){return l.typeOf.object("scale",e),h(t)?(t[0]=e.x,t[1]=0,t[2]=0,t[3]=e.y,t):new R(e.x,0,0,e.y)};R.fromUniformScale=function(e,t){return l.typeOf.number("scale",e),h(t)?(t[0]=e,t[1]=0,t[2]=0,t[3]=e,t):new R(e,0,0,e)};R.fromRotation=function(e,t){l.typeOf.number("angle",e);let n=Math.cos(e),r=Math.sin(e);return h(t)?(t[0]=n,t[1]=r,t[2]=-r,t[3]=n,t):new R(n,-r,r,n)};R.toArray=function(e,t){return l.typeOf.object("matrix",e),h(t)?(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t):[e[0],e[1],e[2],e[3]]};R.getElementIndex=function(e,t){return l.typeOf.number.greaterThanOrEquals("row",t,0),l.typeOf.number.lessThanOrEquals("row",t,1),l.typeOf.number.greaterThanOrEquals("column",e,0),l.typeOf.number.lessThanOrEquals("column",e,1),e*2+t};R.getColumn=function(e,t,n){l.typeOf.object("matrix",e),l.typeOf.number.greaterThanOrEquals("index",t,0),l.typeOf.number.lessThanOrEquals("index",t,1),l.typeOf.object("result",n);let r=t*2,s=e[r],o=e[r+1];return n.x=s,n.y=o,n};R.setColumn=function(e,t,n,r){l.typeOf.object("matrix",e),l.typeOf.number.greaterThanOrEquals("index",t,0),l.typeOf.number.lessThanOrEquals("index",t,1),l.typeOf.object("cartesian",n),l.typeOf.object("result",r),r=R.clone(e,r);let s=t*2;return r[s]=n.x,r[s+1]=n.y,r};R.getRow=function(e,t,n){l.typeOf.object("matrix",e),l.typeOf.number.greaterThanOrEquals("index",t,0),l.typeOf.number.lessThanOrEquals("index",t,1),l.typeOf.object("result",n);let r=e[t],s=e[t+2];return n.x=r,n.y=s,n};R.setRow=function(e,t,n,r){return l.typeOf.object("matrix",e),l.typeOf.number.greaterThanOrEquals("index",t,0),l.typeOf.number.lessThanOrEquals("index",t,1),l.typeOf.object("cartesian",n),l.typeOf.object("result",r),r=R.clone(e,r),r[t]=n.x,r[t+2]=n.y,r};var ni=new ce;R.setScale=function(e,t,n){l.typeOf.object("matrix",e),l.typeOf.object("scale",t),l.typeOf.object("result",n);let r=R.getScale(e,ni),s=t.x/r.x,o=t.y/r.y;return n[0]=e[0]*s,n[1]=e[1]*s,n[2]=e[2]*o,n[3]=e[3]*o,n};var ri=new ce;R.setUniformScale=function(e,t,n){l.typeOf.object("matrix",e),l.typeOf.number("scale",t),l.typeOf.object("result",n);let r=R.getScale(e,ri),s=t/r.x,o=t/r.y;return n[0]=e[0]*s,n[1]=e[1]*s,n[2]=e[2]*o,n[3]=e[3]*o,n};var wr=new ce;R.getScale=function(e,t){return l.typeOf.object("matrix",e),l.typeOf.object("result",t),t.x=ce.magnitude(ce.fromElements(e[0],e[1],wr)),t.y=ce.magnitude(ce.fromElements(e[2],e[3],wr)),t};var br=new ce;R.getMaximumScale=function(e){return R.getScale(e,br),ce.maximumComponent(br)};var oi=new ce;R.setRotation=function(e,t,n){l.typeOf.object("matrix",e),l.typeOf.object("result",n);let r=R.getScale(e,oi);return n[0]=t[0]*r.x,n[1]=t[1]*r.x,n[2]=t[2]*r.y,n[3]=t[3]*r.y,n};var ii=new ce;R.getRotation=function(e,t){l.typeOf.object("matrix",e),l.typeOf.object("result",t);let n=R.getScale(e,ii);return t[0]=e[0]/n.x,t[1]=e[1]/n.x,t[2]=e[2]/n.y,t[3]=e[3]/n.y,t};R.multiply=function(e,t,n){l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",n);let r=e[0]*t[0]+e[2]*t[1],s=e[0]*t[2]+e[2]*t[3],o=e[1]*t[0]+e[3]*t[1],c=e[1]*t[2]+e[3]*t[3];return n[0]=r,n[1]=o,n[2]=s,n[3]=c,n};R.add=function(e,t,n){return l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",n),n[0]=e[0]+t[0],n[1]=e[1]+t[1],n[2]=e[2]+t[2],n[3]=e[3]+t[3],n};R.subtract=function(e,t,n){return l.typeOf.object("left",e),l.typeOf.object("right",t),l.typeOf.object("result",n),n[0]=e[0]-t[0],n[1]=e[1]-t[1],n[2]=e[2]-t[2],n[3]=e[3]-t[3],n};R.multiplyByVector=function(e,t,n){l.typeOf.object("matrix",e),l.typeOf.object("cartesian",t),l.typeOf.object("result",n);let r=e[0]*t.x+e[2]*t.y,s=e[1]*t.x+e[3]*t.y;return n.x=r,n.y=s,n};R.multiplyByScalar=function(e,t,n){return l.typeOf.object("matrix",e),l.typeOf.number("scalar",t),l.typeOf.object("result",n),n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n[3]=e[3]*t,n};R.multiplyByScale=function(e,t,n){return l.typeOf.object("matrix",e),l.typeOf.object("scale",t),l.typeOf.object("result",n),n[0]=e[0]*t.x,n[1]=e[1]*t.x,n[2]=e[2]*t.y,n[3]=e[3]*t.y,n};R.multiplyByUniformScale=function(e,t,n){return l.typeOf.object("matrix",e),l.typeOf.number("scale",t),l.typeOf.object("result",n),n[0]=e[0]*t,n[1]=e[1]*t,n[2]=e[2]*t,n[3]=e[3]*t,n};R.negate=function(e,t){return l.typeOf.object("matrix",e),l.typeOf.object("result",t),t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t};R.transpose=function(e,t){l.typeOf.object("matrix",e),l.typeOf.object("result",t);let n=e[0],r=e[2],s=e[1],o=e[3];return t[0]=n,t[1]=r,t[2]=s,t[3]=o,t};R.abs=function(e,t){return l.typeOf.object("matrix",e),l.typeOf.object("result",t),t[0]=Math.abs(e[0]),t[1]=Math.abs(e[1]),t[2]=Math.abs(e[2]),t[3]=Math.abs(e[3]),t};R.equals=function(e,t){return e===t||h(e)&&h(t)&&e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]};R.equalsArray=function(e,t,n){return e[0]===t[n]&&e[1]===t[n+1]&&e[2]===t[n+2]&&e[3]===t[n+3]};R.equalsEpsilon=function(e,t,n){return n=n??0,e===t||h(e)&&h(t)&&Math.abs(e[0]-t[0])<=n&&Math.abs(e[1]-t[1])<=n&&Math.abs(e[2]-t[2])<=n&&Math.abs(e[3]-t[3])<=n};R.IDENTITY=Object.freeze(new R(1,0,0,1));R.ZERO=Object.freeze(new R(0,0,0,0));R.COLUMN0ROW0=0;R.COLUMN0ROW1=1;R.COLUMN1ROW0=2;R.COLUMN1ROW1=3;Object.defineProperties(R.prototype,{length:{get:function(){return R.packedLength}}});R.prototype.clone=function(e){return R.clone(this,e)};R.prototype.equals=function(e){return R.equals(this,e)};R.prototype.equalsEpsilon=function(e,t){return R.equalsEpsilon(this,e,t)};R.prototype.toString=function(){return`(${this[0]}, ${this[2]})
(${this[1]}, ${this[3]})`};var Oc=R;export{Ne as a,ze as b,Pe as c,Dn as d,Bn as e,Ue as f,sr as g,We as h,gr as i,mc as j,Oc as k};
