@corpsmap/corpsmap 4.1.2 → 4.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/corpsmap.es.js +1 -1
- package/dist/corpsmap.umd.js +1 -1
- package/package.json +1 -1
package/dist/corpsmap.es.js
CHANGED
|
@@ -12842,7 +12842,7 @@ const config$1 = {
|
|
|
12842
12842
|
path: "depricated"
|
|
12843
12843
|
}
|
|
12844
12844
|
]
|
|
12845
|
-
}, version = "4.1.
|
|
12845
|
+
}, version = "4.1.5", pkg = {
|
|
12846
12846
|
version
|
|
12847
12847
|
};
|
|
12848
12848
|
console.log("------ RUNNING CORPSMAP V." + pkg.version + " ------");
|
package/dist/corpsmap.umd.js
CHANGED
|
@@ -131,7 +131,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
131
131
|
});
|
|
132
132
|
return [pointStyle, labelStyle];
|
|
133
133
|
}
|
|
134
|
-
)`},{id:13597,parentId:null,layerOrder:2,mapId:646,mapUuid:null,teamId:39,datasetId:716,teamDatasetId:713,serviceType:"XYZ",tiled:1,displayName:"Minor Flooding",description:"Real time forecast values from NOAA. Updated hourly",url:"https://rsgis-testdev.crrel.usace.army.mil/tiles/mstile/m.e847f06e3f0982927900594d68264d61/geom/{z}/{x}/{y}.png?nocache=true",grids:null,layerList:"ahpsfcst_minor",attribution:null,geometryType:"POINT",minzoom:1,maxzoom:22,abstract:null,purpose:null,status:null,keywords:null,localTable:"NOAA.NATIONAL_FCST_VW_MIN",metadataUrl:null,minX:-177.47,maxX:-64.71000000000001,minY:13.43,maxY:72.55,opacity:1,useMapfile:1,queryTemplate:`Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,'mm/dd/yyyy hh:mi: am') "Forecast Time", forecast||' '||units "Forecast", '<a href="'||url||'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/'||lower(gaugelid)||'_hg.png" width="300px"/></a>' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"`,hoverTemplate:`Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,'mm/dd/yyyy hh:mi: am') "Forecast Time", forecast||' '||units "Forecast", '<a href="'||url||'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/'||lower(gaugelid)||'_hg.png" width="300px"/></a>' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"`,queryable:1,visible:0,collapsed:1,idCol:"objectid",shapeCol:"SHAPE",allowEdit:0,allowExport:1,createdBy:"1380992694",createDate:"2017-12-12T13:15:12.000Z",cacheTiles:0,labelDefault:0,labelEnabled:0,deep:2,path:"depricated"}]},version="4.1.2",pkg={version};console.log("------ RUNNING CORPSMAP V."+pkg.version+" ------");let Map$1=class extends React.Component{constructor(t){super(t),this.state={store:null},this.getStore=this.getStore.bind(this)}getStore(){return this.state.store}componentDidMount(){this._isMounted=!0;const{mapConfig:t={},plugins:r=[],height:s,theme:o,themeNavSize:d,basemaps:m,basemapImageIDs:g=[],limitMapExtent:y}=this.props;cache.getAll().then(b=>{if(b.config={default:Object.assign({},config$1,t)},m&&m.forEach(E=>{b.config.default.basemaps.push(E)}),console.log(m),console.log(b),b.config.default.basemapImageIDs=g,s&&(b.vLayout={height:s,hNorth:1,hSouth:0}),o){const E=o.indexOf("bg-")===-1?`bg-${o}`:o;b.theme={theme:E,iconSize:d||"default"}}y&&(b.config.default.limitMapExtent=y);const x=getStore(b);loadPlugins(x,r),window.internalStore=x,this._isMounted&&this.setState({store:x})})}componentWillUnmount(){this._isMounted=!1}render(){const{store:t}=this.state;return t?jsxRuntime.jsx(Provider,{store:t,children:jsxRuntime.jsx(Corpsmap,{...this.props})}):null}},SidebarButton$1=class extends React.Component{constructor(t){super(t),this.clickHandler=this.clickHandler.bind(this)}clickHandler(t){t.preventDefault(),this.props.onClick(t)}render(){const{active:t,iconClass:r,iconStyle:s,iconText:o,expanded:d,label:m,theme:g,title:y,styleOverride:b,onMouseDown:x,onMouseUp:E,themeIconSize:C}=this.props,S=classnames({"cm-nav-btn":!0,"cm-nav-icon":C==="default","cm-nav-icon-lg":C==="large","cm-btn-block":!0,"vertical-toolbar-button":!0,active:t}),A=classnames({"overflow-ellipsis":!0,hidden:!o}),N=classnames({"icon-inline":d,hidden:!!o}),k=classnames({hidden:!d}),L=Object.assign({textAlign:"left"},b);return jsxRuntime.jsxs("div",{className:S+" "+g,onClick:this.clickHandler,onMouseDown:x,onMouseUp:E,style:L,title:y,children:[jsxRuntime.jsx("i",{className:r+" "+N,style:s}),jsxRuntime.jsx("span",{className:A,children:o}),jsxRuntime.jsx("span",{className:k,children:m})]})}};const SidebarButton=connect("selectThemeIconSize",SidebarButton$1);let SidebarPanelOpenerButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this)}handleClick(){const{doPrimaryPanelOpen:t,doPrimaryPanelClose:r,title:s,panelComponent:o,panelOptions:d,primaryPanelOpenedBy:m}=this.props;m!==s?t({openedBy:s,options:d,children:[o]}):r()}render(){const{theme:t,label:r,title:s,iconClass:o,iconText:d,styleOverride:m,primaryPanelOpenedBy:g}=this.props;return jsxRuntime.jsx(SidebarButton,{active:g===s,iconClass:o,iconText:d,styleOverride:m,expanded:!1,label:r,title:s,onClick:this.handleClick,theme:t})}};const SidebarPanelOpenerButton=connect("selectTheme","selectPrimaryPanelOpenedBy","doPrimaryPanelOpen","doPrimaryPanelClose",SidebarPanelOpenerButton$1);let BasicToolbarButton$1=class extends React.Component{constructor(t){super(t),this.renderIcon=this.renderIcon.bind(this),this.toggleTool=this.toggleTool.bind(this)}toggleTool(){const{enabled:t,title:r,onActivate:s,onDeactivate:o,basicToolbarActiveTool:d,doBasicToolbarToggle:m}=this.props;t&&(m(d,r),s&&s(),o&&o())}renderIcon(){const{children:t,text:r,title:s,iconClass:o,iconStyle:d,basicToolbarActiveTool:m,dropup:g,themeIconSize:y}=this.props,b=classnames({"cm-nav-btn":!0,"cm-nav-icon":y==="default","cm-nav-icon-lg":y==="large","basic-toolbar-btn":!0,"cm-dropdown-toggle":!0,active:m===s}),x=classnames({mdi:!0,"mdi-menu-down":!g,"mdi-menu-up":g});return t?jsxRuntime.jsxs("div",{onClick:this.toggleTool,className:b,children:[jsxRuntime.jsx("i",{className:o,style:d}),r,jsxRuntime.jsx("i",{className:x})]}):jsxRuntime.jsxs("div",{onClick:this.toggleTool,className:b,style:{textAlign:"center"},children:[jsxRuntime.jsx("i",{className:o,style:d}),r]})}render(){const{theme:t,basicToolbarActiveTool:r,title:s,children:o,dropup:d,passProps:m,basicToolbarOpen:g}=this.props,y=!!(g&&r===s),b=classnames({[t]:!0,"cm-btn-group":!0,open:y}),x=classnames({"basic-toolbar-btn-active":!d,"basic-toolbar-btn-active-top":d,hidden:r!==s});return jsxRuntime.jsxs("div",{className:b,...m,title:s,children:[jsxRuntime.jsx("div",{className:x}),this.renderIcon(),o]})}};const BasicToolbarButton=connect("selectTheme","selectThemeIconSize","selectBasicToolbarActiveTool","selectBasicToolbarOpen","doBasicToolbarActivate","doBasicToolbarDeactivate","doBasicToolbarToggle",BasicToolbarButton$1);class BasicToolbarMenu extends React.Component{render(){return jsxRuntime.jsx("ul",{className:"cm-dropdown-menu",children:this.props.children})}}class BasicToolbarMenuUp extends React.Component{render(){return jsxRuntime.jsx("ul",{className:"cm-dropup-menu",children:this.props.children})}}class BasicToolbarSubmenu extends React.Component{render(){return jsxRuntime.jsx(BasicToolbarMenu,{children:this.props.children})}}class BasicToolbarMenuDivider extends React.Component{render(){return jsxRuntime.jsx("li",{className:"divider"})}}class BasicToolbarMenuItem extends React.Component{constructor(t){super(t),this.state={showSubmenu:!1},this.renderTextContent=this.renderTextContent.bind(this),this.renderSubmenu=this.renderSubmenu.bind(this),this.showSubmenu=this.showSubmenu.bind(this),this.hideSubmenu=this.hideSubmenu.bind(this)}renderTextContent(){const{liveDangerously:t,text:r}=this.props;return t?jsxRuntime.jsx("span",{dangerouslySetInnerHTML:{__html:r}}):r}renderSubmenu(){const{children:t,disableSubmenu:r}=this.props,{showSubmenu:s}=this.state;if(!t)return null;const o=classnames({"pull-right":!0,hidden:r}),d=classnames({open:s});return jsxRuntime.jsxs("div",{className:o,children:[jsxRuntime.jsx("i",{className:"mdi mdi-menu-right"}),jsxRuntime.jsx("div",{style:{position:"relative",top:-31,left:33},className:d,children:t})]})}showSubmenu(){this.setState({showSubmenu:!0})}hideSubmenu(){this.setState({showSubmenu:!1})}renderDisabled(){const{passProps:t,iconClass:r}=this.props;return jsxRuntime.jsx("li",{...t,disabled:!0,children:jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("i",{className:r}),this.renderTextContent()]})})}render(){const{active:t,passProps:r,onClick:s,iconClass:o,disabled:d,title:m}=this.props;if(d)return this.renderDisabled();const g=classnames({active:t});return jsxRuntime.jsx("li",{className:g,...r,onClick:s,title:m,children:jsxRuntime.jsxs("span",{onMouseOver:this.showSubmenu,onMouseOut:this.hideSubmenu,children:[this.renderSubmenu(),jsxRuntime.jsx("i",{className:o}),this.renderTextContent()]})})}}class SearchInput extends React.Component{constructor(t){super(t),this.updateFilterString=this.updateFilterString.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.setFocus=this.setFocus.bind(this)}updateFilterString(t){const{onUpdate:r}=this.props,s=t.currentTarget.value;r(s)}handleKeyUp(t){const{onKeyUp:r}=this.props;r&&r(t)}setFocus(){this.input.focus()}render(){const{filterString:t,placeholder:r,size:s,inline:o,darkTheme:d}=this.props;let m="cm-form-control";m+=s==="small"?" input-sm":"";const g=s==="small"?"17px":"22px",y=s==="small"?"20px":"30px";return jsxRuntime.jsxs("div",{className:"cm-form-group",style:o?{marginBottom:0}:{},children:[jsxRuntime.jsx("span",{style:{position:"absolute",fontSize:g,top:"10px"},children:jsxRuntime.jsx("i",{className:"mdi mdi-magnify"})}),jsxRuntime.jsx("span",{children:jsxRuntime.jsx("input",{ref:b=>{this.input=b},style:{textIndent:y,color:d?"#ffffff":"inherit"},value:t,type:"text",className:m,placeholder:r,onChange:this.updateFilterString,onKeyUp:this.handleKeyUp})})]})}}class SearchResultsListItem extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this)}handleClick(){const{item:t,onClick:r}=this.props;r&&r(t)}render(){const{item:t,selected:r}=this.props,s=classnames({"cm-list-group-item":!0,"search-result-item":!0,"overflow-ellipsis":!0,selected:r});let o=t.secondaryTxt?`${t.displayName} ${t.secondaryTxt}`:`${t.displayName}`;return o=t.prefix?`${t.prefix}: ${o}`:`${o}`,jsxRuntime.jsxs("li",{onClick:this.handleClick,className:s,title:`${o}`,children:[jsxRuntime.jsx("i",{className:t.iconClass+" icon-inline"}),t.displayName,t.secondaryTxt?jsxRuntime.jsx("div",{className:"overflow-ellipsis",style:{marginLeft:"30px"},children:t.secondaryTxt}):null]})}}class SearchResultsList extends React.Component{render(){const{items:t,onItemClick:r,selectedIdx:s}=this.props;return jsxRuntime.jsx("ul",{className:"cm-list-group thin-scrollbar",ref:o=>{this.el=o},style:{position:"absolute",maxHeight:"400px",overflow:"auto"},children:t.map((o,d)=>jsxRuntime.jsx(SearchResultsListItem,{onClick:r,item:o,selected:s===d},d))})}}let LoadingIndicator$1=class extends React.Component{render(){return jsxRuntime.jsx("li",{className:"cm-list-group-item",children:jsxRuntime.jsxs("div",{className:"loading-container",children:[jsxRuntime.jsx("div",{className:"loading-spinner"}),jsxRuntime.jsx("div",{className:"loading-text",children:this.props.text})]})})}};class TreeListFolder extends React.Component{render(){const{item:t,collapsed:r,toggleCollapsed:s}=this.props,o=classnames({mdi:!0,"mdi-folder-open":!r,"mdi-folder":r}),d=classnames({"tree-list-item-hover":!1}),m={display:"inline-block",paddingLeft:"8px"},g=t.children.length;return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("i",{title:"Click to collapse or expand",onClick:s,className:o,style:{fontSize:"16px",cursor:"pointer"}}),jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("div",{className:d,style:m,onDoubleClick:s,children:t.displayName}),jsxRuntime.jsx("span",{children:" ("+g+")"})]})]})}}let TreeListItem$2=class extends React.Component{constructor(t){super(t),this.state={collapsed:t.item.collapsed},this.renderItemComponent=this.renderItemComponent.bind(this),this.handleClick=this.handleClick.bind(this),this.toggleCollapsed=this.toggleCollapsed.bind(this)}toggleCollapsed(){this.setState({collapsed:!this.state.collapsed})}handleClick(t){const{item:r,onSelect:s}=this.props;s({ctrl:t.ctrlKey,shift:t.shiftKey,item:r})}renderItemComponent(){const{item:t,components:r,componentMatches:s}=this.props,{collapsed:o}=this.state;if(!t.leaf)return jsxRuntime.jsx(TreeListFolder,{item:t,collapsed:o,toggleCollapsed:this.toggleCollapsed});let d=r[0];if(s.length){for(let m=0;m<s.length;m++)if(_.isMatch(t,s[m])){d=r[m];break}}return jsxRuntime.jsx(d,{item:t})}render(){const{item:t,components:r,componentMatches:s,onSelect:o}=this.props,{collapsed:d}=this.state,m=classnames({"tree-list-item":!0,hidden:!1});return jsxRuntime.jsxs("li",{className:m,onClick:this.handleClick,children:[this.renderItemComponent(),jsxRuntime.jsx(TreeList$1,{items:t.children,item:t,collapsed:d,components:r,componentMatches:s,onSelect:o})]})}},TreeList$1=class extends React.Component{render(){const{items:t,collapsed:r,components:s,componentMatches:o,styleOverride:d,onSelect:m,selected:g,selectable:y}=this.props,b=classnames({"tree-list":!0,hidden:r});return jsxRuntime.jsx("ul",{className:b,style:d,children:t.map(function(x){return jsxRuntime.jsx(TreeListItem$2,{item:x,components:s,componentMatches:o,onSelect:m,selected:g,selectable:y,time:new Date},x.uid)})})}};class TreeView extends React.Component{constructor(t){super(t),this.state={selected:null},this.handleSelect=this.handleSelect.bind(this)}handleSelect(t){this.setState({selected:t})}render(){const{data:t,components:r,componentMatches:s}=this.props,{selected:o}=this.state,d=!t.length&&t.children?t.children:t||[];return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(TreeList$1,{items:d,collapsed:!1,components:r,componentMatches:s,styleOverride:{paddingLeft:0},onSelect:this.handleSelect,selected:o,selectable:!1})})}}let AddGeoJsonButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.geojsonInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,s=this.geojsonInput.files[0];r(s)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-geojson icon-inline",title:"Add Local GeoJSON File",text:"Add Local GeoJSON File",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".geojson,.json",className:"hidden",type:"file",ref:t=>{this.geojsonInput=t}})})}};const AddGeoJsonButton=connect("doAddDataFile",AddGeoJsonButton$1);let AddShapefileButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.shapefileInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,s=this.shapefileInput.files[0];r(s)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-shp icon-inline",title:"Add Local Shapefile",text:"Add Local Shapefile",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".zip",className:"hidden",type:"file",ref:t=>{this.shapefileInput=t}})})}};const AddShapefileButton=connect("doAddDataFile",AddShapefileButton$1);let AddKmlFileButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.geojsonInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,s=this.geojsonInput.files[0];r(s)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-kml icon-inline",title:"Add Local KML File",text:"Add Local KML File",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".kml",className:"hidden",type:"file",ref:t=>{this.geojsonInput=t}})})}};const AddKmlFileButton=connect("doAddDataFile",AddKmlFileButton$1);let AddDataButton$1=class extends React.Component{constructor(t){super(t)}render(){return jsxRuntime.jsx(BasicToolbarButton,{enabled:!0,iconClass:"mdi mdi-plus-box-multiple",title:"Add Data",onDeactivate:()=>{},children:jsxRuntime.jsxs(BasicToolbarMenu,{children:[jsxRuntime.jsx(AddGeoJsonButton,{}),jsxRuntime.jsx(AddShapefileButton,{}),jsxRuntime.jsx(AddKmlFileButton,{})]})})}};const AddDataButton=connect("doNotificationsFire",AddDataButton$1);try{let e=()=>new DecompressionStream("deflate-raw"),t=r=>new Response(r);e(),l=r=>t(t(r).body.pipeThrough(e())).arrayBuffer().then(s=>new Uint8Array(s))}catch{}var l,w$1=new TextDecoder,c=e=>{throw Error("but-unzip~"+e)};function*p(e,t=l){let r=e.length-21,s=r-65536,o=new DataView(e.buffer,e.byteOffset),d=y=>o.getUint16(y+r,1),m=y=>o.getUint32(y+r,1),g=(y,b)=>e.subarray(r+=y,r+=b);for(;r>s&&(r=e.lastIndexOf(80,r-1))+1&&(e[r+1]-75||e[r+2]-5||e[r+3]-6););for(r<0&&c(2),s=d(10),s-d(8)&&c(3),r=m(16);s--;){let y=d(10),b=d(28),x=d(30),E=d(32),C=m(20),S=m(42),A=w$1.decode(g(46,b)),N=w$1.decode(g(x,E)),k=r,L;r=S,L=g(30+d(26)+d(28),C),yield{filename:A,comment:N,read:()=>y-8?y?c(1):L:t(L)},r=k}}const regex$3=/.+\.(shp|dbf|json|prj|cpg)$/i,unzip=async e=>{const t={},r=[];for(const d of p(e))regex$3.test(d.filename)&&r.push(Promise.resolve(d.read()).then(m=>t[d.filename]=m));await Promise.all(r);const s={},o=new TextDecoder;for(const[d,m]of Object.entries(t))d.slice(-3).toLowerCase()==="shp"||d.slice(-3).toLowerCase()==="dbf"?s[d]=new DataView(m.buffer,m.byteOffset,m.byteLength):s[d]=o.decode(m);return s},URL$2=globalThis.URL,combine$2=(e,t)=>{if(!t)return e;const r=new URL$2(e);return r.pathname=`${r.pathname}.${t}`,r.href};async function binaryAjax(e,t){const r=combine$2(e,t),s=t==="prj"||t==="cpg";try{const o=await fetch(r);if(o.status>399)throw new Error(o.statusText);if(s)return o.text();const d=await o.arrayBuffer();return new DataView(d)}catch(o){if(s||t==="dbf")return!1;throw o}}function isClockWise(e){let t=0,r=1;const s=e.length;let o,d;const m=[e[0][0],e[0][1],e[0][0],e[0][1]];for(;r<s;)o=d||e[0],d=e[r],t+=(d[0]-o[0])*(d[1]+o[1]),r++,d[0]<m[0]&&(m[0]=d[0]),d[1]<m[1]&&(m[1]=d[1]),d[0]>m[2]&&(m[2]=d[0]),d[1]>m[3]&&(m[3]=d[1]);return{ring:e,clockWise:t>0,bbox:m,children:[]}}function contains(e,t){return!(e.bbox[0]>t.bbox[0]||e.bbox[1]>t.bbox[1]||e.bbox[2]<t.bbox[2]||e.bbox[3]<t.bbox[3])}function handleRings(e,t=!1){const r=[],s=[];for(const m of e){const g=isClockWise(m);g.clockWise!==t?r.push(g):s.push(g)}const o=[];for(const m of s){let g;for(const y of r)contains(y,m)&&(g?contains(g,y)&&(g=y):g=y);g?g.children.push(m.ring):o.push(m)}if(t)return{outers:r,orphens:o};if(o.length&&!t){const m=handleRings(e,!0);if(m.orphens.length===0){const g=[];for(const y of m.outers)g.push([y.ring.toReversed()].concat(y.children.map(b=>b.toReversed())));return g}}const d=[];for(const m of r)d.push([m.ring].concat(m.children));return d}ParseShp.prototype.parsePoint=function(e){return{type:"Point",coordinates:this.parseCoord(e,0)}},ParseShp.prototype.parseZPoint=function(e){const t=this.parsePoint(e);return t.coordinates.push(e.getFloat64(16,!0)),t},ParseShp.prototype.parsePointArray=function(e,t,r){const s=[];let o=0;for(;o<r;)s.push(this.parseCoord(e,t)),t+=16,o++;return s},ParseShp.prototype.parseZPointArray=function(e,t,r,s){let o=0;for(;o<r;)s[o].push(e.getFloat64(t,!0)),o++,t+=8;return s},ParseShp.prototype.parseArrayGroup=function(e,t,r,s,o){const d=[];let m=0,g,y=0,b;for(;m<s;)m++,r+=4,g=y,m===s?y=o:y=e.getInt32(r,!0),b=y-g,b&&(d.push(this.parsePointArray(e,t,b)),t+=b<<4);return d},ParseShp.prototype.parseZArrayGroup=function(e,t,r,s){let o=0;for(;o<r;)s[o]=this.parseZPointArray(e,t,s[o].length,s[o]),t+=s[o].length<<3,o++;return s},ParseShp.prototype.parseMultiPoint=function(e){const t={},r=e.getInt32(32,!0);if(!r)return null;const s=this.parseCoord(e,0),o=this.parseCoord(e,16);t.bbox=[s[0],s[1],o[0],o[1]];const d=36;return r===1?(t.type="Point",t.coordinates=this.parseCoord(e,d)):(t.type="MultiPoint",t.coordinates=this.parsePointArray(e,d,r)),t},ParseShp.prototype.parseZMultiPoint=function(e){const t=this.parseMultiPoint(e);if(!t)return null;let r;if(t.type==="Point")return t.coordinates.push(e.getFloat64(72,!0)),t;r=t.coordinates.length;const s=52+(r<<4);return t.coordinates=this.parseZPointArray(e,s,r,t.coordinates),t},ParseShp.prototype.parsePolyline=function(e){const t={},r=e.getInt32(32,!0);if(!r)return null;const s=this.parseCoord(e,0),o=this.parseCoord(e,16);t.bbox=[s[0],s[1],o[0],o[1]];const d=e.getInt32(36,!0);let m,g;return r===1?(t.type="LineString",m=44,t.coordinates=this.parsePointArray(e,m,d)):(t.type="MultiLineString",m=40+(r<<2),g=40,t.coordinates=this.parseArrayGroup(e,m,g,r,d)),t},ParseShp.prototype.parseZPolyline=function(e){const t=this.parsePolyline(e);if(!t)return null;const r=t.coordinates.length;let s;return t.type==="LineString"?(s=60+(r<<4),t.coordinates=this.parseZPointArray(e,s,r,t.coordinates),t):(s=56+(t.coordinates.reduce(function(d,m){return d+m.length},0)<<4)+(r<<2),t.coordinates=this.parseZArrayGroup(e,s,r,t.coordinates),t)},ParseShp.prototype.polyFuncs=function(e){return e&&(e.type==="LineString"?(e.type="Polygon",e.coordinates=[e.coordinates],e):(e.coordinates=handleRings(e.coordinates),e.coordinates.length===1?(e.type="Polygon",e.coordinates=e.coordinates[0],e):(e.type="MultiPolygon",e)))},ParseShp.prototype.parsePolygon=function(e){return this.polyFuncs(this.parsePolyline(e))},ParseShp.prototype.parseZPolygon=function(e){return this.polyFuncs(this.parseZPolyline(e))};const shpFuncObj={1:"parsePoint",3:"parsePolyline",5:"parsePolygon",8:"parseMultiPoint",11:"parseZPoint",13:"parseZPolyline",15:"parseZPolygon",18:"parseZMultiPoint"};function makeParseCoord(e){return e?function(t,r){const s=[t.getFloat64(r,!0),t.getFloat64(r+8,!0)];return e.inverse(s)}:function(t,r){return[t.getFloat64(r,!0),t.getFloat64(r+8,!0)]}}function ParseShp(e,t){if(!(this instanceof ParseShp))return new ParseShp(e,t);this.buffer=e,this.headers=this.parseHeader(),this.shpFuncs(t),this.rows=this.getRows()}ParseShp.prototype.shpFuncs=function(e){let t=this.headers.shpCode;if(t>20&&(t-=20),!(t in shpFuncObj))throw new Error(`I don't know shp type "${t}"`);this.parseFunc=this[shpFuncObj[t]],this.parseCoord=makeParseCoord(e)},ParseShp.prototype.getShpCode=function(){return this.parseHeader().shpCode},ParseShp.prototype.parseHeader=function(){const e=this.buffer;return{length:e.getInt32(24)<<1,version:e.getInt32(28,!0),shpCode:e.getInt32(32,!0),bbox:[e.getFloat64(36,!0),e.getFloat64(44,!0),e.getFloat64(52,!0),e.getFloat64(60,!0)]}},ParseShp.prototype.getRows=function(){let e=100;const t=this.buffer.byteLength-8,r=[];let s;for(;e<=t&&(s=this.getRow(e),!!s);)e+=8,e+=s.len,s.type?r.push(this.parseFunc(s.data)):r.push(null);return r},ParseShp.prototype.getRow=function(e){const t=this.buffer.getInt32(e),r=this.buffer.getInt32(e+4)<<1;if(r===0)return{id:t,len:r,type:0};if(!(e+r+8>this.buffer.byteLength))return{id:t,len:r,data:new DataView(this.buffer.buffer,this.buffer.byteOffset+e+12,r-4),type:this.buffer.getInt32(e+8,!0)}};function parseShp(e,t){return new ParseShp(e,t).rows}var regex$2=/^(?:ANSI\s)?(\d+)$/m;function createDecoder(e,t){if(!e)return s;try{new TextDecoder(e.trim())}catch{var r=regex$2.exec(e);return r&&!t?createDecoder("windows-"+r[1],!0):(e=void 0,s)}return s;function s(o){var d=new TextDecoder(e||void 0),m=d.decode(o,{stream:!0})+d.decode();return m.replace(/\0/g,"").trim()}}function dbfHeader(e){var t={};return t.lastUpdated=new Date(e.getUint8(1)+1900,e.getUint8(2),e.getUint8(3)),t.records=e.getUint32(4,!0),t.headerLen=e.getUint16(8,!0),t.recLen=e.getUint16(10,!0),t}function dbfRowHeader(e,t,r){for(var s=[],o=32;o<t&&(s.push({name:r(new Uint8Array(e.buffer.slice(e.byteOffset+o,e.byteOffset+o+11))),dataType:String.fromCharCode(e.getUint8(o+11)),len:e.getUint8(o+16),decimal:e.getUint8(o+17)}),e.getUint8(o+32)!==13);)o+=32;return s}function rowFuncs(e,t,r,s,o){const d=new Uint8Array(e.buffer.slice(e.byteOffset+t,e.byteOffset+t+r));var m=o(d);switch(s){case"N":case"F":case"O":return parseFloat(m,10);case"D":return new Date(m.slice(0,4),parseInt(m.slice(4,6),10)-1,m.slice(6,8));case"L":return m.toLowerCase()==="y"||m.toLowerCase()==="t";default:return m}}function parseRow(e,t,r,s){for(var o={},d=0,m=r.length,g,y;d<m;)y=r[d],g=rowFuncs(e,t,y.len,y.dataType,s),t+=y.len,typeof g<"u"&&(o[y.name]=g),d++;return o}function parseDbf(e,t){for(var r=createDecoder(t),s=dbfHeader(e),o=dbfRowHeader(e,s.headerLen-1,r),d=(o.length+1<<5)+2,m=s.recLen,g=s.records,y=[];g;)y.push(parseRow(e,d,o,r)),d+=m,g--;return y}const URL$1=globalThis.URL,toUitn8Arr=e=>{if(!e)throw new Error("forgot to pass buffer");if(isArrayBuffer(e))return new Uint8Array(e);if(isArrayBuffer(e.buffer))return e.BYTES_PER_ELEMENT===1?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("invalid buffer like object")},txtDecoder=new TextDecoder,toString=e=>{if(e){if(typeof e=="string")return e;if(isArrayBuffer(e)||ArrayBuffer.isView(e)||isDataView(e))return txtDecoder.decode(e)}},toDataView=e=>{if(!e)throw new Error("forgot to pass buffer");if(isDataView(e))return e;if(isArrayBuffer(e))return new DataView(e);if(isArrayBuffer(e.buffer))return new DataView(e.buffer,e.byteOffset,e.byteLength);throw new Error("invalid buffer like object")};function isArrayBuffer(e){return e instanceof globalThis.ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]"}function isDataView(e){return e instanceof globalThis.DataView||Object.prototype.toString.call(e)==="[object DataView]"}const combine$1=function([e,t]){const r={};r.type="FeatureCollection",r.features=[];let s=0;const o=e.length;for(t||(t=[]);s<o;)r.features.push({type:"Feature",geometry:e[s],properties:t[s]||{}}),s++;return r},parseZip=async function(e,t){let r;e=toUitn8Arr(e);const s=await unzip(e),o=[];t=t||[];for(r in s)r.indexOf("__MACOSX")===-1&&(r.slice(-4).toLowerCase()===".shp"?(o.push(r.slice(0,-4)),s[r.slice(0,-3)+r.slice(-3).toLowerCase()]=s[r]):r.slice(-4).toLowerCase()===".prj"?s[r.slice(0,-3)+r.slice(-3).toLowerCase()]=proj4(s[r]):r.slice(-5).toLowerCase()===".json"||t.indexOf(r.split(".").pop())>-1?o.push(r.slice(0,-3)+r.slice(-3).toLowerCase()):(r.slice(-4).toLowerCase()===".dbf"||r.slice(-4).toLowerCase()===".cpg")&&(s[r.slice(0,-3)+r.slice(-3).toLowerCase()]=s[r]));if(!o.length)throw new Error("no layers founds");const d=o.map(function(m){let g,y;const b=m.lastIndexOf(".");return b>-1&&m.slice(b).indexOf("json")>-1?(g=JSON.parse(s[m]),g.fileName=m.slice(0,b)):t.indexOf(m.slice(b+1))>-1?(g=s[m],g.fileName=m):(s[m+".dbf"]&&(y=parseDbf(s[m+".dbf"],s[m+".cpg"])),g=combine$1([parseShp(s[m+".shp"],s[m+".prj"]),y]),g.fileName=m),g});return d.length===1?d[0]:d};async function getZip(e,t){const r=await binaryAjax(e);return parseZip(r,t)}const handleShp=async e=>{const t=await Promise.all([binaryAjax(e,"shp"),binaryAjax(e,"prj")]);let r=!1;try{t[1]&&(r=proj4(t[1]))}catch{r=!1}return parseShp(t[0],r)},handleDbf=async e=>{const[t,r]=await Promise.all([binaryAjax(e,"dbf"),binaryAjax(e,"cpg")]);if(t)return parseDbf(t,r)},checkSuffix=(e,t)=>new URL$1(e,globalThis?.document?.location).pathname.slice(-4).toLowerCase()===t,fromObject=({shp:e,dbf:t,cpg:r,prj:s})=>{const o=[_parseShp(e,s)];return t&&o.push(_parseDbf(t,r)),combine$1(o)},getShapefile=async function(e,t){if(typeof e!="string"){if(isArrayBuffer(e)||ArrayBuffer.isView(e)||isDataView(e))return parseZip(e);if(e.shp)return fromObject(e);throw new TypeError("must be a string, some sort of Buffer, or an object with at least a .shp property")}if(checkSuffix(e,".zip"))return getZip(e,t);checkSuffix(e,".shp")&&(e=e.slice(0,-4));const r=await Promise.all([handleShp(e),handleDbf(e)]);return combine$1(r)},_parseShp=function(e,t){if(e=toDataView(e),t=toString(t),typeof t=="string")try{t=proj4(t)}catch{t=!1}return parseShp(e,t)},_parseDbf=function(e,t){return e=toDataView(e),t=toString(t),parseDbf(e,t)};var togeojson={exports:{}},lib$1={},dom={},conventions={},hasRequiredConventions;function requireConventions(){if(hasRequiredConventions)return conventions;hasRequiredConventions=1;function e(d,m,g){if(g===void 0&&(g=Array.prototype),d&&typeof g.find=="function")return g.find.call(d,m);for(var y=0;y<d.length;y++)if(Object.prototype.hasOwnProperty.call(d,y)){var b=d[y];if(m.call(void 0,b,y,d))return b}}function t(d,m){return m===void 0&&(m=Object),m&&typeof m.freeze=="function"?m.freeze(d):d}function r(d,m){if(d===null||typeof d!="object")throw new TypeError("target is not an object");for(var g in m)Object.prototype.hasOwnProperty.call(m,g)&&(d[g]=m[g]);return d}var s=t({HTML:"text/html",isHTML:function(d){return d===s.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=t({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(d){return d===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return conventions.assign=r,conventions.find=e,conventions.freeze=t,conventions.MIME_TYPE=s,conventions.NAMESPACE=o,conventions}var hasRequiredDom;function requireDom(){if(hasRequiredDom)return dom;hasRequiredDom=1;var e=requireConventions(),t=e.find,r=e.NAMESPACE;function s(F){return F!==""}function o(F){return F?F.split(/[\t\n\f\r ]+/).filter(s):[]}function d(F,U){return F.hasOwnProperty(U)||(F[U]=!0),F}function m(F){if(!F)return[];var U=o(F);return Object.keys(U.reduce(d,{}))}function g(F){return function(U){return F&&F.indexOf(U)!==-1}}function y(F,U){for(var H in F)Object.prototype.hasOwnProperty.call(F,H)&&(U[H]=F[H])}function b(F,U){var H=F.prototype;if(!(H instanceof U)){let ae=function(){};ae.prototype=U.prototype,ae=new ae,y(H,ae),F.prototype=H=ae}H.constructor!=F&&(typeof F!="function"&&console.error("unknown Class:"+F),H.constructor=F)}var x={},E=x.ELEMENT_NODE=1,C=x.ATTRIBUTE_NODE=2,S=x.TEXT_NODE=3,A=x.CDATA_SECTION_NODE=4,N=x.ENTITY_REFERENCE_NODE=5,k=x.ENTITY_NODE=6,L=x.PROCESSING_INSTRUCTION_NODE=7,G=x.COMMENT_NODE=8,M=x.DOCUMENT_NODE=9,z=x.DOCUMENT_TYPE_NODE=10,V=x.DOCUMENT_FRAGMENT_NODE=11,Y=x.NOTATION_NODE=12,X={},Q={};X.INDEX_SIZE_ERR=(Q[1]="Index size error",1),X.DOMSTRING_SIZE_ERR=(Q[2]="DOMString size error",2);var $=X.HIERARCHY_REQUEST_ERR=(Q[3]="Hierarchy request error",3);X.WRONG_DOCUMENT_ERR=(Q[4]="Wrong document",4);var K=X.INVALID_CHARACTER_ERR=(Q[5]="Invalid character",5);X.NO_DATA_ALLOWED_ERR=(Q[6]="No data allowed",6),X.NO_MODIFICATION_ALLOWED_ERR=(Q[7]="No modification allowed",7);var ee=X.NOT_FOUND_ERR=(Q[8]="Not found",8);X.NOT_SUPPORTED_ERR=(Q[9]="Not supported",9);var se=X.INUSE_ATTRIBUTE_ERR=(Q[10]="Attribute in use",10),ie=X.INVALID_STATE_ERR=(Q[11]="Invalid state",11);X.SYNTAX_ERR=(Q[12]="Syntax error",12),X.INVALID_MODIFICATION_ERR=(Q[13]="Invalid modification",13),X.NAMESPACE_ERR=(Q[14]="Invalid namespace",14),X.INVALID_ACCESS_ERR=(Q[15]="Invalid access",15);function te(F,U){if(U instanceof Error)var H=U;else H=this,Error.call(this,Q[F]),this.message=Q[F],Error.captureStackTrace&&Error.captureStackTrace(this,te);return H.code=F,U&&(this.message=this.message+": "+U),H}te.prototype=Error.prototype,y(X,te);function ue(){}ue.prototype={length:0,item:function(F){return F>=0&&F<this.length?this[F]:null},toString:function(F,U,H){for(var ae=!!H&&!!H.requireWellFormed,be=[],Ie=0;Ie<this.length;Ie++)Qe(this[Ie],be,F,U,null,ae);return be.join("")},filter:function(F){return Array.prototype.filter.call(this,F)},indexOf:function(F){return Array.prototype.indexOf.call(this,F)}};function le(F,U){this._node=F,this._refresh=U,fe(this)}function fe(F){var U=F._node._inc||F._node.ownerDocument._inc;if(F._inc!==U){var H=F._refresh(F._node);if(dr(F,"length",H.length),!F.$$length||H.length<F.$$length)for(var ae=H.length;ae in F;ae++)Object.prototype.hasOwnProperty.call(F,ae)&&delete F[ae];y(H,F),F._inc=U}}le.prototype.item=function(F){return fe(this),this[F]||null},b(le,ue);function ve(){}function xe(F,U){for(var H=F.length;H--;)if(F[H]===U)return H}function ce(F,U,H,ae){if(ae?U[xe(U,ae)]=H:U[U.length++]=H,F){H.ownerElement=F;var be=F.ownerDocument;be&&(ae&&Ue(be,F,ae),J(be,F,H))}}function Te(F,U,H){var ae=xe(U,H);if(ae>=0){for(var be=U.length-1;ae<be;)U[ae]=U[++ae];if(U.length=be,F){var Ie=F.ownerDocument;Ie&&(Ue(Ie,F,H),H.ownerElement=null)}}else throw new te(ee,new Error(F.tagName+"@"+H))}ve.prototype={length:0,item:ue.prototype.item,getNamedItem:function(F){for(var U=this.length;U--;){var H=this[U];if(H.nodeName==F)return H}},setNamedItem:function(F){var U=F.ownerElement;if(U&&U!=this._ownerElement)throw new te(se);var H=this.getNamedItem(F.nodeName);return ce(this._ownerElement,this,F,H),H},setNamedItemNS:function(F){var U=F.ownerElement,H;if(U&&U!=this._ownerElement)throw new te(se);return H=this.getNamedItemNS(F.namespaceURI,F.localName),ce(this._ownerElement,this,F,H),H},removeNamedItem:function(F){var U=this.getNamedItem(F);return Te(this._ownerElement,this,U),U},removeNamedItemNS:function(F,U){var H=this.getNamedItemNS(F,U);return Te(this._ownerElement,this,H),H},getNamedItemNS:function(F,U){for(var H=this.length;H--;){var ae=this[H];if(ae.localName==U&&ae.namespaceURI==F)return ae}return null}};function Ce(){}Ce.prototype={hasFeature:function(F,U){return!0},createDocument:function(F,U,H){var ae=new Pe;if(ae.implementation=this,ae.childNodes=new ue,ae.doctype=H||null,H&&ae.appendChild(H),U){var be=ae.createElementNS(F,U);ae.appendChild(be)}return ae},createDocumentType:function(F,U,H){var ae=new ke;return ae.name=F,ae.nodeName=F,ae.publicId=U||"",ae.systemId=H||"",ae}};function me(){}me.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(F,U){return Ve(this,F,U)},replaceChild:function(F,U){Ve(this,F,U,qe),U&&this.removeChild(U)},removeChild:function(F){return de(this,F)},appendChild:function(F){return this.insertBefore(F,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(F){return Ht(this.ownerDocument||this,this,F)},normalize:function(){Ae(this,null,{enter:function(F){for(var U=F.firstChild;U;){var H=U.nextSibling;H!==null&&H.nodeType===S&&U.nodeType===S?(F.removeChild(H),U.appendData(H.data)):U=H}return!0}})},isSupported:function(F,U){return this.ownerDocument.implementation.hasFeature(F,U)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(F){for(var U=this;U;){var H=U._nsMap;if(H){for(var ae in H)if(Object.prototype.hasOwnProperty.call(H,ae)&&H[ae]===F)return ae}U=U.nodeType==C?U.ownerDocument:U.parentNode}return null},lookupNamespaceURI:function(F){for(var U=this;U;){var H=U._nsMap;if(H&&Object.prototype.hasOwnProperty.call(H,F))return H[F];U=U.nodeType==C?U.ownerDocument:U.parentNode}return null},isDefaultNamespace:function(F){var U=this.lookupPrefix(F);return U==null}};function pe(F){return F=="<"&&"<"||F==">"&&">"||F=="&"&&"&"||F=='"'&&"""||"&#"+F.charCodeAt()+";"}y(x,me),y(x,me.prototype);function Ee(F,U){return Ae(F,null,{enter:function(H){return U(H)?Ae.STOP:!0}})===Ae.STOP}function Ae(F,U,H){for(var ae=[{node:F,context:U,phase:Ae.ENTER}];ae.length>0;){var be=ae.pop();if(be.phase===Ae.ENTER){var Ie=H.enter(be.node,be.context);if(Ie===Ae.STOP)return Ae.STOP;if(ae.push({node:be.node,context:Ie,phase:Ae.EXIT}),Ie==null)continue;for(var ge=be.node.lastChild;ge;)ae.push({node:ge,context:Ie,phase:Ae.ENTER}),ge=ge.previousSibling}else H.exit&&H.exit(be.node,be.context)}}Ae.STOP=Symbol("walkDOM.STOP"),Ae.ENTER=0,Ae.EXIT=1;function Pe(){this.ownerDocument=this}function J(F,U,H){F&&F._inc++;var ae=H.namespaceURI;ae===r.XMLNS&&(U._nsMap[H.prefix?H.localName:""]=H.value)}function Ue(F,U,H,ae){F&&F._inc++;var be=H.namespaceURI;be===r.XMLNS&&delete U._nsMap[H.prefix?H.localName:""]}function ye(F,U,H){if(F&&F._inc){F._inc++;var ae=U.childNodes;if(H)ae[ae.length++]=H;else{for(var be=U.firstChild,Ie=0;be;)ae[Ie++]=be,be=be.nextSibling;ae.length=Ie,delete ae[ae.length]}}}function de(F,U){var H=U.previousSibling,ae=U.nextSibling;return H?H.nextSibling=ae:F.firstChild=ae,ae?ae.previousSibling=H:F.lastChild=H,U.parentNode=null,U.previousSibling=null,U.nextSibling=null,ye(F.ownerDocument,F),U}function q(F){return F&&(F.nodeType===me.DOCUMENT_NODE||F.nodeType===me.DOCUMENT_FRAGMENT_NODE||F.nodeType===me.ELEMENT_NODE)}function Re(F){return F&&(je(F)||Fe(F)||Oe(F)||F.nodeType===me.DOCUMENT_FRAGMENT_NODE||F.nodeType===me.COMMENT_NODE||F.nodeType===me.PROCESSING_INSTRUCTION_NODE)}function Oe(F){return F&&F.nodeType===me.DOCUMENT_TYPE_NODE}function je(F){return F&&F.nodeType===me.ELEMENT_NODE}function Fe(F){return F&&F.nodeType===me.TEXT_NODE}function it(F,U){var H=F.childNodes||[];if(t(H,je)||Oe(U))return!1;var ae=t(H,Oe);return!(U&&ae&&H.indexOf(ae)>H.indexOf(U))}function dt(F,U){var H=F.childNodes||[];function ae(Ie){return je(Ie)&&Ie!==U}if(t(H,ae))return!1;var be=t(H,Oe);return!(U&&be&&H.indexOf(be)>H.indexOf(U))}function he(F,U,H){if(!q(F))throw new te($,"Unexpected parent node type "+F.nodeType);if(H&&H.parentNode!==F)throw new te(ee,"child not in parent");if(!Re(U)||Oe(U)&&F.nodeType!==me.DOCUMENT_NODE)throw new te($,"Unexpected node type "+U.nodeType+" for parent node type "+F.nodeType)}function st(F,U,H){var ae=F.childNodes||[],be=U.childNodes||[];if(U.nodeType===me.DOCUMENT_FRAGMENT_NODE){var Ie=be.filter(je);if(Ie.length>1||t(be,Fe))throw new te($,"More than one element or text in fragment");if(Ie.length===1&&!it(F,H))throw new te($,"Element in fragment can not be inserted before doctype")}if(je(U)&&!it(F,H))throw new te($,"Only one element can be added and only after doctype");if(Oe(U)){if(t(ae,Oe))throw new te($,"Only one doctype is allowed");var ge=t(ae,je);if(H&&ae.indexOf(ge)<ae.indexOf(H))throw new te($,"Doctype can only be inserted before an element");if(!H&&ge)throw new te($,"Doctype can not be appended since element is present")}}function qe(F,U,H){var ae=F.childNodes||[],be=U.childNodes||[];if(U.nodeType===me.DOCUMENT_FRAGMENT_NODE){var Ie=be.filter(je);if(Ie.length>1||t(be,Fe))throw new te($,"More than one element or text in fragment");if(Ie.length===1&&!dt(F,H))throw new te($,"Element in fragment can not be inserted before doctype")}if(je(U)&&!dt(F,H))throw new te($,"Only one element can be added and only after doctype");if(Oe(U)){if(t(ae,function(Ye){return Oe(Ye)&&Ye!==H}))throw new te($,"Only one doctype is allowed");var ge=t(ae,je);if(H&&ae.indexOf(ge)<ae.indexOf(H))throw new te($,"Doctype can only be inserted before an element")}}function Ve(F,U,H,ae){he(F,U,H),F.nodeType===me.DOCUMENT_NODE&&(ae||st)(F,U,H);var be=U.parentNode;if(be&&be.removeChild(U),U.nodeType===V){var Ie=U.firstChild;if(Ie==null)return U;var ge=U.lastChild}else Ie=ge=U;var He=H?H.previousSibling:F.lastChild;Ie.previousSibling=He,ge.nextSibling=H,He?He.nextSibling=Ie:F.firstChild=Ie,H==null?F.lastChild=ge:H.previousSibling=ge;do{Ie.parentNode=F;var Ye=F.ownerDocument||F;mt(Ie,Ye)}while(Ie!==ge&&(Ie=Ie.nextSibling));return ye(F.ownerDocument||F,F),U.nodeType==V&&(U.firstChild=U.lastChild=null),U}function mt(F,U){if(F.ownerDocument!==U){if(F.ownerDocument=U,F.nodeType===E&&F.attributes)for(var H=0;H<F.attributes.length;H++){var ae=F.attributes.item(H);ae&&(ae.ownerDocument=U)}for(var be=F.firstChild;be;)mt(be,U),be=be.nextSibling}}function Le(F,U){U.parentNode&&U.parentNode.removeChild(U),U.parentNode=F,U.previousSibling=F.lastChild,U.nextSibling=null,U.previousSibling?U.previousSibling.nextSibling=U:F.firstChild=U,F.lastChild=U,ye(F.ownerDocument,F,U);var H=F.ownerDocument||F;return mt(U,H),U}Pe.prototype={nodeName:"#document",nodeType:M,doctype:null,documentElement:null,_inc:1,insertBefore:function(F,U){if(F.nodeType==V){for(var H=F.firstChild;H;){var ae=H.nextSibling;this.insertBefore(H,U),H=ae}return F}return Ve(this,F,U),mt(F,this),this.documentElement===null&&F.nodeType===E&&(this.documentElement=F),F},removeChild:function(F){return this.documentElement==F&&(this.documentElement=null),de(this,F)},replaceChild:function(F,U){Ve(this,F,U,qe),mt(F,this),U&&this.removeChild(U),je(F)&&(this.documentElement=F)},importNode:function(F,U){return cr(this,F,U)},getElementById:function(F){var U=null;return Ee(this.documentElement,function(H){if(H.nodeType==E&&H.getAttribute("id")==F)return U=H,!0}),U},getElementsByClassName:function(F){var U=m(F);return new le(this,function(H){var ae=[];return U.length>0&&Ee(H.documentElement,function(be){if(be!==H&&be.nodeType===E){var Ie=be.getAttribute("class");if(Ie){var ge=F===Ie;if(!ge){var He=m(Ie);ge=U.every(g(He))}ge&&ae.push(be)}}}),ae})},createElement:function(F){var U=new tt;U.ownerDocument=this,U.nodeName=F,U.tagName=F,U.localName=F,U.childNodes=new ue;var H=U.attributes=new ve;return H._ownerElement=U,U},createDocumentFragment:function(){var F=new De;return F.ownerDocument=this,F.childNodes=new ue,F},createTextNode:function(F){var U=new we;return U.ownerDocument=this,U.appendData(F),U},createComment:function(F){var U=new Lt;return U.ownerDocument=this,U.appendData(F),U},createCDATASection:function(F){if(F.indexOf("]]>")!==-1)throw new te(K,'data contains "]]>"');var U=new Me;return U.ownerDocument=this,U.appendData(F),U},createProcessingInstruction:function(F,U){var H=new Gt;return H.ownerDocument=this,H.tagName=H.nodeName=H.target=F,H.nodeValue=H.data=U,H},createAttribute:function(F){var U=new gt;return U.ownerDocument=this,U.name=F,U.nodeName=F,U.localName=F,U.specified=!0,U},createEntityReference:function(F){var U=new Bt;return U.ownerDocument=this,U.nodeName=F,U},createElementNS:function(F,U){var H=new tt,ae=U.split(":"),be=H.attributes=new ve;return H.childNodes=new ue,H.ownerDocument=this,H.nodeName=U,H.tagName=U,H.namespaceURI=F,ae.length==2?(H.prefix=ae[0],H.localName=ae[1]):H.localName=U,be._ownerElement=H,H},createAttributeNS:function(F,U){var H=new gt,ae=U.split(":");return H.ownerDocument=this,H.nodeName=U,H.name=U,H.namespaceURI=F,H.specified=!0,ae.length==2?(H.prefix=ae[0],H.localName=ae[1]):H.localName=U,H}},b(Pe,me);function tt(){this._nsMap={}}tt.prototype={nodeType:E,hasAttribute:function(F){return this.getAttributeNode(F)!=null},getAttribute:function(F){var U=this.getAttributeNode(F);return U&&U.value||""},getAttributeNode:function(F){return this.attributes.getNamedItem(F)},setAttribute:function(F,U){var H=this.ownerDocument.createAttribute(F);H.value=H.nodeValue=""+U,this.setAttributeNode(H)},removeAttribute:function(F){var U=this.getAttributeNode(F);U&&this.removeAttributeNode(U)},appendChild:function(F){return F.nodeType===V?this.insertBefore(F,null):Le(this,F)},setAttributeNode:function(F){return this.attributes.setNamedItem(F)},setAttributeNodeNS:function(F){return this.attributes.setNamedItemNS(F)},removeAttributeNode:function(F){return this.attributes.removeNamedItem(F.nodeName)},removeAttributeNS:function(F,U){var H=this.getAttributeNodeNS(F,U);H&&this.removeAttributeNode(H)},hasAttributeNS:function(F,U){return this.getAttributeNodeNS(F,U)!=null},getAttributeNS:function(F,U){var H=this.getAttributeNodeNS(F,U);return H&&H.value||""},setAttributeNS:function(F,U,H){var ae=this.ownerDocument.createAttributeNS(F,U);ae.value=ae.nodeValue=""+H,this.setAttributeNode(ae)},getAttributeNodeNS:function(F,U){return this.attributes.getNamedItemNS(F,U)},getElementsByTagName:function(F){return new le(this,function(U){var H=[];return Ee(U,function(ae){ae!==U&&ae.nodeType==E&&(F==="*"||ae.tagName==F)&&H.push(ae)}),H})},getElementsByTagNameNS:function(F,U){return new le(this,function(H){var ae=[];return Ee(H,function(be){be!==H&&be.nodeType===E&&(F==="*"||be.namespaceURI===F)&&(U==="*"||be.localName==U)&&ae.push(be)}),ae})}},Pe.prototype.getElementsByTagName=tt.prototype.getElementsByTagName,Pe.prototype.getElementsByTagNameNS=tt.prototype.getElementsByTagNameNS,b(tt,me);function gt(){}gt.prototype.nodeType=C,b(gt,me);function yt(){}yt.prototype={data:"",substringData:function(F,U){return this.data.substring(F,F+U)},appendData:function(F){F=this.data+F,this.nodeValue=this.data=F,this.length=F.length},insertData:function(F,U){this.replaceData(F,0,U)},appendChild:function(F){throw new Error(Q[$])},deleteData:function(F,U){this.replaceData(F,U,"")},replaceData:function(F,U,H){var ae=this.data.substring(0,F),be=this.data.substring(F+U);H=ae+H+be,this.nodeValue=this.data=H,this.length=H.length}},b(yt,me);function we(){}we.prototype={nodeName:"#text",nodeType:S,splitText:function(F){var U=this.data,H=U.substring(F);U=U.substring(0,F),this.data=this.nodeValue=U,this.length=U.length;var ae=this.ownerDocument.createTextNode(H);return this.parentNode&&this.parentNode.insertBefore(ae,this.nextSibling),ae}},b(we,yt);function Lt(){}Lt.prototype={nodeName:"#comment",nodeType:G},b(Lt,yt);function Me(){}Me.prototype={nodeName:"#cdata-section",nodeType:A},b(Me,yt);function ke(){}ke.prototype.nodeType=z,b(ke,me);function Ut(){}Ut.prototype.nodeType=Y,b(Ut,me);function at(){}at.prototype.nodeType=k,b(at,me);function Bt(){}Bt.prototype.nodeType=N,b(Bt,me);function De(){}De.prototype.nodeName="#document-fragment",De.prototype.nodeType=V,b(De,me);function Gt(){}Gt.prototype.nodeType=L,b(Gt,me);function zt(){}zt.prototype.serializeToString=function(F,U,H,ae){return Ot.call(F,U,H,ae)},me.prototype.toString=Ot;function Ot(F,U,H){var ae=!!H&&!!H.requireWellFormed,be=[],Ie=this.nodeType==9&&this.documentElement||this,ge=Ie.prefix,He=Ie.namespaceURI;if(He&&ge==null){var ge=Ie.lookupPrefix(He);if(ge==null)var Ye=[{namespace:He,prefix:null}]}return Qe(this,be,F,U,Ye,ae),be.join("")}function Je(F,U,H){var ae=F.prefix||"",be=F.namespaceURI;if(!be||ae==="xml"&&be===r.XML||be===r.XMLNS)return!1;for(var Ie=H.length;Ie--;){var ge=H[Ie];if(ge.prefix===ae)return ge.namespace!==be}return!0}function ct(F,U,H){F.push(" ",U,'="',H.replace(/[<>&"\t\n\r]/g,pe),'"')}function Qe(F,U,H,ae,be,Ie){be||(be=[]),Ae(F,{ns:be,isHTML:H},{enter:function(ge,He){var Ye=He.ns,Xe=He.isHTML;if(ae)if(ge=ae(ge),ge){if(typeof ge=="string")return U.push(ge),null}else return null;switch(ge.nodeType){case E:var vt=ge.attributes,Pt=vt.length,Tt=ge.tagName;Xe=r.isHTML(ge.namespaceURI)||Xe;var Ct=Tt;if(!Xe&&!ge.prefix&&ge.namespaceURI){for(var Yt,Ke=0;Ke<vt.length;Ke++)if(vt.item(Ke).name==="xmlns"){Yt=vt.item(Ke).value;break}if(!Yt)for(var St=Ye.length-1;St>=0;St--){var ht=Ye[St];if(ht.prefix===""&&ht.namespace===ge.namespaceURI){Yt=ht.namespace;break}}if(Yt!==ge.namespaceURI)for(var St=Ye.length-1;St>=0;St--){var ht=Ye[St];if(ht.namespace===ge.namespaceURI){ht.prefix&&(Ct=ht.prefix+":"+Tt);break}}}U.push("<",Ct);for(var rt=Ye.slice(),ut=0;ut<Pt;ut++){var ot=vt.item(ut);ot.prefix=="xmlns"?rt.push({prefix:ot.localName,namespace:ot.value}):ot.nodeName=="xmlns"&&rt.push({prefix:"",namespace:ot.value})}for(var ut=0;ut<Pt;ut++){var ot=vt.item(ut);if(Je(ot,Xe,rt)){var qt=ot.prefix||"",Rt=ot.namespaceURI;ct(U,qt?"xmlns:"+qt:"xmlns",Rt),rt.push({prefix:qt,namespace:Rt})}var We=ae?ae(ot):ot;We&&(typeof We=="string"?U.push(We):ct(U,We.name,We.value))}if(Tt===Ct&&Je(ge,Xe,rt)){var sr=ge.prefix||"",Rt=ge.namespaceURI;ct(U,sr?"xmlns:"+sr:"xmlns",Rt),rt.push({prefix:sr,namespace:Rt})}var Ft=ge.firstChild;if(Ft||Xe&&!/^(?:meta|link|img|br|hr|input)$/i.test(Tt)){if(U.push(">"),Xe&&/^script$/i.test(Tt)){for(;Ft;)Ft.data?U.push(Ft.data):Qe(Ft,U,Xe,ae,rt.slice(),Ie),Ft=Ft.nextSibling;return U.push("</",Tt,">"),null}return{ns:rt,isHTML:Xe,tag:Ct}}else return U.push("/>"),null;case M:case V:return{ns:Ye.slice(),isHTML:Xe,tag:null};case C:return ct(U,ge.name,ge.value),null;case S:return U.push(ge.data.replace(/[<&>]/g,pe)),null;case A:if(Ie&&ge.data.indexOf("]]>")!==-1)throw new te(ie,'The CDATASection data contains "]]>"');return U.push("<![CDATA[",ge.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case G:if(Ie&&ge.data.indexOf("-->")!==-1)throw new te(ie,'The comment node data contains "-->"');return U.push("<!--",ge.data,"-->"),null;case z:if(Ie){if(ge.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(ge.publicId))throw new te(ie,"DocumentType publicId is not a valid PubidLiteral");if(ge.systemId&&!/^("[^"]*"|'[^']*')$/.test(ge.systemId))throw new te(ie,"DocumentType systemId is not a valid SystemLiteral");if(ge.internalSubset&&ge.internalSubset.indexOf("]>")!==-1)throw new te(ie,'DocumentType internalSubset contains "]>"')}var $t=ge.publicId,bt=ge.systemId;if(U.push("<!DOCTYPE ",ge.name),$t)U.push(" PUBLIC ",$t),bt&&bt!="."&&U.push(" ",bt),U.push(">");else if(bt&&bt!=".")U.push(" SYSTEM ",bt,">");else{var Jt=ge.internalSubset;Jt&&U.push(" [",Jt,"]"),U.push(">")}return null;case L:if(Ie&&ge.data.indexOf("?>")!==-1)throw new te(ie,'The ProcessingInstruction data contains "?>"');return U.push("<?",ge.target," ",ge.data,"?>"),null;case N:return U.push("&",ge.nodeName,";"),null;default:return U.push("??",ge.nodeName),null}},exit:function(ge,He){He&&He.tag&&U.push("</",He.tag,">")}})}function cr(F,U,H){var ae;return Ae(U,null,{enter:function(be,Ie){var ge=be.cloneNode(!1);ge.ownerDocument=F,ge.parentNode=null,Ie===null?ae=ge:Ie.appendChild(ge);var He=be.nodeType===C||H;return He?ge:null}}),ae}function Ht(F,U,H){var ae;return Ae(U,null,{enter:function(be,Ie){var ge=new be.constructor;for(var He in be)if(Object.prototype.hasOwnProperty.call(be,He)){var Ye=be[He];typeof Ye!="object"&&Ye!=ge[He]&&(ge[He]=Ye)}be.childNodes&&(ge.childNodes=new ue),ge.ownerDocument=F;var Xe=H;switch(ge.nodeType){case E:var vt=be.attributes,Pt=ge.attributes=new ve,Tt=vt.length;Pt._ownerElement=ge;for(var Ct=0;Ct<Tt;Ct++)ge.setAttributeNode(Ht(F,vt.item(Ct),!0));break;case C:Xe=!0}return Ie!==null?Ie.appendChild(ge):ae=ge,Xe?ge:null}}),ae}function dr(F,U,H){F[U]=H}try{Object.defineProperty&&(Object.defineProperty(le.prototype,"length",{get:function(){return fe(this),this.$$length}}),Object.defineProperty(me.prototype,"textContent",{get:function(){if(this.nodeType===E||this.nodeType===V){var F=[];return Ae(this,null,{enter:function(U){if(U.nodeType===E||U.nodeType===V)return!0;if(U.nodeType===L||U.nodeType===G)return null;F.push(U.nodeValue)}}),F.join("")}return this.nodeValue},set:function(F){switch(this.nodeType){case E:case V:for(;this.firstChild;)this.removeChild(this.firstChild);(F||String(F))&&this.appendChild(this.ownerDocument.createTextNode(F));break;default:this.data=F,this.value=F,this.nodeValue=F}}}),dr=function(F,U,H){F["$$"+U]=H})}catch{}return dom.DocumentType=ke,dom.DOMException=te,dom.DOMImplementation=Ce,dom.Element=tt,dom.Node=me,dom.NodeList=ue,dom.walkDOM=Ae,dom.XMLSerializer=zt,dom}var domParser={},entities={},hasRequiredEntities;function requireEntities(){return hasRequiredEntities||(hasRequiredEntities=1,(function(e){var t=requireConventions().freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
134
|
+
)`},{id:13597,parentId:null,layerOrder:2,mapId:646,mapUuid:null,teamId:39,datasetId:716,teamDatasetId:713,serviceType:"XYZ",tiled:1,displayName:"Minor Flooding",description:"Real time forecast values from NOAA. Updated hourly",url:"https://rsgis-testdev.crrel.usace.army.mil/tiles/mstile/m.e847f06e3f0982927900594d68264d61/geom/{z}/{x}/{y}.png?nocache=true",grids:null,layerList:"ahpsfcst_minor",attribution:null,geometryType:"POINT",minzoom:1,maxzoom:22,abstract:null,purpose:null,status:null,keywords:null,localTable:"NOAA.NATIONAL_FCST_VW_MIN",metadataUrl:null,minX:-177.47,maxX:-64.71000000000001,minY:13.43,maxY:72.55,opacity:1,useMapfile:1,queryTemplate:`Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,'mm/dd/yyyy hh:mi: am') "Forecast Time", forecast||' '||units "Forecast", '<a href="'||url||'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/'||lower(gaugelid)||'_hg.png" width="300px"/></a>' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"`,hoverTemplate:`Location "Location", waterbody "Waterbody", state "State", to_char(fcstdate,'mm/dd/yyyy hh:mi: am') "Forecast Time", forecast||' '||units "Forecast", '<a href="'||url||'" target="_blank"><img src="http://water.weather.gov/resources/hydrographs/'||lower(gaugelid)||'_hg.png" width="300px"/></a>' "Hyperlink", action "Action Level", flood "Flood Level" , moderate "Mod Flood Level", major "Major Flood Level"`,queryable:1,visible:0,collapsed:1,idCol:"objectid",shapeCol:"SHAPE",allowEdit:0,allowExport:1,createdBy:"1380992694",createDate:"2017-12-12T13:15:12.000Z",cacheTiles:0,labelDefault:0,labelEnabled:0,deep:2,path:"depricated"}]},version="4.1.5",pkg={version};console.log("------ RUNNING CORPSMAP V."+pkg.version+" ------");let Map$1=class extends React.Component{constructor(t){super(t),this.state={store:null},this.getStore=this.getStore.bind(this)}getStore(){return this.state.store}componentDidMount(){this._isMounted=!0;const{mapConfig:t={},plugins:r=[],height:s,theme:o,themeNavSize:d,basemaps:m,basemapImageIDs:g=[],limitMapExtent:y}=this.props;cache.getAll().then(b=>{if(b.config={default:Object.assign({},config$1,t)},m&&m.forEach(E=>{b.config.default.basemaps.push(E)}),console.log(m),console.log(b),b.config.default.basemapImageIDs=g,s&&(b.vLayout={height:s,hNorth:1,hSouth:0}),o){const E=o.indexOf("bg-")===-1?`bg-${o}`:o;b.theme={theme:E,iconSize:d||"default"}}y&&(b.config.default.limitMapExtent=y);const x=getStore(b);loadPlugins(x,r),window.internalStore=x,this._isMounted&&this.setState({store:x})})}componentWillUnmount(){this._isMounted=!1}render(){const{store:t}=this.state;return t?jsxRuntime.jsx(Provider,{store:t,children:jsxRuntime.jsx(Corpsmap,{...this.props})}):null}},SidebarButton$1=class extends React.Component{constructor(t){super(t),this.clickHandler=this.clickHandler.bind(this)}clickHandler(t){t.preventDefault(),this.props.onClick(t)}render(){const{active:t,iconClass:r,iconStyle:s,iconText:o,expanded:d,label:m,theme:g,title:y,styleOverride:b,onMouseDown:x,onMouseUp:E,themeIconSize:C}=this.props,S=classnames({"cm-nav-btn":!0,"cm-nav-icon":C==="default","cm-nav-icon-lg":C==="large","cm-btn-block":!0,"vertical-toolbar-button":!0,active:t}),A=classnames({"overflow-ellipsis":!0,hidden:!o}),N=classnames({"icon-inline":d,hidden:!!o}),k=classnames({hidden:!d}),L=Object.assign({textAlign:"left"},b);return jsxRuntime.jsxs("div",{className:S+" "+g,onClick:this.clickHandler,onMouseDown:x,onMouseUp:E,style:L,title:y,children:[jsxRuntime.jsx("i",{className:r+" "+N,style:s}),jsxRuntime.jsx("span",{className:A,children:o}),jsxRuntime.jsx("span",{className:k,children:m})]})}};const SidebarButton=connect("selectThemeIconSize",SidebarButton$1);let SidebarPanelOpenerButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this)}handleClick(){const{doPrimaryPanelOpen:t,doPrimaryPanelClose:r,title:s,panelComponent:o,panelOptions:d,primaryPanelOpenedBy:m}=this.props;m!==s?t({openedBy:s,options:d,children:[o]}):r()}render(){const{theme:t,label:r,title:s,iconClass:o,iconText:d,styleOverride:m,primaryPanelOpenedBy:g}=this.props;return jsxRuntime.jsx(SidebarButton,{active:g===s,iconClass:o,iconText:d,styleOverride:m,expanded:!1,label:r,title:s,onClick:this.handleClick,theme:t})}};const SidebarPanelOpenerButton=connect("selectTheme","selectPrimaryPanelOpenedBy","doPrimaryPanelOpen","doPrimaryPanelClose",SidebarPanelOpenerButton$1);let BasicToolbarButton$1=class extends React.Component{constructor(t){super(t),this.renderIcon=this.renderIcon.bind(this),this.toggleTool=this.toggleTool.bind(this)}toggleTool(){const{enabled:t,title:r,onActivate:s,onDeactivate:o,basicToolbarActiveTool:d,doBasicToolbarToggle:m}=this.props;t&&(m(d,r),s&&s(),o&&o())}renderIcon(){const{children:t,text:r,title:s,iconClass:o,iconStyle:d,basicToolbarActiveTool:m,dropup:g,themeIconSize:y}=this.props,b=classnames({"cm-nav-btn":!0,"cm-nav-icon":y==="default","cm-nav-icon-lg":y==="large","basic-toolbar-btn":!0,"cm-dropdown-toggle":!0,active:m===s}),x=classnames({mdi:!0,"mdi-menu-down":!g,"mdi-menu-up":g});return t?jsxRuntime.jsxs("div",{onClick:this.toggleTool,className:b,children:[jsxRuntime.jsx("i",{className:o,style:d}),r,jsxRuntime.jsx("i",{className:x})]}):jsxRuntime.jsxs("div",{onClick:this.toggleTool,className:b,style:{textAlign:"center"},children:[jsxRuntime.jsx("i",{className:o,style:d}),r]})}render(){const{theme:t,basicToolbarActiveTool:r,title:s,children:o,dropup:d,passProps:m,basicToolbarOpen:g}=this.props,y=!!(g&&r===s),b=classnames({[t]:!0,"cm-btn-group":!0,open:y}),x=classnames({"basic-toolbar-btn-active":!d,"basic-toolbar-btn-active-top":d,hidden:r!==s});return jsxRuntime.jsxs("div",{className:b,...m,title:s,children:[jsxRuntime.jsx("div",{className:x}),this.renderIcon(),o]})}};const BasicToolbarButton=connect("selectTheme","selectThemeIconSize","selectBasicToolbarActiveTool","selectBasicToolbarOpen","doBasicToolbarActivate","doBasicToolbarDeactivate","doBasicToolbarToggle",BasicToolbarButton$1);class BasicToolbarMenu extends React.Component{render(){return jsxRuntime.jsx("ul",{className:"cm-dropdown-menu",children:this.props.children})}}class BasicToolbarMenuUp extends React.Component{render(){return jsxRuntime.jsx("ul",{className:"cm-dropup-menu",children:this.props.children})}}class BasicToolbarSubmenu extends React.Component{render(){return jsxRuntime.jsx(BasicToolbarMenu,{children:this.props.children})}}class BasicToolbarMenuDivider extends React.Component{render(){return jsxRuntime.jsx("li",{className:"divider"})}}class BasicToolbarMenuItem extends React.Component{constructor(t){super(t),this.state={showSubmenu:!1},this.renderTextContent=this.renderTextContent.bind(this),this.renderSubmenu=this.renderSubmenu.bind(this),this.showSubmenu=this.showSubmenu.bind(this),this.hideSubmenu=this.hideSubmenu.bind(this)}renderTextContent(){const{liveDangerously:t,text:r}=this.props;return t?jsxRuntime.jsx("span",{dangerouslySetInnerHTML:{__html:r}}):r}renderSubmenu(){const{children:t,disableSubmenu:r}=this.props,{showSubmenu:s}=this.state;if(!t)return null;const o=classnames({"pull-right":!0,hidden:r}),d=classnames({open:s});return jsxRuntime.jsxs("div",{className:o,children:[jsxRuntime.jsx("i",{className:"mdi mdi-menu-right"}),jsxRuntime.jsx("div",{style:{position:"relative",top:-31,left:33},className:d,children:t})]})}showSubmenu(){this.setState({showSubmenu:!0})}hideSubmenu(){this.setState({showSubmenu:!1})}renderDisabled(){const{passProps:t,iconClass:r}=this.props;return jsxRuntime.jsx("li",{...t,disabled:!0,children:jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("i",{className:r}),this.renderTextContent()]})})}render(){const{active:t,passProps:r,onClick:s,iconClass:o,disabled:d,title:m}=this.props;if(d)return this.renderDisabled();const g=classnames({active:t});return jsxRuntime.jsx("li",{className:g,...r,onClick:s,title:m,children:jsxRuntime.jsxs("span",{onMouseOver:this.showSubmenu,onMouseOut:this.hideSubmenu,children:[this.renderSubmenu(),jsxRuntime.jsx("i",{className:o}),this.renderTextContent()]})})}}class SearchInput extends React.Component{constructor(t){super(t),this.updateFilterString=this.updateFilterString.bind(this),this.handleKeyUp=this.handleKeyUp.bind(this),this.setFocus=this.setFocus.bind(this)}updateFilterString(t){const{onUpdate:r}=this.props,s=t.currentTarget.value;r(s)}handleKeyUp(t){const{onKeyUp:r}=this.props;r&&r(t)}setFocus(){this.input.focus()}render(){const{filterString:t,placeholder:r,size:s,inline:o,darkTheme:d}=this.props;let m="cm-form-control";m+=s==="small"?" input-sm":"";const g=s==="small"?"17px":"22px",y=s==="small"?"20px":"30px";return jsxRuntime.jsxs("div",{className:"cm-form-group",style:o?{marginBottom:0}:{},children:[jsxRuntime.jsx("span",{style:{position:"absolute",fontSize:g,top:"10px"},children:jsxRuntime.jsx("i",{className:"mdi mdi-magnify"})}),jsxRuntime.jsx("span",{children:jsxRuntime.jsx("input",{ref:b=>{this.input=b},style:{textIndent:y,color:d?"#ffffff":"inherit"},value:t,type:"text",className:m,placeholder:r,onChange:this.updateFilterString,onKeyUp:this.handleKeyUp})})]})}}class SearchResultsListItem extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this)}handleClick(){const{item:t,onClick:r}=this.props;r&&r(t)}render(){const{item:t,selected:r}=this.props,s=classnames({"cm-list-group-item":!0,"search-result-item":!0,"overflow-ellipsis":!0,selected:r});let o=t.secondaryTxt?`${t.displayName} ${t.secondaryTxt}`:`${t.displayName}`;return o=t.prefix?`${t.prefix}: ${o}`:`${o}`,jsxRuntime.jsxs("li",{onClick:this.handleClick,className:s,title:`${o}`,children:[jsxRuntime.jsx("i",{className:t.iconClass+" icon-inline"}),t.displayName,t.secondaryTxt?jsxRuntime.jsx("div",{className:"overflow-ellipsis",style:{marginLeft:"30px"},children:t.secondaryTxt}):null]})}}class SearchResultsList extends React.Component{render(){const{items:t,onItemClick:r,selectedIdx:s}=this.props;return jsxRuntime.jsx("ul",{className:"cm-list-group thin-scrollbar",ref:o=>{this.el=o},style:{position:"absolute",maxHeight:"400px",overflow:"auto"},children:t.map((o,d)=>jsxRuntime.jsx(SearchResultsListItem,{onClick:r,item:o,selected:s===d},d))})}}let LoadingIndicator$1=class extends React.Component{render(){return jsxRuntime.jsx("li",{className:"cm-list-group-item",children:jsxRuntime.jsxs("div",{className:"loading-container",children:[jsxRuntime.jsx("div",{className:"loading-spinner"}),jsxRuntime.jsx("div",{className:"loading-text",children:this.props.text})]})})}};class TreeListFolder extends React.Component{render(){const{item:t,collapsed:r,toggleCollapsed:s}=this.props,o=classnames({mdi:!0,"mdi-folder-open":!r,"mdi-folder":r}),d=classnames({"tree-list-item-hover":!1}),m={display:"inline-block",paddingLeft:"8px"},g=t.children.length;return jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("i",{title:"Click to collapse or expand",onClick:s,className:o,style:{fontSize:"16px",cursor:"pointer"}}),jsxRuntime.jsxs("span",{children:[jsxRuntime.jsx("div",{className:d,style:m,onDoubleClick:s,children:t.displayName}),jsxRuntime.jsx("span",{children:" ("+g+")"})]})]})}}let TreeListItem$2=class extends React.Component{constructor(t){super(t),this.state={collapsed:t.item.collapsed},this.renderItemComponent=this.renderItemComponent.bind(this),this.handleClick=this.handleClick.bind(this),this.toggleCollapsed=this.toggleCollapsed.bind(this)}toggleCollapsed(){this.setState({collapsed:!this.state.collapsed})}handleClick(t){const{item:r,onSelect:s}=this.props;s({ctrl:t.ctrlKey,shift:t.shiftKey,item:r})}renderItemComponent(){const{item:t,components:r,componentMatches:s}=this.props,{collapsed:o}=this.state;if(!t.leaf)return jsxRuntime.jsx(TreeListFolder,{item:t,collapsed:o,toggleCollapsed:this.toggleCollapsed});let d=r[0];if(s.length){for(let m=0;m<s.length;m++)if(_.isMatch(t,s[m])){d=r[m];break}}return jsxRuntime.jsx(d,{item:t})}render(){const{item:t,components:r,componentMatches:s,onSelect:o}=this.props,{collapsed:d}=this.state,m=classnames({"tree-list-item":!0,hidden:!1});return jsxRuntime.jsxs("li",{className:m,onClick:this.handleClick,children:[this.renderItemComponent(),jsxRuntime.jsx(TreeList$1,{items:t.children,item:t,collapsed:d,components:r,componentMatches:s,onSelect:o})]})}},TreeList$1=class extends React.Component{render(){const{items:t,collapsed:r,components:s,componentMatches:o,styleOverride:d,onSelect:m,selected:g,selectable:y}=this.props,b=classnames({"tree-list":!0,hidden:r});return jsxRuntime.jsx("ul",{className:b,style:d,children:t.map(function(x){return jsxRuntime.jsx(TreeListItem$2,{item:x,components:s,componentMatches:o,onSelect:m,selected:g,selectable:y,time:new Date},x.uid)})})}};class TreeView extends React.Component{constructor(t){super(t),this.state={selected:null},this.handleSelect=this.handleSelect.bind(this)}handleSelect(t){this.setState({selected:t})}render(){const{data:t,components:r,componentMatches:s}=this.props,{selected:o}=this.state,d=!t.length&&t.children?t.children:t||[];return jsxRuntime.jsx("div",{children:jsxRuntime.jsx(TreeList$1,{items:d,collapsed:!1,components:r,componentMatches:s,styleOverride:{paddingLeft:0},onSelect:this.handleSelect,selected:o,selectable:!1})})}}let AddGeoJsonButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.geojsonInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,s=this.geojsonInput.files[0];r(s)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-geojson icon-inline",title:"Add Local GeoJSON File",text:"Add Local GeoJSON File",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".geojson,.json",className:"hidden",type:"file",ref:t=>{this.geojsonInput=t}})})}};const AddGeoJsonButton=connect("doAddDataFile",AddGeoJsonButton$1);let AddShapefileButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.shapefileInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,s=this.shapefileInput.files[0];r(s)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-shp icon-inline",title:"Add Local Shapefile",text:"Add Local Shapefile",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".zip",className:"hidden",type:"file",ref:t=>{this.shapefileInput=t}})})}};const AddShapefileButton=connect("doAddDataFile",AddShapefileButton$1);let AddKmlFileButton$1=class extends React.Component{constructor(t){super(t),this.handleClick=this.handleClick.bind(this),this.handleFile=this.handleFile.bind(this)}handleClick(t){this.geojsonInput.click()}handleFile(t){const{doAddDataFile:r}=this.props,s=this.geojsonInput.files[0];r(s)}render(){return jsxRuntime.jsx(BasicToolbarMenuItem,{active:!1,iconClass:"ms ms-kml icon-inline",title:"Add Local KML File",text:"Add Local KML File",onClick:this.handleClick,passProps:{},disableSubmenu:!0,children:jsxRuntime.jsx("input",{onChange:this.handleFile,accept:".kml",className:"hidden",type:"file",ref:t=>{this.geojsonInput=t}})})}};const AddKmlFileButton=connect("doAddDataFile",AddKmlFileButton$1);let AddDataButton$1=class extends React.Component{constructor(t){super(t)}render(){return jsxRuntime.jsx(BasicToolbarButton,{enabled:!0,iconClass:"mdi mdi-plus-box-multiple",title:"Add Data",onDeactivate:()=>{},children:jsxRuntime.jsxs(BasicToolbarMenu,{children:[jsxRuntime.jsx(AddGeoJsonButton,{}),jsxRuntime.jsx(AddShapefileButton,{}),jsxRuntime.jsx(AddKmlFileButton,{})]})})}};const AddDataButton=connect("doNotificationsFire",AddDataButton$1);try{let e=()=>new DecompressionStream("deflate-raw"),t=r=>new Response(r);e(),l=r=>t(t(r).body.pipeThrough(e())).arrayBuffer().then(s=>new Uint8Array(s))}catch{}var l,w$1=new TextDecoder,c=e=>{throw Error("but-unzip~"+e)};function*p(e,t=l){let r=e.length-21,s=r-65536,o=new DataView(e.buffer,e.byteOffset),d=y=>o.getUint16(y+r,1),m=y=>o.getUint32(y+r,1),g=(y,b)=>e.subarray(r+=y,r+=b);for(;r>s&&(r=e.lastIndexOf(80,r-1))+1&&(e[r+1]-75||e[r+2]-5||e[r+3]-6););for(r<0&&c(2),s=d(10),s-d(8)&&c(3),r=m(16);s--;){let y=d(10),b=d(28),x=d(30),E=d(32),C=m(20),S=m(42),A=w$1.decode(g(46,b)),N=w$1.decode(g(x,E)),k=r,L;r=S,L=g(30+d(26)+d(28),C),yield{filename:A,comment:N,read:()=>y-8?y?c(1):L:t(L)},r=k}}const regex$3=/.+\.(shp|dbf|json|prj|cpg)$/i,unzip=async e=>{const t={},r=[];for(const d of p(e))regex$3.test(d.filename)&&r.push(Promise.resolve(d.read()).then(m=>t[d.filename]=m));await Promise.all(r);const s={},o=new TextDecoder;for(const[d,m]of Object.entries(t))d.slice(-3).toLowerCase()==="shp"||d.slice(-3).toLowerCase()==="dbf"?s[d]=new DataView(m.buffer,m.byteOffset,m.byteLength):s[d]=o.decode(m);return s},URL$2=globalThis.URL,combine$2=(e,t)=>{if(!t)return e;const r=new URL$2(e);return r.pathname=`${r.pathname}.${t}`,r.href};async function binaryAjax(e,t){const r=combine$2(e,t),s=t==="prj"||t==="cpg";try{const o=await fetch(r);if(o.status>399)throw new Error(o.statusText);if(s)return o.text();const d=await o.arrayBuffer();return new DataView(d)}catch(o){if(s||t==="dbf")return!1;throw o}}function isClockWise(e){let t=0,r=1;const s=e.length;let o,d;const m=[e[0][0],e[0][1],e[0][0],e[0][1]];for(;r<s;)o=d||e[0],d=e[r],t+=(d[0]-o[0])*(d[1]+o[1]),r++,d[0]<m[0]&&(m[0]=d[0]),d[1]<m[1]&&(m[1]=d[1]),d[0]>m[2]&&(m[2]=d[0]),d[1]>m[3]&&(m[3]=d[1]);return{ring:e,clockWise:t>0,bbox:m,children:[]}}function contains(e,t){return!(e.bbox[0]>t.bbox[0]||e.bbox[1]>t.bbox[1]||e.bbox[2]<t.bbox[2]||e.bbox[3]<t.bbox[3])}function handleRings(e,t=!1){const r=[],s=[];for(const m of e){const g=isClockWise(m);g.clockWise!==t?r.push(g):s.push(g)}const o=[];for(const m of s){let g;for(const y of r)contains(y,m)&&(g?contains(g,y)&&(g=y):g=y);g?g.children.push(m.ring):o.push(m)}if(t)return{outers:r,orphens:o};if(o.length&&!t){const m=handleRings(e,!0);if(m.orphens.length===0){const g=[];for(const y of m.outers)g.push([y.ring.toReversed()].concat(y.children.map(b=>b.toReversed())));return g}}const d=[];for(const m of r)d.push([m.ring].concat(m.children));return d}ParseShp.prototype.parsePoint=function(e){return{type:"Point",coordinates:this.parseCoord(e,0)}},ParseShp.prototype.parseZPoint=function(e){const t=this.parsePoint(e);return t.coordinates.push(e.getFloat64(16,!0)),t},ParseShp.prototype.parsePointArray=function(e,t,r){const s=[];let o=0;for(;o<r;)s.push(this.parseCoord(e,t)),t+=16,o++;return s},ParseShp.prototype.parseZPointArray=function(e,t,r,s){let o=0;for(;o<r;)s[o].push(e.getFloat64(t,!0)),o++,t+=8;return s},ParseShp.prototype.parseArrayGroup=function(e,t,r,s,o){const d=[];let m=0,g,y=0,b;for(;m<s;)m++,r+=4,g=y,m===s?y=o:y=e.getInt32(r,!0),b=y-g,b&&(d.push(this.parsePointArray(e,t,b)),t+=b<<4);return d},ParseShp.prototype.parseZArrayGroup=function(e,t,r,s){let o=0;for(;o<r;)s[o]=this.parseZPointArray(e,t,s[o].length,s[o]),t+=s[o].length<<3,o++;return s},ParseShp.prototype.parseMultiPoint=function(e){const t={},r=e.getInt32(32,!0);if(!r)return null;const s=this.parseCoord(e,0),o=this.parseCoord(e,16);t.bbox=[s[0],s[1],o[0],o[1]];const d=36;return r===1?(t.type="Point",t.coordinates=this.parseCoord(e,d)):(t.type="MultiPoint",t.coordinates=this.parsePointArray(e,d,r)),t},ParseShp.prototype.parseZMultiPoint=function(e){const t=this.parseMultiPoint(e);if(!t)return null;let r;if(t.type==="Point")return t.coordinates.push(e.getFloat64(72,!0)),t;r=t.coordinates.length;const s=52+(r<<4);return t.coordinates=this.parseZPointArray(e,s,r,t.coordinates),t},ParseShp.prototype.parsePolyline=function(e){const t={},r=e.getInt32(32,!0);if(!r)return null;const s=this.parseCoord(e,0),o=this.parseCoord(e,16);t.bbox=[s[0],s[1],o[0],o[1]];const d=e.getInt32(36,!0);let m,g;return r===1?(t.type="LineString",m=44,t.coordinates=this.parsePointArray(e,m,d)):(t.type="MultiLineString",m=40+(r<<2),g=40,t.coordinates=this.parseArrayGroup(e,m,g,r,d)),t},ParseShp.prototype.parseZPolyline=function(e){const t=this.parsePolyline(e);if(!t)return null;const r=t.coordinates.length;let s;return t.type==="LineString"?(s=60+(r<<4),t.coordinates=this.parseZPointArray(e,s,r,t.coordinates),t):(s=56+(t.coordinates.reduce(function(d,m){return d+m.length},0)<<4)+(r<<2),t.coordinates=this.parseZArrayGroup(e,s,r,t.coordinates),t)},ParseShp.prototype.polyFuncs=function(e){return e&&(e.type==="LineString"?(e.type="Polygon",e.coordinates=[e.coordinates],e):(e.coordinates=handleRings(e.coordinates),e.coordinates.length===1?(e.type="Polygon",e.coordinates=e.coordinates[0],e):(e.type="MultiPolygon",e)))},ParseShp.prototype.parsePolygon=function(e){return this.polyFuncs(this.parsePolyline(e))},ParseShp.prototype.parseZPolygon=function(e){return this.polyFuncs(this.parseZPolyline(e))};const shpFuncObj={1:"parsePoint",3:"parsePolyline",5:"parsePolygon",8:"parseMultiPoint",11:"parseZPoint",13:"parseZPolyline",15:"parseZPolygon",18:"parseZMultiPoint"};function makeParseCoord(e){return e?function(t,r){const s=[t.getFloat64(r,!0),t.getFloat64(r+8,!0)];return e.inverse(s)}:function(t,r){return[t.getFloat64(r,!0),t.getFloat64(r+8,!0)]}}function ParseShp(e,t){if(!(this instanceof ParseShp))return new ParseShp(e,t);this.buffer=e,this.headers=this.parseHeader(),this.shpFuncs(t),this.rows=this.getRows()}ParseShp.prototype.shpFuncs=function(e){let t=this.headers.shpCode;if(t>20&&(t-=20),!(t in shpFuncObj))throw new Error(`I don't know shp type "${t}"`);this.parseFunc=this[shpFuncObj[t]],this.parseCoord=makeParseCoord(e)},ParseShp.prototype.getShpCode=function(){return this.parseHeader().shpCode},ParseShp.prototype.parseHeader=function(){const e=this.buffer;return{length:e.getInt32(24)<<1,version:e.getInt32(28,!0),shpCode:e.getInt32(32,!0),bbox:[e.getFloat64(36,!0),e.getFloat64(44,!0),e.getFloat64(52,!0),e.getFloat64(60,!0)]}},ParseShp.prototype.getRows=function(){let e=100;const t=this.buffer.byteLength-8,r=[];let s;for(;e<=t&&(s=this.getRow(e),!!s);)e+=8,e+=s.len,s.type?r.push(this.parseFunc(s.data)):r.push(null);return r},ParseShp.prototype.getRow=function(e){const t=this.buffer.getInt32(e),r=this.buffer.getInt32(e+4)<<1;if(r===0)return{id:t,len:r,type:0};if(!(e+r+8>this.buffer.byteLength))return{id:t,len:r,data:new DataView(this.buffer.buffer,this.buffer.byteOffset+e+12,r-4),type:this.buffer.getInt32(e+8,!0)}};function parseShp(e,t){return new ParseShp(e,t).rows}var regex$2=/^(?:ANSI\s)?(\d+)$/m;function createDecoder(e,t){if(!e)return s;try{new TextDecoder(e.trim())}catch{var r=regex$2.exec(e);return r&&!t?createDecoder("windows-"+r[1],!0):(e=void 0,s)}return s;function s(o){var d=new TextDecoder(e||void 0),m=d.decode(o,{stream:!0})+d.decode();return m.replace(/\0/g,"").trim()}}function dbfHeader(e){var t={};return t.lastUpdated=new Date(e.getUint8(1)+1900,e.getUint8(2),e.getUint8(3)),t.records=e.getUint32(4,!0),t.headerLen=e.getUint16(8,!0),t.recLen=e.getUint16(10,!0),t}function dbfRowHeader(e,t,r){for(var s=[],o=32;o<t&&(s.push({name:r(new Uint8Array(e.buffer.slice(e.byteOffset+o,e.byteOffset+o+11))),dataType:String.fromCharCode(e.getUint8(o+11)),len:e.getUint8(o+16),decimal:e.getUint8(o+17)}),e.getUint8(o+32)!==13);)o+=32;return s}function rowFuncs(e,t,r,s,o){const d=new Uint8Array(e.buffer.slice(e.byteOffset+t,e.byteOffset+t+r));var m=o(d);switch(s){case"N":case"F":case"O":return parseFloat(m,10);case"D":return new Date(m.slice(0,4),parseInt(m.slice(4,6),10)-1,m.slice(6,8));case"L":return m.toLowerCase()==="y"||m.toLowerCase()==="t";default:return m}}function parseRow(e,t,r,s){for(var o={},d=0,m=r.length,g,y;d<m;)y=r[d],g=rowFuncs(e,t,y.len,y.dataType,s),t+=y.len,typeof g<"u"&&(o[y.name]=g),d++;return o}function parseDbf(e,t){for(var r=createDecoder(t),s=dbfHeader(e),o=dbfRowHeader(e,s.headerLen-1,r),d=(o.length+1<<5)+2,m=s.recLen,g=s.records,y=[];g;)y.push(parseRow(e,d,o,r)),d+=m,g--;return y}const URL$1=globalThis.URL,toUitn8Arr=e=>{if(!e)throw new Error("forgot to pass buffer");if(isArrayBuffer(e))return new Uint8Array(e);if(isArrayBuffer(e.buffer))return e.BYTES_PER_ELEMENT===1?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("invalid buffer like object")},txtDecoder=new TextDecoder,toString=e=>{if(e){if(typeof e=="string")return e;if(isArrayBuffer(e)||ArrayBuffer.isView(e)||isDataView(e))return txtDecoder.decode(e)}},toDataView=e=>{if(!e)throw new Error("forgot to pass buffer");if(isDataView(e))return e;if(isArrayBuffer(e))return new DataView(e);if(isArrayBuffer(e.buffer))return new DataView(e.buffer,e.byteOffset,e.byteLength);throw new Error("invalid buffer like object")};function isArrayBuffer(e){return e instanceof globalThis.ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]"}function isDataView(e){return e instanceof globalThis.DataView||Object.prototype.toString.call(e)==="[object DataView]"}const combine$1=function([e,t]){const r={};r.type="FeatureCollection",r.features=[];let s=0;const o=e.length;for(t||(t=[]);s<o;)r.features.push({type:"Feature",geometry:e[s],properties:t[s]||{}}),s++;return r},parseZip=async function(e,t){let r;e=toUitn8Arr(e);const s=await unzip(e),o=[];t=t||[];for(r in s)r.indexOf("__MACOSX")===-1&&(r.slice(-4).toLowerCase()===".shp"?(o.push(r.slice(0,-4)),s[r.slice(0,-3)+r.slice(-3).toLowerCase()]=s[r]):r.slice(-4).toLowerCase()===".prj"?s[r.slice(0,-3)+r.slice(-3).toLowerCase()]=proj4(s[r]):r.slice(-5).toLowerCase()===".json"||t.indexOf(r.split(".").pop())>-1?o.push(r.slice(0,-3)+r.slice(-3).toLowerCase()):(r.slice(-4).toLowerCase()===".dbf"||r.slice(-4).toLowerCase()===".cpg")&&(s[r.slice(0,-3)+r.slice(-3).toLowerCase()]=s[r]));if(!o.length)throw new Error("no layers founds");const d=o.map(function(m){let g,y;const b=m.lastIndexOf(".");return b>-1&&m.slice(b).indexOf("json")>-1?(g=JSON.parse(s[m]),g.fileName=m.slice(0,b)):t.indexOf(m.slice(b+1))>-1?(g=s[m],g.fileName=m):(s[m+".dbf"]&&(y=parseDbf(s[m+".dbf"],s[m+".cpg"])),g=combine$1([parseShp(s[m+".shp"],s[m+".prj"]),y]),g.fileName=m),g});return d.length===1?d[0]:d};async function getZip(e,t){const r=await binaryAjax(e);return parseZip(r,t)}const handleShp=async e=>{const t=await Promise.all([binaryAjax(e,"shp"),binaryAjax(e,"prj")]);let r=!1;try{t[1]&&(r=proj4(t[1]))}catch{r=!1}return parseShp(t[0],r)},handleDbf=async e=>{const[t,r]=await Promise.all([binaryAjax(e,"dbf"),binaryAjax(e,"cpg")]);if(t)return parseDbf(t,r)},checkSuffix=(e,t)=>new URL$1(e,globalThis?.document?.location).pathname.slice(-4).toLowerCase()===t,fromObject=({shp:e,dbf:t,cpg:r,prj:s})=>{const o=[_parseShp(e,s)];return t&&o.push(_parseDbf(t,r)),combine$1(o)},getShapefile=async function(e,t){if(typeof e!="string"){if(isArrayBuffer(e)||ArrayBuffer.isView(e)||isDataView(e))return parseZip(e);if(e.shp)return fromObject(e);throw new TypeError("must be a string, some sort of Buffer, or an object with at least a .shp property")}if(checkSuffix(e,".zip"))return getZip(e,t);checkSuffix(e,".shp")&&(e=e.slice(0,-4));const r=await Promise.all([handleShp(e),handleDbf(e)]);return combine$1(r)},_parseShp=function(e,t){if(e=toDataView(e),t=toString(t),typeof t=="string")try{t=proj4(t)}catch{t=!1}return parseShp(e,t)},_parseDbf=function(e,t){return e=toDataView(e),t=toString(t),parseDbf(e,t)};var togeojson={exports:{}},lib$1={},dom={},conventions={},hasRequiredConventions;function requireConventions(){if(hasRequiredConventions)return conventions;hasRequiredConventions=1;function e(d,m,g){if(g===void 0&&(g=Array.prototype),d&&typeof g.find=="function")return g.find.call(d,m);for(var y=0;y<d.length;y++)if(Object.prototype.hasOwnProperty.call(d,y)){var b=d[y];if(m.call(void 0,b,y,d))return b}}function t(d,m){return m===void 0&&(m=Object),m&&typeof m.freeze=="function"?m.freeze(d):d}function r(d,m){if(d===null||typeof d!="object")throw new TypeError("target is not an object");for(var g in m)Object.prototype.hasOwnProperty.call(m,g)&&(d[g]=m[g]);return d}var s=t({HTML:"text/html",isHTML:function(d){return d===s.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=t({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(d){return d===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});return conventions.assign=r,conventions.find=e,conventions.freeze=t,conventions.MIME_TYPE=s,conventions.NAMESPACE=o,conventions}var hasRequiredDom;function requireDom(){if(hasRequiredDom)return dom;hasRequiredDom=1;var e=requireConventions(),t=e.find,r=e.NAMESPACE;function s(F){return F!==""}function o(F){return F?F.split(/[\t\n\f\r ]+/).filter(s):[]}function d(F,U){return F.hasOwnProperty(U)||(F[U]=!0),F}function m(F){if(!F)return[];var U=o(F);return Object.keys(U.reduce(d,{}))}function g(F){return function(U){return F&&F.indexOf(U)!==-1}}function y(F,U){for(var H in F)Object.prototype.hasOwnProperty.call(F,H)&&(U[H]=F[H])}function b(F,U){var H=F.prototype;if(!(H instanceof U)){let ae=function(){};ae.prototype=U.prototype,ae=new ae,y(H,ae),F.prototype=H=ae}H.constructor!=F&&(typeof F!="function"&&console.error("unknown Class:"+F),H.constructor=F)}var x={},E=x.ELEMENT_NODE=1,C=x.ATTRIBUTE_NODE=2,S=x.TEXT_NODE=3,A=x.CDATA_SECTION_NODE=4,N=x.ENTITY_REFERENCE_NODE=5,k=x.ENTITY_NODE=6,L=x.PROCESSING_INSTRUCTION_NODE=7,G=x.COMMENT_NODE=8,M=x.DOCUMENT_NODE=9,z=x.DOCUMENT_TYPE_NODE=10,V=x.DOCUMENT_FRAGMENT_NODE=11,Y=x.NOTATION_NODE=12,X={},Q={};X.INDEX_SIZE_ERR=(Q[1]="Index size error",1),X.DOMSTRING_SIZE_ERR=(Q[2]="DOMString size error",2);var $=X.HIERARCHY_REQUEST_ERR=(Q[3]="Hierarchy request error",3);X.WRONG_DOCUMENT_ERR=(Q[4]="Wrong document",4);var K=X.INVALID_CHARACTER_ERR=(Q[5]="Invalid character",5);X.NO_DATA_ALLOWED_ERR=(Q[6]="No data allowed",6),X.NO_MODIFICATION_ALLOWED_ERR=(Q[7]="No modification allowed",7);var ee=X.NOT_FOUND_ERR=(Q[8]="Not found",8);X.NOT_SUPPORTED_ERR=(Q[9]="Not supported",9);var se=X.INUSE_ATTRIBUTE_ERR=(Q[10]="Attribute in use",10),ie=X.INVALID_STATE_ERR=(Q[11]="Invalid state",11);X.SYNTAX_ERR=(Q[12]="Syntax error",12),X.INVALID_MODIFICATION_ERR=(Q[13]="Invalid modification",13),X.NAMESPACE_ERR=(Q[14]="Invalid namespace",14),X.INVALID_ACCESS_ERR=(Q[15]="Invalid access",15);function te(F,U){if(U instanceof Error)var H=U;else H=this,Error.call(this,Q[F]),this.message=Q[F],Error.captureStackTrace&&Error.captureStackTrace(this,te);return H.code=F,U&&(this.message=this.message+": "+U),H}te.prototype=Error.prototype,y(X,te);function ue(){}ue.prototype={length:0,item:function(F){return F>=0&&F<this.length?this[F]:null},toString:function(F,U,H){for(var ae=!!H&&!!H.requireWellFormed,be=[],Ie=0;Ie<this.length;Ie++)Qe(this[Ie],be,F,U,null,ae);return be.join("")},filter:function(F){return Array.prototype.filter.call(this,F)},indexOf:function(F){return Array.prototype.indexOf.call(this,F)}};function le(F,U){this._node=F,this._refresh=U,fe(this)}function fe(F){var U=F._node._inc||F._node.ownerDocument._inc;if(F._inc!==U){var H=F._refresh(F._node);if(dr(F,"length",H.length),!F.$$length||H.length<F.$$length)for(var ae=H.length;ae in F;ae++)Object.prototype.hasOwnProperty.call(F,ae)&&delete F[ae];y(H,F),F._inc=U}}le.prototype.item=function(F){return fe(this),this[F]||null},b(le,ue);function ve(){}function xe(F,U){for(var H=F.length;H--;)if(F[H]===U)return H}function ce(F,U,H,ae){if(ae?U[xe(U,ae)]=H:U[U.length++]=H,F){H.ownerElement=F;var be=F.ownerDocument;be&&(ae&&Ue(be,F,ae),J(be,F,H))}}function Te(F,U,H){var ae=xe(U,H);if(ae>=0){for(var be=U.length-1;ae<be;)U[ae]=U[++ae];if(U.length=be,F){var Ie=F.ownerDocument;Ie&&(Ue(Ie,F,H),H.ownerElement=null)}}else throw new te(ee,new Error(F.tagName+"@"+H))}ve.prototype={length:0,item:ue.prototype.item,getNamedItem:function(F){for(var U=this.length;U--;){var H=this[U];if(H.nodeName==F)return H}},setNamedItem:function(F){var U=F.ownerElement;if(U&&U!=this._ownerElement)throw new te(se);var H=this.getNamedItem(F.nodeName);return ce(this._ownerElement,this,F,H),H},setNamedItemNS:function(F){var U=F.ownerElement,H;if(U&&U!=this._ownerElement)throw new te(se);return H=this.getNamedItemNS(F.namespaceURI,F.localName),ce(this._ownerElement,this,F,H),H},removeNamedItem:function(F){var U=this.getNamedItem(F);return Te(this._ownerElement,this,U),U},removeNamedItemNS:function(F,U){var H=this.getNamedItemNS(F,U);return Te(this._ownerElement,this,H),H},getNamedItemNS:function(F,U){for(var H=this.length;H--;){var ae=this[H];if(ae.localName==U&&ae.namespaceURI==F)return ae}return null}};function Ce(){}Ce.prototype={hasFeature:function(F,U){return!0},createDocument:function(F,U,H){var ae=new Pe;if(ae.implementation=this,ae.childNodes=new ue,ae.doctype=H||null,H&&ae.appendChild(H),U){var be=ae.createElementNS(F,U);ae.appendChild(be)}return ae},createDocumentType:function(F,U,H){var ae=new ke;return ae.name=F,ae.nodeName=F,ae.publicId=U||"",ae.systemId=H||"",ae}};function me(){}me.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(F,U){return Ve(this,F,U)},replaceChild:function(F,U){Ve(this,F,U,qe),U&&this.removeChild(U)},removeChild:function(F){return de(this,F)},appendChild:function(F){return this.insertBefore(F,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(F){return Ht(this.ownerDocument||this,this,F)},normalize:function(){Ae(this,null,{enter:function(F){for(var U=F.firstChild;U;){var H=U.nextSibling;H!==null&&H.nodeType===S&&U.nodeType===S?(F.removeChild(H),U.appendData(H.data)):U=H}return!0}})},isSupported:function(F,U){return this.ownerDocument.implementation.hasFeature(F,U)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(F){for(var U=this;U;){var H=U._nsMap;if(H){for(var ae in H)if(Object.prototype.hasOwnProperty.call(H,ae)&&H[ae]===F)return ae}U=U.nodeType==C?U.ownerDocument:U.parentNode}return null},lookupNamespaceURI:function(F){for(var U=this;U;){var H=U._nsMap;if(H&&Object.prototype.hasOwnProperty.call(H,F))return H[F];U=U.nodeType==C?U.ownerDocument:U.parentNode}return null},isDefaultNamespace:function(F){var U=this.lookupPrefix(F);return U==null}};function pe(F){return F=="<"&&"<"||F==">"&&">"||F=="&"&&"&"||F=='"'&&"""||"&#"+F.charCodeAt()+";"}y(x,me),y(x,me.prototype);function Ee(F,U){return Ae(F,null,{enter:function(H){return U(H)?Ae.STOP:!0}})===Ae.STOP}function Ae(F,U,H){for(var ae=[{node:F,context:U,phase:Ae.ENTER}];ae.length>0;){var be=ae.pop();if(be.phase===Ae.ENTER){var Ie=H.enter(be.node,be.context);if(Ie===Ae.STOP)return Ae.STOP;if(ae.push({node:be.node,context:Ie,phase:Ae.EXIT}),Ie==null)continue;for(var ge=be.node.lastChild;ge;)ae.push({node:ge,context:Ie,phase:Ae.ENTER}),ge=ge.previousSibling}else H.exit&&H.exit(be.node,be.context)}}Ae.STOP=Symbol("walkDOM.STOP"),Ae.ENTER=0,Ae.EXIT=1;function Pe(){this.ownerDocument=this}function J(F,U,H){F&&F._inc++;var ae=H.namespaceURI;ae===r.XMLNS&&(U._nsMap[H.prefix?H.localName:""]=H.value)}function Ue(F,U,H,ae){F&&F._inc++;var be=H.namespaceURI;be===r.XMLNS&&delete U._nsMap[H.prefix?H.localName:""]}function ye(F,U,H){if(F&&F._inc){F._inc++;var ae=U.childNodes;if(H)ae[ae.length++]=H;else{for(var be=U.firstChild,Ie=0;be;)ae[Ie++]=be,be=be.nextSibling;ae.length=Ie,delete ae[ae.length]}}}function de(F,U){var H=U.previousSibling,ae=U.nextSibling;return H?H.nextSibling=ae:F.firstChild=ae,ae?ae.previousSibling=H:F.lastChild=H,U.parentNode=null,U.previousSibling=null,U.nextSibling=null,ye(F.ownerDocument,F),U}function q(F){return F&&(F.nodeType===me.DOCUMENT_NODE||F.nodeType===me.DOCUMENT_FRAGMENT_NODE||F.nodeType===me.ELEMENT_NODE)}function Re(F){return F&&(je(F)||Fe(F)||Oe(F)||F.nodeType===me.DOCUMENT_FRAGMENT_NODE||F.nodeType===me.COMMENT_NODE||F.nodeType===me.PROCESSING_INSTRUCTION_NODE)}function Oe(F){return F&&F.nodeType===me.DOCUMENT_TYPE_NODE}function je(F){return F&&F.nodeType===me.ELEMENT_NODE}function Fe(F){return F&&F.nodeType===me.TEXT_NODE}function it(F,U){var H=F.childNodes||[];if(t(H,je)||Oe(U))return!1;var ae=t(H,Oe);return!(U&&ae&&H.indexOf(ae)>H.indexOf(U))}function dt(F,U){var H=F.childNodes||[];function ae(Ie){return je(Ie)&&Ie!==U}if(t(H,ae))return!1;var be=t(H,Oe);return!(U&&be&&H.indexOf(be)>H.indexOf(U))}function he(F,U,H){if(!q(F))throw new te($,"Unexpected parent node type "+F.nodeType);if(H&&H.parentNode!==F)throw new te(ee,"child not in parent");if(!Re(U)||Oe(U)&&F.nodeType!==me.DOCUMENT_NODE)throw new te($,"Unexpected node type "+U.nodeType+" for parent node type "+F.nodeType)}function st(F,U,H){var ae=F.childNodes||[],be=U.childNodes||[];if(U.nodeType===me.DOCUMENT_FRAGMENT_NODE){var Ie=be.filter(je);if(Ie.length>1||t(be,Fe))throw new te($,"More than one element or text in fragment");if(Ie.length===1&&!it(F,H))throw new te($,"Element in fragment can not be inserted before doctype")}if(je(U)&&!it(F,H))throw new te($,"Only one element can be added and only after doctype");if(Oe(U)){if(t(ae,Oe))throw new te($,"Only one doctype is allowed");var ge=t(ae,je);if(H&&ae.indexOf(ge)<ae.indexOf(H))throw new te($,"Doctype can only be inserted before an element");if(!H&&ge)throw new te($,"Doctype can not be appended since element is present")}}function qe(F,U,H){var ae=F.childNodes||[],be=U.childNodes||[];if(U.nodeType===me.DOCUMENT_FRAGMENT_NODE){var Ie=be.filter(je);if(Ie.length>1||t(be,Fe))throw new te($,"More than one element or text in fragment");if(Ie.length===1&&!dt(F,H))throw new te($,"Element in fragment can not be inserted before doctype")}if(je(U)&&!dt(F,H))throw new te($,"Only one element can be added and only after doctype");if(Oe(U)){if(t(ae,function(Ye){return Oe(Ye)&&Ye!==H}))throw new te($,"Only one doctype is allowed");var ge=t(ae,je);if(H&&ae.indexOf(ge)<ae.indexOf(H))throw new te($,"Doctype can only be inserted before an element")}}function Ve(F,U,H,ae){he(F,U,H),F.nodeType===me.DOCUMENT_NODE&&(ae||st)(F,U,H);var be=U.parentNode;if(be&&be.removeChild(U),U.nodeType===V){var Ie=U.firstChild;if(Ie==null)return U;var ge=U.lastChild}else Ie=ge=U;var He=H?H.previousSibling:F.lastChild;Ie.previousSibling=He,ge.nextSibling=H,He?He.nextSibling=Ie:F.firstChild=Ie,H==null?F.lastChild=ge:H.previousSibling=ge;do{Ie.parentNode=F;var Ye=F.ownerDocument||F;mt(Ie,Ye)}while(Ie!==ge&&(Ie=Ie.nextSibling));return ye(F.ownerDocument||F,F),U.nodeType==V&&(U.firstChild=U.lastChild=null),U}function mt(F,U){if(F.ownerDocument!==U){if(F.ownerDocument=U,F.nodeType===E&&F.attributes)for(var H=0;H<F.attributes.length;H++){var ae=F.attributes.item(H);ae&&(ae.ownerDocument=U)}for(var be=F.firstChild;be;)mt(be,U),be=be.nextSibling}}function Le(F,U){U.parentNode&&U.parentNode.removeChild(U),U.parentNode=F,U.previousSibling=F.lastChild,U.nextSibling=null,U.previousSibling?U.previousSibling.nextSibling=U:F.firstChild=U,F.lastChild=U,ye(F.ownerDocument,F,U);var H=F.ownerDocument||F;return mt(U,H),U}Pe.prototype={nodeName:"#document",nodeType:M,doctype:null,documentElement:null,_inc:1,insertBefore:function(F,U){if(F.nodeType==V){for(var H=F.firstChild;H;){var ae=H.nextSibling;this.insertBefore(H,U),H=ae}return F}return Ve(this,F,U),mt(F,this),this.documentElement===null&&F.nodeType===E&&(this.documentElement=F),F},removeChild:function(F){return this.documentElement==F&&(this.documentElement=null),de(this,F)},replaceChild:function(F,U){Ve(this,F,U,qe),mt(F,this),U&&this.removeChild(U),je(F)&&(this.documentElement=F)},importNode:function(F,U){return cr(this,F,U)},getElementById:function(F){var U=null;return Ee(this.documentElement,function(H){if(H.nodeType==E&&H.getAttribute("id")==F)return U=H,!0}),U},getElementsByClassName:function(F){var U=m(F);return new le(this,function(H){var ae=[];return U.length>0&&Ee(H.documentElement,function(be){if(be!==H&&be.nodeType===E){var Ie=be.getAttribute("class");if(Ie){var ge=F===Ie;if(!ge){var He=m(Ie);ge=U.every(g(He))}ge&&ae.push(be)}}}),ae})},createElement:function(F){var U=new tt;U.ownerDocument=this,U.nodeName=F,U.tagName=F,U.localName=F,U.childNodes=new ue;var H=U.attributes=new ve;return H._ownerElement=U,U},createDocumentFragment:function(){var F=new De;return F.ownerDocument=this,F.childNodes=new ue,F},createTextNode:function(F){var U=new we;return U.ownerDocument=this,U.appendData(F),U},createComment:function(F){var U=new Lt;return U.ownerDocument=this,U.appendData(F),U},createCDATASection:function(F){if(F.indexOf("]]>")!==-1)throw new te(K,'data contains "]]>"');var U=new Me;return U.ownerDocument=this,U.appendData(F),U},createProcessingInstruction:function(F,U){var H=new Gt;return H.ownerDocument=this,H.tagName=H.nodeName=H.target=F,H.nodeValue=H.data=U,H},createAttribute:function(F){var U=new gt;return U.ownerDocument=this,U.name=F,U.nodeName=F,U.localName=F,U.specified=!0,U},createEntityReference:function(F){var U=new Bt;return U.ownerDocument=this,U.nodeName=F,U},createElementNS:function(F,U){var H=new tt,ae=U.split(":"),be=H.attributes=new ve;return H.childNodes=new ue,H.ownerDocument=this,H.nodeName=U,H.tagName=U,H.namespaceURI=F,ae.length==2?(H.prefix=ae[0],H.localName=ae[1]):H.localName=U,be._ownerElement=H,H},createAttributeNS:function(F,U){var H=new gt,ae=U.split(":");return H.ownerDocument=this,H.nodeName=U,H.name=U,H.namespaceURI=F,H.specified=!0,ae.length==2?(H.prefix=ae[0],H.localName=ae[1]):H.localName=U,H}},b(Pe,me);function tt(){this._nsMap={}}tt.prototype={nodeType:E,hasAttribute:function(F){return this.getAttributeNode(F)!=null},getAttribute:function(F){var U=this.getAttributeNode(F);return U&&U.value||""},getAttributeNode:function(F){return this.attributes.getNamedItem(F)},setAttribute:function(F,U){var H=this.ownerDocument.createAttribute(F);H.value=H.nodeValue=""+U,this.setAttributeNode(H)},removeAttribute:function(F){var U=this.getAttributeNode(F);U&&this.removeAttributeNode(U)},appendChild:function(F){return F.nodeType===V?this.insertBefore(F,null):Le(this,F)},setAttributeNode:function(F){return this.attributes.setNamedItem(F)},setAttributeNodeNS:function(F){return this.attributes.setNamedItemNS(F)},removeAttributeNode:function(F){return this.attributes.removeNamedItem(F.nodeName)},removeAttributeNS:function(F,U){var H=this.getAttributeNodeNS(F,U);H&&this.removeAttributeNode(H)},hasAttributeNS:function(F,U){return this.getAttributeNodeNS(F,U)!=null},getAttributeNS:function(F,U){var H=this.getAttributeNodeNS(F,U);return H&&H.value||""},setAttributeNS:function(F,U,H){var ae=this.ownerDocument.createAttributeNS(F,U);ae.value=ae.nodeValue=""+H,this.setAttributeNode(ae)},getAttributeNodeNS:function(F,U){return this.attributes.getNamedItemNS(F,U)},getElementsByTagName:function(F){return new le(this,function(U){var H=[];return Ee(U,function(ae){ae!==U&&ae.nodeType==E&&(F==="*"||ae.tagName==F)&&H.push(ae)}),H})},getElementsByTagNameNS:function(F,U){return new le(this,function(H){var ae=[];return Ee(H,function(be){be!==H&&be.nodeType===E&&(F==="*"||be.namespaceURI===F)&&(U==="*"||be.localName==U)&&ae.push(be)}),ae})}},Pe.prototype.getElementsByTagName=tt.prototype.getElementsByTagName,Pe.prototype.getElementsByTagNameNS=tt.prototype.getElementsByTagNameNS,b(tt,me);function gt(){}gt.prototype.nodeType=C,b(gt,me);function yt(){}yt.prototype={data:"",substringData:function(F,U){return this.data.substring(F,F+U)},appendData:function(F){F=this.data+F,this.nodeValue=this.data=F,this.length=F.length},insertData:function(F,U){this.replaceData(F,0,U)},appendChild:function(F){throw new Error(Q[$])},deleteData:function(F,U){this.replaceData(F,U,"")},replaceData:function(F,U,H){var ae=this.data.substring(0,F),be=this.data.substring(F+U);H=ae+H+be,this.nodeValue=this.data=H,this.length=H.length}},b(yt,me);function we(){}we.prototype={nodeName:"#text",nodeType:S,splitText:function(F){var U=this.data,H=U.substring(F);U=U.substring(0,F),this.data=this.nodeValue=U,this.length=U.length;var ae=this.ownerDocument.createTextNode(H);return this.parentNode&&this.parentNode.insertBefore(ae,this.nextSibling),ae}},b(we,yt);function Lt(){}Lt.prototype={nodeName:"#comment",nodeType:G},b(Lt,yt);function Me(){}Me.prototype={nodeName:"#cdata-section",nodeType:A},b(Me,yt);function ke(){}ke.prototype.nodeType=z,b(ke,me);function Ut(){}Ut.prototype.nodeType=Y,b(Ut,me);function at(){}at.prototype.nodeType=k,b(at,me);function Bt(){}Bt.prototype.nodeType=N,b(Bt,me);function De(){}De.prototype.nodeName="#document-fragment",De.prototype.nodeType=V,b(De,me);function Gt(){}Gt.prototype.nodeType=L,b(Gt,me);function zt(){}zt.prototype.serializeToString=function(F,U,H,ae){return Ot.call(F,U,H,ae)},me.prototype.toString=Ot;function Ot(F,U,H){var ae=!!H&&!!H.requireWellFormed,be=[],Ie=this.nodeType==9&&this.documentElement||this,ge=Ie.prefix,He=Ie.namespaceURI;if(He&&ge==null){var ge=Ie.lookupPrefix(He);if(ge==null)var Ye=[{namespace:He,prefix:null}]}return Qe(this,be,F,U,Ye,ae),be.join("")}function Je(F,U,H){var ae=F.prefix||"",be=F.namespaceURI;if(!be||ae==="xml"&&be===r.XML||be===r.XMLNS)return!1;for(var Ie=H.length;Ie--;){var ge=H[Ie];if(ge.prefix===ae)return ge.namespace!==be}return!0}function ct(F,U,H){F.push(" ",U,'="',H.replace(/[<>&"\t\n\r]/g,pe),'"')}function Qe(F,U,H,ae,be,Ie){be||(be=[]),Ae(F,{ns:be,isHTML:H},{enter:function(ge,He){var Ye=He.ns,Xe=He.isHTML;if(ae)if(ge=ae(ge),ge){if(typeof ge=="string")return U.push(ge),null}else return null;switch(ge.nodeType){case E:var vt=ge.attributes,Pt=vt.length,Tt=ge.tagName;Xe=r.isHTML(ge.namespaceURI)||Xe;var Ct=Tt;if(!Xe&&!ge.prefix&&ge.namespaceURI){for(var Yt,Ke=0;Ke<vt.length;Ke++)if(vt.item(Ke).name==="xmlns"){Yt=vt.item(Ke).value;break}if(!Yt)for(var St=Ye.length-1;St>=0;St--){var ht=Ye[St];if(ht.prefix===""&&ht.namespace===ge.namespaceURI){Yt=ht.namespace;break}}if(Yt!==ge.namespaceURI)for(var St=Ye.length-1;St>=0;St--){var ht=Ye[St];if(ht.namespace===ge.namespaceURI){ht.prefix&&(Ct=ht.prefix+":"+Tt);break}}}U.push("<",Ct);for(var rt=Ye.slice(),ut=0;ut<Pt;ut++){var ot=vt.item(ut);ot.prefix=="xmlns"?rt.push({prefix:ot.localName,namespace:ot.value}):ot.nodeName=="xmlns"&&rt.push({prefix:"",namespace:ot.value})}for(var ut=0;ut<Pt;ut++){var ot=vt.item(ut);if(Je(ot,Xe,rt)){var qt=ot.prefix||"",Rt=ot.namespaceURI;ct(U,qt?"xmlns:"+qt:"xmlns",Rt),rt.push({prefix:qt,namespace:Rt})}var We=ae?ae(ot):ot;We&&(typeof We=="string"?U.push(We):ct(U,We.name,We.value))}if(Tt===Ct&&Je(ge,Xe,rt)){var sr=ge.prefix||"",Rt=ge.namespaceURI;ct(U,sr?"xmlns:"+sr:"xmlns",Rt),rt.push({prefix:sr,namespace:Rt})}var Ft=ge.firstChild;if(Ft||Xe&&!/^(?:meta|link|img|br|hr|input)$/i.test(Tt)){if(U.push(">"),Xe&&/^script$/i.test(Tt)){for(;Ft;)Ft.data?U.push(Ft.data):Qe(Ft,U,Xe,ae,rt.slice(),Ie),Ft=Ft.nextSibling;return U.push("</",Tt,">"),null}return{ns:rt,isHTML:Xe,tag:Ct}}else return U.push("/>"),null;case M:case V:return{ns:Ye.slice(),isHTML:Xe,tag:null};case C:return ct(U,ge.name,ge.value),null;case S:return U.push(ge.data.replace(/[<&>]/g,pe)),null;case A:if(Ie&&ge.data.indexOf("]]>")!==-1)throw new te(ie,'The CDATASection data contains "]]>"');return U.push("<![CDATA[",ge.data.replace(/]]>/g,"]]]]><![CDATA[>"),"]]>"),null;case G:if(Ie&&ge.data.indexOf("-->")!==-1)throw new te(ie,'The comment node data contains "-->"');return U.push("<!--",ge.data,"-->"),null;case z:if(Ie){if(ge.publicId&&!/^("[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%']*"|'[\x20\r\na-zA-Z0-9\-()+,.\/:=?;!*#@$_%'"]*')$/.test(ge.publicId))throw new te(ie,"DocumentType publicId is not a valid PubidLiteral");if(ge.systemId&&!/^("[^"]*"|'[^']*')$/.test(ge.systemId))throw new te(ie,"DocumentType systemId is not a valid SystemLiteral");if(ge.internalSubset&&ge.internalSubset.indexOf("]>")!==-1)throw new te(ie,'DocumentType internalSubset contains "]>"')}var $t=ge.publicId,bt=ge.systemId;if(U.push("<!DOCTYPE ",ge.name),$t)U.push(" PUBLIC ",$t),bt&&bt!="."&&U.push(" ",bt),U.push(">");else if(bt&&bt!=".")U.push(" SYSTEM ",bt,">");else{var Jt=ge.internalSubset;Jt&&U.push(" [",Jt,"]"),U.push(">")}return null;case L:if(Ie&&ge.data.indexOf("?>")!==-1)throw new te(ie,'The ProcessingInstruction data contains "?>"');return U.push("<?",ge.target," ",ge.data,"?>"),null;case N:return U.push("&",ge.nodeName,";"),null;default:return U.push("??",ge.nodeName),null}},exit:function(ge,He){He&&He.tag&&U.push("</",He.tag,">")}})}function cr(F,U,H){var ae;return Ae(U,null,{enter:function(be,Ie){var ge=be.cloneNode(!1);ge.ownerDocument=F,ge.parentNode=null,Ie===null?ae=ge:Ie.appendChild(ge);var He=be.nodeType===C||H;return He?ge:null}}),ae}function Ht(F,U,H){var ae;return Ae(U,null,{enter:function(be,Ie){var ge=new be.constructor;for(var He in be)if(Object.prototype.hasOwnProperty.call(be,He)){var Ye=be[He];typeof Ye!="object"&&Ye!=ge[He]&&(ge[He]=Ye)}be.childNodes&&(ge.childNodes=new ue),ge.ownerDocument=F;var Xe=H;switch(ge.nodeType){case E:var vt=be.attributes,Pt=ge.attributes=new ve,Tt=vt.length;Pt._ownerElement=ge;for(var Ct=0;Ct<Tt;Ct++)ge.setAttributeNode(Ht(F,vt.item(Ct),!0));break;case C:Xe=!0}return Ie!==null?Ie.appendChild(ge):ae=ge,Xe?ge:null}}),ae}function dr(F,U,H){F[U]=H}try{Object.defineProperty&&(Object.defineProperty(le.prototype,"length",{get:function(){return fe(this),this.$$length}}),Object.defineProperty(me.prototype,"textContent",{get:function(){if(this.nodeType===E||this.nodeType===V){var F=[];return Ae(this,null,{enter:function(U){if(U.nodeType===E||U.nodeType===V)return!0;if(U.nodeType===L||U.nodeType===G)return null;F.push(U.nodeValue)}}),F.join("")}return this.nodeValue},set:function(F){switch(this.nodeType){case E:case V:for(;this.firstChild;)this.removeChild(this.firstChild);(F||String(F))&&this.appendChild(this.ownerDocument.createTextNode(F));break;default:this.data=F,this.value=F,this.nodeValue=F}}}),dr=function(F,U,H){F["$$"+U]=H})}catch{}return dom.DocumentType=ke,dom.DOMException=te,dom.DOMImplementation=Ce,dom.Element=tt,dom.Node=me,dom.NodeList=ue,dom.walkDOM=Ae,dom.XMLSerializer=zt,dom}var domParser={},entities={},hasRequiredEntities;function requireEntities(){return hasRequiredEntities||(hasRequiredEntities=1,(function(e){var t=requireConventions().freeze;e.XML_ENTITIES=t({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),e.HTML_ENTITIES=t({Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",AMP:"&",amp:"&",And:"⩓",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",ap:"≈",apacir:"⩯",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",Barwed:"⌆",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",Because:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxDL:"╗",boxDl:"╖",boxdL:"╕",boxdl:"┐",boxDR:"╔",boxDr:"╓",boxdR:"╒",boxdr:"┌",boxH:"═",boxh:"─",boxHD:"╦",boxHd:"╤",boxhD:"╥",boxhd:"┬",boxHU:"╩",boxHu:"╧",boxhU:"╨",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxUL:"╝",boxUl:"╜",boxuL:"╛",boxul:"┘",boxUR:"╚",boxUr:"╙",boxuR:"╘",boxur:"└",boxV:"║",boxv:"│",boxVH:"╬",boxVh:"╫",boxvH:"╪",boxvh:"┼",boxVL:"╣",boxVl:"╢",boxvL:"╡",boxvl:"┤",boxVR:"╠",boxVr:"╟",boxvR:"╞",boxvr:"├",bprime:"‵",Breve:"˘",breve:"˘",brvbar:"¦",Bscr:"ℬ",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",Cap:"⋒",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",CenterDot:"·",centerdot:"·",Cfr:"ℭ",cfr:"𝔠",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",Colon:"∷",colon:":",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",Conint:"∯",conint:"∮",ContourIntegral:"∮",Copf:"ℂ",copf:"𝕔",coprod:"∐",Coproduct:"∐",COPY:"©",copy:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",Cross:"⨯",cross:"✗",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",Cup:"⋓",cup:"∪",cupbrcap:"⩈",CupCap:"≍",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",Dagger:"‡",dagger:"†",daleth:"ℸ",Darr:"↡",dArr:"⇓",darr:"↓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",DD:"ⅅ",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",Diamond:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",Downarrow:"⇓",downarrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",ecir:"≖",Ecirc:"Ê",ecirc:"ê",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",eDot:"≑",edot:"ė",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",Escr:"ℰ",escr:"ℯ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",ExponentialE:"ⅇ",exponentiale:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",ForAll:"∀",forall:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",Fscr:"ℱ",fscr:"𝒻",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",gE:"≧",ge:"≥",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",Gg:"⋙",gg:"≫",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gnE:"≩",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",Gt:"≫",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",hArr:"⇔",harr:"↔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",Hfr:"ℌ",hfr:"𝔥",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",Hopf:"ℍ",hopf:"𝕙",horbar:"―",HorizontalLine:"─",Hscr:"ℋ",hscr:"𝒽",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",Ifr:"ℑ",ifr:"𝔦",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Im:"ℑ",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",Int:"∬",int:"∫",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",Iscr:"ℐ",iscr:"𝒾",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",Lang:"⟪",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",Larr:"↞",lArr:"⇐",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",lAtail:"⤛",latail:"⤙",late:"⪭",lates:"⪭︀",lBarr:"⤎",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",lE:"≦",le:"≤",LeftAngleBracket:"⟨",LeftArrow:"←",Leftarrow:"⇐",leftarrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",Ll:"⋘",ll:"≪",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lnE:"≨",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftarrow:"⟵",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",LongRightArrow:"⟶",Longrightarrow:"⟹",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",Lscr:"ℒ",lscr:"𝓁",Lsh:"↰",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",Lt:"≪",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",Mscr:"ℳ",mscr:"𝓂",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",ne:"≠",nearhk:"⤤",neArr:"⇗",nearr:"↗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
|
|
135
135
|
`,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlArr:"⇍",nlarr:"↚",nldr:"‥",nlE:"≦̸",nle:"≰",nLeftarrow:"⇍",nleftarrow:"↚",nLeftrightarrow:"⇎",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",Nopf:"ℕ",nopf:"𝕟",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nRightarrow:"⇏",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nVDash:"⊯",nVdash:"⊮",nvDash:"⊭",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwArr:"⇖",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",ocir:"⊚",Ocirc:"Ô",ocirc:"ô",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",Or:"⩔",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",Otimes:"⨷",otimes:"⊗",otimesas:"⨶",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",Popf:"ℙ",popf:"𝕡",pound:"£",Pr:"⪻",pr:"≺",prap:"⪷",prcue:"≼",prE:"⪳",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",Prime:"″",prime:"′",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",Qopf:"ℚ",qopf:"𝕢",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",QUOT:'"',quot:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",Rang:"⟫",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",Rarr:"↠",rArr:"⇒",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",rAtail:"⤜",ratail:"⤚",ratio:"∶",rationals:"ℚ",RBarr:"⤐",rBarr:"⤏",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",REG:"®",reg:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",Rfr:"ℜ",rfr:"𝔯",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrow:"→",Rightarrow:"⇒",rightarrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",Ropf:"ℝ",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",Rscr:"ℛ",rscr:"𝓇",Rsh:"↱",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",Sc:"⪼",sc:"≻",scap:"⪸",Scaron:"Š",scaron:"š",sccue:"≽",scE:"⪴",sce:"⪰",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",seArr:"⇘",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",Square:"□",square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",Sub:"⋐",sub:"⊂",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",Subset:"⋐",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",Sum:"∑",sum:"∑",sung:"♪",Sup:"⋑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",Supset:"⋑",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swArr:"⇙",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",Therefore:"∴",therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",Tilde:"∼",tilde:"˜",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",TRADE:"™",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",Uarr:"↟",uArr:"⇑",uarr:"↑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrow:"↑",Uparrow:"⇑",uparrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",Updownarrow:"⇕",updownarrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",upsi:"υ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",vArr:"⇕",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",Vbar:"⫫",vBar:"⫨",vBarv:"⫩",Vcy:"В",vcy:"в",VDash:"⊫",Vdash:"⊩",vDash:"⊨",vdash:"⊢",Vdashl:"⫦",Vee:"⋁",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",Verbar:"‖",verbar:"|",Vert:"‖",vert:"|",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",Wedge:"⋀",wedge:"∧",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",Xi:"Ξ",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",Yuml:"Ÿ",yuml:"ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",Zfr:"ℨ",zfr:"𝔷",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",Zopf:"ℤ",zopf:"𝕫",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""}),e.entityMap=e.HTML_ENTITIES})(entities)),entities}var sax={},hasRequiredSax;function requireSax(){if(hasRequiredSax)return sax;hasRequiredSax=1;var e=requireConventions().NAMESPACE,t=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+t.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=new RegExp("^"+t.source+r.source+"*(?::"+t.source+r.source+"*)?$"),o=0,d=1,m=2,g=3,y=4,b=5,x=6,E=7;function C($,K){this.message=$,this.locator=K,Error.captureStackTrace&&Error.captureStackTrace(this,C)}C.prototype=new Error,C.prototype.name=C.name;function S(){}S.prototype={parse:function($,K,ee){var se=this.domBuilder;se.startDocument(),z(K,K={}),A($,K,ee,se,this.errorHandler),se.endDocument()}};function A($,K,ee,se,ie){function te(qe){if(qe>65535){qe-=65536;var Ve=55296+(qe>>10),mt=56320+(qe&1023);return String.fromCharCode(Ve,mt)}else return String.fromCharCode(qe)}function ue(qe){var Ve=qe.slice(1,-1);return Object.hasOwnProperty.call(ee,Ve)?ee[Ve]:Ve.charAt(0)==="#"?te(parseInt(Ve.substr(1).replace("x","0x"))):(ie.error("entity not found:"+qe),qe)}function le(qe){if(qe>pe){var Ve=$.substring(pe,qe).replace(/&#?\w+;/g,ue);Te&&fe(pe),se.characters(Ve,0,qe-pe),pe=qe}}function fe(qe,Ve){for(;qe>=xe&&(Ve=ce.exec($));)ve=Ve.index,xe=ve+Ve[0].length,Te.lineNumber++;Te.columnNumber=qe-ve+1}for(var ve=0,xe=0,ce=/.*(?:\r\n?|\n)|.*$/g,Te=se.locator,Ce=[{currentNSMap:K}],me={},pe=0;;){try{var Ee=$.indexOf("<",pe);if(Ee<0){if(!$.substr(pe).match(/^\s*$/)){var Ae=se.doc,Pe=Ae.createTextNode($.substr(pe));Ae.appendChild(Pe),se.currentElement=Pe}return}switch(Ee>pe&&le(Ee),$.charAt(Ee+1)){case"/":var Fe=$.indexOf(">",Ee+3),J=$.substring(Ee+2,Fe).replace(/[ \t\n\r]+$/g,""),Ue=Ce.pop();Fe<0?(J=$.substring(Ee+2).replace(/[\s<].*/,""),ie.error("end tag name: "+J+" is not complete:"+Ue.tagName),Fe=Ee+1+J.length):J.match(/\s</)&&(J=J.replace(/[\s<].*/,""),ie.error("end tag name: "+J+" maybe not complete"),Fe=Ee+1+J.length);var ye=Ue.localNSMap,de=Ue.tagName==J,q=de||Ue.tagName&&Ue.tagName.toLowerCase()==J.toLowerCase();if(q){if(se.endElement(Ue.uri,Ue.localName,J),ye)for(var Re in ye)Object.prototype.hasOwnProperty.call(ye,Re)&&se.endPrefixMapping(Re);de||ie.fatalError("end tag name: "+J+" is not match the current start tagName:"+Ue.tagName)}else Ce.push(Ue);Fe++;break;case"?":Te&&fe(Ee),Fe=Y($,Ee,se);break;case"!":Te&&fe(Ee),Fe=V($,Ee,se,ie);break;default:Te&&fe(Ee);var Oe=new X,je=Ce[Ce.length-1].currentNSMap,Fe=k($,Ee,Oe,je,ue,ie),it=Oe.length;if(!Oe.closed&&M($,Fe,Oe.tagName,me)&&(Oe.closed=!0,ee.nbsp||ie.warning("unclosed xml attribute")),Te&&it){for(var dt=N(Te,{}),he=0;he<it;he++){var st=Oe[he];fe(st.offset),st.locator=N(Te,{})}se.locator=dt,L(Oe,se,je)&&Ce.push(Oe),se.locator=Te}else L(Oe,se,je)&&Ce.push(Oe);e.isHTML(Oe.uri)&&!Oe.closed?Fe=G($,Fe,Oe.tagName,ue,se):Fe++}}catch(qe){if(qe instanceof C)throw qe;ie.error("element parse error: "+qe),Fe=-1}Fe>pe?pe=Fe:le(Math.max(Ee,pe)+1)}}function N($,K){return K.lineNumber=$.lineNumber,K.columnNumber=$.columnNumber,K}function k($,K,ee,se,ie,te){function ue(Te,Ce,me){ee.attributeNames.hasOwnProperty(Te)&&te.fatalError("Attribute "+Te+" redefined"),ee.addValue(Te,Ce.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,ie),me)}for(var le,fe,ve=++K,xe=o;;){var ce=$.charAt(ve);switch(ce){case"=":if(xe===d)le=$.slice(K,ve),xe=g;else if(xe===m)xe=g;else throw new Error("attribute equal must after attrName");break;case"'":case'"':if(xe===g||xe===d)if(xe===d&&(te.warning('attribute value must after "="'),le=$.slice(K,ve)),K=ve+1,ve=$.indexOf(ce,K),ve>0)fe=$.slice(K,ve),ue(le,fe,K-1),xe=b;else throw new Error("attribute value no end '"+ce+"' match");else if(xe==y)fe=$.slice(K,ve),ue(le,fe,K),te.warning('attribute "'+le+'" missed start quot('+ce+")!!"),K=ve+1,xe=b;else throw new Error('attribute value must after "="');break;case"/":switch(xe){case o:ee.setTagName($.slice(K,ve));case b:case x:case E:xe=E,ee.closed=!0;case y:case d:break;case m:ee.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return te.error("unexpected end of input"),xe==o&&ee.setTagName($.slice(K,ve)),ve;case">":switch(xe){case o:ee.setTagName($.slice(K,ve));case b:case x:case E:break;case y:case d:fe=$.slice(K,ve),fe.slice(-1)==="/"&&(ee.closed=!0,fe=fe.slice(0,-1));case m:xe===m&&(fe=le),xe==y?(te.warning('attribute "'+fe+'" missed quot(")!'),ue(le,fe,K)):((!e.isHTML(se[""])||!fe.match(/^(?:disabled|checked|selected)$/i))&&te.warning('attribute "'+fe+'" missed value!! "'+fe+'" instead!!'),ue(fe,fe,K));break;case g:throw new Error("attribute value missed!!")}return ve;case"":ce=" ";default:if(ce<=" ")switch(xe){case o:ee.setTagName($.slice(K,ve)),xe=x;break;case d:le=$.slice(K,ve),xe=m;break;case y:var fe=$.slice(K,ve);te.warning('attribute "'+fe+'" missed quot(")!!'),ue(le,fe,K);case b:xe=x;break}else switch(xe){case m:ee.tagName,(!e.isHTML(se[""])||!le.match(/^(?:disabled|checked|selected)$/i))&&te.warning('attribute "'+le+'" missed value!! "'+le+'" instead2!!'),ue(le,le,K),K=ve,xe=d;break;case b:te.warning('attribute space is required"'+le+'"!!');case x:xe=d,K=ve;break;case g:xe=y,K=ve;break;case E:throw new Error("elements closed character '/' and '>' must be connected to")}}ve++}}function L($,K,ee){for(var se=$.tagName,ie=null,ce=$.length;ce--;){var te=$[ce],ue=te.qName,le=te.value,Te=ue.indexOf(":");if(Te>0)var fe=te.prefix=ue.slice(0,Te),ve=ue.slice(Te+1),xe=fe==="xmlns"&&ve;else ve=ue,fe=null,xe=ue==="xmlns"&&"";te.localName=ve,xe!==!1&&(ie==null&&(ie={},z(ee,ee={})),ee[xe]=ie[xe]=le,te.uri=e.XMLNS,K.startPrefixMapping(xe,le))}for(var ce=$.length;ce--;){te=$[ce];var fe=te.prefix;fe&&(fe==="xml"&&(te.uri=e.XML),fe!=="xmlns"&&(te.uri=ee[fe||""]))}var Te=se.indexOf(":");Te>0?(fe=$.prefix=se.slice(0,Te),ve=$.localName=se.slice(Te+1)):(fe=null,ve=$.localName=se);var Ce=$.uri=ee[fe||""];if(K.startElement(Ce,ve,se,$),$.closed){if(K.endElement(Ce,ve,se),ie)for(fe in ie)Object.prototype.hasOwnProperty.call(ie,fe)&&K.endPrefixMapping(fe)}else return $.currentNSMap=ee,$.localNSMap=ie,!0}function G($,K,ee,se,ie){if(/^(?:script|textarea)$/i.test(ee)){var te=$.indexOf("</"+ee+">",K),ue=$.substring(K+1,te);if(/[&<]/.test(ue))return/^script$/i.test(ee)?(ie.characters(ue,0,ue.length),te):(ue=ue.replace(/&#?\w+;/g,se),ie.characters(ue,0,ue.length),te)}return K+1}function M($,K,ee,se){var ie=se[ee];return ie==null&&(ie=$.lastIndexOf("</"+ee+">"),ie<K&&(ie=$.lastIndexOf("</"+ee)),se[ee]=ie),ie<K}function z($,K){for(var ee in $)Object.prototype.hasOwnProperty.call($,ee)&&(K[ee]=$[ee])}function V($,K,ee,se){var ie=$.charAt(K+2);switch(ie){case"-":if($.charAt(K+3)==="-"){var te=$.indexOf("-->",K+4);return te>K?(ee.comment($,K+4,te-K-4),te+3):(se.error("Unclosed comment"),-1)}else return-1;default:if($.substr(K+3,6)=="CDATA["){var te=$.indexOf("]]>",K+9);return ee.startCDATA(),ee.characters($,K+9,te-K-9),ee.endCDATA(),te+3}var ue=Q($,K),le=ue.length;if(le>1&&/!doctype/i.test(ue[0][0])){var fe=ue[1][0],ve=!1,xe=!1;le>3&&(/^public$/i.test(ue[2][0])?(ve=ue[3][0],xe=le>4&&ue[4][0]):/^system$/i.test(ue[2][0])&&(xe=ue[3][0]));var ce=ue[le-1];return ee.startDTD(fe,ve,xe),ee.endDTD(),ce.index+ce[0].length}}return-1}function Y($,K,ee){var se=$.indexOf("?>",K);if(se){var ie=$.substring(K,se).match(/^<\?(\S*)\s*([\s\S]*?)$/);return ie?(ie[0].length,ee.processingInstruction(ie[1],ie[2]),se+2):-1}return-1}function X(){this.attributeNames={}}X.prototype={setTagName:function($){if(!s.test($))throw new Error("invalid tagName:"+$);this.tagName=$},addValue:function($,K,ee){if(!s.test($))throw new Error("invalid attribute:"+$);this.attributeNames[$]=this.length,this[this.length++]={qName:$,value:K,offset:ee}},length:0,getLocalName:function($){return this[$].localName},getLocator:function($){return this[$].locator},getQName:function($){return this[$].qName},getURI:function($){return this[$].uri},getValue:function($){return this[$].value}};function Q($,K){var ee,se=[],ie=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(ie.lastIndex=K,ie.exec($);ee=ie.exec($);)if(se.push(ee),ee[1])return se}return sax.XMLReader=S,sax.ParseError=C,sax}var hasRequiredDomParser;function requireDomParser(){if(hasRequiredDomParser)return domParser;hasRequiredDomParser=1;var e=requireConventions(),t=requireDom(),r=requireEntities(),s=requireSax(),o=t.DOMImplementation,d=e.NAMESPACE,m=s.ParseError,g=s.XMLReader;function y(k){return k.replace(/\r[\n\u0085]/g,`
|
|
136
136
|
`).replace(/[\r\u0085\u2028]/g,`
|
|
137
137
|
`)}function b(k){this.options=k||{locator:{}}}b.prototype.parseFromString=function(k,L){var G=this.options,M=new g,z=G.domBuilder||new E,V=G.errorHandler,Y=G.locator,X=G.xmlns||{},Q=/\/x?html?$/.test(L),$=Q?r.HTML_ENTITIES:r.XML_ENTITIES;Y&&z.setDocumentLocator(Y),M.errorHandler=x(V,z,Y),M.domBuilder=G.domBuilder||z,Q&&(X[""]=d.HTML),X.xml=X.xml||d.XML;var K=G.normalizeLineEndings||y;return k&&typeof k=="string"?M.parse(K(k),X,$):M.errorHandler.error("invalid doc source"),z.doc};function x(k,L,G){if(!k){if(L instanceof E)return L;k=L}var M={},z=k instanceof Function;G=G||{};function V(Y){var X=k[Y];!X&&z&&(X=k.length==2?function(Q){k(Y,Q)}:k),M[Y]=X&&function(Q){X("[xmldom "+Y+"] "+Q+S(G))}||function(){}}return V("warning"),V("error"),V("fatalError"),M}function E(){this.cdata=!1}function C(k,L){L.lineNumber=k.lineNumber,L.columnNumber=k.columnNumber}E.prototype={startDocument:function(){this.doc=new o().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(k,L,G,M){var z=this.doc,V=z.createElementNS(k,G||L),Y=M.length;N(this,V),this.currentElement=V,this.locator&&C(this.locator,V);for(var X=0;X<Y;X++){var k=M.getURI(X),Q=M.getValue(X),G=M.getQName(X),$=z.createAttributeNS(k,G);this.locator&&C(M.getLocator(X),$),$.value=$.nodeValue=Q,V.setAttributeNode($)}},endElement:function(k,L,G){var M=this.currentElement;M.tagName,this.currentElement=M.parentNode},startPrefixMapping:function(k,L){},endPrefixMapping:function(k){},processingInstruction:function(k,L){var G=this.doc.createProcessingInstruction(k,L);this.locator&&C(this.locator,G),N(this,G)},ignorableWhitespace:function(k,L,G){},characters:function(k,L,G){if(k=A.apply(this,arguments),k){if(this.cdata)var M=this.doc.createCDATASection(k);else var M=this.doc.createTextNode(k);this.currentElement?this.currentElement.appendChild(M):/^\s*$/.test(k)&&this.doc.appendChild(M),this.locator&&C(this.locator,M)}},skippedEntity:function(k){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(k){(this.locator=k)&&(k.lineNumber=0)},comment:function(k,L,G){k=A.apply(this,arguments);var M=this.doc.createComment(k);this.locator&&C(this.locator,M),N(this,M)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(k,L,G){var M=this.doc.implementation;if(M&&M.createDocumentType){var z=M.createDocumentType(k,L,G);this.locator&&C(this.locator,z),N(this,z),this.doc.doctype=z}},warning:function(k){console.warn("[xmldom warning] "+k,S(this.locator))},error:function(k){console.error("[xmldom error] "+k,S(this.locator))},fatalError:function(k){throw new m(k,this.locator)}};function S(k){if(k)return`
|