nfewizard-io 0.3.21 → 0.3.23

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.
@@ -1,5 +1,5 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var require$$1=require("string_decoder"),require$$0$2=require("events"),require$$4=require("timers"),require$$0$3=require("crypto"),fs=require("fs"),xsdValidator=require("xsd-schema-validator"),path=require("path"),require$$0$4=require("url"),libxmljs=require("libxmljs"),require$$0$6=require("util"),require$$0$5=require("stream"),require$$3=require("http"),https=require("https"),require$$4$1=require("assert"),require$$1$1=require("tty"),require$$0$7=require("os"),zlib=require("zlib"),pem$1=require("pem"),require$$7=require("net"),require$$4$2=require("dns"),require$$1$2=require("tls"),require$$0$8=require("child_process"),bwipjs=require("bwip-js"),PDFDocument=require("pdfkit"),require$$3$1=require("buffer");function _interopDefault(e){return e&&e.__esModule?e:{default:e}}var require$$1__default=_interopDefault(require$$1),require$$0__default=_interopDefault(require$$0$2),require$$4__default=_interopDefault(require$$4),require$$0__default$1=_interopDefault(require$$0$3),fs__default=_interopDefault(fs),xsdValidator__default=_interopDefault(xsdValidator),path__default=_interopDefault(path),require$$0__default$4=_interopDefault(require$$0$4),libxmljs__default=_interopDefault(libxmljs),require$$0__default$3=_interopDefault(require$$0$6),require$$0__default$2=_interopDefault(require$$0$5),require$$3__default=_interopDefault(require$$3),https__default=_interopDefault(https),require$$4__default$1=_interopDefault(require$$4$1),require$$1__default$1=_interopDefault(require$$1$1),require$$0__default$5=_interopDefault(require$$0$7),zlib__default=_interopDefault(zlib),pem__default=_interopDefault(pem$1),require$$7__default=_interopDefault(require$$7),require$$4__default$2=_interopDefault(require$$4$2),require$$1__default$2=_interopDefault(require$$1$2),require$$0__default$6=_interopDefault(require$$0$8),bwipjs__default=_interopDefault(bwipjs),PDFDocument__default=_interopDefault(PDFDocument),require$$3__default$1=_interopDefault(require$$3$1),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,"default")?x.default:x}var hasRequiredDefaults,xml2js$2={},defaults$2={};function requireDefaults(){return hasRequiredDefaults||(hasRequiredDefaults=1,function(){defaults$2.defaults={.1:{explicitCharkey:!1,trim:!0,normalize:!0,normalizeTags:!1,attrkey:"@",charkey:"#",explicitArray:!1,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!1,validator:null,xmlns:!1,explicitChildren:!1,childkey:"@@",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,emptyTag:""},.2:{explicitCharkey:!1,trim:!1,normalize:!1,normalizeTags:!1,attrkey:"$",charkey:"_",explicitArray:!0,ignoreAttrs:!1,mergeAttrs:!1,explicitRoot:!0,validator:null,xmlns:!1,explicitChildren:!1,preserveChildrenOrder:!1,childkey:"$$",charsAsChildren:!1,includeWhiteChars:!1,async:!1,strict:!0,attrNameProcessors:null,attrValueProcessors:null,tagNameProcessors:null,valueProcessors:null,rootName:"root",xmldec:{version:"1.0",encoding:"UTF-8",standalone:!0},doctype:null,renderOpts:{pretty:!0,indent:" ",newline:"\n"},headless:!1,chunkSize:1e4,emptyTag:"",cdata:!1}}}.call(defaults$2)),defaults$2}var hasRequiredUtility,builder={},lib$5={},Utility$1={};function requireUtility(){return hasRequiredUtility||(hasRequiredUtility=1,function(){var assign,getValue,isArray,isEmpty,isFunction,isObject,isPlainObject,slice=[].slice,hasProp={}.hasOwnProperty;assign=function(){var i,key,len,source,sources,target;if(target=arguments[0],sources=2<=arguments.length?slice.call(arguments,1):[],isFunction(Object.assign))Object.assign.apply(null,arguments);else for(i=0,len=sources.length;i<len;i++)if(null!=(source=sources[i]))for(key in source)hasProp.call(source,key)&&(target[key]=source[key]);return target},isFunction=function(val){return!!val&&"[object Function]"===Object.prototype.toString.call(val)},isObject=function(val){var ref;return!!val&&("function"==(ref=typeof val)||"object"===ref)},isArray=function(val){return isFunction(Array.isArray)?Array.isArray(val):"[object Array]"===Object.prototype.toString.call(val)},isEmpty=function(val){var key;if(isArray(val))return!val.length;for(key in val)if(hasProp.call(val,key))return!1;return!0},isPlainObject=function(val){var ctor,proto;return isObject(val)&&(proto=Object.getPrototypeOf(val))&&(ctor=proto.constructor)&&"function"==typeof ctor&&ctor instanceof ctor&&Function.prototype.toString.call(ctor)===Function.prototype.toString.call(Object)},getValue=function(obj){return isFunction(obj.valueOf)?obj.valueOf():obj},Utility$1.assign=assign,Utility$1.isFunction=isFunction,Utility$1.isObject=isObject,Utility$1.isArray=isArray,Utility$1.isEmpty=isEmpty,Utility$1.isPlainObject=isPlainObject,Utility$1.getValue=getValue}.call(Utility$1)),Utility$1}var hasRequiredXMLDOMImplementation,XMLDOMImplementation$1={exports:{}},XMLDOMImplementation=XMLDOMImplementation$1.exports;function requireXMLDOMImplementation(){return hasRequiredXMLDOMImplementation||(hasRequiredXMLDOMImplementation=1,function(){XMLDOMImplementation$1.exports=function(){function XMLDOMImplementation(){}return XMLDOMImplementation.prototype.hasFeature=function(feature,version){return!0},XMLDOMImplementation.prototype.createDocumentType=function(qualifiedName,publicId,systemId){throw new Error("This DOM method is not implemented.")},XMLDOMImplementation.prototype.createDocument=function(namespaceURI,qualifiedName,doctype){throw new Error("This DOM method is not implemented.")},XMLDOMImplementation.prototype.createHTMLDocument=function(title){throw new Error("This DOM method is not implemented.")},XMLDOMImplementation.prototype.getFeature=function(feature,version){throw new Error("This DOM method is not implemented.")},XMLDOMImplementation}()}.call(XMLDOMImplementation)),XMLDOMImplementation$1.exports}var hasRequiredXMLDOMErrorHandler,XMLDocument$1={exports:{}},XMLDOMConfiguration$1={exports:{}},XMLDOMErrorHandler$1={exports:{}},XMLDOMErrorHandler=XMLDOMErrorHandler$1.exports;function requireXMLDOMErrorHandler(){return hasRequiredXMLDOMErrorHandler||(hasRequiredXMLDOMErrorHandler=1,function(){XMLDOMErrorHandler$1.exports=function(){function XMLDOMErrorHandler(){}return XMLDOMErrorHandler.prototype.handleError=function(error){throw new Error(error)},XMLDOMErrorHandler}()}.call(XMLDOMErrorHandler)),XMLDOMErrorHandler$1.exports}var hasRequiredXMLDOMStringList,XMLDOMStringList$1={exports:{}},XMLDOMStringList=XMLDOMStringList$1.exports;function requireXMLDOMStringList(){return hasRequiredXMLDOMStringList||(hasRequiredXMLDOMStringList=1,function(){XMLDOMStringList$1.exports=function(){function XMLDOMStringList(arr){this.arr=arr||[]}return Object.defineProperty(XMLDOMStringList.prototype,"length",{get:function(){return this.arr.length}}),XMLDOMStringList.prototype.item=function(index){return this.arr[index]||null},XMLDOMStringList.prototype.contains=function(str){return-1!==this.arr.indexOf(str)},XMLDOMStringList}()}.call(XMLDOMStringList)),XMLDOMStringList$1.exports}var hasRequiredXMLDOMConfiguration,XMLDOMConfiguration=XMLDOMConfiguration$1.exports;function requireXMLDOMConfiguration(){return hasRequiredXMLDOMConfiguration||(hasRequiredXMLDOMConfiguration=1,function(){var XMLDOMErrorHandler,XMLDOMStringList;XMLDOMErrorHandler=requireXMLDOMErrorHandler(),XMLDOMStringList=requireXMLDOMStringList(),XMLDOMConfiguration$1.exports=function(){function XMLDOMConfiguration(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new XMLDOMErrorHandler,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":"","schema-type":"","split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}return Object.defineProperty(XMLDOMConfiguration.prototype,"parameterNames",{get:function(){return new XMLDOMStringList(Object.keys(this.defaultParams))}}),XMLDOMConfiguration.prototype.getParameter=function(name){return this.params.hasOwnProperty(name)?this.params[name]:null},XMLDOMConfiguration.prototype.canSetParameter=function(name,value){return!0},XMLDOMConfiguration.prototype.setParameter=function(name,value){return null!=value?this.params[name]=value:delete this.params[name]},XMLDOMConfiguration}()}.call(XMLDOMConfiguration)),XMLDOMConfiguration$1.exports}var hasRequiredNodeType,XMLNode$1={exports:{}},XMLElement$1={exports:{}},NodeType$1={exports:{}},NodeType=NodeType$1.exports;function requireNodeType(){return hasRequiredNodeType||(hasRequiredNodeType=1,function(){NodeType$1.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}.call(NodeType)),NodeType$1.exports}var hasRequiredXMLAttribute,XMLAttribute$1={exports:{}},XMLAttribute=XMLAttribute$1.exports;function requireXMLAttribute(){return hasRequiredXMLAttribute||(hasRequiredXMLAttribute=1,function(){var NodeType;NodeType=requireNodeType(),requireXMLNode(),XMLAttribute$1.exports=function(){function XMLAttribute(parent,name,value){if(this.parent=parent,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),null==name)throw new Error("Missing attribute name. "+this.debugInfo(name));this.name=this.stringify.name(name),this.value=this.stringify.attValue(value),this.type=NodeType.Attribute,this.isId=!1,this.schemaTypeInfo=null}return Object.defineProperty(XMLAttribute.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(XMLAttribute.prototype,"ownerElement",{get:function(){return this.parent}}),Object.defineProperty(XMLAttribute.prototype,"textContent",{get:function(){return this.value},set:function(value){return this.value=value||""}}),Object.defineProperty(XMLAttribute.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(XMLAttribute.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(XMLAttribute.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(XMLAttribute.prototype,"specified",{get:function(){return!0}}),XMLAttribute.prototype.clone=function(){return Object.create(this)},XMLAttribute.prototype.toString=function(options){return this.options.writer.attribute(this,this.options.writer.filterOptions(options))},XMLAttribute.prototype.debugInfo=function(name){return null==(name=name||this.name)?"parent: <"+this.parent.name+">":"attribute: {"+name+"}, parent: <"+this.parent.name+">"},XMLAttribute.prototype.isEqualNode=function(node){return node.namespaceURI===this.namespaceURI&&(node.prefix===this.prefix&&(node.localName===this.localName&&node.value===this.value))},XMLAttribute}()}.call(XMLAttribute)),XMLAttribute$1.exports}var hasRequiredXMLNamedNodeMap,XMLNamedNodeMap$1={exports:{}},XMLNamedNodeMap=XMLNamedNodeMap$1.exports;function requireXMLNamedNodeMap(){return hasRequiredXMLNamedNodeMap||(hasRequiredXMLNamedNodeMap=1,function(){XMLNamedNodeMap$1.exports=function(){function XMLNamedNodeMap(nodes){this.nodes=nodes}return Object.defineProperty(XMLNamedNodeMap.prototype,"length",{get:function(){return Object.keys(this.nodes).length||0}}),XMLNamedNodeMap.prototype.clone=function(){return this.nodes=null},XMLNamedNodeMap.prototype.getNamedItem=function(name){return this.nodes[name]},XMLNamedNodeMap.prototype.setNamedItem=function(node){var oldNode;return oldNode=this.nodes[node.nodeName],this.nodes[node.nodeName]=node,oldNode||null},XMLNamedNodeMap.prototype.removeNamedItem=function(name){var oldNode;return oldNode=this.nodes[name],delete this.nodes[name],oldNode||null},XMLNamedNodeMap.prototype.item=function(index){return this.nodes[Object.keys(this.nodes)[index]]||null},XMLNamedNodeMap.prototype.getNamedItemNS=function(namespaceURI,localName){throw new Error("This DOM method is not implemented.")},XMLNamedNodeMap.prototype.setNamedItemNS=function(node){throw new Error("This DOM method is not implemented.")},XMLNamedNodeMap.prototype.removeNamedItemNS=function(namespaceURI,localName){throw new Error("This DOM method is not implemented.")},XMLNamedNodeMap}()}.call(XMLNamedNodeMap)),XMLNamedNodeMap$1.exports}var hasRequiredXMLElement,XMLElement=XMLElement$1.exports;function requireXMLElement(){return hasRequiredXMLElement||(hasRequiredXMLElement=1,function(){var NodeType,XMLAttribute,XMLNamedNodeMap,XMLNode,getValue,isFunction,isObject,ref,hasProp={}.hasOwnProperty;ref=requireUtility(),isObject=ref.isObject,isFunction=ref.isFunction,getValue=ref.getValue,XMLNode=requireXMLNode(),NodeType=requireNodeType(),XMLAttribute=requireXMLAttribute(),XMLNamedNodeMap=requireXMLNamedNodeMap(),XMLElement$1.exports=function(superClass){function XMLElement(parent,name,attributes){var child,j,len,ref1;if(XMLElement.__super__.constructor.call(this,parent),null==name)throw new Error("Missing element name. "+this.debugInfo());if(this.name=this.stringify.name(name),this.type=NodeType.Element,this.attribs={},this.schemaTypeInfo=null,null!=attributes&&this.attribute(attributes),parent.type===NodeType.Document&&(this.isRoot=!0,this.documentObject=parent,parent.rootObject=this,parent.children))for(j=0,len=(ref1=parent.children).length;j<len;j++)if((child=ref1[j]).type===NodeType.DocType){child.name=this.name;break}}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLElement,superClass),Object.defineProperty(XMLElement.prototype,"tagName",{get:function(){return this.name}}),Object.defineProperty(XMLElement.prototype,"namespaceURI",{get:function(){return""}}),Object.defineProperty(XMLElement.prototype,"prefix",{get:function(){return""}}),Object.defineProperty(XMLElement.prototype,"localName",{get:function(){return this.name}}),Object.defineProperty(XMLElement.prototype,"id",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(XMLElement.prototype,"className",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(XMLElement.prototype,"classList",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(XMLElement.prototype,"attributes",{get:function(){return this.attributeMap&&this.attributeMap.nodes||(this.attributeMap=new XMLNamedNodeMap(this.attribs)),this.attributeMap}}),XMLElement.prototype.clone=function(){var att,attName,clonedSelf,ref1;for(attName in(clonedSelf=Object.create(this)).isRoot&&(clonedSelf.documentObject=null),clonedSelf.attribs={},ref1=this.attribs)hasProp.call(ref1,attName)&&(att=ref1[attName],clonedSelf.attribs[attName]=att.clone());return clonedSelf.children=[],this.children.forEach((function(child){var clonedChild;return(clonedChild=child.clone()).parent=clonedSelf,clonedSelf.children.push(clonedChild)})),clonedSelf},XMLElement.prototype.attribute=function(name,value){var attName,attValue;if(null!=name&&(name=getValue(name)),isObject(name))for(attName in name)hasProp.call(name,attName)&&(attValue=name[attName],this.attribute(attName,attValue));else isFunction(value)&&(value=value.apply()),this.options.keepNullAttributes&&null==value?this.attribs[name]=new XMLAttribute(this,name,""):null!=value&&(this.attribs[name]=new XMLAttribute(this,name,value));return this},XMLElement.prototype.removeAttribute=function(name){var attName,j,len;if(null==name)throw new Error("Missing attribute name. "+this.debugInfo());if(name=getValue(name),Array.isArray(name))for(j=0,len=name.length;j<len;j++)attName=name[j],delete this.attribs[attName];else delete this.attribs[name];return this},XMLElement.prototype.toString=function(options){return this.options.writer.element(this,this.options.writer.filterOptions(options))},XMLElement.prototype.att=function(name,value){return this.attribute(name,value)},XMLElement.prototype.a=function(name,value){return this.attribute(name,value)},XMLElement.prototype.getAttribute=function(name){return this.attribs.hasOwnProperty(name)?this.attribs[name].value:null},XMLElement.prototype.setAttribute=function(name,value){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.getAttributeNode=function(name){return this.attribs.hasOwnProperty(name)?this.attribs[name]:null},XMLElement.prototype.setAttributeNode=function(newAttr){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.removeAttributeNode=function(oldAttr){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.getElementsByTagName=function(name){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.getAttributeNS=function(namespaceURI,localName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.setAttributeNS=function(namespaceURI,qualifiedName,value){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.removeAttributeNS=function(namespaceURI,localName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.getAttributeNodeNS=function(namespaceURI,localName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.setAttributeNodeNS=function(newAttr){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.getElementsByTagNameNS=function(namespaceURI,localName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.hasAttribute=function(name){return this.attribs.hasOwnProperty(name)},XMLElement.prototype.hasAttributeNS=function(namespaceURI,localName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.setIdAttribute=function(name,isId){return this.attribs.hasOwnProperty(name)?this.attribs[name].isId:isId},XMLElement.prototype.setIdAttributeNS=function(namespaceURI,localName,isId){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.setIdAttributeNode=function(idAttr,isId){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.getElementsByTagName=function(tagname){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.getElementsByTagNameNS=function(namespaceURI,localName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.getElementsByClassName=function(classNames){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLElement.prototype.isEqualNode=function(node){var i,j,ref1;if(!XMLElement.__super__.isEqualNode.apply(this,arguments).isEqualNode(node))return!1;if(node.namespaceURI!==this.namespaceURI)return!1;if(node.prefix!==this.prefix)return!1;if(node.localName!==this.localName)return!1;if(node.attribs.length!==this.attribs.length)return!1;for(i=j=0,ref1=this.attribs.length-1;0<=ref1?j<=ref1:j>=ref1;i=0<=ref1?++j:--j)if(!this.attribs[i].isEqualNode(node.attribs[i]))return!1;return!0},XMLElement}(XMLNode)}.call(XMLElement)),XMLElement$1.exports}var hasRequiredXMLCharacterData,XMLCData$1={exports:{}},XMLCharacterData$1={exports:{}},XMLCharacterData=XMLCharacterData$1.exports;function requireXMLCharacterData(){return hasRequiredXMLCharacterData||(hasRequiredXMLCharacterData=1,function(){var XMLNode,hasProp={}.hasOwnProperty;XMLNode=requireXMLNode(),XMLCharacterData$1.exports=function(superClass){function XMLCharacterData(parent){XMLCharacterData.__super__.constructor.call(this,parent),this.value=""}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLCharacterData,superClass),Object.defineProperty(XMLCharacterData.prototype,"data",{get:function(){return this.value},set:function(value){return this.value=value||""}}),Object.defineProperty(XMLCharacterData.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(XMLCharacterData.prototype,"textContent",{get:function(){return this.value},set:function(value){return this.value=value||""}}),XMLCharacterData.prototype.clone=function(){return Object.create(this)},XMLCharacterData.prototype.substringData=function(offset,count){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLCharacterData.prototype.appendData=function(arg){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLCharacterData.prototype.insertData=function(offset,arg){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLCharacterData.prototype.deleteData=function(offset,count){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLCharacterData.prototype.replaceData=function(offset,count,arg){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLCharacterData.prototype.isEqualNode=function(node){return!!XMLCharacterData.__super__.isEqualNode.apply(this,arguments).isEqualNode(node)&&node.data===this.data},XMLCharacterData}(XMLNode)}.call(XMLCharacterData)),XMLCharacterData$1.exports}var hasRequiredXMLCData,XMLCData=XMLCData$1.exports;function requireXMLCData(){return hasRequiredXMLCData||(hasRequiredXMLCData=1,function(){var NodeType,XMLCharacterData,hasProp={}.hasOwnProperty;NodeType=requireNodeType(),XMLCharacterData=requireXMLCharacterData(),XMLCData$1.exports=function(superClass){function XMLCData(parent,text){if(XMLCData.__super__.constructor.call(this,parent),null==text)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=NodeType.CData,this.value=this.stringify.cdata(text)}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLCData,superClass),XMLCData.prototype.clone=function(){return Object.create(this)},XMLCData.prototype.toString=function(options){return this.options.writer.cdata(this,this.options.writer.filterOptions(options))},XMLCData}(XMLCharacterData)}.call(XMLCData)),XMLCData$1.exports}var hasRequiredXMLComment,XMLComment$1={exports:{}},XMLComment=XMLComment$1.exports;function requireXMLComment(){return hasRequiredXMLComment||(hasRequiredXMLComment=1,function(){var NodeType,XMLCharacterData,hasProp={}.hasOwnProperty;NodeType=requireNodeType(),XMLCharacterData=requireXMLCharacterData(),XMLComment$1.exports=function(superClass){function XMLComment(parent,text){if(XMLComment.__super__.constructor.call(this,parent),null==text)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=NodeType.Comment,this.value=this.stringify.comment(text)}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLComment,superClass),XMLComment.prototype.clone=function(){return Object.create(this)},XMLComment.prototype.toString=function(options){return this.options.writer.comment(this,this.options.writer.filterOptions(options))},XMLComment}(XMLCharacterData)}.call(XMLComment)),XMLComment$1.exports}var hasRequiredXMLDeclaration,XMLDeclaration$1={exports:{}},XMLDeclaration=XMLDeclaration$1.exports;function requireXMLDeclaration(){return hasRequiredXMLDeclaration||(hasRequiredXMLDeclaration=1,function(){var NodeType,XMLNode,isObject,hasProp={}.hasOwnProperty;isObject=requireUtility().isObject,XMLNode=requireXMLNode(),NodeType=requireNodeType(),XMLDeclaration$1.exports=function(superClass){function XMLDeclaration(parent,version,encoding,standalone){var ref;XMLDeclaration.__super__.constructor.call(this,parent),isObject(version)&&(version=(ref=version).version,encoding=ref.encoding,standalone=ref.standalone),version||(version="1.0"),this.type=NodeType.Declaration,this.version=this.stringify.xmlVersion(version),null!=encoding&&(this.encoding=this.stringify.xmlEncoding(encoding)),null!=standalone&&(this.standalone=this.stringify.xmlStandalone(standalone))}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLDeclaration,superClass),XMLDeclaration.prototype.toString=function(options){return this.options.writer.declaration(this,this.options.writer.filterOptions(options))},XMLDeclaration}(XMLNode)}.call(XMLDeclaration)),XMLDeclaration$1.exports}var hasRequiredXMLDTDAttList,XMLDocType$1={exports:{}},XMLDTDAttList$1={exports:{}},XMLDTDAttList=XMLDTDAttList$1.exports;function requireXMLDTDAttList(){return hasRequiredXMLDTDAttList||(hasRequiredXMLDTDAttList=1,function(){var NodeType,XMLNode,hasProp={}.hasOwnProperty;XMLNode=requireXMLNode(),NodeType=requireNodeType(),XMLDTDAttList$1.exports=function(superClass){function XMLDTDAttList(parent,elementName,attributeName,attributeType,defaultValueType,defaultValue){if(XMLDTDAttList.__super__.constructor.call(this,parent),null==elementName)throw new Error("Missing DTD element name. "+this.debugInfo());if(null==attributeName)throw new Error("Missing DTD attribute name. "+this.debugInfo(elementName));if(!attributeType)throw new Error("Missing DTD attribute type. "+this.debugInfo(elementName));if(!defaultValueType)throw new Error("Missing DTD attribute default. "+this.debugInfo(elementName));if(0!==defaultValueType.indexOf("#")&&(defaultValueType="#"+defaultValueType),!defaultValueType.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(elementName));if(defaultValue&&!defaultValueType.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(elementName));this.elementName=this.stringify.name(elementName),this.type=NodeType.AttributeDeclaration,this.attributeName=this.stringify.name(attributeName),this.attributeType=this.stringify.dtdAttType(attributeType),defaultValue&&(this.defaultValue=this.stringify.dtdAttDefault(defaultValue)),this.defaultValueType=defaultValueType}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLDTDAttList,superClass),XMLDTDAttList.prototype.toString=function(options){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(options))},XMLDTDAttList}(XMLNode)}.call(XMLDTDAttList)),XMLDTDAttList$1.exports}var hasRequiredXMLDTDEntity,XMLDTDEntity$1={exports:{}},XMLDTDEntity=XMLDTDEntity$1.exports;function requireXMLDTDEntity(){return hasRequiredXMLDTDEntity||(hasRequiredXMLDTDEntity=1,function(){var NodeType,XMLNode,isObject,hasProp={}.hasOwnProperty;isObject=requireUtility().isObject,XMLNode=requireXMLNode(),NodeType=requireNodeType(),XMLDTDEntity$1.exports=function(superClass){function XMLDTDEntity(parent,pe,name,value){if(XMLDTDEntity.__super__.constructor.call(this,parent),null==name)throw new Error("Missing DTD entity name. "+this.debugInfo(name));if(null==value)throw new Error("Missing DTD entity value. "+this.debugInfo(name));if(this.pe=!!pe,this.name=this.stringify.name(name),this.type=NodeType.EntityDeclaration,isObject(value)){if(!value.pubID&&!value.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(name));if(value.pubID&&!value.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(name));if(this.internal=!1,null!=value.pubID&&(this.pubID=this.stringify.dtdPubID(value.pubID)),null!=value.sysID&&(this.sysID=this.stringify.dtdSysID(value.sysID)),null!=value.nData&&(this.nData=this.stringify.dtdNData(value.nData)),this.pe&&this.nData)throw new Error("Notation declaration is not allowed in a parameter entity. "+this.debugInfo(name))}else this.value=this.stringify.dtdEntityValue(value),this.internal=!0}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLDTDEntity,superClass),Object.defineProperty(XMLDTDEntity.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(XMLDTDEntity.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(XMLDTDEntity.prototype,"notationName",{get:function(){return this.nData||null}}),Object.defineProperty(XMLDTDEntity.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(XMLDTDEntity.prototype,"xmlEncoding",{get:function(){return null}}),Object.defineProperty(XMLDTDEntity.prototype,"xmlVersion",{get:function(){return null}}),XMLDTDEntity.prototype.toString=function(options){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(options))},XMLDTDEntity}(XMLNode)}.call(XMLDTDEntity)),XMLDTDEntity$1.exports}var hasRequiredXMLDTDElement,XMLDTDElement$1={exports:{}},XMLDTDElement=XMLDTDElement$1.exports;function requireXMLDTDElement(){return hasRequiredXMLDTDElement||(hasRequiredXMLDTDElement=1,function(){var NodeType,XMLNode,hasProp={}.hasOwnProperty;XMLNode=requireXMLNode(),NodeType=requireNodeType(),XMLDTDElement$1.exports=function(superClass){function XMLDTDElement(parent,name,value){if(XMLDTDElement.__super__.constructor.call(this,parent),null==name)throw new Error("Missing DTD element name. "+this.debugInfo());value||(value="(#PCDATA)"),Array.isArray(value)&&(value="("+value.join(",")+")"),this.name=this.stringify.name(name),this.type=NodeType.ElementDeclaration,this.value=this.stringify.dtdElementValue(value)}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLDTDElement,superClass),XMLDTDElement.prototype.toString=function(options){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(options))},XMLDTDElement}(XMLNode)}.call(XMLDTDElement)),XMLDTDElement$1.exports}var hasRequiredXMLDTDNotation,XMLDTDNotation$1={exports:{}},XMLDTDNotation=XMLDTDNotation$1.exports;function requireXMLDTDNotation(){return hasRequiredXMLDTDNotation||(hasRequiredXMLDTDNotation=1,function(){var NodeType,XMLNode,hasProp={}.hasOwnProperty;XMLNode=requireXMLNode(),NodeType=requireNodeType(),XMLDTDNotation$1.exports=function(superClass){function XMLDTDNotation(parent,name,value){if(XMLDTDNotation.__super__.constructor.call(this,parent),null==name)throw new Error("Missing DTD notation name. "+this.debugInfo(name));if(!value.pubID&&!value.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(name));this.name=this.stringify.name(name),this.type=NodeType.NotationDeclaration,null!=value.pubID&&(this.pubID=this.stringify.dtdPubID(value.pubID)),null!=value.sysID&&(this.sysID=this.stringify.dtdSysID(value.sysID))}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLDTDNotation,superClass),Object.defineProperty(XMLDTDNotation.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(XMLDTDNotation.prototype,"systemId",{get:function(){return this.sysID}}),XMLDTDNotation.prototype.toString=function(options){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(options))},XMLDTDNotation}(XMLNode)}.call(XMLDTDNotation)),XMLDTDNotation$1.exports}var hasRequiredXMLDocType,XMLDocType=XMLDocType$1.exports;function requireXMLDocType(){return hasRequiredXMLDocType||(hasRequiredXMLDocType=1,function(){var NodeType,XMLDTDAttList,XMLDTDElement,XMLDTDEntity,XMLDTDNotation,XMLNamedNodeMap,XMLNode,isObject,hasProp={}.hasOwnProperty;isObject=requireUtility().isObject,XMLNode=requireXMLNode(),NodeType=requireNodeType(),XMLDTDAttList=requireXMLDTDAttList(),XMLDTDEntity=requireXMLDTDEntity(),XMLDTDElement=requireXMLDTDElement(),XMLDTDNotation=requireXMLDTDNotation(),XMLNamedNodeMap=requireXMLNamedNodeMap(),XMLDocType$1.exports=function(superClass){function XMLDocType(parent,pubID,sysID){var child,i,len,ref,ref1,ref2;if(XMLDocType.__super__.constructor.call(this,parent),this.type=NodeType.DocType,parent.children)for(i=0,len=(ref=parent.children).length;i<len;i++)if((child=ref[i]).type===NodeType.Element){this.name=child.name;break}this.documentObject=parent,isObject(pubID)&&(pubID=(ref1=pubID).pubID,sysID=ref1.sysID),null==sysID&&(sysID=(ref2=[pubID,sysID])[0],pubID=ref2[1]),null!=pubID&&(this.pubID=this.stringify.dtdPubID(pubID)),null!=sysID&&(this.sysID=this.stringify.dtdSysID(sysID))}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLDocType,superClass),Object.defineProperty(XMLDocType.prototype,"entities",{get:function(){var child,i,len,nodes,ref;for(nodes={},i=0,len=(ref=this.children).length;i<len;i++)(child=ref[i]).type!==NodeType.EntityDeclaration||child.pe||(nodes[child.name]=child);return new XMLNamedNodeMap(nodes)}}),Object.defineProperty(XMLDocType.prototype,"notations",{get:function(){var child,i,len,nodes,ref;for(nodes={},i=0,len=(ref=this.children).length;i<len;i++)(child=ref[i]).type===NodeType.NotationDeclaration&&(nodes[child.name]=child);return new XMLNamedNodeMap(nodes)}}),Object.defineProperty(XMLDocType.prototype,"publicId",{get:function(){return this.pubID}}),Object.defineProperty(XMLDocType.prototype,"systemId",{get:function(){return this.sysID}}),Object.defineProperty(XMLDocType.prototype,"internalSubset",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),XMLDocType.prototype.element=function(name,value){var child;return child=new XMLDTDElement(this,name,value),this.children.push(child),this},XMLDocType.prototype.attList=function(elementName,attributeName,attributeType,defaultValueType,defaultValue){var child;return child=new XMLDTDAttList(this,elementName,attributeName,attributeType,defaultValueType,defaultValue),this.children.push(child),this},XMLDocType.prototype.entity=function(name,value){var child;return child=new XMLDTDEntity(this,!1,name,value),this.children.push(child),this},XMLDocType.prototype.pEntity=function(name,value){var child;return child=new XMLDTDEntity(this,!0,name,value),this.children.push(child),this},XMLDocType.prototype.notation=function(name,value){var child;return child=new XMLDTDNotation(this,name,value),this.children.push(child),this},XMLDocType.prototype.toString=function(options){return this.options.writer.docType(this,this.options.writer.filterOptions(options))},XMLDocType.prototype.ele=function(name,value){return this.element(name,value)},XMLDocType.prototype.att=function(elementName,attributeName,attributeType,defaultValueType,defaultValue){return this.attList(elementName,attributeName,attributeType,defaultValueType,defaultValue)},XMLDocType.prototype.ent=function(name,value){return this.entity(name,value)},XMLDocType.prototype.pent=function(name,value){return this.pEntity(name,value)},XMLDocType.prototype.not=function(name,value){return this.notation(name,value)},XMLDocType.prototype.up=function(){return this.root()||this.documentObject},XMLDocType.prototype.isEqualNode=function(node){return!!XMLDocType.__super__.isEqualNode.apply(this,arguments).isEqualNode(node)&&(node.name===this.name&&(node.publicId===this.publicId&&node.systemId===this.systemId))},XMLDocType}(XMLNode)}.call(XMLDocType)),XMLDocType$1.exports}var hasRequiredXMLRaw,XMLRaw$1={exports:{}},XMLRaw=XMLRaw$1.exports;function requireXMLRaw(){return hasRequiredXMLRaw||(hasRequiredXMLRaw=1,function(){var NodeType,XMLNode,hasProp={}.hasOwnProperty;NodeType=requireNodeType(),XMLNode=requireXMLNode(),XMLRaw$1.exports=function(superClass){function XMLRaw(parent,text){if(XMLRaw.__super__.constructor.call(this,parent),null==text)throw new Error("Missing raw text. "+this.debugInfo());this.type=NodeType.Raw,this.value=this.stringify.raw(text)}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLRaw,superClass),XMLRaw.prototype.clone=function(){return Object.create(this)},XMLRaw.prototype.toString=function(options){return this.options.writer.raw(this,this.options.writer.filterOptions(options))},XMLRaw}(XMLNode)}.call(XMLRaw)),XMLRaw$1.exports}var hasRequiredXMLText,XMLText$1={exports:{}},XMLText=XMLText$1.exports;function requireXMLText(){return hasRequiredXMLText||(hasRequiredXMLText=1,function(){var NodeType,XMLCharacterData,hasProp={}.hasOwnProperty;NodeType=requireNodeType(),XMLCharacterData=requireXMLCharacterData(),XMLText$1.exports=function(superClass){function XMLText(parent,text){if(XMLText.__super__.constructor.call(this,parent),null==text)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=NodeType.Text,this.value=this.stringify.text(text)}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLText,superClass),Object.defineProperty(XMLText.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(XMLText.prototype,"wholeText",{get:function(){var next,prev,str;for(str="",prev=this.previousSibling;prev;)str=prev.data+str,prev=prev.previousSibling;for(str+=this.data,next=this.nextSibling;next;)str+=next.data,next=next.nextSibling;return str}}),XMLText.prototype.clone=function(){return Object.create(this)},XMLText.prototype.toString=function(options){return this.options.writer.text(this,this.options.writer.filterOptions(options))},XMLText.prototype.splitText=function(offset){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLText.prototype.replaceWholeText=function(content){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLText}(XMLCharacterData)}.call(XMLText)),XMLText$1.exports}var hasRequiredXMLProcessingInstruction,XMLProcessingInstruction$1={exports:{}},XMLProcessingInstruction=XMLProcessingInstruction$1.exports;function requireXMLProcessingInstruction(){return hasRequiredXMLProcessingInstruction||(hasRequiredXMLProcessingInstruction=1,function(){var NodeType,XMLCharacterData,hasProp={}.hasOwnProperty;NodeType=requireNodeType(),XMLCharacterData=requireXMLCharacterData(),XMLProcessingInstruction$1.exports=function(superClass){function XMLProcessingInstruction(parent,target,value){if(XMLProcessingInstruction.__super__.constructor.call(this,parent),null==target)throw new Error("Missing instruction target. "+this.debugInfo());this.type=NodeType.ProcessingInstruction,this.target=this.stringify.insTarget(target),this.name=this.target,value&&(this.value=this.stringify.insValue(value))}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLProcessingInstruction,superClass),XMLProcessingInstruction.prototype.clone=function(){return Object.create(this)},XMLProcessingInstruction.prototype.toString=function(options){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(options))},XMLProcessingInstruction.prototype.isEqualNode=function(node){return!!XMLProcessingInstruction.__super__.isEqualNode.apply(this,arguments).isEqualNode(node)&&node.target===this.target},XMLProcessingInstruction}(XMLCharacterData)}.call(XMLProcessingInstruction)),XMLProcessingInstruction$1.exports}var hasRequiredXMLDummy,XMLDummy$1={exports:{}},XMLDummy=XMLDummy$1.exports;function requireXMLDummy(){return hasRequiredXMLDummy||(hasRequiredXMLDummy=1,function(){var NodeType,XMLNode,hasProp={}.hasOwnProperty;XMLNode=requireXMLNode(),NodeType=requireNodeType(),XMLDummy$1.exports=function(superClass){function XMLDummy(parent){XMLDummy.__super__.constructor.call(this,parent),this.type=NodeType.Dummy}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLDummy,superClass),XMLDummy.prototype.clone=function(){return Object.create(this)},XMLDummy.prototype.toString=function(options){return""},XMLDummy}(XMLNode)}.call(XMLDummy)),XMLDummy$1.exports}var hasRequiredXMLNodeList,XMLNodeList$1={exports:{}},XMLNodeList=XMLNodeList$1.exports;function requireXMLNodeList(){return hasRequiredXMLNodeList||(hasRequiredXMLNodeList=1,function(){XMLNodeList$1.exports=function(){function XMLNodeList(nodes){this.nodes=nodes}return Object.defineProperty(XMLNodeList.prototype,"length",{get:function(){return this.nodes.length||0}}),XMLNodeList.prototype.clone=function(){return this.nodes=null},XMLNodeList.prototype.item=function(index){return this.nodes[index]||null},XMLNodeList}()}.call(XMLNodeList)),XMLNodeList$1.exports}var hasRequiredDocumentPosition,DocumentPosition$1={exports:{}},DocumentPosition=DocumentPosition$1.exports;function requireDocumentPosition(){return hasRequiredDocumentPosition||(hasRequiredDocumentPosition=1,function(){DocumentPosition$1.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}.call(DocumentPosition)),DocumentPosition$1.exports}var hasRequiredXMLNode,XMLNode=XMLNode$1.exports;function requireXMLNode(){return hasRequiredXMLNode||(hasRequiredXMLNode=1,function(){var DocumentPosition,NodeType,XMLCData,XMLComment,XMLDeclaration,XMLDocType,XMLDummy,XMLElement,XMLNodeList,XMLProcessingInstruction,XMLRaw,XMLText,getValue,isEmpty,isFunction,isObject,ref1,hasProp={}.hasOwnProperty;ref1=requireUtility(),isObject=ref1.isObject,isFunction=ref1.isFunction,isEmpty=ref1.isEmpty,getValue=ref1.getValue,XMLElement=null,XMLCData=null,XMLComment=null,XMLDeclaration=null,XMLDocType=null,XMLRaw=null,XMLText=null,XMLProcessingInstruction=null,XMLDummy=null,NodeType=null,XMLNodeList=null,DocumentPosition=null,XMLNode$1.exports=function(){function XMLNode(parent1){this.parent=parent1,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,XMLElement||(XMLElement=requireXMLElement(),XMLCData=requireXMLCData(),XMLComment=requireXMLComment(),XMLDeclaration=requireXMLDeclaration(),XMLDocType=requireXMLDocType(),XMLRaw=requireXMLRaw(),XMLText=requireXMLText(),XMLProcessingInstruction=requireXMLProcessingInstruction(),XMLDummy=requireXMLDummy(),NodeType=requireNodeType(),XMLNodeList=requireXMLNodeList(),requireXMLNamedNodeMap(),DocumentPosition=requireDocumentPosition())}return Object.defineProperty(XMLNode.prototype,"nodeName",{get:function(){return this.name}}),Object.defineProperty(XMLNode.prototype,"nodeType",{get:function(){return this.type}}),Object.defineProperty(XMLNode.prototype,"nodeValue",{get:function(){return this.value}}),Object.defineProperty(XMLNode.prototype,"parentNode",{get:function(){return this.parent}}),Object.defineProperty(XMLNode.prototype,"childNodes",{get:function(){return this.childNodeList&&this.childNodeList.nodes||(this.childNodeList=new XMLNodeList(this.children)),this.childNodeList}}),Object.defineProperty(XMLNode.prototype,"firstChild",{get:function(){return this.children[0]||null}}),Object.defineProperty(XMLNode.prototype,"lastChild",{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(XMLNode.prototype,"previousSibling",{get:function(){var i;return i=this.parent.children.indexOf(this),this.parent.children[i-1]||null}}),Object.defineProperty(XMLNode.prototype,"nextSibling",{get:function(){var i;return i=this.parent.children.indexOf(this),this.parent.children[i+1]||null}}),Object.defineProperty(XMLNode.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(XMLNode.prototype,"textContent",{get:function(){var child,j,len,ref2,str;if(this.nodeType===NodeType.Element||this.nodeType===NodeType.DocumentFragment){for(str="",j=0,len=(ref2=this.children).length;j<len;j++)(child=ref2[j]).textContent&&(str+=child.textContent);return str}return null},set:function(value){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),XMLNode.prototype.setParent=function(parent){var child,j,len,ref2,results;for(this.parent=parent,parent&&(this.options=parent.options,this.stringify=parent.stringify),results=[],j=0,len=(ref2=this.children).length;j<len;j++)child=ref2[j],results.push(child.setParent(this));return results},XMLNode.prototype.element=function(name,attributes,text){var childNode,item,j,k,key,lastChild,len,len1,ref2,ref3,val;if(lastChild=null,null===attributes&&null==text&&(attributes=(ref2=[{},null])[0],text=ref2[1]),null==attributes&&(attributes={}),attributes=getValue(attributes),isObject(attributes)||(text=(ref3=[attributes,text])[0],attributes=ref3[1]),null!=name&&(name=getValue(name)),Array.isArray(name))for(j=0,len=name.length;j<len;j++)item=name[j],lastChild=this.element(item);else if(isFunction(name))lastChild=this.element(name.apply());else if(isObject(name)){for(key in name)if(hasProp.call(name,key))if(val=name[key],isFunction(val)&&(val=val.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&0===key.indexOf(this.stringify.convertAttKey))lastChild=this.attribute(key.substr(this.stringify.convertAttKey.length),val);else if(!this.options.separateArrayItems&&Array.isArray(val)&&isEmpty(val))lastChild=this.dummy();else if(isObject(val)&&isEmpty(val))lastChild=this.element(key);else if(this.options.keepNullNodes||null!=val)if(!this.options.separateArrayItems&&Array.isArray(val))for(k=0,len1=val.length;k<len1;k++)item=val[k],(childNode={})[key]=item,lastChild=this.element(childNode);else isObject(val)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===key.indexOf(this.stringify.convertTextKey)?lastChild=this.element(val):(lastChild=this.element(key)).element(val):lastChild=this.element(key,val);else lastChild=this.dummy()}else lastChild=this.options.keepNullNodes||null!==text?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&0===name.indexOf(this.stringify.convertTextKey)?this.text(text):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&0===name.indexOf(this.stringify.convertCDataKey)?this.cdata(text):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&0===name.indexOf(this.stringify.convertCommentKey)?this.comment(text):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&0===name.indexOf(this.stringify.convertRawKey)?this.raw(text):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&0===name.indexOf(this.stringify.convertPIKey)?this.instruction(name.substr(this.stringify.convertPIKey.length),text):this.node(name,attributes,text):this.dummy();if(null==lastChild)throw new Error("Could not create any elements with: "+name+". "+this.debugInfo());return lastChild},XMLNode.prototype.insertBefore=function(name,attributes,text){var child,i,newChild,refChild,removed;if(null!=name?name.type:void 0)return refChild=attributes,(newChild=name).setParent(this),refChild?(i=children.indexOf(refChild),removed=children.splice(i),children.push(newChild),Array.prototype.push.apply(children,removed)):children.push(newChild),newChild;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(name));return i=this.parent.children.indexOf(this),removed=this.parent.children.splice(i),child=this.parent.element(name,attributes,text),Array.prototype.push.apply(this.parent.children,removed),child},XMLNode.prototype.insertAfter=function(name,attributes,text){var child,i,removed;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(name));return i=this.parent.children.indexOf(this),removed=this.parent.children.splice(i+1),child=this.parent.element(name,attributes,text),Array.prototype.push.apply(this.parent.children,removed),child},XMLNode.prototype.remove=function(){var i;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return i=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[i,i-i+1].concat([])),this.parent},XMLNode.prototype.node=function(name,attributes,text){var child,ref2;return null!=name&&(name=getValue(name)),attributes||(attributes={}),attributes=getValue(attributes),isObject(attributes)||(text=(ref2=[attributes,text])[0],attributes=ref2[1]),child=new XMLElement(this,name,attributes),null!=text&&child.text(text),this.children.push(child),child},XMLNode.prototype.text=function(value){var child;return isObject(value)&&this.element(value),child=new XMLText(this,value),this.children.push(child),this},XMLNode.prototype.cdata=function(value){var child;return child=new XMLCData(this,value),this.children.push(child),this},XMLNode.prototype.comment=function(value){var child;return child=new XMLComment(this,value),this.children.push(child),this},XMLNode.prototype.commentBefore=function(value){var i,removed;return i=this.parent.children.indexOf(this),removed=this.parent.children.splice(i),this.parent.comment(value),Array.prototype.push.apply(this.parent.children,removed),this},XMLNode.prototype.commentAfter=function(value){var i,removed;return i=this.parent.children.indexOf(this),removed=this.parent.children.splice(i+1),this.parent.comment(value),Array.prototype.push.apply(this.parent.children,removed),this},XMLNode.prototype.raw=function(value){var child;return child=new XMLRaw(this,value),this.children.push(child),this},XMLNode.prototype.dummy=function(){return new XMLDummy(this)},XMLNode.prototype.instruction=function(target,value){var insTarget,insValue,instruction,j,len;if(null!=target&&(target=getValue(target)),null!=value&&(value=getValue(value)),Array.isArray(target))for(j=0,len=target.length;j<len;j++)insTarget=target[j],this.instruction(insTarget);else if(isObject(target))for(insTarget in target)hasProp.call(target,insTarget)&&(insValue=target[insTarget],this.instruction(insTarget,insValue));else isFunction(value)&&(value=value.apply()),instruction=new XMLProcessingInstruction(this,target,value),this.children.push(instruction);return this},XMLNode.prototype.instructionBefore=function(target,value){var i,removed;return i=this.parent.children.indexOf(this),removed=this.parent.children.splice(i),this.parent.instruction(target,value),Array.prototype.push.apply(this.parent.children,removed),this},XMLNode.prototype.instructionAfter=function(target,value){var i,removed;return i=this.parent.children.indexOf(this),removed=this.parent.children.splice(i+1),this.parent.instruction(target,value),Array.prototype.push.apply(this.parent.children,removed),this},XMLNode.prototype.declaration=function(version,encoding,standalone){var doc,xmldec;return doc=this.document(),xmldec=new XMLDeclaration(doc,version,encoding,standalone),0===doc.children.length?doc.children.unshift(xmldec):doc.children[0].type===NodeType.Declaration?doc.children[0]=xmldec:doc.children.unshift(xmldec),doc.root()||doc},XMLNode.prototype.dtd=function(pubID,sysID){var doc,doctype,i,j,k,len,len1,ref2,ref3;for(doc=this.document(),doctype=new XMLDocType(doc,pubID,sysID),i=j=0,len=(ref2=doc.children).length;j<len;i=++j)if(ref2[i].type===NodeType.DocType)return doc.children[i]=doctype,doctype;for(i=k=0,len1=(ref3=doc.children).length;k<len1;i=++k)if(ref3[i].isRoot)return doc.children.splice(i,0,doctype),doctype;return doc.children.push(doctype),doctype},XMLNode.prototype.up=function(){if(this.isRoot)throw new Error("The root node has no parent. Use doc() if you need to get the document object.");return this.parent},XMLNode.prototype.root=function(){var node;for(node=this;node;){if(node.type===NodeType.Document)return node.rootObject;if(node.isRoot)return node;node=node.parent}},XMLNode.prototype.document=function(){var node;for(node=this;node;){if(node.type===NodeType.Document)return node;node=node.parent}},XMLNode.prototype.end=function(options){return this.document().end(options)},XMLNode.prototype.prev=function(){var i;if((i=this.parent.children.indexOf(this))<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[i-1]},XMLNode.prototype.next=function(){var i;if(-1===(i=this.parent.children.indexOf(this))||i===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[i+1]},XMLNode.prototype.importDocument=function(doc){var clonedRoot;return(clonedRoot=doc.root().clone()).parent=this,clonedRoot.isRoot=!1,this.children.push(clonedRoot),this},XMLNode.prototype.debugInfo=function(name){var ref2,ref3;return null!=(name=name||this.name)||(null!=(ref2=this.parent)?ref2.name:void 0)?null==name?"parent: <"+this.parent.name+">":(null!=(ref3=this.parent)?ref3.name:void 0)?"node: <"+name+">, parent: <"+this.parent.name+">":"node: <"+name+">":""},XMLNode.prototype.ele=function(name,attributes,text){return this.element(name,attributes,text)},XMLNode.prototype.nod=function(name,attributes,text){return this.node(name,attributes,text)},XMLNode.prototype.txt=function(value){return this.text(value)},XMLNode.prototype.dat=function(value){return this.cdata(value)},XMLNode.prototype.com=function(value){return this.comment(value)},XMLNode.prototype.ins=function(target,value){return this.instruction(target,value)},XMLNode.prototype.doc=function(){return this.document()},XMLNode.prototype.dec=function(version,encoding,standalone){return this.declaration(version,encoding,standalone)},XMLNode.prototype.e=function(name,attributes,text){return this.element(name,attributes,text)},XMLNode.prototype.n=function(name,attributes,text){return this.node(name,attributes,text)},XMLNode.prototype.t=function(value){return this.text(value)},XMLNode.prototype.d=function(value){return this.cdata(value)},XMLNode.prototype.c=function(value){return this.comment(value)},XMLNode.prototype.r=function(value){return this.raw(value)},XMLNode.prototype.i=function(target,value){return this.instruction(target,value)},XMLNode.prototype.u=function(){return this.up()},XMLNode.prototype.importXMLBuilder=function(doc){return this.importDocument(doc)},XMLNode.prototype.replaceChild=function(newChild,oldChild){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.removeChild=function(oldChild){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.appendChild=function(newChild){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.hasChildNodes=function(){return 0!==this.children.length},XMLNode.prototype.cloneNode=function(deep){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.normalize=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.isSupported=function(feature,version){return!0},XMLNode.prototype.hasAttributes=function(){return 0!==this.attribs.length},XMLNode.prototype.compareDocumentPosition=function(other){var res;return this===other?0:this.document()!==other.document()?(res=DocumentPosition.Disconnected|DocumentPosition.ImplementationSpecific,Math.random()<.5?res|=DocumentPosition.Preceding:res|=DocumentPosition.Following,res):this.isAncestor(other)?DocumentPosition.Contains|DocumentPosition.Preceding:this.isDescendant(other)?DocumentPosition.Contains|DocumentPosition.Following:this.isPreceding(other)?DocumentPosition.Preceding:DocumentPosition.Following},XMLNode.prototype.isSameNode=function(other){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.lookupPrefix=function(namespaceURI){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.isDefaultNamespace=function(namespaceURI){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.lookupNamespaceURI=function(prefix){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.isEqualNode=function(node){var i,j,ref2;if(node.nodeType!==this.nodeType)return!1;if(node.children.length!==this.children.length)return!1;for(i=j=0,ref2=this.children.length-1;0<=ref2?j<=ref2:j>=ref2;i=0<=ref2?++j:--j)if(!this.children[i].isEqualNode(node.children[i]))return!1;return!0},XMLNode.prototype.getFeature=function(feature,version){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.setUserData=function(key,data,handler){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.getUserData=function(key){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLNode.prototype.contains=function(other){return!!other&&(other===this||this.isDescendant(other))},XMLNode.prototype.isDescendant=function(node){var child,j,len,ref2;for(j=0,len=(ref2=this.children).length;j<len;j++){if(node===(child=ref2[j]))return!0;if(child.isDescendant(node))return!0}return!1},XMLNode.prototype.isAncestor=function(node){return node.isDescendant(this)},XMLNode.prototype.isPreceding=function(node){var nodePos,thisPos;return nodePos=this.treePosition(node),thisPos=this.treePosition(this),-1!==nodePos&&-1!==thisPos&&nodePos<thisPos},XMLNode.prototype.isFollowing=function(node){var nodePos,thisPos;return nodePos=this.treePosition(node),thisPos=this.treePosition(this),-1!==nodePos&&-1!==thisPos&&nodePos>thisPos},XMLNode.prototype.treePosition=function(node){var found,pos;return pos=0,found=!1,this.foreachTreeNode(this.document(),(function(childNode){if(pos++,!found&&childNode===node)return found=!0})),found?pos:-1},XMLNode.prototype.foreachTreeNode=function(node,func){var child,j,len,ref2,res;for(node||(node=this.document()),j=0,len=(ref2=node.children).length;j<len;j++){if(res=func(child=ref2[j]))return res;if(res=this.foreachTreeNode(child,func))return res}},XMLNode}()}.call(XMLNode)),XMLNode$1.exports}var hasRequiredXMLStringifier,XMLStringifier$1={exports:{}},XMLStringifier=XMLStringifier$1.exports;function requireXMLStringifier(){return hasRequiredXMLStringifier||(hasRequiredXMLStringifier=1,function(){var bind=function(fn,me){return function(){return fn.apply(me,arguments)}},hasProp={}.hasOwnProperty;XMLStringifier$1.exports=function(){function XMLStringifier(options){var key,ref,value;for(key in this.assertLegalName=bind(this.assertLegalName,this),this.assertLegalChar=bind(this.assertLegalChar,this),options||(options={}),this.options=options,this.options.version||(this.options.version="1.0"),ref=options.stringify||{})hasProp.call(ref,key)&&(value=ref[key],this[key]=value)}return XMLStringifier.prototype.name=function(val){return this.options.noValidation?val:this.assertLegalName(""+val||"")},XMLStringifier.prototype.text=function(val){return this.options.noValidation?val:this.assertLegalChar(this.textEscape(""+val||""))},XMLStringifier.prototype.cdata=function(val){return this.options.noValidation?val:(val=(val=""+val||"").replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(val))},XMLStringifier.prototype.comment=function(val){if(this.options.noValidation)return val;if((val=""+val||"").match(/--/))throw new Error("Comment text cannot contain double-hypen: "+val);return this.assertLegalChar(val)},XMLStringifier.prototype.raw=function(val){return this.options.noValidation?val:""+val||""},XMLStringifier.prototype.attValue=function(val){return this.options.noValidation?val:this.assertLegalChar(this.attEscape(val=""+val||""))},XMLStringifier.prototype.insTarget=function(val){return this.options.noValidation?val:this.assertLegalChar(""+val||"")},XMLStringifier.prototype.insValue=function(val){if(this.options.noValidation)return val;if((val=""+val||"").match(/\?>/))throw new Error("Invalid processing instruction value: "+val);return this.assertLegalChar(val)},XMLStringifier.prototype.xmlVersion=function(val){if(this.options.noValidation)return val;if(!(val=""+val||"").match(/1\.[0-9]+/))throw new Error("Invalid version number: "+val);return val},XMLStringifier.prototype.xmlEncoding=function(val){if(this.options.noValidation)return val;if(!(val=""+val||"").match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+val);return this.assertLegalChar(val)},XMLStringifier.prototype.xmlStandalone=function(val){return this.options.noValidation?val:val?"yes":"no"},XMLStringifier.prototype.dtdPubID=function(val){return this.options.noValidation?val:this.assertLegalChar(""+val||"")},XMLStringifier.prototype.dtdSysID=function(val){return this.options.noValidation?val:this.assertLegalChar(""+val||"")},XMLStringifier.prototype.dtdElementValue=function(val){return this.options.noValidation?val:this.assertLegalChar(""+val||"")},XMLStringifier.prototype.dtdAttType=function(val){return this.options.noValidation?val:this.assertLegalChar(""+val||"")},XMLStringifier.prototype.dtdAttDefault=function(val){return this.options.noValidation?val:this.assertLegalChar(""+val||"")},XMLStringifier.prototype.dtdEntityValue=function(val){return this.options.noValidation?val:this.assertLegalChar(""+val||"")},XMLStringifier.prototype.dtdNData=function(val){return this.options.noValidation?val:this.assertLegalChar(""+val||"")},XMLStringifier.prototype.convertAttKey="@",XMLStringifier.prototype.convertPIKey="?",XMLStringifier.prototype.convertTextKey="#text",XMLStringifier.prototype.convertCDataKey="#cdata",XMLStringifier.prototype.convertCommentKey="#comment",XMLStringifier.prototype.convertRawKey="#raw",XMLStringifier.prototype.assertLegalChar=function(str){var regex,res;if(this.options.noValidation)return str;if(regex="","1.0"===this.options.version){if(regex=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,res=str.match(regex))throw new Error("Invalid character in string: "+str+" at index "+res.index)}else if("1.1"===this.options.version&&(regex=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,res=str.match(regex)))throw new Error("Invalid character in string: "+str+" at index "+res.index);return str},XMLStringifier.prototype.assertLegalName=function(str){var regex;if(this.options.noValidation)return str;if(this.assertLegalChar(str),regex=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!str.match(regex))throw new Error("Invalid character in name");return str},XMLStringifier.prototype.textEscape=function(str){var ampregex;return this.options.noValidation?str:(ampregex=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,str.replace(ampregex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},XMLStringifier.prototype.attEscape=function(str){var ampregex;return this.options.noValidation?str:(ampregex=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,str.replace(ampregex,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},XMLStringifier}()}.call(XMLStringifier)),XMLStringifier$1.exports}var hasRequiredWriterState,XMLStringWriter$1={exports:{}},XMLWriterBase$1={exports:{}},WriterState$1={exports:{}},WriterState=WriterState$1.exports;function requireWriterState(){return hasRequiredWriterState||(hasRequiredWriterState=1,function(){WriterState$1.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}.call(WriterState)),WriterState$1.exports}var hasRequiredXMLWriterBase,XMLWriterBase=XMLWriterBase$1.exports;function requireXMLWriterBase(){return hasRequiredXMLWriterBase||(hasRequiredXMLWriterBase=1,function(){var NodeType,WriterState,assign,hasProp={}.hasOwnProperty;assign=requireUtility().assign,NodeType=requireNodeType(),requireXMLDeclaration(),requireXMLDocType(),requireXMLCData(),requireXMLComment(),requireXMLElement(),requireXMLRaw(),requireXMLText(),requireXMLProcessingInstruction(),requireXMLDummy(),requireXMLDTDAttList(),requireXMLDTDElement(),requireXMLDTDEntity(),requireXMLDTDNotation(),WriterState=requireWriterState(),XMLWriterBase$1.exports=function(){function XMLWriterBase(options){var key,ref,value;for(key in options||(options={}),this.options=options,ref=options.writer||{})hasProp.call(ref,key)&&(value=ref[key],this["_"+key]=this[key],this[key]=value)}return XMLWriterBase.prototype.filterOptions=function(options){var filteredOptions,ref,ref1,ref2,ref3,ref4,ref5,ref6;return options||(options={}),options=assign({},this.options,options),(filteredOptions={writer:this}).pretty=options.pretty||!1,filteredOptions.allowEmpty=options.allowEmpty||!1,filteredOptions.indent=null!=(ref=options.indent)?ref:" ",filteredOptions.newline=null!=(ref1=options.newline)?ref1:"\n",filteredOptions.offset=null!=(ref2=options.offset)?ref2:0,filteredOptions.dontPrettyTextNodes=null!=(ref3=null!=(ref4=options.dontPrettyTextNodes)?ref4:options.dontprettytextnodes)?ref3:0,filteredOptions.spaceBeforeSlash=null!=(ref5=null!=(ref6=options.spaceBeforeSlash)?ref6:options.spacebeforeslash)?ref5:"",!0===filteredOptions.spaceBeforeSlash&&(filteredOptions.spaceBeforeSlash=" "),filteredOptions.suppressPrettyCount=0,filteredOptions.user={},filteredOptions.state=WriterState.None,filteredOptions},XMLWriterBase.prototype.indent=function(node,options,level){var indentLevel;return!options.pretty||options.suppressPrettyCount?"":options.pretty&&(indentLevel=(level||0)+options.offset+1)>0?new Array(indentLevel).join(options.indent):""},XMLWriterBase.prototype.endline=function(node,options,level){return!options.pretty||options.suppressPrettyCount?"":options.newline},XMLWriterBase.prototype.attribute=function(att,options,level){var r;return this.openAttribute(att,options,level),r=" "+att.name+'="'+att.value+'"',this.closeAttribute(att,options,level),r},XMLWriterBase.prototype.cdata=function(node,options,level){var r;return this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level)+"<![CDATA[",options.state=WriterState.InsideTag,r+=node.value,options.state=WriterState.CloseTag,r+="]]>"+this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.comment=function(node,options,level){var r;return this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level)+"\x3c!-- ",options.state=WriterState.InsideTag,r+=node.value,options.state=WriterState.CloseTag,r+=" --\x3e"+this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.declaration=function(node,options,level){var r;return this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level)+"<?xml",options.state=WriterState.InsideTag,r+=' version="'+node.version+'"',null!=node.encoding&&(r+=' encoding="'+node.encoding+'"'),null!=node.standalone&&(r+=' standalone="'+node.standalone+'"'),options.state=WriterState.CloseTag,r+=options.spaceBeforeSlash+"?>",r+=this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.docType=function(node,options,level){var child,i,len,r,ref;if(level||(level=0),this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level),r+="<!DOCTYPE "+node.root().name,node.pubID&&node.sysID?r+=' PUBLIC "'+node.pubID+'" "'+node.sysID+'"':node.sysID&&(r+=' SYSTEM "'+node.sysID+'"'),node.children.length>0){for(r+=" [",r+=this.endline(node,options,level),options.state=WriterState.InsideTag,i=0,len=(ref=node.children).length;i<len;i++)child=ref[i],r+=this.writeChildNode(child,options,level+1);options.state=WriterState.CloseTag,r+="]"}return options.state=WriterState.CloseTag,r+=options.spaceBeforeSlash+">",r+=this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.element=function(node,options,level){var att,child,childNodeCount,firstChildNode,i,j,len,len1,name,prettySuppressed,r,ref,ref1,ref2;for(name in level||(level=0),prettySuppressed=!1,r="",this.openNode(node,options,level),options.state=WriterState.OpenTag,r+=this.indent(node,options,level)+"<"+node.name,ref=node.attribs)hasProp.call(ref,name)&&(att=ref[name],r+=this.attribute(att,options,level));if(firstChildNode=0===(childNodeCount=node.children.length)?null:node.children[0],0===childNodeCount||node.children.every((function(e){return(e.type===NodeType.Text||e.type===NodeType.Raw)&&""===e.value})))options.allowEmpty?(r+=">",options.state=WriterState.CloseTag,r+="</"+node.name+">"+this.endline(node,options,level)):(options.state=WriterState.CloseTag,r+=options.spaceBeforeSlash+"/>"+this.endline(node,options,level));else if(!options.pretty||1!==childNodeCount||firstChildNode.type!==NodeType.Text&&firstChildNode.type!==NodeType.Raw||null==firstChildNode.value){if(options.dontPrettyTextNodes)for(i=0,len=(ref1=node.children).length;i<len;i++)if(((child=ref1[i]).type===NodeType.Text||child.type===NodeType.Raw)&&null!=child.value){options.suppressPrettyCount++,prettySuppressed=!0;break}for(r+=">"+this.endline(node,options,level),options.state=WriterState.InsideTag,j=0,len1=(ref2=node.children).length;j<len1;j++)child=ref2[j],r+=this.writeChildNode(child,options,level+1);options.state=WriterState.CloseTag,r+=this.indent(node,options,level)+"</"+node.name+">",prettySuppressed&&options.suppressPrettyCount--,r+=this.endline(node,options,level),options.state=WriterState.None}else r+=">",options.state=WriterState.InsideTag,options.suppressPrettyCount++,prettySuppressed=!0,r+=this.writeChildNode(firstChildNode,options,level+1),options.suppressPrettyCount--,prettySuppressed=!1,options.state=WriterState.CloseTag,r+="</"+node.name+">"+this.endline(node,options,level);return this.closeNode(node,options,level),r},XMLWriterBase.prototype.writeChildNode=function(node,options,level){switch(node.type){case NodeType.CData:return this.cdata(node,options,level);case NodeType.Comment:return this.comment(node,options,level);case NodeType.Element:return this.element(node,options,level);case NodeType.Raw:return this.raw(node,options,level);case NodeType.Text:return this.text(node,options,level);case NodeType.ProcessingInstruction:return this.processingInstruction(node,options,level);case NodeType.Dummy:return"";case NodeType.Declaration:return this.declaration(node,options,level);case NodeType.DocType:return this.docType(node,options,level);case NodeType.AttributeDeclaration:return this.dtdAttList(node,options,level);case NodeType.ElementDeclaration:return this.dtdElement(node,options,level);case NodeType.EntityDeclaration:return this.dtdEntity(node,options,level);case NodeType.NotationDeclaration:return this.dtdNotation(node,options,level);default:throw new Error("Unknown XML node type: "+node.constructor.name)}},XMLWriterBase.prototype.processingInstruction=function(node,options,level){var r;return this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level)+"<?",options.state=WriterState.InsideTag,r+=node.target,node.value&&(r+=" "+node.value),options.state=WriterState.CloseTag,r+=options.spaceBeforeSlash+"?>",r+=this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.raw=function(node,options,level){var r;return this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level),options.state=WriterState.InsideTag,r+=node.value,options.state=WriterState.CloseTag,r+=this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.text=function(node,options,level){var r;return this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level),options.state=WriterState.InsideTag,r+=node.value,options.state=WriterState.CloseTag,r+=this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.dtdAttList=function(node,options,level){var r;return this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level)+"<!ATTLIST",options.state=WriterState.InsideTag,r+=" "+node.elementName+" "+node.attributeName+" "+node.attributeType,"#DEFAULT"!==node.defaultValueType&&(r+=" "+node.defaultValueType),node.defaultValue&&(r+=' "'+node.defaultValue+'"'),options.state=WriterState.CloseTag,r+=options.spaceBeforeSlash+">"+this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.dtdElement=function(node,options,level){var r;return this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level)+"<!ELEMENT",options.state=WriterState.InsideTag,r+=" "+node.name+" "+node.value,options.state=WriterState.CloseTag,r+=options.spaceBeforeSlash+">"+this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.dtdEntity=function(node,options,level){var r;return this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level)+"<!ENTITY",options.state=WriterState.InsideTag,node.pe&&(r+=" %"),r+=" "+node.name,node.value?r+=' "'+node.value+'"':(node.pubID&&node.sysID?r+=' PUBLIC "'+node.pubID+'" "'+node.sysID+'"':node.sysID&&(r+=' SYSTEM "'+node.sysID+'"'),node.nData&&(r+=" NDATA "+node.nData)),options.state=WriterState.CloseTag,r+=options.spaceBeforeSlash+">"+this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.dtdNotation=function(node,options,level){var r;return this.openNode(node,options,level),options.state=WriterState.OpenTag,r=this.indent(node,options,level)+"<!NOTATION",options.state=WriterState.InsideTag,r+=" "+node.name,node.pubID&&node.sysID?r+=' PUBLIC "'+node.pubID+'" "'+node.sysID+'"':node.pubID?r+=' PUBLIC "'+node.pubID+'"':node.sysID&&(r+=' SYSTEM "'+node.sysID+'"'),options.state=WriterState.CloseTag,r+=options.spaceBeforeSlash+">"+this.endline(node,options,level),options.state=WriterState.None,this.closeNode(node,options,level),r},XMLWriterBase.prototype.openNode=function(node,options,level){},XMLWriterBase.prototype.closeNode=function(node,options,level){},XMLWriterBase.prototype.openAttribute=function(att,options,level){},XMLWriterBase.prototype.closeAttribute=function(att,options,level){},XMLWriterBase}()}.call(XMLWriterBase)),XMLWriterBase$1.exports}var hasRequiredXMLStringWriter,XMLStringWriter=XMLStringWriter$1.exports;function requireXMLStringWriter(){return hasRequiredXMLStringWriter||(hasRequiredXMLStringWriter=1,function(){var XMLWriterBase,hasProp={}.hasOwnProperty;XMLWriterBase=requireXMLWriterBase(),XMLStringWriter$1.exports=function(superClass){function XMLStringWriter(options){XMLStringWriter.__super__.constructor.call(this,options)}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLStringWriter,superClass),XMLStringWriter.prototype.document=function(doc,options){var child,i,len,r,ref;for(options=this.filterOptions(options),r="",i=0,len=(ref=doc.children).length;i<len;i++)child=ref[i],r+=this.writeChildNode(child,options,0);return options.pretty&&r.slice(-options.newline.length)===options.newline&&(r=r.slice(0,-options.newline.length)),r},XMLStringWriter}(XMLWriterBase)}.call(XMLStringWriter)),XMLStringWriter$1.exports}var hasRequiredXMLDocument,XMLDocument=XMLDocument$1.exports;function requireXMLDocument(){return hasRequiredXMLDocument||(hasRequiredXMLDocument=1,function(){var NodeType,XMLDOMConfiguration,XMLDOMImplementation,XMLNode,XMLStringWriter,XMLStringifier,isPlainObject,hasProp={}.hasOwnProperty;isPlainObject=requireUtility().isPlainObject,XMLDOMImplementation=requireXMLDOMImplementation(),XMLDOMConfiguration=requireXMLDOMConfiguration(),XMLNode=requireXMLNode(),NodeType=requireNodeType(),XMLStringifier=requireXMLStringifier(),XMLStringWriter=requireXMLStringWriter(),XMLDocument$1.exports=function(superClass){function XMLDocument(options){XMLDocument.__super__.constructor.call(this,null),this.name="#document",this.type=NodeType.Document,this.documentURI=null,this.domConfig=new XMLDOMConfiguration,options||(options={}),options.writer||(options.writer=new XMLStringWriter),this.options=options,this.stringify=new XMLStringifier(options)}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLDocument,superClass),Object.defineProperty(XMLDocument.prototype,"implementation",{value:new XMLDOMImplementation}),Object.defineProperty(XMLDocument.prototype,"doctype",{get:function(){var child,i,len,ref;for(i=0,len=(ref=this.children).length;i<len;i++)if((child=ref[i]).type===NodeType.DocType)return child;return null}}),Object.defineProperty(XMLDocument.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(XMLDocument.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(XMLDocument.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(XMLDocument.prototype,"xmlEncoding",{get:function(){return 0!==this.children.length&&this.children[0].type===NodeType.Declaration?this.children[0].encoding:null}}),Object.defineProperty(XMLDocument.prototype,"xmlStandalone",{get:function(){return 0!==this.children.length&&this.children[0].type===NodeType.Declaration&&"yes"===this.children[0].standalone}}),Object.defineProperty(XMLDocument.prototype,"xmlVersion",{get:function(){return 0!==this.children.length&&this.children[0].type===NodeType.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(XMLDocument.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(XMLDocument.prototype,"origin",{get:function(){return null}}),Object.defineProperty(XMLDocument.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(XMLDocument.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(XMLDocument.prototype,"contentType",{get:function(){return null}}),XMLDocument.prototype.end=function(writer){var writerOptions;return writerOptions={},writer?isPlainObject(writer)&&(writerOptions=writer,writer=this.options.writer):writer=this.options.writer,writer.document(this,writer.filterOptions(writerOptions))},XMLDocument.prototype.toString=function(options){return this.options.writer.document(this,this.options.writer.filterOptions(options))},XMLDocument.prototype.createElement=function(tagName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createTextNode=function(data){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createComment=function(data){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createCDATASection=function(data){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createProcessingInstruction=function(target,data){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createAttribute=function(name){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createEntityReference=function(name){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.getElementsByTagName=function(tagname){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.importNode=function(importedNode,deep){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createElementNS=function(namespaceURI,qualifiedName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createAttributeNS=function(namespaceURI,qualifiedName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.getElementsByTagNameNS=function(namespaceURI,localName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.getElementById=function(elementId){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.adoptNode=function(source){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.renameNode=function(node,namespaceURI,qualifiedName){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.getElementsByClassName=function(classNames){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createEvent=function(eventInterface){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createNodeIterator=function(root,whatToShow,filter){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument.prototype.createTreeWalker=function(root,whatToShow,filter){throw new Error("This DOM method is not implemented."+this.debugInfo())},XMLDocument}(XMLNode)}.call(XMLDocument)),XMLDocument$1.exports}var hasRequiredXMLDocumentCB,XMLDocumentCB$1={exports:{}},XMLDocumentCB=XMLDocumentCB$1.exports;function requireXMLDocumentCB(){return hasRequiredXMLDocumentCB||(hasRequiredXMLDocumentCB=1,function(){var NodeType,WriterState,XMLAttribute,XMLCData,XMLComment,XMLDTDAttList,XMLDTDElement,XMLDTDEntity,XMLDTDNotation,XMLDeclaration,XMLDocType,XMLDocument,XMLElement,XMLProcessingInstruction,XMLRaw,XMLStringWriter,XMLStringifier,XMLText,getValue,isFunction,isObject,isPlainObject,ref,hasProp={}.hasOwnProperty;ref=requireUtility(),isObject=ref.isObject,isFunction=ref.isFunction,isPlainObject=ref.isPlainObject,getValue=ref.getValue,NodeType=requireNodeType(),XMLDocument=requireXMLDocument(),XMLElement=requireXMLElement(),XMLCData=requireXMLCData(),XMLComment=requireXMLComment(),XMLRaw=requireXMLRaw(),XMLText=requireXMLText(),XMLProcessingInstruction=requireXMLProcessingInstruction(),XMLDeclaration=requireXMLDeclaration(),XMLDocType=requireXMLDocType(),XMLDTDAttList=requireXMLDTDAttList(),XMLDTDEntity=requireXMLDTDEntity(),XMLDTDElement=requireXMLDTDElement(),XMLDTDNotation=requireXMLDTDNotation(),XMLAttribute=requireXMLAttribute(),XMLStringifier=requireXMLStringifier(),XMLStringWriter=requireXMLStringWriter(),WriterState=requireWriterState(),XMLDocumentCB$1.exports=function(){function XMLDocumentCB(options,onData,onEnd){var writerOptions;this.name="?xml",this.type=NodeType.Document,options||(options={}),writerOptions={},options.writer?isPlainObject(options.writer)&&(writerOptions=options.writer,options.writer=new XMLStringWriter):options.writer=new XMLStringWriter,this.options=options,this.writer=options.writer,this.writerOptions=this.writer.filterOptions(writerOptions),this.stringify=new XMLStringifier(options),this.onDataCallback=onData||function(){},this.onEndCallback=onEnd||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return XMLDocumentCB.prototype.createChildNode=function(node){var att,attName,attributes,child,i,len,ref1,ref2;switch(node.type){case NodeType.CData:this.cdata(node.value);break;case NodeType.Comment:this.comment(node.value);break;case NodeType.Element:for(attName in attributes={},ref1=node.attribs)hasProp.call(ref1,attName)&&(att=ref1[attName],attributes[attName]=att.value);this.node(node.name,attributes);break;case NodeType.Dummy:this.dummy();break;case NodeType.Raw:this.raw(node.value);break;case NodeType.Text:this.text(node.value);break;case NodeType.ProcessingInstruction:this.instruction(node.target,node.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+node.constructor.name)}for(i=0,len=(ref2=node.children).length;i<len;i++)child=ref2[i],this.createChildNode(child),child.type===NodeType.Element&&this.up();return this},XMLDocumentCB.prototype.dummy=function(){return this},XMLDocumentCB.prototype.node=function(name,attributes,text){var ref1;if(null==name)throw new Error("Missing node name.");if(this.root&&-1===this.currentLevel)throw new Error("Document can only have one root node. "+this.debugInfo(name));return this.openCurrent(),name=getValue(name),null==attributes&&(attributes={}),attributes=getValue(attributes),isObject(attributes)||(text=(ref1=[attributes,text])[0],attributes=ref1[1]),this.currentNode=new XMLElement(this,name,attributes),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,null!=text&&this.text(text),this},XMLDocumentCB.prototype.element=function(name,attributes,text){var child,i,len,oldValidationFlag,ref1,root;if(this.currentNode&&this.currentNode.type===NodeType.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(name)||isObject(name)||isFunction(name))for(oldValidationFlag=this.options.noValidation,this.options.noValidation=!0,(root=new XMLDocument(this.options).element("TEMP_ROOT")).element(name),this.options.noValidation=oldValidationFlag,i=0,len=(ref1=root.children).length;i<len;i++)child=ref1[i],this.createChildNode(child),child.type===NodeType.Element&&this.up();else this.node(name,attributes,text);return this},XMLDocumentCB.prototype.attribute=function(name,value){var attName,attValue;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(name));if(null!=name&&(name=getValue(name)),isObject(name))for(attName in name)hasProp.call(name,attName)&&(attValue=name[attName],this.attribute(attName,attValue));else isFunction(value)&&(value=value.apply()),this.options.keepNullAttributes&&null==value?this.currentNode.attribs[name]=new XMLAttribute(this,name,""):null!=value&&(this.currentNode.attribs[name]=new XMLAttribute(this,name,value));return this},XMLDocumentCB.prototype.text=function(value){var node;return this.openCurrent(),node=new XMLText(this,value),this.onData(this.writer.text(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},XMLDocumentCB.prototype.cdata=function(value){var node;return this.openCurrent(),node=new XMLCData(this,value),this.onData(this.writer.cdata(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},XMLDocumentCB.prototype.comment=function(value){var node;return this.openCurrent(),node=new XMLComment(this,value),this.onData(this.writer.comment(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},XMLDocumentCB.prototype.raw=function(value){var node;return this.openCurrent(),node=new XMLRaw(this,value),this.onData(this.writer.raw(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},XMLDocumentCB.prototype.instruction=function(target,value){var i,insTarget,insValue,len,node;if(this.openCurrent(),null!=target&&(target=getValue(target)),null!=value&&(value=getValue(value)),Array.isArray(target))for(i=0,len=target.length;i<len;i++)insTarget=target[i],this.instruction(insTarget);else if(isObject(target))for(insTarget in target)hasProp.call(target,insTarget)&&(insValue=target[insTarget],this.instruction(insTarget,insValue));else isFunction(value)&&(value=value.apply()),node=new XMLProcessingInstruction(this,target,value),this.onData(this.writer.processingInstruction(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},XMLDocumentCB.prototype.declaration=function(version,encoding,standalone){var node;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return node=new XMLDeclaration(this,version,encoding,standalone),this.onData(this.writer.declaration(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},XMLDocumentCB.prototype.doctype=function(root,pubID,sysID){if(this.openCurrent(),null==root)throw new Error("Missing root node name.");if(this.root)throw new Error("dtd() must come before the root node.");return this.currentNode=new XMLDocType(this,pubID,sysID),this.currentNode.rootNodeName=root,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},XMLDocumentCB.prototype.dtdElement=function(name,value){var node;return this.openCurrent(),node=new XMLDTDElement(this,name,value),this.onData(this.writer.dtdElement(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},XMLDocumentCB.prototype.attList=function(elementName,attributeName,attributeType,defaultValueType,defaultValue){var node;return this.openCurrent(),node=new XMLDTDAttList(this,elementName,attributeName,attributeType,defaultValueType,defaultValue),this.onData(this.writer.dtdAttList(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},XMLDocumentCB.prototype.entity=function(name,value){var node;return this.openCurrent(),node=new XMLDTDEntity(this,!1,name,value),this.onData(this.writer.dtdEntity(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},XMLDocumentCB.prototype.pEntity=function(name,value){var node;return this.openCurrent(),node=new XMLDTDEntity(this,!0,name,value),this.onData(this.writer.dtdEntity(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},XMLDocumentCB.prototype.notation=function(name,value){var node;return this.openCurrent(),node=new XMLDTDNotation(this,name,value),this.onData(this.writer.dtdNotation(node,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},XMLDocumentCB.prototype.up=function(){if(this.currentLevel<0)throw new Error("The document node has no parent.");return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this},XMLDocumentCB.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},XMLDocumentCB.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},XMLDocumentCB.prototype.openNode=function(node){var att,chunk,name,ref1;if(!node.isOpen){if(this.root||0!==this.currentLevel||node.type!==NodeType.Element||(this.root=node),chunk="",node.type===NodeType.Element){for(name in this.writerOptions.state=WriterState.OpenTag,chunk=this.writer.indent(node,this.writerOptions,this.currentLevel)+"<"+node.name,ref1=node.attribs)hasProp.call(ref1,name)&&(att=ref1[name],chunk+=this.writer.attribute(att,this.writerOptions,this.currentLevel));chunk+=(node.children?">":"/>")+this.writer.endline(node,this.writerOptions,this.currentLevel),this.writerOptions.state=WriterState.InsideTag}else this.writerOptions.state=WriterState.OpenTag,chunk=this.writer.indent(node,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+node.rootNodeName,node.pubID&&node.sysID?chunk+=' PUBLIC "'+node.pubID+'" "'+node.sysID+'"':node.sysID&&(chunk+=' SYSTEM "'+node.sysID+'"'),node.children?(chunk+=" [",this.writerOptions.state=WriterState.InsideTag):(this.writerOptions.state=WriterState.CloseTag,chunk+=">"),chunk+=this.writer.endline(node,this.writerOptions,this.currentLevel);return this.onData(chunk,this.currentLevel),node.isOpen=!0}},XMLDocumentCB.prototype.closeNode=function(node){var chunk;if(!node.isClosed)return chunk="",this.writerOptions.state=WriterState.CloseTag,chunk=node.type===NodeType.Element?this.writer.indent(node,this.writerOptions,this.currentLevel)+"</"+node.name+">"+this.writer.endline(node,this.writerOptions,this.currentLevel):this.writer.indent(node,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(node,this.writerOptions,this.currentLevel),this.writerOptions.state=WriterState.None,this.onData(chunk,this.currentLevel),node.isClosed=!0},XMLDocumentCB.prototype.onData=function(chunk,level){return this.documentStarted=!0,this.onDataCallback(chunk,level+1)},XMLDocumentCB.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},XMLDocumentCB.prototype.debugInfo=function(name){return null==name?"":"node: <"+name+">"},XMLDocumentCB.prototype.ele=function(){return this.element.apply(this,arguments)},XMLDocumentCB.prototype.nod=function(name,attributes,text){return this.node(name,attributes,text)},XMLDocumentCB.prototype.txt=function(value){return this.text(value)},XMLDocumentCB.prototype.dat=function(value){return this.cdata(value)},XMLDocumentCB.prototype.com=function(value){return this.comment(value)},XMLDocumentCB.prototype.ins=function(target,value){return this.instruction(target,value)},XMLDocumentCB.prototype.dec=function(version,encoding,standalone){return this.declaration(version,encoding,standalone)},XMLDocumentCB.prototype.dtd=function(root,pubID,sysID){return this.doctype(root,pubID,sysID)},XMLDocumentCB.prototype.e=function(name,attributes,text){return this.element(name,attributes,text)},XMLDocumentCB.prototype.n=function(name,attributes,text){return this.node(name,attributes,text)},XMLDocumentCB.prototype.t=function(value){return this.text(value)},XMLDocumentCB.prototype.d=function(value){return this.cdata(value)},XMLDocumentCB.prototype.c=function(value){return this.comment(value)},XMLDocumentCB.prototype.r=function(value){return this.raw(value)},XMLDocumentCB.prototype.i=function(target,value){return this.instruction(target,value)},XMLDocumentCB.prototype.att=function(){return this.currentNode&&this.currentNode.type===NodeType.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},XMLDocumentCB.prototype.a=function(){return this.currentNode&&this.currentNode.type===NodeType.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},XMLDocumentCB.prototype.ent=function(name,value){return this.entity(name,value)},XMLDocumentCB.prototype.pent=function(name,value){return this.pEntity(name,value)},XMLDocumentCB.prototype.not=function(name,value){return this.notation(name,value)},XMLDocumentCB}()}.call(XMLDocumentCB)),XMLDocumentCB$1.exports}var hasRequiredXMLStreamWriter,hasRequiredLib$5,hasRequiredBuilder,XMLStreamWriter$1={exports:{}},XMLStreamWriter=XMLStreamWriter$1.exports;function requireXMLStreamWriter(){return hasRequiredXMLStreamWriter||(hasRequiredXMLStreamWriter=1,function(){var NodeType,WriterState,XMLWriterBase,hasProp={}.hasOwnProperty;NodeType=requireNodeType(),XMLWriterBase=requireXMLWriterBase(),WriterState=requireWriterState(),XMLStreamWriter$1.exports=function(superClass){function XMLStreamWriter(stream,options){this.stream=stream,XMLStreamWriter.__super__.constructor.call(this,options)}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(XMLStreamWriter,superClass),XMLStreamWriter.prototype.endline=function(node,options,level){return node.isLastRootNode&&options.state===WriterState.CloseTag?"":XMLStreamWriter.__super__.endline.call(this,node,options,level)},XMLStreamWriter.prototype.document=function(doc,options){var child,i,j,k,len,len1,ref,ref1,results;for(i=j=0,len=(ref=doc.children).length;j<len;i=++j)(child=ref[i]).isLastRootNode=i===doc.children.length-1;for(options=this.filterOptions(options),results=[],k=0,len1=(ref1=doc.children).length;k<len1;k++)child=ref1[k],results.push(this.writeChildNode(child,options,0));return results},XMLStreamWriter.prototype.attribute=function(att,options,level){return this.stream.write(XMLStreamWriter.__super__.attribute.call(this,att,options,level))},XMLStreamWriter.prototype.cdata=function(node,options,level){return this.stream.write(XMLStreamWriter.__super__.cdata.call(this,node,options,level))},XMLStreamWriter.prototype.comment=function(node,options,level){return this.stream.write(XMLStreamWriter.__super__.comment.call(this,node,options,level))},XMLStreamWriter.prototype.declaration=function(node,options,level){return this.stream.write(XMLStreamWriter.__super__.declaration.call(this,node,options,level))},XMLStreamWriter.prototype.docType=function(node,options,level){var child,j,len,ref;if(level||(level=0),this.openNode(node,options,level),options.state=WriterState.OpenTag,this.stream.write(this.indent(node,options,level)),this.stream.write("<!DOCTYPE "+node.root().name),node.pubID&&node.sysID?this.stream.write(' PUBLIC "'+node.pubID+'" "'+node.sysID+'"'):node.sysID&&this.stream.write(' SYSTEM "'+node.sysID+'"'),node.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(node,options,level)),options.state=WriterState.InsideTag,j=0,len=(ref=node.children).length;j<len;j++)child=ref[j],this.writeChildNode(child,options,level+1);options.state=WriterState.CloseTag,this.stream.write("]")}return options.state=WriterState.CloseTag,this.stream.write(options.spaceBeforeSlash+">"),this.stream.write(this.endline(node,options,level)),options.state=WriterState.None,this.closeNode(node,options,level)},XMLStreamWriter.prototype.element=function(node,options,level){var att,child,childNodeCount,firstChildNode,j,len,name,ref,ref1;for(name in level||(level=0),this.openNode(node,options,level),options.state=WriterState.OpenTag,this.stream.write(this.indent(node,options,level)+"<"+node.name),ref=node.attribs)hasProp.call(ref,name)&&(att=ref[name],this.attribute(att,options,level));if(firstChildNode=0===(childNodeCount=node.children.length)?null:node.children[0],0===childNodeCount||node.children.every((function(e){return(e.type===NodeType.Text||e.type===NodeType.Raw)&&""===e.value})))options.allowEmpty?(this.stream.write(">"),options.state=WriterState.CloseTag,this.stream.write("</"+node.name+">")):(options.state=WriterState.CloseTag,this.stream.write(options.spaceBeforeSlash+"/>"));else if(!options.pretty||1!==childNodeCount||firstChildNode.type!==NodeType.Text&&firstChildNode.type!==NodeType.Raw||null==firstChildNode.value){for(this.stream.write(">"+this.endline(node,options,level)),options.state=WriterState.InsideTag,j=0,len=(ref1=node.children).length;j<len;j++)child=ref1[j],this.writeChildNode(child,options,level+1);options.state=WriterState.CloseTag,this.stream.write(this.indent(node,options,level)+"</"+node.name+">")}else this.stream.write(">"),options.state=WriterState.InsideTag,options.suppressPrettyCount++,this.writeChildNode(firstChildNode,options,level+1),options.suppressPrettyCount--,options.state=WriterState.CloseTag,this.stream.write("</"+node.name+">");return this.stream.write(this.endline(node,options,level)),options.state=WriterState.None,this.closeNode(node,options,level)},XMLStreamWriter.prototype.processingInstruction=function(node,options,level){return this.stream.write(XMLStreamWriter.__super__.processingInstruction.call(this,node,options,level))},XMLStreamWriter.prototype.raw=function(node,options,level){return this.stream.write(XMLStreamWriter.__super__.raw.call(this,node,options,level))},XMLStreamWriter.prototype.text=function(node,options,level){return this.stream.write(XMLStreamWriter.__super__.text.call(this,node,options,level))},XMLStreamWriter.prototype.dtdAttList=function(node,options,level){return this.stream.write(XMLStreamWriter.__super__.dtdAttList.call(this,node,options,level))},XMLStreamWriter.prototype.dtdElement=function(node,options,level){return this.stream.write(XMLStreamWriter.__super__.dtdElement.call(this,node,options,level))},XMLStreamWriter.prototype.dtdEntity=function(node,options,level){return this.stream.write(XMLStreamWriter.__super__.dtdEntity.call(this,node,options,level))},XMLStreamWriter.prototype.dtdNotation=function(node,options,level){return this.stream.write(XMLStreamWriter.__super__.dtdNotation.call(this,node,options,level))},XMLStreamWriter}(XMLWriterBase)}.call(XMLStreamWriter)),XMLStreamWriter$1.exports}function requireBuilder(){return hasRequiredBuilder||(hasRequiredBuilder=1,function(){var builder$1,defaults,escapeCDATA,requiresCDATA,wrapCDATA,hasProp={}.hasOwnProperty;builder$1=function requireLib$5(){return hasRequiredLib$5||(hasRequiredLib$5=1,function(){var NodeType,WriterState,XMLDOMImplementation,XMLDocument,XMLDocumentCB,XMLStreamWriter,XMLStringWriter,assign,isFunction,ref;ref=requireUtility(),assign=ref.assign,isFunction=ref.isFunction,XMLDOMImplementation=requireXMLDOMImplementation(),XMLDocument=requireXMLDocument(),XMLDocumentCB=requireXMLDocumentCB(),XMLStringWriter=requireXMLStringWriter(),XMLStreamWriter=requireXMLStreamWriter(),NodeType=requireNodeType(),WriterState=requireWriterState(),lib$5.create=function(name,xmldec,doctype,options){var doc,root;if(null==name)throw new Error("Root element needs a name.");return options=assign({},xmldec,doctype,options),root=(doc=new XMLDocument(options)).element(name),options.headless||(doc.declaration(options),null==options.pubID&&null==options.sysID||doc.dtd(options)),root},lib$5.begin=function(options,onData,onEnd){var ref1;return isFunction(options)&&(onData=(ref1=[options,onData])[0],onEnd=ref1[1],options={}),onData?new XMLDocumentCB(options,onData,onEnd):new XMLDocument(options)},lib$5.stringWriter=function(options){return new XMLStringWriter(options)},lib$5.streamWriter=function(stream,options){return new XMLStreamWriter(stream,options)},lib$5.implementation=new XMLDOMImplementation,lib$5.nodeType=NodeType,lib$5.writerState=WriterState}.call(lib$5)),lib$5}(),defaults=requireDefaults().defaults,requiresCDATA=function(entry){return"string"==typeof entry&&(entry.indexOf("&")>=0||entry.indexOf(">")>=0||entry.indexOf("<")>=0)},wrapCDATA=function(entry){return"<![CDATA["+escapeCDATA(entry)+"]]>"},escapeCDATA=function(entry){return entry.replace("]]>","]]]]><![CDATA[>")},builder.Builder=function(){function Builder(opts){var key,ref,value;for(key in this.options={},ref=defaults[.2])hasProp.call(ref,key)&&(value=ref[key],this.options[key]=value);for(key in opts)hasProp.call(opts,key)&&(value=opts[key],this.options[key]=value)}return Builder.prototype.buildObject=function(rootObj){var attrkey,charkey,render,rootElement,rootName,_this;return attrkey=this.options.attrkey,charkey=this.options.charkey,1===Object.keys(rootObj).length&&this.options.rootName===defaults[.2].rootName?rootObj=rootObj[rootName=Object.keys(rootObj)[0]]:rootName=this.options.rootName,_this=this,render=function(element,obj){var attr,child,entry,index,key,value;if("object"!=typeof obj)_this.options.cdata&&requiresCDATA(obj)?element.raw(wrapCDATA(obj)):element.txt(obj);else if(Array.isArray(obj)){for(index in obj)if(hasProp.call(obj,index))for(key in child=obj[index])entry=child[key],element=render(element.ele(key),entry).up()}else for(key in obj)if(hasProp.call(obj,key))if(child=obj[key],key===attrkey){if("object"==typeof child)for(attr in child)value=child[attr],element=element.att(attr,value)}else if(key===charkey)element=_this.options.cdata&&requiresCDATA(child)?element.raw(wrapCDATA(child)):element.txt(child);else if(Array.isArray(child))for(index in child)hasProp.call(child,index)&&(element="string"==typeof(entry=child[index])?_this.options.cdata&&requiresCDATA(entry)?element.ele(key).raw(wrapCDATA(entry)).up():element.ele(key,entry).up():render(element.ele(key),entry).up());else"object"==typeof child?element=render(element.ele(key),child).up():"string"==typeof child&&_this.options.cdata&&requiresCDATA(child)?element=element.ele(key).raw(wrapCDATA(child)).up():(null==child&&(child=""),element=element.ele(key,child.toString()).up());return element},rootElement=builder$1.create(rootName,this.options.xmldec,this.options.doctype,{headless:this.options.headless,allowSurrogateChars:this.options.allowSurrogateChars}),render(rootElement,rootObj).end(this.options.renderOpts)},Builder}()}.call(builder)),builder}var hasRequiredSax$1,parser$1={},sax$1={};function requireSax$1(){return hasRequiredSax$1||(hasRequiredSax$1=1,function(sax){sax.parser=function(strict,opt){return new SAXParser(strict,opt)},sax.SAXParser=SAXParser,sax.SAXStream=SAXStream,sax.createStream=function createStream(strict,opt){return new SAXStream(strict,opt)},sax.MAX_BUFFER_LENGTH=65536;var Stream,buffers=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];function SAXParser(strict,opt){if(!(this instanceof SAXParser))return new SAXParser(strict,opt);!function clearBuffers(parser){for(var i=0,l=buffers.length;i<l;i++)parser[buffers[i]]=""}(this),this.q=this.c="",this.bufferCheckPosition=sax.MAX_BUFFER_LENGTH,this.opt=opt||{},this.opt.lowercase=this.opt.lowercase||this.opt.lowercasetags,this.looseCase=this.opt.lowercase?"toLowerCase":"toUpperCase",this.tags=[],this.closed=this.closedRoot=this.sawRoot=!1,this.tag=this.error=null,this.strict=!!strict,this.noscript=!(!strict&&!this.opt.noscript),this.state=S.BEGIN,this.strictEntities=this.opt.strictEntities,this.ENTITIES=this.strictEntities?Object.create(sax.XML_ENTITIES):Object.create(sax.ENTITIES),this.attribList=[],this.opt.xmlns&&(this.ns=Object.create(rootNS)),void 0===this.opt.unquotedAttributeValues&&(this.opt.unquotedAttributeValues=!strict),this.trackPosition=!1!==this.opt.position,this.trackPosition&&(this.position=this.line=this.column=0),emit(this,"onready")}sax.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"],Object.create||(Object.create=function(o){function F(){}return F.prototype=o,new F}),Object.keys||(Object.keys=function(o){var a=[];for(var i in o)o.hasOwnProperty(i)&&a.push(i);return a}),SAXParser.prototype={end:function(){end(this)},write:function write(chunk){if(this.error)throw this.error;if(this.closed)return error(this,"Cannot write after close. Assign an onready handler.");if(null===chunk)return end(this);"object"==typeof chunk&&(chunk=chunk.toString());for(var i=0,c="";c=charAt(chunk,i++),this.c=c,c;)switch(this.trackPosition&&(this.position++,"\n"===c?(this.line++,this.column=0):this.column++),this.state){case S.BEGIN:if(this.state=S.BEGIN_WHITESPACE,"\ufeff"===c)continue;beginWhiteSpace(this,c);continue;case S.BEGIN_WHITESPACE:beginWhiteSpace(this,c);continue;case S.TEXT:if(this.sawRoot&&!this.closedRoot){for(var starti=i-1;c&&"<"!==c&&"&"!==c;)(c=charAt(chunk,i++))&&this.trackPosition&&(this.position++,"\n"===c?(this.line++,this.column=0):this.column++);this.textNode+=chunk.substring(starti,i-1)}"<"!==c||this.sawRoot&&this.closedRoot&&!this.strict?(isWhitespace(c)||this.sawRoot&&!this.closedRoot||strictFail(this,"Text data outside of root node."),"&"===c?this.state=S.TEXT_ENTITY:this.textNode+=c):(this.state=S.OPEN_WAKA,this.startTagPosition=this.position);continue;case S.SCRIPT:"<"===c?this.state=S.SCRIPT_ENDING:this.script+=c;continue;case S.SCRIPT_ENDING:"/"===c?this.state=S.CLOSE_TAG:(this.script+="<"+c,this.state=S.SCRIPT);continue;case S.OPEN_WAKA:if("!"===c)this.state=S.SGML_DECL,this.sgmlDecl="";else if(isWhitespace(c));else if(isMatch(nameStart,c))this.state=S.OPEN_TAG,this.tagName=c;else if("/"===c)this.state=S.CLOSE_TAG,this.tagName="";else if("?"===c)this.state=S.PROC_INST,this.procInstName=this.procInstBody="";else{if(strictFail(this,"Unencoded <"),this.startTagPosition+1<this.position){var pad=this.position-this.startTagPosition;c=new Array(pad).join(" ")+c}this.textNode+="<"+c,this.state=S.TEXT}continue;case S.SGML_DECL:if(this.sgmlDecl+c==="--"){this.state=S.COMMENT,this.comment="",this.sgmlDecl="";continue}this.doctype&&!0!==this.doctype&&this.sgmlDecl?(this.state=S.DOCTYPE_DTD,this.doctype+="<!"+this.sgmlDecl+c,this.sgmlDecl=""):(this.sgmlDecl+c).toUpperCase()===CDATA?(emitNode(this,"onopencdata"),this.state=S.CDATA,this.sgmlDecl="",this.cdata=""):(this.sgmlDecl+c).toUpperCase()===DOCTYPE?(this.state=S.DOCTYPE,(this.doctype||this.sawRoot)&&strictFail(this,"Inappropriately located doctype declaration"),this.doctype="",this.sgmlDecl=""):">"===c?(emitNode(this,"onsgmldeclaration",this.sgmlDecl),this.sgmlDecl="",this.state=S.TEXT):isQuote(c)?(this.state=S.SGML_DECL_QUOTED,this.sgmlDecl+=c):this.sgmlDecl+=c;continue;case S.SGML_DECL_QUOTED:c===this.q&&(this.state=S.SGML_DECL,this.q=""),this.sgmlDecl+=c;continue;case S.DOCTYPE:">"===c?(this.state=S.TEXT,emitNode(this,"ondoctype",this.doctype),this.doctype=!0):(this.doctype+=c,"["===c?this.state=S.DOCTYPE_DTD:isQuote(c)&&(this.state=S.DOCTYPE_QUOTED,this.q=c));continue;case S.DOCTYPE_QUOTED:this.doctype+=c,c===this.q&&(this.q="",this.state=S.DOCTYPE);continue;case S.DOCTYPE_DTD:"]"===c?(this.doctype+=c,this.state=S.DOCTYPE):"<"===c?(this.state=S.OPEN_WAKA,this.startTagPosition=this.position):isQuote(c)?(this.doctype+=c,this.state=S.DOCTYPE_DTD_QUOTED,this.q=c):this.doctype+=c;continue;case S.DOCTYPE_DTD_QUOTED:this.doctype+=c,c===this.q&&(this.state=S.DOCTYPE_DTD,this.q="");continue;case S.COMMENT:"-"===c?this.state=S.COMMENT_ENDING:this.comment+=c;continue;case S.COMMENT_ENDING:"-"===c?(this.state=S.COMMENT_ENDED,this.comment=textopts(this.opt,this.comment),this.comment&&emitNode(this,"oncomment",this.comment),this.comment=""):(this.comment+="-"+c,this.state=S.COMMENT);continue;case S.COMMENT_ENDED:">"!==c?(strictFail(this,"Malformed comment"),this.comment+="--"+c,this.state=S.COMMENT):this.doctype&&!0!==this.doctype?this.state=S.DOCTYPE_DTD:this.state=S.TEXT;continue;case S.CDATA:"]"===c?this.state=S.CDATA_ENDING:this.cdata+=c;continue;case S.CDATA_ENDING:"]"===c?this.state=S.CDATA_ENDING_2:(this.cdata+="]"+c,this.state=S.CDATA);continue;case S.CDATA_ENDING_2:">"===c?(this.cdata&&emitNode(this,"oncdata",this.cdata),emitNode(this,"onclosecdata"),this.cdata="",this.state=S.TEXT):"]"===c?this.cdata+="]":(this.cdata+="]]"+c,this.state=S.CDATA);continue;case S.PROC_INST:"?"===c?this.state=S.PROC_INST_ENDING:isWhitespace(c)?this.state=S.PROC_INST_BODY:this.procInstName+=c;continue;case S.PROC_INST_BODY:if(!this.procInstBody&&isWhitespace(c))continue;"?"===c?this.state=S.PROC_INST_ENDING:this.procInstBody+=c;continue;case S.PROC_INST_ENDING:">"===c?(emitNode(this,"onprocessinginstruction",{name:this.procInstName,body:this.procInstBody}),this.procInstName=this.procInstBody="",this.state=S.TEXT):(this.procInstBody+="?"+c,this.state=S.PROC_INST_BODY);continue;case S.OPEN_TAG:isMatch(nameBody,c)?this.tagName+=c:(newTag(this),">"===c?openTag(this):"/"===c?this.state=S.OPEN_TAG_SLASH:(isWhitespace(c)||strictFail(this,"Invalid character in tag name"),this.state=S.ATTRIB));continue;case S.OPEN_TAG_SLASH:">"===c?(openTag(this,!0),closeTag(this)):(strictFail(this,"Forward-slash in opening tag not followed by >"),this.state=S.ATTRIB);continue;case S.ATTRIB:if(isWhitespace(c))continue;">"===c?openTag(this):"/"===c?this.state=S.OPEN_TAG_SLASH:isMatch(nameStart,c)?(this.attribName=c,this.attribValue="",this.state=S.ATTRIB_NAME):strictFail(this,"Invalid attribute name");continue;case S.ATTRIB_NAME:"="===c?this.state=S.ATTRIB_VALUE:">"===c?(strictFail(this,"Attribute without value"),this.attribValue=this.attribName,attrib(this),openTag(this)):isWhitespace(c)?this.state=S.ATTRIB_NAME_SAW_WHITE:isMatch(nameBody,c)?this.attribName+=c:strictFail(this,"Invalid attribute name");continue;case S.ATTRIB_NAME_SAW_WHITE:if("="===c)this.state=S.ATTRIB_VALUE;else{if(isWhitespace(c))continue;strictFail(this,"Attribute without value"),this.tag.attributes[this.attribName]="",this.attribValue="",emitNode(this,"onattribute",{name:this.attribName,value:""}),this.attribName="",">"===c?openTag(this):isMatch(nameStart,c)?(this.attribName=c,this.state=S.ATTRIB_NAME):(strictFail(this,"Invalid attribute name"),this.state=S.ATTRIB)}continue;case S.ATTRIB_VALUE:if(isWhitespace(c))continue;isQuote(c)?(this.q=c,this.state=S.ATTRIB_VALUE_QUOTED):(this.opt.unquotedAttributeValues||error(this,"Unquoted attribute value"),this.state=S.ATTRIB_VALUE_UNQUOTED,this.attribValue=c);continue;case S.ATTRIB_VALUE_QUOTED:if(c!==this.q){"&"===c?this.state=S.ATTRIB_VALUE_ENTITY_Q:this.attribValue+=c;continue}attrib(this),this.q="",this.state=S.ATTRIB_VALUE_CLOSED;continue;case S.ATTRIB_VALUE_CLOSED:isWhitespace(c)?this.state=S.ATTRIB:">"===c?openTag(this):"/"===c?this.state=S.OPEN_TAG_SLASH:isMatch(nameStart,c)?(strictFail(this,"No whitespace between attributes"),this.attribName=c,this.attribValue="",this.state=S.ATTRIB_NAME):strictFail(this,"Invalid attribute name");continue;case S.ATTRIB_VALUE_UNQUOTED:if(!isAttribEnd(c)){"&"===c?this.state=S.ATTRIB_VALUE_ENTITY_U:this.attribValue+=c;continue}attrib(this),">"===c?openTag(this):this.state=S.ATTRIB;continue;case S.CLOSE_TAG:if(this.tagName)">"===c?closeTag(this):isMatch(nameBody,c)?this.tagName+=c:this.script?(this.script+="</"+this.tagName,this.tagName="",this.state=S.SCRIPT):(isWhitespace(c)||strictFail(this,"Invalid tagname in closing tag"),this.state=S.CLOSE_TAG_SAW_WHITE);else{if(isWhitespace(c))continue;notMatch(nameStart,c)?this.script?(this.script+="</"+c,this.state=S.SCRIPT):strictFail(this,"Invalid tagname in closing tag."):this.tagName=c}continue;case S.CLOSE_TAG_SAW_WHITE:if(isWhitespace(c))continue;">"===c?closeTag(this):strictFail(this,"Invalid characters in closing tag");continue;case S.TEXT_ENTITY:case S.ATTRIB_VALUE_ENTITY_Q:case S.ATTRIB_VALUE_ENTITY_U:var returnState,buffer;switch(this.state){case S.TEXT_ENTITY:returnState=S.TEXT,buffer="textNode";break;case S.ATTRIB_VALUE_ENTITY_Q:returnState=S.ATTRIB_VALUE_QUOTED,buffer="attribValue";break;case S.ATTRIB_VALUE_ENTITY_U:returnState=S.ATTRIB_VALUE_UNQUOTED,buffer="attribValue"}if(";"===c){var parsedEntity=parseEntity(this);this.opt.unparsedEntities&&!Object.values(sax.XML_ENTITIES).includes(parsedEntity)?(this.entity="",this.state=returnState,this.write(parsedEntity)):(this[buffer]+=parsedEntity,this.entity="",this.state=returnState)}else isMatch(this.entity.length?entityBody:entityStart,c)?this.entity+=c:(strictFail(this,"Invalid character in entity name"),this[buffer]+="&"+this.entity+c,this.entity="",this.state=returnState);continue;default:throw new Error(this,"Unknown state: "+this.state)}return this.position>=this.bufferCheckPosition&&function checkBufferLength(parser){for(var maxAllowed=Math.max(sax.MAX_BUFFER_LENGTH,10),maxActual=0,i=0,l=buffers.length;i<l;i++){var len=parser[buffers[i]].length;if(len>maxAllowed)switch(buffers[i]){case"textNode":closeText(parser);break;case"cdata":emitNode(parser,"oncdata",parser.cdata),parser.cdata="";break;case"script":emitNode(parser,"onscript",parser.script),parser.script="";break;default:error(parser,"Max buffer length exceeded: "+buffers[i])}maxActual=Math.max(maxActual,len)}var m=sax.MAX_BUFFER_LENGTH-maxActual;parser.bufferCheckPosition=m+parser.position}(this),this}
2
- /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function flushBuffers(parser){closeText(parser),""!==parser.cdata&&(emitNode(parser,"oncdata",parser.cdata),parser.cdata=""),""!==parser.script&&(emitNode(parser,"onscript",parser.script),parser.script="")}(this)}};try{Stream=require("stream").Stream}catch(ex){Stream=function(){}}Stream||(Stream=function(){});var streamWraps=sax.EVENTS.filter((function(ev){return"error"!==ev&&"end"!==ev}));function SAXStream(strict,opt){if(!(this instanceof SAXStream))return new SAXStream(strict,opt);Stream.apply(this),this._parser=new SAXParser(strict,opt),this.writable=!0,this.readable=!0;var me=this;this._parser.onend=function(){me.emit("end")},this._parser.onerror=function(er){me.emit("error",er),me._parser.error=null},this._decoder=null,streamWraps.forEach((function(ev){Object.defineProperty(me,"on"+ev,{get:function(){return me._parser["on"+ev]},set:function(h){if(!h)return me.removeAllListeners(ev),me._parser["on"+ev]=h,h;me.on(ev,h)},enumerable:!0,configurable:!1})}))}SAXStream.prototype=Object.create(Stream.prototype,{constructor:{value:SAXStream}}),SAXStream.prototype.write=function(data){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(data)){if(!this._decoder){var SD=require$$1__default.default.StringDecoder;this._decoder=new SD("utf8")}data=this._decoder.write(data)}return this._parser.write(data.toString()),this.emit("data",data),!0},SAXStream.prototype.end=function(chunk){return chunk&&chunk.length&&this.write(chunk),this._parser.end(),!0},SAXStream.prototype.on=function(ev,handler){var me=this;return me._parser["on"+ev]||-1===streamWraps.indexOf(ev)||(me._parser["on"+ev]=function(){var args=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);args.splice(0,0,ev),me.emit.apply(me,args)}),Stream.prototype.on.call(me,ev,handler)};var CDATA="[CDATA[",DOCTYPE="DOCTYPE",XML_NAMESPACE="http://www.w3.org/XML/1998/namespace",XMLNS_NAMESPACE="http://www.w3.org/2000/xmlns/",rootNS={xml:XML_NAMESPACE,xmlns:XMLNS_NAMESPACE},nameStart=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,nameBody=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,entityStart=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,entityBody=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function isWhitespace(c){return" "===c||"\n"===c||"\r"===c||"\t"===c}function isQuote(c){return'"'===c||"'"===c}function isAttribEnd(c){return">"===c||isWhitespace(c)}function isMatch(regex,c){return regex.test(c)}function notMatch(regex,c){return!isMatch(regex,c)}var stringFromCharCode,floor,fromCodePoint,S=0;for(var s in sax.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},sax.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},sax.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(sax.ENTITIES).forEach((function(key){var e=sax.ENTITIES[key],s="number"==typeof e?String.fromCharCode(e):e;sax.ENTITIES[key]=s})),sax.STATE)sax.STATE[sax.STATE[s]]=s;function emit(parser,event,data){parser[event]&&parser[event](data)}function emitNode(parser,nodeType,data){parser.textNode&&closeText(parser),emit(parser,nodeType,data)}function closeText(parser){parser.textNode=textopts(parser.opt,parser.textNode),parser.textNode&&emit(parser,"ontext",parser.textNode),parser.textNode=""}function textopts(opt,text){return opt.trim&&(text=text.trim()),opt.normalize&&(text=text.replace(/\s+/g," ")),text}function error(parser,er){return closeText(parser),parser.trackPosition&&(er+="\nLine: "+parser.line+"\nColumn: "+parser.column+"\nChar: "+parser.c),er=new Error(er),parser.error=er,emit(parser,"onerror",er),parser}function end(parser){return parser.sawRoot&&!parser.closedRoot&&strictFail(parser,"Unclosed root tag"),parser.state!==S.BEGIN&&parser.state!==S.BEGIN_WHITESPACE&&parser.state!==S.TEXT&&error(parser,"Unexpected end"),closeText(parser),parser.c="",parser.closed=!0,emit(parser,"onend"),SAXParser.call(parser,parser.strict,parser.opt),parser}function strictFail(parser,message){if("object"!=typeof parser||!(parser instanceof SAXParser))throw new Error("bad call to strictFail");parser.strict&&error(parser,message)}function newTag(parser){parser.strict||(parser.tagName=parser.tagName[parser.looseCase]());var parent=parser.tags[parser.tags.length-1]||parser,tag=parser.tag={name:parser.tagName,attributes:{}};parser.opt.xmlns&&(tag.ns=parent.ns),parser.attribList.length=0,emitNode(parser,"onopentagstart",tag)}function qname(name,attribute){var qualName=name.indexOf(":")<0?["",name]:name.split(":"),prefix=qualName[0],local=qualName[1];return attribute&&"xmlns"===name&&(prefix="xmlns",local=""),{prefix:prefix,local:local}}function attrib(parser){if(parser.strict||(parser.attribName=parser.attribName[parser.looseCase]()),-1!==parser.attribList.indexOf(parser.attribName)||parser.tag.attributes.hasOwnProperty(parser.attribName))parser.attribName=parser.attribValue="";else{if(parser.opt.xmlns){var qn=qname(parser.attribName,!0),prefix=qn.prefix,local=qn.local;if("xmlns"===prefix)if("xml"===local&&parser.attribValue!==XML_NAMESPACE)strictFail(parser,"xml: prefix must be bound to "+XML_NAMESPACE+"\nActual: "+parser.attribValue);else if("xmlns"===local&&parser.attribValue!==XMLNS_NAMESPACE)strictFail(parser,"xmlns: prefix must be bound to "+XMLNS_NAMESPACE+"\nActual: "+parser.attribValue);else{var tag=parser.tag,parent=parser.tags[parser.tags.length-1]||parser;tag.ns===parent.ns&&(tag.ns=Object.create(parent.ns)),tag.ns[local]=parser.attribValue}parser.attribList.push([parser.attribName,parser.attribValue])}else parser.tag.attributes[parser.attribName]=parser.attribValue,emitNode(parser,"onattribute",{name:parser.attribName,value:parser.attribValue});parser.attribName=parser.attribValue=""}}function openTag(parser,selfClosing){if(parser.opt.xmlns){var tag=parser.tag,qn=qname(parser.tagName);tag.prefix=qn.prefix,tag.local=qn.local,tag.uri=tag.ns[qn.prefix]||"",tag.prefix&&!tag.uri&&(strictFail(parser,"Unbound namespace prefix: "+JSON.stringify(parser.tagName)),tag.uri=qn.prefix);var parent=parser.tags[parser.tags.length-1]||parser;tag.ns&&parent.ns!==tag.ns&&Object.keys(tag.ns).forEach((function(p){emitNode(parser,"onopennamespace",{prefix:p,uri:tag.ns[p]})}));for(var i=0,l=parser.attribList.length;i<l;i++){var nv=parser.attribList[i],name=nv[0],value=nv[1],qualName=qname(name,!0),prefix=qualName.prefix,local=qualName.local,uri=""===prefix?"":tag.ns[prefix]||"",a={name:name,value:value,prefix:prefix,local:local,uri:uri};prefix&&"xmlns"!==prefix&&!uri&&(strictFail(parser,"Unbound namespace prefix: "+JSON.stringify(prefix)),a.uri=prefix),parser.tag.attributes[name]=a,emitNode(parser,"onattribute",a)}parser.attribList.length=0}parser.tag.isSelfClosing=!!selfClosing,parser.sawRoot=!0,parser.tags.push(parser.tag),emitNode(parser,"onopentag",parser.tag),selfClosing||(parser.noscript||"script"!==parser.tagName.toLowerCase()?parser.state=S.TEXT:parser.state=S.SCRIPT,parser.tag=null,parser.tagName=""),parser.attribName=parser.attribValue="",parser.attribList.length=0}function closeTag(parser){if(!parser.tagName)return strictFail(parser,"Weird empty close tag."),parser.textNode+="</>",void(parser.state=S.TEXT);if(parser.script){if("script"!==parser.tagName)return parser.script+="</"+parser.tagName+">",parser.tagName="",void(parser.state=S.SCRIPT);emitNode(parser,"onscript",parser.script),parser.script=""}var t=parser.tags.length,tagName=parser.tagName;parser.strict||(tagName=tagName[parser.looseCase]());for(var closeTo=tagName;t--&&parser.tags[t].name!==closeTo;)strictFail(parser,"Unexpected close tag");if(t<0)return strictFail(parser,"Unmatched closing tag: "+parser.tagName),parser.textNode+="</"+parser.tagName+">",void(parser.state=S.TEXT);parser.tagName=tagName;for(var s=parser.tags.length;s-- >t;){var tag=parser.tag=parser.tags.pop();parser.tagName=parser.tag.name,emitNode(parser,"onclosetag",parser.tagName);var x={};for(var i in tag.ns)x[i]=tag.ns[i];var parent=parser.tags[parser.tags.length-1]||parser;parser.opt.xmlns&&tag.ns!==parent.ns&&Object.keys(tag.ns).forEach((function(p){var n=tag.ns[p];emitNode(parser,"onclosenamespace",{prefix:p,uri:n})}))}0===t&&(parser.closedRoot=!0),parser.tagName=parser.attribValue=parser.attribName="",parser.attribList.length=0,parser.state=S.TEXT}function parseEntity(parser){var num,entity=parser.entity,entityLC=entity.toLowerCase(),numStr="";return parser.ENTITIES[entity]?parser.ENTITIES[entity]:parser.ENTITIES[entityLC]?parser.ENTITIES[entityLC]:("#"===(entity=entityLC).charAt(0)&&("x"===entity.charAt(1)?(entity=entity.slice(2),numStr=(num=parseInt(entity,16)).toString(16)):(entity=entity.slice(1),numStr=(num=parseInt(entity,10)).toString(10))),entity=entity.replace(/^0+/,""),isNaN(num)||numStr.toLowerCase()!==entity?(strictFail(parser,"Invalid character entity"),"&"+parser.entity+";"):String.fromCodePoint(num))}function beginWhiteSpace(parser,c){"<"===c?(parser.state=S.OPEN_WAKA,parser.startTagPosition=parser.position):isWhitespace(c)||(strictFail(parser,"Non-whitespace before first tag."),parser.textNode=c,parser.state=S.TEXT)}function charAt(chunk,i){var result="";return i<chunk.length&&(result=chunk.charAt(i)),result}S=sax.STATE,String.fromCodePoint||(stringFromCharCode=String.fromCharCode,floor=Math.floor,fromCodePoint=function(){var highSurrogate,lowSurrogate,codeUnits=[],index=-1,length=arguments.length;if(!length)return"";for(var result="";++index<length;){var codePoint=Number(arguments[index]);if(!isFinite(codePoint)||codePoint<0||codePoint>1114111||floor(codePoint)!==codePoint)throw RangeError("Invalid code point: "+codePoint);codePoint<=65535?codeUnits.push(codePoint):(highSurrogate=55296+((codePoint-=65536)>>10),lowSurrogate=codePoint%1024+56320,codeUnits.push(highSurrogate,lowSurrogate)),(index+1===length||codeUnits.length>16384)&&(result+=stringFromCharCode.apply(null,codeUnits),codeUnits.length=0)}return result},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:!0,writable:!0}):String.fromCodePoint=fromCodePoint)}(sax$1)),sax$1}var hasRequiredBom,bom={};function requireBom(){return hasRequiredBom||(hasRequiredBom=1,function(){bom.stripBOM=function(str){return"\ufeff"===str[0]?str.substring(1):str}}.call(bom)),bom}var hasRequiredProcessors,hasRequiredParser$1,hasRequiredXml2js$1,processors={};function requireProcessors(){return hasRequiredProcessors||(hasRequiredProcessors=1,function(){var prefixMatch;prefixMatch=new RegExp(/(?!xmlns)^.*:/),processors.normalize=function(str){return str.toLowerCase()},processors.firstCharLowerCase=function(str){return str.charAt(0).toLowerCase()+str.slice(1)},processors.stripPrefix=function(str){return str.replace(prefixMatch,"")},processors.parseNumbers=function(str){return isNaN(str)||(str=str%1==0?parseInt(str,10):parseFloat(str)),str},processors.parseBooleans=function(str){return/^(?:true|false)$/i.test(str)&&(str="true"===str.toLowerCase()),str}}.call(processors)),processors}function requireParser$1(){return hasRequiredParser$1||(hasRequiredParser$1=1,function(exports){(function(){var bom,defaults,defineProperty,events,isEmpty,processItem,processors,sax,setImmediate,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},hasProp={}.hasOwnProperty;sax=requireSax$1(),events=require$$0__default.default,bom=requireBom(),processors=requireProcessors(),setImmediate=require$$4__default.default.setImmediate,defaults=requireDefaults().defaults,isEmpty=function(thing){return"object"==typeof thing&&null!=thing&&0===Object.keys(thing).length},processItem=function(processors,item,key){var i,len;for(i=0,len=processors.length;i<len;i++)item=(0,processors[i])(item,key);return item},defineProperty=function(obj,key,value){var descriptor;return(descriptor=Object.create(null)).value=value,descriptor.writable=!0,descriptor.enumerable=!0,descriptor.configurable=!0,Object.defineProperty(obj,key,descriptor)},exports.Parser=function(superClass){function Parser(opts){var key,ref,value;if(this.parseStringPromise=bind(this.parseStringPromise,this),this.parseString=bind(this.parseString,this),this.reset=bind(this.reset,this),this.assignOrPush=bind(this.assignOrPush,this),this.processAsync=bind(this.processAsync,this),!(this instanceof exports.Parser))return new exports.Parser(opts);for(key in this.options={},ref=defaults[.2])hasProp.call(ref,key)&&(value=ref[key],this.options[key]=value);for(key in opts)hasProp.call(opts,key)&&(value=opts[key],this.options[key]=value);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(processors.normalize)),this.reset()}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(Parser,superClass),Parser.prototype.processAsync=function(){var chunk,err;try{return this.remaining.length<=this.options.chunkSize?(chunk=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(chunk),this.saxParser.close()):(chunk=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(chunk),setImmediate(this.processAsync))}catch(error1){if(err=error1,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(err)}},Parser.prototype.assignOrPush=function(obj,key,newValue){return key in obj?(obj[key]instanceof Array||defineProperty(obj,key,[obj[key]]),obj[key].push(newValue)):this.options.explicitArray?defineProperty(obj,key,[newValue]):defineProperty(obj,key,newValue)},Parser.prototype.reset=function(){var attrkey,charkey,ontext,stack,_this;return this.removeAllListeners(),this.saxParser=sax.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(_this=this,function(error){if(_this.saxParser.resume(),!_this.saxParser.errThrown)return _this.saxParser.errThrown=!0,_this.emit("error",error)}),this.saxParser.onend=function(_this){return function(){if(!_this.saxParser.ended)return _this.saxParser.ended=!0,_this.emit("end",_this.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,stack=[],attrkey=this.options.attrkey,charkey=this.options.charkey,this.saxParser.onopentag=function(_this){return function(node){var key,newValue,obj,processedKey,ref;if((obj={})[charkey]="",!_this.options.ignoreAttrs)for(key in ref=node.attributes)hasProp.call(ref,key)&&(attrkey in obj||_this.options.mergeAttrs||(obj[attrkey]={}),newValue=_this.options.attrValueProcessors?processItem(_this.options.attrValueProcessors,node.attributes[key],key):node.attributes[key],processedKey=_this.options.attrNameProcessors?processItem(_this.options.attrNameProcessors,key):key,_this.options.mergeAttrs?_this.assignOrPush(obj,processedKey,newValue):defineProperty(obj[attrkey],processedKey,newValue));return obj["#name"]=_this.options.tagNameProcessors?processItem(_this.options.tagNameProcessors,node.name):node.name,_this.options.xmlns&&(obj[_this.options.xmlnskey]={uri:node.uri,local:node.local}),stack.push(obj)}}(this),this.saxParser.onclosetag=function(_this){return function(){var cdata,emptyStr,key,node,nodeName,obj,objClone,old,s,xpath;if(obj=stack.pop(),nodeName=obj["#name"],_this.options.explicitChildren&&_this.options.preserveChildrenOrder||delete obj["#name"],!0===obj.cdata&&(cdata=obj.cdata,delete obj.cdata),s=stack[stack.length-1],obj[charkey].match(/^\s*$/)&&!cdata?(emptyStr=obj[charkey],delete obj[charkey]):(_this.options.trim&&(obj[charkey]=obj[charkey].trim()),_this.options.normalize&&(obj[charkey]=obj[charkey].replace(/\s{2,}/g," ").trim()),obj[charkey]=_this.options.valueProcessors?processItem(_this.options.valueProcessors,obj[charkey],nodeName):obj[charkey],1===Object.keys(obj).length&&charkey in obj&&!_this.EXPLICIT_CHARKEY&&(obj=obj[charkey])),isEmpty(obj)&&(obj="function"==typeof _this.options.emptyTag?_this.options.emptyTag():""!==_this.options.emptyTag?_this.options.emptyTag:emptyStr),null!=_this.options.validator&&(xpath="/"+function(){var i,len,results;for(results=[],i=0,len=stack.length;i<len;i++)node=stack[i],results.push(node["#name"]);return results}().concat(nodeName).join("/"),function(){var err;try{return obj=_this.options.validator(xpath,s&&s[nodeName],obj)}catch(error1){return err=error1,_this.emit("error",err)}}()),_this.options.explicitChildren&&!_this.options.mergeAttrs&&"object"==typeof obj)if(_this.options.preserveChildrenOrder){if(s){for(key in s[_this.options.childkey]=s[_this.options.childkey]||[],objClone={},obj)hasProp.call(obj,key)&&defineProperty(objClone,key,obj[key]);s[_this.options.childkey].push(objClone),delete obj["#name"],1===Object.keys(obj).length&&charkey in obj&&!_this.EXPLICIT_CHARKEY&&(obj=obj[charkey])}}else node={},_this.options.attrkey in obj&&(node[_this.options.attrkey]=obj[_this.options.attrkey],delete obj[_this.options.attrkey]),!_this.options.charsAsChildren&&_this.options.charkey in obj&&(node[_this.options.charkey]=obj[_this.options.charkey],delete obj[_this.options.charkey]),Object.getOwnPropertyNames(obj).length>0&&(node[_this.options.childkey]=obj),obj=node;return stack.length>0?_this.assignOrPush(s,nodeName,obj):(_this.options.explicitRoot&&(old=obj,defineProperty(obj={},nodeName,old)),_this.resultObject=obj,_this.saxParser.ended=!0,_this.emit("end",_this.resultObject))}}(this),ontext=function(_this){return function(text){var charChild,s;if(s=stack[stack.length-1])return s[charkey]+=text,_this.options.explicitChildren&&_this.options.preserveChildrenOrder&&_this.options.charsAsChildren&&(_this.options.includeWhiteChars||""!==text.replace(/\\n/g,"").trim())&&(s[_this.options.childkey]=s[_this.options.childkey]||[],(charChild={"#name":"__text__"})[charkey]=text,_this.options.normalize&&(charChild[charkey]=charChild[charkey].replace(/\s{2,}/g," ").trim()),s[_this.options.childkey].push(charChild)),s}}(this),this.saxParser.ontext=ontext,this.saxParser.oncdata=function(text){var s;if(s=ontext(text))return s.cdata=!0}},Parser.prototype.parseString=function(str,cb){var err;null!=cb&&"function"==typeof cb&&(this.on("end",(function(result){return this.reset(),cb(null,result)})),this.on("error",(function(err){return this.reset(),cb(err)})));try{return""===(str=str.toString()).trim()?(this.emit("end",null),!0):(str=bom.stripBOM(str),this.options.async?(this.remaining=str,setImmediate(this.processAsync),this.saxParser):this.saxParser.write(str).close())}catch(error1){if(err=error1,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",err),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw err}},Parser.prototype.parseStringPromise=function(str){return new Promise((_this=this,function(resolve,reject){return _this.parseString(str,(function(err,value){return err?reject(err):resolve(value)}))}));var _this},Parser}(events),exports.parseString=function(str,a,b){var cb,options;return null!=b?("function"==typeof b&&(cb=b),"object"==typeof a&&(options=a)):("function"==typeof a&&(cb=a),options={}),new exports.Parser(options).parseString(str,cb)},exports.parseStringPromise=function(str,a){var options;return"object"==typeof a&&(options=a),new exports.Parser(options).parseStringPromise(str)}}).call(parser$1)}(parser$1)),parser$1}var hasRequiredXpath,xml2jsExports=function requireXml2js$1(){return hasRequiredXml2js$1||(hasRequiredXml2js$1=1,function(){var builder,defaults,parser,processors,hasProp={}.hasOwnProperty;defaults=requireDefaults(),builder=requireBuilder(),parser=requireParser$1(),processors=requireProcessors(),xml2js$2.defaults=defaults.defaults,xml2js$2.processors=processors,xml2js$2.ValidationError=function(){function ValidationError(message){this.message=message}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(ValidationError,Error),ValidationError}(),xml2js$2.Builder=builder.Builder,xml2js$2.Parser=parser.Parser,xml2js$2.parseString=parser.parseString,xml2js$2.parseStringPromise=parser.parseStringPromise}.call(xml2js$2)),xml2js$2}(),xml2js$1=getDefaultExportFromCjs(xml2jsExports),lib$4={},signedXml={},xpath={};function requireXpath(){return hasRequiredXpath||(hasRequiredXpath=1,function(exports){!function(exports){var forEach=function(f,xs){for(var i=0;i<xs.length;i+=1)f(xs[i],i,xs)},reduce=function(f,seed,xs){var acc=seed;return forEach((function(x,i){acc=f(acc,x,i)}),xs),acc},map=function(f,xs){var mapped=new Array(xs.length);return forEach((function(x,i){mapped[i]=f(x)}),xs),mapped};function toString(x){return x.toString()}var join=function(s,xs){return xs.join(s)},wrap=function(pref,suf,str){return pref+str+suf},prototypeConcat=Array.prototype.concat;function assign(target,varArgs){for(var to=Object(target),index=1;index<arguments.length;index++){var nextSource=arguments[index];if(null!=nextSource)for(var nextKey in nextSource)Object.prototype.hasOwnProperty.call(nextSource,nextKey)&&(to[nextKey]=nextSource[nextKey])}return to}var NodeTypes_ELEMENT_NODE=1,NodeTypes_ATTRIBUTE_NODE=2,NodeTypes_TEXT_NODE=3,NodeTypes_CDATA_SECTION_NODE=4,NodeTypes_PROCESSING_INSTRUCTION_NODE=7,NodeTypes_COMMENT_NODE=8,NodeTypes_DOCUMENT_NODE=9,NodeTypes_DOCUMENT_TYPE_NODE=10,NodeTypes_DOCUMENT_FRAGMENT_NODE=11;function XPathParser(){this.init()}function XPath(e){this.expression=e}function setIfUnset(obj,prop,value){prop in obj||(obj[prop]=value)}function Expression(){}function UnaryOperation(rhs){arguments.length>0&&this.init(rhs)}function UnaryMinusOperation(rhs){arguments.length>0&&this.init(rhs)}function BinaryOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function OrOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function AndOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function EqualsOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function NotEqualOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function LessThanOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function GreaterThanOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function LessThanOrEqualOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function GreaterThanOrEqualOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function PlusOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function MinusOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function MultiplyOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function DivOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function ModOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function BarOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function PathExpr(filter,filterPreds,locpath){arguments.length>0&&this.init(filter,filterPreds,locpath)}function findRoot(node){for(;node&&node.parentNode;)node=node.parentNode;return node}function applyStepWithPredicates(step,xpc,node){return PathExpr.applyPredicates(step.predicates,xpc,PathExpr.applyStep(step,xpc,node))}function applyStepToNodes(context,nodes,step){return function flatten(arr){for(var result=[],start=0;start<arr.length;start+=32767){var chunk=arr.slice(start,start+32767);result=prototypeConcat.apply(result,chunk)}return result}(map(applyStepWithPredicates.bind(null,step,context),nodes))}function LocationPath(abs,steps){arguments.length>0&&this.init(abs,steps)}function Step(axis,nodetest,preds){arguments.length>0&&this.init(axis,nodetest,preds)}function NodeTest(type,value){arguments.length>0&&this.init(type,value)}function VariableReference(v){arguments.length>0&&this.init(v)}function FunctionCall(fn,args){arguments.length>0&&this.init(fn,args)}XPathParser.prototype=new Object,XPathParser.prototype.constructor=XPathParser,XPathParser.superclass=Object.prototype,XPathParser.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(rhs){return new OrOperation(rhs[0],rhs[2])},this.reduceActions[5]=function(rhs){return new AndOperation(rhs[0],rhs[2])},this.reduceActions[7]=function(rhs){return new EqualsOperation(rhs[0],rhs[2])},this.reduceActions[8]=function(rhs){return new NotEqualOperation(rhs[0],rhs[2])},this.reduceActions[10]=function(rhs){return new LessThanOperation(rhs[0],rhs[2])},this.reduceActions[11]=function(rhs){return new GreaterThanOperation(rhs[0],rhs[2])},this.reduceActions[12]=function(rhs){return new LessThanOrEqualOperation(rhs[0],rhs[2])},this.reduceActions[13]=function(rhs){return new GreaterThanOrEqualOperation(rhs[0],rhs[2])},this.reduceActions[15]=function(rhs){return new PlusOperation(rhs[0],rhs[2])},this.reduceActions[16]=function(rhs){return new MinusOperation(rhs[0],rhs[2])},this.reduceActions[18]=function(rhs){return new MultiplyOperation(rhs[0],rhs[2])},this.reduceActions[19]=function(rhs){return new DivOperation(rhs[0],rhs[2])},this.reduceActions[20]=function(rhs){return new ModOperation(rhs[0],rhs[2])},this.reduceActions[22]=function(rhs){return new UnaryMinusOperation(rhs[1])},this.reduceActions[24]=function(rhs){return new BarOperation(rhs[0],rhs[2])},this.reduceActions[25]=function(rhs){return new PathExpr(void 0,void 0,rhs[0])},this.reduceActions[27]=function(rhs){return rhs[0].locationPath=rhs[2],rhs[0]},this.reduceActions[28]=function(rhs){return rhs[0].locationPath=rhs[2],rhs[0].locationPath.steps.unshift(new Step(Step.DESCENDANTORSELF,NodeTest.nodeTest,[])),rhs[0]},this.reduceActions[29]=function(rhs){return new PathExpr(rhs[0],[],void 0)},this.reduceActions[30]=function(rhs){return Utilities.instance_of(rhs[0],PathExpr)?(null==rhs[0].filterPredicates&&(rhs[0].filterPredicates=[]),rhs[0].filterPredicates.push(rhs[1]),rhs[0]):new PathExpr(rhs[0],[rhs[1]],void 0)},this.reduceActions[32]=function(rhs){return rhs[1]},this.reduceActions[33]=function(rhs){return new XString(rhs[0])},this.reduceActions[34]=function(rhs){return new XNumber(rhs[0])},this.reduceActions[36]=function(rhs){return new FunctionCall(rhs[0],[])},this.reduceActions[37]=function(rhs){return new FunctionCall(rhs[0],rhs[2])},this.reduceActions[38]=function(rhs){return[rhs[0]]},this.reduceActions[39]=function(rhs){return rhs[2].unshift(rhs[0]),rhs[2]},this.reduceActions[43]=function(rhs){return new LocationPath(!0,[])},this.reduceActions[44]=function(rhs){return rhs[1].absolute=!0,rhs[1]},this.reduceActions[46]=function(rhs){return new LocationPath(!1,[rhs[0]])},this.reduceActions[47]=function(rhs){return rhs[0].steps.push(rhs[2]),rhs[0]},this.reduceActions[49]=function(rhs){return new Step(rhs[0],rhs[1],[])},this.reduceActions[50]=function(rhs){return new Step(Step.CHILD,rhs[0],[])},this.reduceActions[51]=function(rhs){return new Step(rhs[0],rhs[1],rhs[2])},this.reduceActions[52]=function(rhs){return new Step(Step.CHILD,rhs[0],rhs[1])},this.reduceActions[54]=function(rhs){return[rhs[0]]},this.reduceActions[55]=function(rhs){return rhs[1].unshift(rhs[0]),rhs[1]},this.reduceActions[56]=function(rhs){return"ancestor"==rhs[0]?Step.ANCESTOR:"ancestor-or-self"==rhs[0]?Step.ANCESTORORSELF:"attribute"==rhs[0]?Step.ATTRIBUTE:"child"==rhs[0]?Step.CHILD:"descendant"==rhs[0]?Step.DESCENDANT:"descendant-or-self"==rhs[0]?Step.DESCENDANTORSELF:"following"==rhs[0]?Step.FOLLOWING:"following-sibling"==rhs[0]?Step.FOLLOWINGSIBLING:"namespace"==rhs[0]?Step.NAMESPACE:"parent"==rhs[0]?Step.PARENT:"preceding"==rhs[0]?Step.PRECEDING:"preceding-sibling"==rhs[0]?Step.PRECEDINGSIBLING:"self"==rhs[0]?Step.SELF:-1},this.reduceActions[57]=function(rhs){return Step.ATTRIBUTE},this.reduceActions[59]=function(rhs){return"comment"==rhs[0]?NodeTest.commentTest:"text"==rhs[0]?NodeTest.textTest:"processing-instruction"==rhs[0]?NodeTest.anyPiTest:"node"==rhs[0]?NodeTest.nodeTest:new NodeTest(-1,void 0)},this.reduceActions[60]=function(rhs){return new NodeTest.PITest(rhs[2])},this.reduceActions[61]=function(rhs){return rhs[1]},this.reduceActions[63]=function(rhs){return rhs[1].absolute=!0,rhs[1].steps.unshift(new Step(Step.DESCENDANTORSELF,NodeTest.nodeTest,[])),rhs[1]},this.reduceActions[64]=function(rhs){return rhs[0].steps.push(new Step(Step.DESCENDANTORSELF,NodeTest.nodeTest,[])),rhs[0].steps.push(rhs[2]),rhs[0]},this.reduceActions[65]=function(rhs){return new Step(Step.SELF,NodeTest.nodeTest,[])},this.reduceActions[66]=function(rhs){return new Step(Step.PARENT,NodeTest.nodeTest,[])},this.reduceActions[67]=function(rhs){return new VariableReference(rhs[1])},this.reduceActions[68]=function(rhs){return NodeTest.nameTestAny},this.reduceActions[69]=function(rhs){return new NodeTest.NameTestPrefixAny(rhs[0].split(":")[0])},this.reduceActions[70]=function(rhs){return new NodeTest.NameTestQName(rhs[0])}},XPathParser.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],XPathParser.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," ‡ ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," ˆ "," F‰ ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," Š ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],XPathParser.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","€456789:;<=>?@ AB CDEFGH IJ"," ‚ EFGH IJ "," ƒ EFGH IJ "," "," „ GH IJ "," … GH IJ "," i † "," i ‡ "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABŒqCDEFGH IJ "," "," "],XPathParser.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],XPathParser.DOUBLEDOT=2,XPathParser.DOUBLECOLON=3,XPathParser.DOUBLESLASH=4,XPathParser.NOTEQUAL=5,XPathParser.LESSTHANOREQUAL=6,XPathParser.GREATERTHANOREQUAL=7,XPathParser.AND=8,XPathParser.OR=9,XPathParser.MOD=10,XPathParser.DIV=11,XPathParser.MULTIPLYOPERATOR=12,XPathParser.FUNCTIONNAME=13,XPathParser.AXISNAME=14,XPathParser.LITERAL=15,XPathParser.NUMBER=16,XPathParser.ASTERISKNAMETEST=17,XPathParser.QNAME=18,XPathParser.NCNAMECOLONASTERISK=19,XPathParser.NODETYPE=20,XPathParser.PROCESSINGINSTRUCTIONWITHLITERAL=21,XPathParser.EQUALS=22,XPathParser.LESSTHAN=23,XPathParser.GREATERTHAN=24,XPathParser.PLUS=25,XPathParser.MINUS=26,XPathParser.BAR=27,XPathParser.SLASH=28,XPathParser.LEFTPARENTHESIS=29,XPathParser.RIGHTPARENTHESIS=30,XPathParser.COMMA=31,XPathParser.AT=32,XPathParser.LEFTBRACKET=33,XPathParser.RIGHTBRACKET=34,XPathParser.DOT=35,XPathParser.DOLLAR=36,XPathParser.prototype.tokenize=function(s1){for(var types=[],values=[],s=s1+"\0",pos=0,c=s.charAt(pos++);;){for(;" "==c||"\t"==c||"\r"==c||"\n"==c;)c=s.charAt(pos++);if("\0"==c||pos>=s.length)break;if("("!=c)if(")"!=c)if("["!=c)if("]"!=c)if("@"!=c)if(","!=c)if("|"!=c)if("+"!=c)if("-"!=c)if("="!=c)if("$"!=c)if("."!=c)if("'"!=c&&'"'!=c)if(c>="0"&&c<="9"){number=c;for(c=s.charAt(pos++);c>="0"&&c<="9";)number+=c,c=s.charAt(pos++);if("."==c&&s.charAt(pos)>="0"&&s.charAt(pos)<="9")for(number+=c,number+=s.charAt(pos++),c=s.charAt(pos++);c>="0"&&c<="9";)number+=c,c=s.charAt(pos++);types.push(XPathParser.NUMBER),values.push(number)}else if("*"!=c)if(":"!=c||":"!=s.charAt(pos))if("/"!=c)if("!"!=c||"="!=s.charAt(pos))if("<"!=c)if(">"!=c){if("_"!=c&&!Utilities.isLetter(c.charCodeAt(0)))throw new Error("Unexpected character "+c);var name=c;for(c=s.charAt(pos++);Utilities.isNCNameChar(c.charCodeAt(0));)name+=c,c=s.charAt(pos++);if(types.length>0&&(last=types[types.length-1])!=XPathParser.AT&&last!=XPathParser.DOUBLECOLON&&last!=XPathParser.LEFTPARENTHESIS&&last!=XPathParser.LEFTBRACKET&&last!=XPathParser.AND&&last!=XPathParser.OR&&last!=XPathParser.MOD&&last!=XPathParser.DIV&&last!=XPathParser.MULTIPLYOPERATOR&&last!=XPathParser.SLASH&&last!=XPathParser.DOUBLESLASH&&last!=XPathParser.BAR&&last!=XPathParser.PLUS&&last!=XPathParser.MINUS&&last!=XPathParser.EQUALS&&last!=XPathParser.NOTEQUAL&&last!=XPathParser.LESSTHAN&&last!=XPathParser.LESSTHANOREQUAL&&last!=XPathParser.GREATERTHAN&&last!=XPathParser.GREATERTHANOREQUAL){if("and"==name){types.push(XPathParser.AND),values.push(name);continue}if("or"==name){types.push(XPathParser.OR),values.push(name);continue}if("mod"==name){types.push(XPathParser.MOD),values.push(name);continue}if("div"==name){types.push(XPathParser.DIV),values.push(name);continue}}if(":"==c){if("*"==s.charAt(pos)){types.push(XPathParser.NCNAMECOLONASTERISK),values.push(name+":*"),pos++,c=s.charAt(pos++);continue}if("_"==s.charAt(pos)||Utilities.isLetter(s.charCodeAt(pos))){for(name+=":",c=s.charAt(pos++);Utilities.isNCNameChar(c.charCodeAt(0));)name+=c,c=s.charAt(pos++);if("("==c){types.push(XPathParser.FUNCTIONNAME),values.push(name);continue}types.push(XPathParser.QNAME),values.push(name);continue}if(":"==s.charAt(pos)){types.push(XPathParser.AXISNAME),values.push(name);continue}}if("("==c){if("comment"==name||"text"==name||"node"==name){types.push(XPathParser.NODETYPE),values.push(name);continue}if("processing-instruction"==name){")"==s.charAt(pos)?types.push(XPathParser.NODETYPE):types.push(XPathParser.PROCESSINGINSTRUCTIONWITHLITERAL),values.push(name);continue}types.push(XPathParser.FUNCTIONNAME),values.push(name);continue}types.push(XPathParser.QNAME),values.push(name)}else{if("="==s.charAt(pos)){types.push(XPathParser.GREATERTHANOREQUAL),values.push(">="),pos++,c=s.charAt(pos++);continue}types.push(XPathParser.GREATERTHAN),values.push(">"),c=s.charAt(pos++)}else{if("="==s.charAt(pos)){types.push(XPathParser.LESSTHANOREQUAL),values.push("<="),pos++,c=s.charAt(pos++);continue}types.push(XPathParser.LESSTHAN),values.push("<"),c=s.charAt(pos++)}else types.push(XPathParser.NOTEQUAL),values.push("!="),pos++,c=s.charAt(pos++);else{if("/"==(c=s.charAt(pos++))){types.push(XPathParser.DOUBLESLASH),values.push("//"),c=s.charAt(pos++);continue}types.push(XPathParser.SLASH),values.push("/")}else types.push(XPathParser.DOUBLECOLON),values.push("::"),pos++,c=s.charAt(pos++);else{var last;if(types.length>0&&(last=types[types.length-1])!=XPathParser.AT&&last!=XPathParser.DOUBLECOLON&&last!=XPathParser.LEFTPARENTHESIS&&last!=XPathParser.LEFTBRACKET&&last!=XPathParser.AND&&last!=XPathParser.OR&&last!=XPathParser.MOD&&last!=XPathParser.DIV&&last!=XPathParser.MULTIPLYOPERATOR&&last!=XPathParser.SLASH&&last!=XPathParser.DOUBLESLASH&&last!=XPathParser.BAR&&last!=XPathParser.PLUS&&last!=XPathParser.MINUS&&last!=XPathParser.EQUALS&&last!=XPathParser.NOTEQUAL&&last!=XPathParser.LESSTHAN&&last!=XPathParser.LESSTHANOREQUAL&&last!=XPathParser.GREATERTHAN&&last!=XPathParser.GREATERTHANOREQUAL){types.push(XPathParser.MULTIPLYOPERATOR),values.push(c),c=s.charAt(pos++);continue}types.push(XPathParser.ASTERISKNAMETEST),values.push(c),c=s.charAt(pos++)}else{for(var delimiter=c,literal="";pos<s.length&&(c=s.charAt(pos))!==delimiter;)literal+=c,pos+=1;if(c!==delimiter)throw XPathException.fromMessage("Unterminated string literal: "+delimiter+literal);pos+=1,types.push(XPathParser.LITERAL),values.push(literal),c=s.charAt(pos++)}else{if("."==(c=s.charAt(pos++))){types.push(XPathParser.DOUBLEDOT),values.push(".."),c=s.charAt(pos++);continue}if(c>="0"&&c<="9"){var number="."+c;for(c=s.charAt(pos++);c>="0"&&c<="9";)number+=c,c=s.charAt(pos++);types.push(XPathParser.NUMBER),values.push(number);continue}types.push(XPathParser.DOT),values.push(".")}else types.push(XPathParser.DOLLAR),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.EQUALS),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.MINUS),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.PLUS),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.BAR),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.COMMA),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.AT),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.RIGHTBRACKET),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.LEFTBRACKET),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.RIGHTPARENTHESIS),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.LEFTPARENTHESIS),values.push(c),c=s.charAt(pos++)}return types.push(1),values.push("[EOF]"),[types,values]},XPathParser.SHIFT="s",XPathParser.REDUCE="r",XPathParser.ACCEPT="a",XPathParser.prototype.parse=function(s){var types,values,res=this.tokenize(s);if(null!=res){types=res[0],values=res[1];var a,t,tokenPos=0,state=[],tokenType=[],tokenValue=[];for(state.push(0),tokenType.push(1),tokenValue.push("_S"),a=types[tokenPos],t=values[tokenPos++];;)switch(s=state[state.length-1],XPathParser.actionTable[s].charAt(a-1)){case XPathParser.SHIFT:tokenType.push(-a),tokenValue.push(t),state.push(XPathParser.actionTableNumber[s].charCodeAt(a-1)-32),a=types[tokenPos],t=values[tokenPos++];break;case XPathParser.REDUCE:for(var num=XPathParser.productions[XPathParser.actionTableNumber[s].charCodeAt(a-1)-32][1],rhs=[],i=0;i<num;i++)tokenType.pop(),rhs.unshift(tokenValue.pop()),state.pop();var s_=state[state.length-1];tokenType.push(XPathParser.productions[XPathParser.actionTableNumber[s].charCodeAt(a-1)-32][0]),null==this.reduceActions[XPathParser.actionTableNumber[s].charCodeAt(a-1)-32]?tokenValue.push(rhs[0]):tokenValue.push(this.reduceActions[XPathParser.actionTableNumber[s].charCodeAt(a-1)-32](rhs)),state.push(XPathParser.gotoTable[s_].charCodeAt(XPathParser.productions[XPathParser.actionTableNumber[s].charCodeAt(a-1)-32][0]-2)-33);break;case XPathParser.ACCEPT:return new XPath(tokenValue.pop());default:throw new Error("XPath parse error")}}},XPath.prototype=new Object,XPath.prototype.constructor=XPath,XPath.superclass=Object.prototype,XPath.prototype.toString=function(){return this.expression.toString()},XPath.prototype.evaluate=function(c){return c.contextNode=c.expressionContextNode,c.contextSize=1,c.contextPosition=1,c.isHtml&&(setIfUnset(c,"caseInsensitive",!0),setIfUnset(c,"allowAnyNamespaceForNoPrefix",!0)),setIfUnset(c,"caseInsensitive",!1),this.expression.evaluate(c)},XPath.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",XPath.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",Expression.prototype=new Object,Expression.prototype.constructor=Expression,Expression.superclass=Object.prototype,Expression.prototype.init=function(){},Expression.prototype.toString=function(){return"<Expression>"},Expression.prototype.evaluate=function(c){throw new Error("Could not evaluate expression.")},UnaryOperation.prototype=new Expression,UnaryOperation.prototype.constructor=UnaryOperation,UnaryOperation.superclass=Expression.prototype,UnaryOperation.prototype.init=function(rhs){this.rhs=rhs},UnaryMinusOperation.prototype=new UnaryOperation,UnaryMinusOperation.prototype.constructor=UnaryMinusOperation,UnaryMinusOperation.superclass=UnaryOperation.prototype,UnaryMinusOperation.prototype.init=function(rhs){UnaryMinusOperation.superclass.init.call(this,rhs)},UnaryMinusOperation.prototype.evaluate=function(c){return this.rhs.evaluate(c).number().negate()},UnaryMinusOperation.prototype.toString=function(){return"-"+this.rhs.toString()},BinaryOperation.prototype=new Expression,BinaryOperation.prototype.constructor=BinaryOperation,BinaryOperation.superclass=Expression.prototype,BinaryOperation.prototype.init=function(lhs,rhs){this.lhs=lhs,this.rhs=rhs},OrOperation.prototype=new BinaryOperation,OrOperation.prototype.constructor=OrOperation,OrOperation.superclass=BinaryOperation.prototype,OrOperation.prototype.init=function(lhs,rhs){OrOperation.superclass.init.call(this,lhs,rhs)},OrOperation.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},OrOperation.prototype.evaluate=function(c){var b=this.lhs.evaluate(c).bool();return b.booleanValue()?b:this.rhs.evaluate(c).bool()},AndOperation.prototype=new BinaryOperation,AndOperation.prototype.constructor=AndOperation,AndOperation.superclass=BinaryOperation.prototype,AndOperation.prototype.init=function(lhs,rhs){AndOperation.superclass.init.call(this,lhs,rhs)},AndOperation.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},AndOperation.prototype.evaluate=function(c){var b=this.lhs.evaluate(c).bool();return b.booleanValue()?this.rhs.evaluate(c).bool():b},EqualsOperation.prototype=new BinaryOperation,EqualsOperation.prototype.constructor=EqualsOperation,EqualsOperation.superclass=BinaryOperation.prototype,EqualsOperation.prototype.init=function(lhs,rhs){EqualsOperation.superclass.init.call(this,lhs,rhs)},EqualsOperation.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},EqualsOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).equals(this.rhs.evaluate(c))},NotEqualOperation.prototype=new BinaryOperation,NotEqualOperation.prototype.constructor=NotEqualOperation,NotEqualOperation.superclass=BinaryOperation.prototype,NotEqualOperation.prototype.init=function(lhs,rhs){NotEqualOperation.superclass.init.call(this,lhs,rhs)},NotEqualOperation.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},NotEqualOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).notequal(this.rhs.evaluate(c))},LessThanOperation.prototype=new BinaryOperation,LessThanOperation.prototype.constructor=LessThanOperation,LessThanOperation.superclass=BinaryOperation.prototype,LessThanOperation.prototype.init=function(lhs,rhs){LessThanOperation.superclass.init.call(this,lhs,rhs)},LessThanOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).lessthan(this.rhs.evaluate(c))},LessThanOperation.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},GreaterThanOperation.prototype=new BinaryOperation,GreaterThanOperation.prototype.constructor=GreaterThanOperation,GreaterThanOperation.superclass=BinaryOperation.prototype,GreaterThanOperation.prototype.init=function(lhs,rhs){GreaterThanOperation.superclass.init.call(this,lhs,rhs)},GreaterThanOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).greaterthan(this.rhs.evaluate(c))},GreaterThanOperation.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},LessThanOrEqualOperation.prototype=new BinaryOperation,LessThanOrEqualOperation.prototype.constructor=LessThanOrEqualOperation,LessThanOrEqualOperation.superclass=BinaryOperation.prototype,LessThanOrEqualOperation.prototype.init=function(lhs,rhs){LessThanOrEqualOperation.superclass.init.call(this,lhs,rhs)},LessThanOrEqualOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).lessthanorequal(this.rhs.evaluate(c))},LessThanOrEqualOperation.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},GreaterThanOrEqualOperation.prototype=new BinaryOperation,GreaterThanOrEqualOperation.prototype.constructor=GreaterThanOrEqualOperation,GreaterThanOrEqualOperation.superclass=BinaryOperation.prototype,GreaterThanOrEqualOperation.prototype.init=function(lhs,rhs){GreaterThanOrEqualOperation.superclass.init.call(this,lhs,rhs)},GreaterThanOrEqualOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).greaterthanorequal(this.rhs.evaluate(c))},GreaterThanOrEqualOperation.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},PlusOperation.prototype=new BinaryOperation,PlusOperation.prototype.constructor=PlusOperation,PlusOperation.superclass=BinaryOperation.prototype,PlusOperation.prototype.init=function(lhs,rhs){PlusOperation.superclass.init.call(this,lhs,rhs)},PlusOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).number().plus(this.rhs.evaluate(c).number())},PlusOperation.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},MinusOperation.prototype=new BinaryOperation,MinusOperation.prototype.constructor=MinusOperation,MinusOperation.superclass=BinaryOperation.prototype,MinusOperation.prototype.init=function(lhs,rhs){MinusOperation.superclass.init.call(this,lhs,rhs)},MinusOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).number().minus(this.rhs.evaluate(c).number())},MinusOperation.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},MultiplyOperation.prototype=new BinaryOperation,MultiplyOperation.prototype.constructor=MultiplyOperation,MultiplyOperation.superclass=BinaryOperation.prototype,MultiplyOperation.prototype.init=function(lhs,rhs){MultiplyOperation.superclass.init.call(this,lhs,rhs)},MultiplyOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).number().multiply(this.rhs.evaluate(c).number())},MultiplyOperation.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},DivOperation.prototype=new BinaryOperation,DivOperation.prototype.constructor=DivOperation,DivOperation.superclass=BinaryOperation.prototype,DivOperation.prototype.init=function(lhs,rhs){DivOperation.superclass.init.call(this,lhs,rhs)},DivOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).number().div(this.rhs.evaluate(c).number())},DivOperation.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},ModOperation.prototype=new BinaryOperation,ModOperation.prototype.constructor=ModOperation,ModOperation.superclass=BinaryOperation.prototype,ModOperation.prototype.init=function(lhs,rhs){ModOperation.superclass.init.call(this,lhs,rhs)},ModOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).number().mod(this.rhs.evaluate(c).number())},ModOperation.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},BarOperation.prototype=new BinaryOperation,BarOperation.prototype.constructor=BarOperation,BarOperation.superclass=BinaryOperation.prototype,BarOperation.prototype.init=function(lhs,rhs){BarOperation.superclass.init.call(this,lhs,rhs)},BarOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).nodeset().union(this.rhs.evaluate(c).nodeset())},BarOperation.prototype.toString=function(){return map(toString,[this.lhs,this.rhs]).join(" | ")},PathExpr.prototype=new Expression,PathExpr.prototype.constructor=PathExpr,PathExpr.superclass=Expression.prototype,PathExpr.prototype.init=function(filter,filterPreds,locpath){PathExpr.superclass.init.call(this),this.filter=filter,this.filterPredicates=filterPreds,this.locationPath=locpath},PathExpr.applyPredicates=function(predicates,c,nodes){if(0===predicates.length)return nodes;var ctx=c.extend({});return reduce((function(inNodes,pred){return ctx.contextSize=inNodes.length,f=function(node,i){return ctx.contextNode=node,ctx.contextPosition=i+1,PathExpr.predicateMatches(pred,ctx)},filtered=[],forEach((function(x,i){f(x,i)&&filtered.push(x)}),inNodes),filtered;var f,filtered}),nodes,predicates)},PathExpr.getRoot=function(xpc,nodes){var firstNode=nodes[0];if(firstNode.nodeType===NodeTypes_DOCUMENT_NODE)return firstNode;if(xpc.virtualRoot)return xpc.virtualRoot;var ownerDoc=firstNode.ownerDocument;if(ownerDoc)return ownerDoc;for(var n=firstNode;null!=n.parentNode;)n=n.parentNode;return n},PathExpr.applyStep=function(step,xpc,node){var newNodes=[];switch(xpc.contextNode=node,step.axis){case Step.ANCESTOR:if(xpc.contextNode===xpc.virtualRoot)break;for(m=xpc.contextNode.nodeType==NodeTypes_ATTRIBUTE_NODE?PathExpr.getOwnerElement(xpc.contextNode):xpc.contextNode.parentNode;null!=m&&(step.nodeTest.matches(m,xpc)&&newNodes.push(m),m!==xpc.virtualRoot);)m=m.parentNode;break;case Step.ANCESTORORSELF:for(var m=xpc.contextNode;null!=m&&(step.nodeTest.matches(m,xpc)&&newNodes.push(m),m!==xpc.virtualRoot);m=m.nodeType==NodeTypes_ATTRIBUTE_NODE?PathExpr.getOwnerElement(m):m.parentNode);break;case Step.ATTRIBUTE:var nnm=xpc.contextNode.attributes;if(null!=nnm)for(var k=0;k<nnm.length;k++){m=nnm.item(k);step.nodeTest.matches(m,xpc)&&newNodes.push(m)}break;case Step.CHILD:for(m=xpc.contextNode.firstChild;null!=m;m=m.nextSibling)step.nodeTest.matches(m,xpc)&&newNodes.push(m);break;case Step.DESCENDANT:for(var st=[xpc.contextNode.firstChild];st.length>0;)for(m=st.pop();null!=m;)step.nodeTest.matches(m,xpc)&&newNodes.push(m),null!=m.firstChild?(st.push(m.nextSibling),m=m.firstChild):m=m.nextSibling;break;case Step.DESCENDANTORSELF:step.nodeTest.matches(xpc.contextNode,xpc)&&newNodes.push(xpc.contextNode);for(st=[xpc.contextNode.firstChild];st.length>0;)for(m=st.pop();null!=m;)step.nodeTest.matches(m,xpc)&&newNodes.push(m),null!=m.firstChild?(st.push(m.nextSibling),m=m.firstChild):m=m.nextSibling;break;case Step.FOLLOWING:if(xpc.contextNode===xpc.virtualRoot)break;st=[];null!=xpc.contextNode.firstChild?st.unshift(xpc.contextNode.firstChild):st.unshift(xpc.contextNode.nextSibling);for(m=xpc.contextNode.parentNode;null!=m&&m.nodeType!=NodeTypes_DOCUMENT_NODE&&m!==xpc.virtualRoot;m=m.parentNode)st.unshift(m.nextSibling);do{for(m=st.pop();null!=m;)step.nodeTest.matches(m,xpc)&&newNodes.push(m),null!=m.firstChild?(st.push(m.nextSibling),m=m.firstChild):m=m.nextSibling}while(st.length>0);break;case Step.FOLLOWINGSIBLING:if(xpc.contextNode===xpc.virtualRoot)break;for(m=xpc.contextNode.nextSibling;null!=m;m=m.nextSibling)step.nodeTest.matches(m,xpc)&&newNodes.push(m);break;case Step.NAMESPACE:var n={};if(xpc.contextNode.nodeType==NodeTypes_ELEMENT_NODE){n.xml=XPath.XML_NAMESPACE_URI,n.xmlns=XPath.XMLNS_NAMESPACE_URI;for(m=xpc.contextNode;null!=m&&m.nodeType==NodeTypes_ELEMENT_NODE;m=m.parentNode)for(k=0;k<m.attributes.length;k++){var attr=m.attributes.item(k),nm=String(attr.name);if("xmlns"==nm)null==n[""]&&(n[""]=attr.value);else if(nm.length>6&&"xmlns:"==nm.substring(0,6)){null==n[pre=nm.substring(6,nm.length)]&&(n[pre]=attr.value)}}for(var pre in n){var nsn=new XPathNamespace(pre,n[pre],xpc.contextNode);step.nodeTest.matches(nsn,xpc)&&newNodes.push(nsn)}}break;case Step.PARENT:m=null,xpc.contextNode!==xpc.virtualRoot&&(m=xpc.contextNode.nodeType==NodeTypes_ATTRIBUTE_NODE?PathExpr.getOwnerElement(xpc.contextNode):xpc.contextNode.parentNode),null!=m&&step.nodeTest.matches(m,xpc)&&newNodes.push(m);break;case Step.PRECEDING:st=null!=xpc.virtualRoot?[xpc.virtualRoot]:[findRoot(xpc.contextNode)];outer:for(;st.length>0;)for(m=st.pop();null!=m;){if(m==xpc.contextNode)break outer;step.nodeTest.matches(m,xpc)&&newNodes.unshift(m),null!=m.firstChild?(st.push(m.nextSibling),m=m.firstChild):m=m.nextSibling}break;case Step.PRECEDINGSIBLING:if(xpc.contextNode===xpc.virtualRoot)break;for(m=xpc.contextNode.previousSibling;null!=m;m=m.previousSibling)step.nodeTest.matches(m,xpc)&&newNodes.push(m);break;case Step.SELF:step.nodeTest.matches(xpc.contextNode,xpc)&&newNodes.push(xpc.contextNode)}return newNodes},PathExpr.applySteps=function(steps,xpc,nodes){return reduce(applyStepToNodes.bind(null,xpc),nodes,steps)},PathExpr.prototype.applyFilter=function(c,xpc){if(!this.filter)return{nodes:[c.contextNode]};var ns=this.filter.evaluate(c);if(!Utilities.instance_of(ns,XNodeSet)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw new Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:ns}}return{nodes:PathExpr.applyPredicates(this.filterPredicates||[],xpc,ns.toUnsortedArray())}},PathExpr.applyLocationPath=function(locationPath,xpc,nodes){if(!locationPath)return nodes;var startNodes=locationPath.absolute?[PathExpr.getRoot(xpc,nodes)]:nodes;return PathExpr.applySteps(locationPath.steps,xpc,startNodes)},PathExpr.prototype.evaluate=function(c){var xpc=assign(new XPathContext,c),filterResult=this.applyFilter(c,xpc);if("nonNodes"in filterResult)return filterResult.nonNodes;var ns=new XNodeSet;return ns.addArray(PathExpr.applyLocationPath(this.locationPath,xpc,filterResult.nodes)),ns},PathExpr.predicateMatches=function(pred,c){var res=pred.evaluate(c);return Utilities.instance_of(res,XNumber)?c.contextPosition===res.numberValue():res.booleanValue()},PathExpr.predicateString=function(predicate){return wrap("[","]",predicate.toString())},PathExpr.predicatesString=function(predicates){return join("",map(PathExpr.predicateString,predicates))},PathExpr.prototype.toString=function(){if(null!=this.filter){var filterStr=toString(this.filter);return Utilities.instance_of(this.filter,XString)?wrap("'","'",filterStr):null!=this.filterPredicates&&this.filterPredicates.length?wrap("(",")",filterStr)+PathExpr.predicatesString(this.filterPredicates):null!=this.locationPath?filterStr+(this.locationPath.absolute?"":"/")+toString(this.locationPath):filterStr}return toString(this.locationPath)},PathExpr.getOwnerElement=function(n){if(n.ownerElement)return n.ownerElement;try{if(n.selectSingleNode)return n.selectSingleNode("..")}catch(e){}for(var elts=(n.nodeType==NodeTypes_DOCUMENT_NODE?n:n.ownerDocument).getElementsByTagName("*"),i=0;i<elts.length;i++)for(var elt=elts.item(i),nnm=elt.attributes,j=0;j<nnm.length;j++){if(nnm.item(j)===n)return elt}return null},LocationPath.prototype=new Object,LocationPath.prototype.constructor=LocationPath,LocationPath.superclass=Object.prototype,LocationPath.prototype.init=function(abs,steps){this.absolute=abs,this.steps=steps},LocationPath.prototype.toString=function(){return(this.absolute?"/":"")+map(toString,this.steps).join("/")},Step.prototype=new Object,Step.prototype.constructor=Step,Step.superclass=Object.prototype,Step.prototype.init=function(axis,nodetest,preds){this.axis=axis,this.nodeTest=nodetest,this.predicates=preds},Step.prototype.toString=function(){return Step.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+PathExpr.predicatesString(this.predicates)},Step.ANCESTOR=0,Step.ANCESTORORSELF=1,Step.ATTRIBUTE=2,Step.CHILD=3,Step.DESCENDANT=4,Step.DESCENDANTORSELF=5,Step.FOLLOWING=6,Step.FOLLOWINGSIBLING=7,Step.NAMESPACE=8,Step.PARENT=9,Step.PRECEDING=10,Step.PRECEDINGSIBLING=11,Step.SELF=12,Step.STEPNAMES=reduce((function(acc,x){return acc[x[0]]=x[1],acc}),{},[[Step.ANCESTOR,"ancestor"],[Step.ANCESTORORSELF,"ancestor-or-self"],[Step.ATTRIBUTE,"attribute"],[Step.CHILD,"child"],[Step.DESCENDANT,"descendant"],[Step.DESCENDANTORSELF,"descendant-or-self"],[Step.FOLLOWING,"following"],[Step.FOLLOWINGSIBLING,"following-sibling"],[Step.NAMESPACE,"namespace"],[Step.PARENT,"parent"],[Step.PRECEDING,"preceding"],[Step.PRECEDINGSIBLING,"preceding-sibling"],[Step.SELF,"self"]]),NodeTest.prototype=new Object,NodeTest.prototype.constructor=NodeTest,NodeTest.superclass=Object.prototype,NodeTest.prototype.init=function(type,value){this.type=type,this.value=value},NodeTest.prototype.toString=function(){return"<unknown nodetest type>"},NodeTest.prototype.matches=function(n,xpc){console.warn("unknown node test type")},NodeTest.NAMETESTANY=0,NodeTest.NAMETESTPREFIXANY=1,NodeTest.NAMETESTQNAME=2,NodeTest.COMMENT=3,NodeTest.TEXT=4,NodeTest.PI=5,NodeTest.NODE=6,NodeTest.isNodeType=function(types){return function(node){return function(values,value){for(var i=0;i<values.length;i+=1)if(values[i]===value)return!0;return!1}(types,node.nodeType)}},NodeTest.makeNodeTestType=function(type,members,ctor){var newType=ctor||function(){};return newType.prototype=new NodeTest(type),newType.prototype.constructor=newType,assign(newType.prototype,members),newType},NodeTest.makeNodeTypeTest=function(type,nodeTypes,stringVal){return new(NodeTest.makeNodeTestType(type,{matches:NodeTest.isNodeType(nodeTypes),toString:(value=stringVal,function(){return value})}));var value},NodeTest.hasPrefix=function(node){return node.prefix||-1!==(node.nodeName||node.tagName).indexOf(":")},NodeTest.isElementOrAttribute=NodeTest.isNodeType([1,2]),NodeTest.nameSpaceMatches=function(prefix,xpc,n){var nNamespace=n.namespaceURI||"";if(!prefix)return!nNamespace||xpc.allowAnyNamespaceForNoPrefix&&!NodeTest.hasPrefix(n);var ns=xpc.namespaceResolver.getNamespace(prefix,xpc.expressionContextNode);if(null==ns)throw new Error("Cannot resolve QName "+prefix);return ns===nNamespace},NodeTest.localNameMatches=function(localName,xpc,n){var nLocalName=n.localName||n.nodeName;return xpc.caseInsensitive?localName.toLowerCase()===nLocalName.toLowerCase():localName===nLocalName},NodeTest.NameTestPrefixAny=NodeTest.makeNodeTestType(NodeTest.NAMETESTPREFIXANY,{matches:function(n,xpc){return NodeTest.isElementOrAttribute(n)&&NodeTest.nameSpaceMatches(this.prefix,xpc,n)},toString:function(){return this.prefix+":*"}},(function NameTestPrefixAny(prefix){this.prefix=prefix})),NodeTest.NameTestQName=NodeTest.makeNodeTestType(NodeTest.NAMETESTQNAME,{matches:function(n,xpc){return NodeTest.isNodeType([NodeTypes_ELEMENT_NODE,NodeTypes_ATTRIBUTE_NODE,XPathNamespace.XPATH_NAMESPACE_NODE])(n)&&NodeTest.nameSpaceMatches(this.prefix,xpc,n)&&NodeTest.localNameMatches(this.localName,xpc,n)},toString:function(){return this.name}},(function NameTestQName(name){var nameParts=name.split(":");this.name=name,this.prefix=nameParts.length>1?nameParts[0]:null,this.localName=nameParts[nameParts.length>1?1:0]})),NodeTest.PITest=NodeTest.makeNodeTestType(NodeTest.PI,{matches:function(n,xpc){return NodeTest.isNodeType([NodeTypes_PROCESSING_INSTRUCTION_NODE])(n)&&(n.target||n.nodeName)===this.name},toString:function(){return wrap('processing-instruction("','")',this.name)}},(function(name){this.name=name})),NodeTest.nameTestAny=NodeTest.makeNodeTypeTest(NodeTest.NAMETESTANY,[NodeTypes_ELEMENT_NODE,NodeTypes_ATTRIBUTE_NODE,XPathNamespace.XPATH_NAMESPACE_NODE],"*"),NodeTest.textTest=NodeTest.makeNodeTypeTest(NodeTest.TEXT,[NodeTypes_TEXT_NODE,NodeTypes_CDATA_SECTION_NODE],"text()"),NodeTest.commentTest=NodeTest.makeNodeTypeTest(NodeTest.COMMENT,[NodeTypes_COMMENT_NODE],"comment()"),NodeTest.nodeTest=NodeTest.makeNodeTypeTest(NodeTest.NODE,[NodeTypes_ELEMENT_NODE,NodeTypes_ATTRIBUTE_NODE,NodeTypes_TEXT_NODE,NodeTypes_CDATA_SECTION_NODE,NodeTypes_PROCESSING_INSTRUCTION_NODE,NodeTypes_COMMENT_NODE,NodeTypes_DOCUMENT_NODE],"node()"),NodeTest.anyPiTest=NodeTest.makeNodeTypeTest(NodeTest.PI,[NodeTypes_PROCESSING_INSTRUCTION_NODE],"processing-instruction()"),VariableReference.prototype=new Expression,VariableReference.prototype.constructor=VariableReference,VariableReference.superclass=Expression.prototype,VariableReference.prototype.init=function(v){this.variable=v},VariableReference.prototype.toString=function(){return"$"+this.variable},VariableReference.prototype.evaluate=function(c){var parts=Utilities.resolveQName(this.variable,c.namespaceResolver,c.contextNode,!1);if(null==parts[0])throw new Error("Cannot resolve QName "+fn);var result=c.variableResolver.getVariable(parts[1],parts[0]);if(!result)throw XPathException.fromMessage("Undeclared variable: "+this.toString());return result},FunctionCall.prototype=new Expression,FunctionCall.prototype.constructor=FunctionCall,FunctionCall.superclass=Expression.prototype,FunctionCall.prototype.init=function(fn,args){this.functionName=fn,this.arguments=args},FunctionCall.prototype.toString=function(){for(var s=this.functionName+"(",i=0;i<this.arguments.length;i++)i>0&&(s+=", "),s+=this.arguments[i].toString();return s+")"},FunctionCall.prototype.evaluate=function(c){var f=FunctionResolver.getFunctionFromContext(this.functionName,c);if(!f)throw new Error("Unknown function "+this.functionName);var a=[c].concat(this.arguments);return f.apply(c.functionResolver.thisArg,a)};var Operators=new Object;function XString(s){arguments.length>0&&this.init(s)}function XNumber(n){arguments.length>0&&this.init(n)}function XBoolean(b){arguments.length>0&&this.init(b)}function AVLTree(n){this.init(n)}function XNodeSet(){this.init()}function XPathNamespace(pre,ns,p){this.isXPathNamespace=!0,this.ownerDocument=p.ownerDocument,this.nodeName="#namespace",this.prefix=pre,this.localName=pre,this.namespaceURI=ns,this.nodeValue=ns,this.ownerElement=p,this.nodeType=XPathNamespace.XPATH_NAMESPACE_NODE}function XPathContext(vr,nr,fr){this.variableResolver=null!=vr?vr:new VariableResolver,this.namespaceResolver=null!=nr?nr:new NamespaceResolver,this.functionResolver=null!=fr?fr:new FunctionResolver}function VariableResolver(){}function FunctionResolver(thisArg){this.thisArg=null!=thisArg?thisArg:Functions,this.functions=new Object,this.addStandardFunctions()}function NamespaceResolver(){}Operators.equals=function(l,r){return l.equals(r)},Operators.notequal=function(l,r){return l.notequal(r)},Operators.lessthan=function(l,r){return l.lessthan(r)},Operators.greaterthan=function(l,r){return l.greaterthan(r)},Operators.lessthanorequal=function(l,r){return l.lessthanorequal(r)},Operators.greaterthanorequal=function(l,r){return l.greaterthanorequal(r)},XString.prototype=new Expression,XString.prototype.constructor=XString,XString.superclass=Expression.prototype,XString.prototype.init=function(s){this.str=String(s)},XString.prototype.toString=function(){return this.str},XString.prototype.evaluate=function(c){return this},XString.prototype.string=function(){return this},XString.prototype.number=function(){return new XNumber(this.str)},XString.prototype.bool=function(){return new XBoolean(this.str)},XString.prototype.nodeset=function(){throw new Error("Cannot convert string to nodeset")},XString.prototype.stringValue=function(){return this.str},XString.prototype.numberValue=function(){return this.number().numberValue()},XString.prototype.booleanValue=function(){return this.bool().booleanValue()},XString.prototype.equals=function(r){return Utilities.instance_of(r,XBoolean)?this.bool().equals(r):Utilities.instance_of(r,XNumber)?this.number().equals(r):Utilities.instance_of(r,XNodeSet)?r.compareWithString(this,Operators.equals):new XBoolean(this.str==r.str)},XString.prototype.notequal=function(r){return Utilities.instance_of(r,XBoolean)?this.bool().notequal(r):Utilities.instance_of(r,XNumber)?this.number().notequal(r):Utilities.instance_of(r,XNodeSet)?r.compareWithString(this,Operators.notequal):new XBoolean(this.str!=r.str)},XString.prototype.lessthan=function(r){return this.number().lessthan(r)},XString.prototype.greaterthan=function(r){return this.number().greaterthan(r)},XString.prototype.lessthanorequal=function(r){return this.number().lessthanorequal(r)},XString.prototype.greaterthanorequal=function(r){return this.number().greaterthanorequal(r)},XNumber.prototype=new Expression,XNumber.prototype.constructor=XNumber,XNumber.superclass=Expression.prototype,XNumber.prototype.init=function(n){this.num="string"==typeof n?this.parse(n):Number(n)},XNumber.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,XNumber.prototype.parse=function(s){return this.numberFormat.test(s)?parseFloat(s):Number.NaN},XNumber.prototype.toString=function(){var strValue=this.num.toString();return-1!==strValue.indexOf("e-")?function padSmallNumber(numberStr){for(var parts=numberStr.split("e-"),base=parts[0].replace(".",""),exponent=Number(parts[1]),i=0;i<exponent-1;i+=1)base="0"+base;return"0."+base}(strValue):-1!==strValue.indexOf("e")?function padLargeNumber(numberStr){for(var parts=numberStr.split("e"),base=parts[0].replace(".",""),zerosToAppend=Number(parts[1])+1-base.length,i=0;i<zerosToAppend;i+=1)base+="0";return base}(strValue):strValue},XNumber.prototype.evaluate=function(c){return this},XNumber.prototype.string=function(){return new XString(this.toString())},XNumber.prototype.number=function(){return this},XNumber.prototype.bool=function(){return new XBoolean(this.num)},XNumber.prototype.nodeset=function(){throw new Error("Cannot convert number to nodeset")},XNumber.prototype.stringValue=function(){return this.string().stringValue()},XNumber.prototype.numberValue=function(){return this.num},XNumber.prototype.booleanValue=function(){return this.bool().booleanValue()},XNumber.prototype.negate=function(){return new XNumber(-this.num)},XNumber.prototype.equals=function(r){return Utilities.instance_of(r,XBoolean)?this.bool().equals(r):Utilities.instance_of(r,XString)?this.equals(r.number()):Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.equals):new XBoolean(this.num==r.num)},XNumber.prototype.notequal=function(r){return Utilities.instance_of(r,XBoolean)?this.bool().notequal(r):Utilities.instance_of(r,XString)?this.notequal(r.number()):Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.notequal):new XBoolean(this.num!=r.num)},XNumber.prototype.lessthan=function(r){return Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.greaterthan):Utilities.instance_of(r,XBoolean)||Utilities.instance_of(r,XString)?this.lessthan(r.number()):new XBoolean(this.num<r.num)},XNumber.prototype.greaterthan=function(r){return Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.lessthan):Utilities.instance_of(r,XBoolean)||Utilities.instance_of(r,XString)?this.greaterthan(r.number()):new XBoolean(this.num>r.num)},XNumber.prototype.lessthanorequal=function(r){return Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.greaterthanorequal):Utilities.instance_of(r,XBoolean)||Utilities.instance_of(r,XString)?this.lessthanorequal(r.number()):new XBoolean(this.num<=r.num)},XNumber.prototype.greaterthanorequal=function(r){return Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.lessthanorequal):Utilities.instance_of(r,XBoolean)||Utilities.instance_of(r,XString)?this.greaterthanorequal(r.number()):new XBoolean(this.num>=r.num)},XNumber.prototype.plus=function(r){return new XNumber(this.num+r.num)},XNumber.prototype.minus=function(r){return new XNumber(this.num-r.num)},XNumber.prototype.multiply=function(r){return new XNumber(this.num*r.num)},XNumber.prototype.div=function(r){return new XNumber(this.num/r.num)},XNumber.prototype.mod=function(r){return new XNumber(this.num%r.num)},XBoolean.prototype=new Expression,XBoolean.prototype.constructor=XBoolean,XBoolean.superclass=Expression.prototype,XBoolean.prototype.init=function(b){this.b=Boolean(b)},XBoolean.prototype.toString=function(){return this.b.toString()},XBoolean.prototype.evaluate=function(c){return this},XBoolean.prototype.string=function(){return new XString(this.b)},XBoolean.prototype.number=function(){return new XNumber(this.b)},XBoolean.prototype.bool=function(){return this},XBoolean.prototype.nodeset=function(){throw new Error("Cannot convert boolean to nodeset")},XBoolean.prototype.stringValue=function(){return this.string().stringValue()},XBoolean.prototype.numberValue=function(){return this.number().numberValue()},XBoolean.prototype.booleanValue=function(){return this.b},XBoolean.prototype.not=function(){return new XBoolean(!this.b)},XBoolean.prototype.equals=function(r){return Utilities.instance_of(r,XString)||Utilities.instance_of(r,XNumber)?this.equals(r.bool()):Utilities.instance_of(r,XNodeSet)?r.compareWithBoolean(this,Operators.equals):new XBoolean(this.b==r.b)},XBoolean.prototype.notequal=function(r){return Utilities.instance_of(r,XString)||Utilities.instance_of(r,XNumber)?this.notequal(r.bool()):Utilities.instance_of(r,XNodeSet)?r.compareWithBoolean(this,Operators.notequal):new XBoolean(this.b!=r.b)},XBoolean.prototype.lessthan=function(r){return this.number().lessthan(r)},XBoolean.prototype.greaterthan=function(r){return this.number().greaterthan(r)},XBoolean.prototype.lessthanorequal=function(r){return this.number().lessthanorequal(r)},XBoolean.prototype.greaterthanorequal=function(r){return this.number().greaterthanorequal(r)},XBoolean.true_=new XBoolean(!0),XBoolean.false_=new XBoolean(!1),AVLTree.prototype=new Object,AVLTree.prototype.constructor=AVLTree,AVLTree.superclass=Object.prototype,AVLTree.prototype.init=function(n){this.left=null,this.right=null,this.node=n,this.depth=1},AVLTree.prototype.balance=function(){var ldepth=null==this.left?0:this.left.depth,rdepth=null==this.right?0:this.right.depth;if(ldepth>rdepth+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(ldepth+1<rdepth){var rrdepth=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>rrdepth&&this.right.rotateLL(),this.rotateRR()}},AVLTree.prototype.rotateLL=function(){var nodeBefore=this.node,rightBefore=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=rightBefore,this.right.node=nodeBefore,this.right.updateInNewLocation(),this.updateInNewLocation()},AVLTree.prototype.rotateRR=function(){var nodeBefore=this.node,leftBefore=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=leftBefore,this.left.node=nodeBefore,this.left.updateInNewLocation(),this.updateInNewLocation()},AVLTree.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},AVLTree.prototype.getDepthFromChildren=function(){this.depth=null==this.node?0:1,null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},AVLTree.prototype.add=function(n){if(n===this.node)return!1;var o=function nodeOrder(n1,n2){if(n1===n2)return 0;if(n1.compareDocumentPosition){var cpos=n1.compareDocumentPosition(n2);return 1&cpos||10&cpos?1:20&cpos?-1:0}for(var d1=0,d2=0,m1=n1;null!=m1;m1=m1.parentNode||m1.ownerElement)d1++;for(var m2=n2;null!=m2;m2=m2.parentNode||m2.ownerElement)d2++;if(d1>d2){for(;d1>d2;)n1=n1.parentNode||n1.ownerElement,d1--;if(n1===n2)return 1}else if(d2>d1){for(;d2>d1;)n2=n2.parentNode||n2.ownerElement,d2--;if(n1===n2)return-1}for(var n1Par=n1.parentNode||n1.ownerElement,n2Par=n2.parentNode||n2.ownerElement;n1Par!==n2Par;)n2=n2Par,n1Par=(n1=n1Par).parentNode||n1.ownerElement,n2Par=n2.parentNode||n2.ownerElement;var n1isAttr=Utilities.isAttribute(n1),n2isAttr=Utilities.isAttribute(n2);if(n1isAttr&&!n2isAttr)return-1;if(!n1isAttr&&n2isAttr)return 1;if(n1Par)for(var cn=n1isAttr?n1Par.attributes:n1Par.childNodes,len=cn.length,i=0;i<len;i+=1){var n=cn[i];if(n===n1)return-1;if(n===n2)return 1}throw new Error("Unexpected: could not determine node order")}(n,this.node),ret=!1;return-1==o?null==this.left?(this.left=new AVLTree(n),ret=!0):(ret=this.left.add(n))&&this.balance():1==o&&(null==this.right?(this.right=new AVLTree(n),ret=!0):(ret=this.right.add(n))&&this.balance()),ret&&this.getDepthFromChildren(),ret},XNodeSet.prototype=new Expression,XNodeSet.prototype.constructor=XNodeSet,XNodeSet.superclass=Expression.prototype,XNodeSet.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},XNodeSet.prototype.toString=function(){var p=this.first();return null==p?"":this.stringForNode(p)},XNodeSet.prototype.evaluate=function(c){return this},XNodeSet.prototype.string=function(){return new XString(this.toString())},XNodeSet.prototype.stringValue=function(){return this.toString()},XNodeSet.prototype.number=function(){return new XNumber(this.string())},XNodeSet.prototype.numberValue=function(){return Number(this.string())},XNodeSet.prototype.bool=function(){return new XBoolean(this.booleanValue())},XNodeSet.prototype.booleanValue=function(){return!!this.size},XNodeSet.prototype.nodeset=function(){return this},XNodeSet.prototype.stringForNode=function(n){return n.nodeType==NodeTypes_DOCUMENT_NODE||n.nodeType==NodeTypes_ELEMENT_NODE||n.nodeType===NodeTypes_DOCUMENT_FRAGMENT_NODE?this.stringForContainerNode(n):n.nodeType===NodeTypes_ATTRIBUTE_NODE?n.value||n.nodeValue:n.isNamespaceNode?n.namespace:n.nodeValue},XNodeSet.prototype.stringForContainerNode=function(n){for(var s="",n2=n.firstChild;null!=n2;n2=n2.nextSibling){var nt=n2.nodeType;1!==nt&&3!==nt&&4!==nt&&9!==nt&&11!==nt||(s+=this.stringForNode(n2))}return s},XNodeSet.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new AVLTree(this.nodes[0]);for(var i=1;i<this.nodes.length;i+=1)this.tree.add(this.nodes[i])}return this.tree},XNodeSet.prototype.first=function(){var p=this.buildTree();if(null==p)return null;for(;null!=p.left;)p=p.left;return p.node},XNodeSet.prototype.add=function(n){for(var i=0;i<this.nodes.length;i+=1)if(n===this.nodes[i])return;this.tree=null,this.nodes.push(n),this.size+=1},XNodeSet.prototype.addArray=function(ns){var self=this;forEach((function(x){self.add(x)}),ns)},XNodeSet.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},XNodeSet.prototype.toArrayRec=function(t,a){null!=t&&(this.toArrayRec(t.left,a),a.push(t.node),this.toArrayRec(t.right,a))},XNodeSet.prototype.toUnsortedArray=function(){return this.nodes.slice()},XNodeSet.prototype.compareWithString=function(r,o){for(var a=this.toUnsortedArray(),i=0;i<a.length;i++){var n=a[i],res=o(new XString(this.stringForNode(n)),r);if(res.booleanValue())return res}return new XBoolean(!1)},XNodeSet.prototype.compareWithNumber=function(r,o){for(var a=this.toUnsortedArray(),i=0;i<a.length;i++){var n=a[i],res=o(new XNumber(this.stringForNode(n)),r);if(res.booleanValue())return res}return new XBoolean(!1)},XNodeSet.prototype.compareWithBoolean=function(r,o){return o(this.bool(),r)},XNodeSet.prototype.compareWithNodeSet=function(r,o){for(var arr=this.toUnsortedArray(),oInvert=function(lop,rop){return o(rop,lop)},i=0;i<arr.length;i++){var l=new XString(this.stringForNode(arr[i])),res=r.compareWithString(l,oInvert);if(res.booleanValue())return res}return new XBoolean(!1)},XNodeSet.compareWith=function curry(func){var slice=Array.prototype.slice,totalargs=func.length,fn=function(){var args=slice.call(arguments);return args.length<totalargs?function(args,fn){return function(){return fn.apply(this,args.concat(slice.call(arguments)))}}(args,fn):func.apply(this,slice.apply(arguments,[0,totalargs]))};return fn}((function(o,r){return Utilities.instance_of(r,XString)?this.compareWithString(r,o):Utilities.instance_of(r,XNumber)?this.compareWithNumber(r,o):Utilities.instance_of(r,XBoolean)?this.compareWithBoolean(r,o):this.compareWithNodeSet(r,o)})),XNodeSet.prototype.equals=XNodeSet.compareWith(Operators.equals),XNodeSet.prototype.notequal=XNodeSet.compareWith(Operators.notequal),XNodeSet.prototype.lessthan=XNodeSet.compareWith(Operators.lessthan),XNodeSet.prototype.greaterthan=XNodeSet.compareWith(Operators.greaterthan),XNodeSet.prototype.lessthanorequal=XNodeSet.compareWith(Operators.lessthanorequal),XNodeSet.prototype.greaterthanorequal=XNodeSet.compareWith(Operators.greaterthanorequal),XNodeSet.prototype.union=function(r){var ns=new XNodeSet;return ns.addArray(this.toUnsortedArray()),ns.addArray(r.toUnsortedArray()),ns},XPathNamespace.prototype=new Object,XPathNamespace.prototype.constructor=XPathNamespace,XPathNamespace.superclass=Object.prototype,XPathNamespace.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},XPathContext.prototype=new Object,XPathContext.prototype.constructor=XPathContext,XPathContext.superclass=Object.prototype,XPathContext.prototype.extend=function(newProps){return assign(new XPathContext,this,newProps)},VariableResolver.prototype=new Object,VariableResolver.prototype.constructor=VariableResolver,VariableResolver.superclass=Object.prototype,VariableResolver.prototype.getVariable=function(ln,ns){return null},FunctionResolver.prototype=new Object,FunctionResolver.prototype.constructor=FunctionResolver,FunctionResolver.superclass=Object.prototype,FunctionResolver.prototype.addStandardFunctions=function(){this.functions["{}last"]=Functions.last,this.functions["{}position"]=Functions.position,this.functions["{}count"]=Functions.count,this.functions["{}id"]=Functions.id,this.functions["{}local-name"]=Functions.localName,this.functions["{}namespace-uri"]=Functions.namespaceURI,this.functions["{}name"]=Functions.name,this.functions["{}string"]=Functions.string,this.functions["{}concat"]=Functions.concat,this.functions["{}starts-with"]=Functions.startsWith,this.functions["{}contains"]=Functions.contains,this.functions["{}substring-before"]=Functions.substringBefore,this.functions["{}substring-after"]=Functions.substringAfter,this.functions["{}substring"]=Functions.substring,this.functions["{}string-length"]=Functions.stringLength,this.functions["{}normalize-space"]=Functions.normalizeSpace,this.functions["{}translate"]=Functions.translate,this.functions["{}boolean"]=Functions.boolean_,this.functions["{}not"]=Functions.not,this.functions["{}true"]=Functions.true_,this.functions["{}false"]=Functions.false_,this.functions["{}lang"]=Functions.lang,this.functions["{}number"]=Functions.number,this.functions["{}sum"]=Functions.sum,this.functions["{}floor"]=Functions.floor,this.functions["{}ceiling"]=Functions.ceiling,this.functions["{}round"]=Functions.round},FunctionResolver.prototype.addFunction=function(ns,ln,f){this.functions["{"+ns+"}"+ln]=f},FunctionResolver.getFunctionFromContext=function(qName,context){var parts=Utilities.resolveQName(qName,context.namespaceResolver,context.contextNode,!1);if(null===parts[0])throw new Error("Cannot resolve QName "+name);return context.functionResolver.getFunction(parts[1],parts[0])},FunctionResolver.prototype.getFunction=function(localName,namespace){return this.functions["{"+namespace+"}"+localName]},NamespaceResolver.prototype=new Object,NamespaceResolver.prototype.constructor=NamespaceResolver,NamespaceResolver.superclass=Object.prototype,NamespaceResolver.prototype.getNamespace=function(prefix,n){if("xml"==prefix)return XPath.XML_NAMESPACE_URI;if("xmlns"==prefix)return XPath.XMLNS_NAMESPACE_URI;for(n.nodeType==NodeTypes_DOCUMENT_NODE?n=n.documentElement:n.nodeType==NodeTypes_ATTRIBUTE_NODE?n=PathExpr.getOwnerElement(n):n.nodeType!=NodeTypes_ELEMENT_NODE&&(n=n.parentNode);null!=n&&n.nodeType==NodeTypes_ELEMENT_NODE;){for(var nnm=n.attributes,i=0;i<nnm.length;i++){var a=nnm.item(i),aname=a.name||a.nodeName;if("xmlns"===aname&&""===prefix||aname==="xmlns:"+prefix)return String(a.value||a.nodeValue)}n=n.parentNode}return null};var Functions=new Object;Functions.last=function(c){if(1!=arguments.length)throw new Error("Function last expects ()");return new XNumber(c.contextSize)},Functions.position=function(c){if(1!=arguments.length)throw new Error("Function position expects ()");return new XNumber(c.contextPosition)},Functions.count=function(){var ns,c=arguments[0];if(2!=arguments.length||!Utilities.instance_of(ns=arguments[1].evaluate(c),XNodeSet))throw new Error("Function count expects (node-set)");return new XNumber(ns.size)},Functions.id=function(){var id,c=arguments[0];if(2!=arguments.length)throw new Error("Function id expects (object)");id=arguments[1].evaluate(c);for(var ids=(id=Utilities.instance_of(id,XNodeSet)?id.toArray().join(" "):id.stringValue()).split(/[\x0d\x0a\x09\x20]+/),ns=new XNodeSet,doc=c.contextNode.nodeType==NodeTypes_DOCUMENT_NODE?c.contextNode:c.contextNode.ownerDocument,i=0;i<ids.length;i++){var n;null!=(n=doc.getElementById?doc.getElementById(ids[i]):Utilities.getElementById(doc,ids[i]))&&ns.add(n)}return ns},Functions.localName=function(c,eNode){var n;if(1==arguments.length)n=c.contextNode;else{if(2!=arguments.length)throw new Error("Function local-name expects (node-set?)");n=eNode.evaluate(c).first()}return new XString(null==n?"":n.localName||n.baseName||n.target||n.nodeName||"")},Functions.namespaceURI=function(){var n,c=arguments[0];if(1==arguments.length)n=c.contextNode;else{if(2!=arguments.length)throw new Error("Function namespace-uri expects (node-set?)");n=arguments[1].evaluate(c).first()}return new XString(null==n?"":n.namespaceURI)},Functions.name=function(){var n,c=arguments[0];if(1==arguments.length)n=c.contextNode;else{if(2!=arguments.length)throw new Error("Function name expects (node-set?)");n=arguments[1].evaluate(c).first()}return null==n?new XString(""):n.nodeType==NodeTypes_ELEMENT_NODE?new XString(n.nodeName):n.nodeType==NodeTypes_ATTRIBUTE_NODE?new XString(n.name||n.nodeName):n.nodeType===NodeTypes_PROCESSING_INSTRUCTION_NODE?new XString(n.target||n.nodeName):null==n.localName?new XString(""):new XString(n.localName)},Functions.string=function(){var c=arguments[0];if(1==arguments.length)return new XString(XNodeSet.prototype.stringForNode(c.contextNode));if(2==arguments.length)return arguments[1].evaluate(c).string();throw new Error("Function string expects (object?)")},Functions.concat=function(c){if(arguments.length<3)throw new Error("Function concat expects (string, string[, string]*)");for(var s="",i=1;i<arguments.length;i++)s+=arguments[i].evaluate(c).stringValue();return new XString(s)},Functions.startsWith=function(){var c=arguments[0];if(3!=arguments.length)throw new Error("Function startsWith expects (string, string)");var s1=arguments[1].evaluate(c).stringValue(),s2=arguments[2].evaluate(c).stringValue();return new XBoolean(s1.substring(0,s2.length)==s2)},Functions.contains=function(){var c=arguments[0];if(3!=arguments.length)throw new Error("Function contains expects (string, string)");var s1=arguments[1].evaluate(c).stringValue(),s2=arguments[2].evaluate(c).stringValue();return new XBoolean(-1!==s1.indexOf(s2))},Functions.substringBefore=function(){var c=arguments[0];if(3!=arguments.length)throw new Error("Function substring-before expects (string, string)");var s1=arguments[1].evaluate(c).stringValue(),s2=arguments[2].evaluate(c).stringValue();return new XString(s1.substring(0,s1.indexOf(s2)))},Functions.substringAfter=function(){var c=arguments[0];if(3!=arguments.length)throw new Error("Function substring-after expects (string, string)");var s1=arguments[1].evaluate(c).stringValue(),s2=arguments[2].evaluate(c).stringValue();if(0==s2.length)return new XString(s1);var i=s1.indexOf(s2);return new XString(-1==i?"":s1.substring(i+s2.length))},Functions.substring=function(){var c=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw new Error("Function substring expects (string, number, number?)");var s=arguments[1].evaluate(c).stringValue(),n1=Math.round(arguments[2].evaluate(c).numberValue())-1,n2=4==arguments.length?n1+Math.round(arguments[3].evaluate(c).numberValue()):void 0;return new XString(s.substring(n1,n2))},Functions.stringLength=function(){var s,c=arguments[0];if(1==arguments.length)s=XNodeSet.prototype.stringForNode(c.contextNode);else{if(2!=arguments.length)throw new Error("Function string-length expects (string?)");s=arguments[1].evaluate(c).stringValue()}return new XNumber(s.length)},Functions.normalizeSpace=function(){var s,c=arguments[0];if(1==arguments.length)s=XNodeSet.prototype.stringForNode(c.contextNode);else{if(2!=arguments.length)throw new Error("Function normalize-space expects (string?)");s=arguments[1].evaluate(c).stringValue()}for(var i=0,j=s.length-1;Utilities.isSpace(s.charCodeAt(j));)j--;for(var t="";i<=j&&Utilities.isSpace(s.charCodeAt(i));)i++;for(;i<=j;)if(Utilities.isSpace(s.charCodeAt(i)))for(t+=" ";i<=j&&Utilities.isSpace(s.charCodeAt(i));)i++;else t+=s.charAt(i),i++;return new XString(t)},Functions.translate=function(c,eValue,eFrom,eTo){if(4!=arguments.length)throw new Error("Function translate expects (string, string, string)");var value=eValue.evaluate(c).stringValue(),from=eFrom.evaluate(c).stringValue(),to=eTo.evaluate(c).stringValue(),cMap=reduce((function(acc,ch,i){return ch in acc||(acc[ch]=i>to.length?"":to[i]),acc}),{},from);return new XString(join("",map((function(ch){return ch in cMap?cMap[ch]:ch}),value)))},Functions.boolean_=function(){var c=arguments[0];if(2!=arguments.length)throw new Error("Function boolean expects (object)");return arguments[1].evaluate(c).bool()},Functions.not=function(c,eValue){if(2!=arguments.length)throw new Error("Function not expects (object)");return eValue.evaluate(c).bool().not()},Functions.true_=function(){if(1!=arguments.length)throw new Error("Function true expects ()");return XBoolean.true_},Functions.false_=function(){if(1!=arguments.length)throw new Error("Function false expects ()");return XBoolean.false_},Functions.lang=function(){var lang,c=arguments[0];if(2!=arguments.length)throw new Error("Function lang expects (string)");for(var n=c.contextNode;null!=n&&n.nodeType!=NodeTypes_DOCUMENT_NODE;n=n.parentNode){var a=n.getAttributeNS(XPath.XML_NAMESPACE_URI,"lang");if(null!=a){lang=String(a);break}}if(null==lang)return XBoolean.false_;var s=arguments[1].evaluate(c).stringValue();return new XBoolean(lang.substring(0,s.length)==s&&(lang.length==s.length||"-"==lang.charAt(s.length)))},Functions.number=function(){var c=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw new Error("Function number expects (object?)");return 1==arguments.length?new XNumber(XNodeSet.prototype.stringForNode(c.contextNode)):arguments[1].evaluate(c).number()},Functions.sum=function(){var ns,c=arguments[0];if(2!=arguments.length||!Utilities.instance_of(ns=arguments[1].evaluate(c),XNodeSet))throw new Error("Function sum expects (node-set)");ns=ns.toUnsortedArray();for(var n=0,i=0;i<ns.length;i++)n+=new XNumber(XNodeSet.prototype.stringForNode(ns[i])).numberValue();return new XNumber(n)},Functions.floor=function(){var c=arguments[0];if(2!=arguments.length)throw new Error("Function floor expects (number)");return new XNumber(Math.floor(arguments[1].evaluate(c).numberValue()))},Functions.ceiling=function(){var c=arguments[0];if(2!=arguments.length)throw new Error("Function ceiling expects (number)");return new XNumber(Math.ceil(arguments[1].evaluate(c).numberValue()))},Functions.round=function(){var c=arguments[0];if(2!=arguments.length)throw new Error("Function round expects (number)");return new XNumber(Math.round(arguments[1].evaluate(c).numberValue()))};var Utilities=new Object;Utilities.isAttribute=function(val){return val&&(val.nodeType===NodeTypes_ATTRIBUTE_NODE||val.ownerElement)},Utilities.splitQName=function(qn){var i=qn.indexOf(":");return-1==i?[null,qn]:[qn.substring(0,i),qn.substring(i+1)]},Utilities.resolveQName=function(qn,nr,n,useDefault){var parts=Utilities.splitQName(qn);return null!=parts[0]?parts[0]=nr.getNamespace(parts[0],n):useDefault?(parts[0]=nr.getNamespace("",n),null==parts[0]&&(parts[0]="")):parts[0]="",parts},Utilities.isSpace=function(c){return 9==c||13==c||10==c||32==c},Utilities.isLetter=function(c){return c>=65&&c<=90||c>=97&&c<=122||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=255||c>=256&&c<=305||c>=308&&c<=318||c>=321&&c<=328||c>=330&&c<=382||c>=384&&c<=451||c>=461&&c<=496||c>=500&&c<=501||c>=506&&c<=535||c>=592&&c<=680||c>=699&&c<=705||902==c||c>=904&&c<=906||908==c||c>=910&&c<=929||c>=931&&c<=974||c>=976&&c<=982||986==c||988==c||990==c||992==c||c>=994&&c<=1011||c>=1025&&c<=1036||c>=1038&&c<=1103||c>=1105&&c<=1116||c>=1118&&c<=1153||c>=1168&&c<=1220||c>=1223&&c<=1224||c>=1227&&c<=1228||c>=1232&&c<=1259||c>=1262&&c<=1269||c>=1272&&c<=1273||c>=1329&&c<=1366||1369==c||c>=1377&&c<=1414||c>=1488&&c<=1514||c>=1520&&c<=1522||c>=1569&&c<=1594||c>=1601&&c<=1610||c>=1649&&c<=1719||c>=1722&&c<=1726||c>=1728&&c<=1742||c>=1744&&c<=1747||1749==c||c>=1765&&c<=1766||c>=2309&&c<=2361||2365==c||c>=2392&&c<=2401||c>=2437&&c<=2444||c>=2447&&c<=2448||c>=2451&&c<=2472||c>=2474&&c<=2480||2482==c||c>=2486&&c<=2489||c>=2524&&c<=2525||c>=2527&&c<=2529||c>=2544&&c<=2545||c>=2565&&c<=2570||c>=2575&&c<=2576||c>=2579&&c<=2600||c>=2602&&c<=2608||c>=2610&&c<=2611||c>=2613&&c<=2614||c>=2616&&c<=2617||c>=2649&&c<=2652||2654==c||c>=2674&&c<=2676||c>=2693&&c<=2699||2701==c||c>=2703&&c<=2705||c>=2707&&c<=2728||c>=2730&&c<=2736||c>=2738&&c<=2739||c>=2741&&c<=2745||2749==c||2784==c||c>=2821&&c<=2828||c>=2831&&c<=2832||c>=2835&&c<=2856||c>=2858&&c<=2864||c>=2866&&c<=2867||c>=2870&&c<=2873||2877==c||c>=2908&&c<=2909||c>=2911&&c<=2913||c>=2949&&c<=2954||c>=2958&&c<=2960||c>=2962&&c<=2965||c>=2969&&c<=2970||2972==c||c>=2974&&c<=2975||c>=2979&&c<=2980||c>=2984&&c<=2986||c>=2990&&c<=2997||c>=2999&&c<=3001||c>=3077&&c<=3084||c>=3086&&c<=3088||c>=3090&&c<=3112||c>=3114&&c<=3123||c>=3125&&c<=3129||c>=3168&&c<=3169||c>=3205&&c<=3212||c>=3214&&c<=3216||c>=3218&&c<=3240||c>=3242&&c<=3251||c>=3253&&c<=3257||3294==c||c>=3296&&c<=3297||c>=3333&&c<=3340||c>=3342&&c<=3344||c>=3346&&c<=3368||c>=3370&&c<=3385||c>=3424&&c<=3425||c>=3585&&c<=3630||3632==c||c>=3634&&c<=3635||c>=3648&&c<=3653||c>=3713&&c<=3714||3716==c||c>=3719&&c<=3720||3722==c||3725==c||c>=3732&&c<=3735||c>=3737&&c<=3743||c>=3745&&c<=3747||3749==c||3751==c||c>=3754&&c<=3755||c>=3757&&c<=3758||3760==c||c>=3762&&c<=3763||3773==c||c>=3776&&c<=3780||c>=3904&&c<=3911||c>=3913&&c<=3945||c>=4256&&c<=4293||c>=4304&&c<=4342||4352==c||c>=4354&&c<=4355||c>=4357&&c<=4359||4361==c||c>=4363&&c<=4364||c>=4366&&c<=4370||4412==c||4414==c||4416==c||4428==c||4430==c||4432==c||c>=4436&&c<=4437||4441==c||c>=4447&&c<=4449||4451==c||4453==c||4455==c||4457==c||c>=4461&&c<=4462||c>=4466&&c<=4467||4469==c||4510==c||4520==c||4523==c||c>=4526&&c<=4527||c>=4535&&c<=4536||4538==c||c>=4540&&c<=4546||4587==c||4592==c||4601==c||c>=7680&&c<=7835||c>=7840&&c<=7929||c>=7936&&c<=7957||c>=7960&&c<=7965||c>=7968&&c<=8005||c>=8008&&c<=8013||c>=8016&&c<=8023||8025==c||8027==c||8029==c||c>=8031&&c<=8061||c>=8064&&c<=8116||c>=8118&&c<=8124||8126==c||c>=8130&&c<=8132||c>=8134&&c<=8140||c>=8144&&c<=8147||c>=8150&&c<=8155||c>=8160&&c<=8172||c>=8178&&c<=8180||c>=8182&&c<=8188||8486==c||c>=8490&&c<=8491||8494==c||c>=8576&&c<=8578||c>=12353&&c<=12436||c>=12449&&c<=12538||c>=12549&&c<=12588||c>=44032&&c<=55203||c>=19968&&c<=40869||12295==c||c>=12321&&c<=12329},Utilities.isNCNameChar=function(c){return c>=48&&c<=57||c>=1632&&c<=1641||c>=1776&&c<=1785||c>=2406&&c<=2415||c>=2534&&c<=2543||c>=2662&&c<=2671||c>=2790&&c<=2799||c>=2918&&c<=2927||c>=3047&&c<=3055||c>=3174&&c<=3183||c>=3302&&c<=3311||c>=3430&&c<=3439||c>=3664&&c<=3673||c>=3792&&c<=3801||c>=3872&&c<=3881||46==c||45==c||95==c||Utilities.isLetter(c)||c>=768&&c<=837||c>=864&&c<=865||c>=1155&&c<=1158||c>=1425&&c<=1441||c>=1443&&c<=1465||c>=1467&&c<=1469||1471==c||c>=1473&&c<=1474||1476==c||c>=1611&&c<=1618||1648==c||c>=1750&&c<=1756||c>=1757&&c<=1759||c>=1760&&c<=1764||c>=1767&&c<=1768||c>=1770&&c<=1773||c>=2305&&c<=2307||2364==c||c>=2366&&c<=2380||2381==c||c>=2385&&c<=2388||c>=2402&&c<=2403||c>=2433&&c<=2435||2492==c||2494==c||2495==c||c>=2496&&c<=2500||c>=2503&&c<=2504||c>=2507&&c<=2509||2519==c||c>=2530&&c<=2531||2562==c||2620==c||2622==c||2623==c||c>=2624&&c<=2626||c>=2631&&c<=2632||c>=2635&&c<=2637||c>=2672&&c<=2673||c>=2689&&c<=2691||2748==c||c>=2750&&c<=2757||c>=2759&&c<=2761||c>=2763&&c<=2765||c>=2817&&c<=2819||2876==c||c>=2878&&c<=2883||c>=2887&&c<=2888||c>=2891&&c<=2893||c>=2902&&c<=2903||c>=2946&&c<=2947||c>=3006&&c<=3010||c>=3014&&c<=3016||c>=3018&&c<=3021||3031==c||c>=3073&&c<=3075||c>=3134&&c<=3140||c>=3142&&c<=3144||c>=3146&&c<=3149||c>=3157&&c<=3158||c>=3202&&c<=3203||c>=3262&&c<=3268||c>=3270&&c<=3272||c>=3274&&c<=3277||c>=3285&&c<=3286||c>=3330&&c<=3331||c>=3390&&c<=3395||c>=3398&&c<=3400||c>=3402&&c<=3405||3415==c||3633==c||c>=3636&&c<=3642||c>=3655&&c<=3662||3761==c||c>=3764&&c<=3769||c>=3771&&c<=3772||c>=3784&&c<=3789||c>=3864&&c<=3865||3893==c||3895==c||3897==c||3902==c||3903==c||c>=3953&&c<=3972||c>=3974&&c<=3979||c>=3984&&c<=3989||3991==c||c>=3993&&c<=4013||c>=4017&&c<=4023||4025==c||c>=8400&&c<=8412||8417==c||c>=12330&&c<=12335||12441==c||12442==c||183==c||720==c||721==c||903==c||1600==c||3654==c||3782==c||12293==c||c>=12337&&c<=12341||c>=12445&&c<=12446||c>=12540&&c<=12542},Utilities.coalesceText=function(n){for(var m=n.firstChild;null!=m;m=m.nextSibling)if(m.nodeType==NodeTypes_TEXT_NODE||m.nodeType==NodeTypes_CDATA_SECTION_NODE){var s=m.nodeValue,first=m;for(m=m.nextSibling;null!=m&&(m.nodeType==NodeTypes_TEXT_NODE||m.nodeType==NodeTypes_CDATA_SECTION_NODE);){s+=m.nodeValue;var del=m;m=m.nextSibling,del.parentNode.removeChild(del)}if(first.nodeType==NodeTypes_CDATA_SECTION_NODE){var p=first.parentNode;if(null==first.nextSibling)p.removeChild(first),p.appendChild(p.ownerDocument.createTextNode(s));else{var next=first.nextSibling;p.removeChild(first),p.insertBefore(p.ownerDocument.createTextNode(s),next)}}else first.nodeValue=s;if(null==m)break}else m.nodeType==NodeTypes_ELEMENT_NODE&&Utilities.coalesceText(m)},Utilities.instance_of=function(o,c){for(;null!=o;){if(o.constructor===c)return!0;if(o===Object)return!1;o=o.constructor.superclass}return!1},Utilities.getElementById=function(n,id){if(n.nodeType==NodeTypes_ELEMENT_NODE&&(n.getAttribute("id")==id||n.getAttributeNS(null,"id")==id))return n;for(var m=n.firstChild;null!=m;m=m.nextSibling){var res=Utilities.getElementById(m,id);if(null!=res)return res}return null};var XPathException=function(){function XPathException(code,error,message){var err=Error.call(this,function getMessage(code,exception){var msg=exception?": "+exception.toString():"";switch(code){case XPathException.INVALID_EXPRESSION_ERR:return"Invalid expression"+msg;case XPathException.TYPE_ERR:return"Type error"+msg}return null}(code,error)||message);return err.code=code,err.exception=error,err}return XPathException.prototype=Object.create(Error.prototype),XPathException.prototype.constructor=XPathException,XPathException.superclass=Error,XPathException.prototype.toString=function(){return this.message},XPathException.fromMessage=function(message,error){return new XPathException(null,error,message)},XPathException.INVALID_EXPRESSION_ERR=51,XPathException.TYPE_ERR=52,XPathException}();function XPathExpression(e,r,p){this.xpath=p.parse(e),this.context=new XPathContext,this.context.namespaceResolver=new XPathNSResolverWrapper(r)}function XPathNSResolverWrapper(r){this.xpathNSResolver=r}function NodeXPathNSResolver(n){this.node=n,this.namespaceResolver=new NamespaceResolver}function XPathResult(v,t){switch(t==XPathResult.ANY_TYPE&&(v.constructor===XString?t=XPathResult.STRING_TYPE:v.constructor===XNumber?t=XPathResult.NUMBER_TYPE:v.constructor===XBoolean?t=XPathResult.BOOLEAN_TYPE:v.constructor===XNodeSet&&(t=XPathResult.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=t,t){case XPathResult.NUMBER_TYPE:return void(this.numberValue=v.numberValue());case XPathResult.STRING_TYPE:return void(this.stringValue=v.stringValue());case XPathResult.BOOLEAN_TYPE:return void(this.booleanValue=v.booleanValue());case XPathResult.ANY_UNORDERED_NODE_TYPE:case XPathResult.FIRST_ORDERED_NODE_TYPE:if(v.constructor===XNodeSet)return void(this.singleNodeValue=v.first());break;case XPathResult.UNORDERED_NODE_ITERATOR_TYPE:case XPathResult.ORDERED_NODE_ITERATOR_TYPE:if(v.constructor===XNodeSet)return this.invalidIteratorState=!1,this.nodes=v.toArray(),void(this.iteratorIndex=0);break;case XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE:case XPathResult.ORDERED_NODE_SNAPSHOT_TYPE:if(v.constructor===XNodeSet)return this.nodes=v.toArray(),void(this.snapshotLength=this.nodes.length)}throw new XPathException(XPathException.TYPE_ERR)}function installDOM3XPathSupport(doc,p){doc.createExpression=function(e,r){try{return new XPathExpression(e,r,p)}catch(e){throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,e)}},doc.createNSResolver=function(n){return new NodeXPathNSResolver(n)},doc.evaluate=function(e,cn,r,t,res){if(t<0||t>9)throw{code:0,toString:function(){return"Request type not supported"}};return doc.createExpression(e,r,p).evaluate(cn,t,res)}}XPathExpression.prototype={},XPathExpression.prototype.constructor=XPathExpression,XPathExpression.superclass=Object.prototype,XPathExpression.getOwnerDocument=function(n){return n.nodeType===NodeTypes_DOCUMENT_NODE?n:n.ownerDocument},XPathExpression.detectHtmlDom=function(n){if(!n)return!1;var doc=XPathExpression.getOwnerDocument(n);try{return doc.implementation.hasFeature("HTML","2.0")}catch(e){return!0}},XPathExpression.prototype.evaluate=function(n,t,res){return this.context.expressionContextNode=n,this.context.caseInsensitive=XPathExpression.detectHtmlDom(n),new XPathResult(this.xpath.evaluate(this.context),t)},XPathNSResolverWrapper.prototype={},XPathNSResolverWrapper.prototype.constructor=XPathNSResolverWrapper,XPathNSResolverWrapper.superclass=Object.prototype,XPathNSResolverWrapper.prototype.getNamespace=function(prefix,n){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(prefix)},NodeXPathNSResolver.prototype={},NodeXPathNSResolver.prototype.constructor=NodeXPathNSResolver,NodeXPathNSResolver.superclass=Object.prototype,NodeXPathNSResolver.prototype.lookupNamespaceURI=function(prefix){return this.namespaceResolver.getNamespace(prefix,this.node)},XPathResult.prototype={},XPathResult.prototype.constructor=XPathResult,XPathResult.superclass=Object.prototype,XPathResult.prototype.iterateNext=function(){if(this.resultType!=XPathResult.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=XPathResult.ORDERED_NODE_ITERATOR_TYPE)throw new XPathException(XPathException.TYPE_ERR);return this.nodes[this.iteratorIndex++]},XPathResult.prototype.snapshotItem=function(i){if(this.resultType!=XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE)throw new XPathException(XPathException.TYPE_ERR);return this.nodes[i]},XPathResult.ANY_TYPE=0,XPathResult.NUMBER_TYPE=1,XPathResult.STRING_TYPE=2,XPathResult.BOOLEAN_TYPE=3,XPathResult.UNORDERED_NODE_ITERATOR_TYPE=4,XPathResult.ORDERED_NODE_ITERATOR_TYPE=5,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE=6,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE=7,XPathResult.ANY_UNORDERED_NODE_TYPE=8,XPathResult.FIRST_ORDERED_NODE_TYPE=9;try{var shouldInstall=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(shouldInstall=!1)}catch(e){}shouldInstall&&installDOM3XPathSupport(document,new XPathParser)}catch(e){}installDOM3XPathSupport(exports,new XPathParser),function(){var parser=new XPathParser,defaultNSResolver=new NamespaceResolver,defaultFunctionResolver=new FunctionResolver,defaultVariableResolver=new VariableResolver;function makeNSResolverFromFunction(func){return{getNamespace:function(prefix,node){return func(prefix,node)||defaultNSResolver.getNamespace(prefix,node)}}}function makeNSResolver(resolver){return resolver&&"function"==typeof resolver.getNamespace?function makeNSResolverFromObject(obj){return makeNSResolverFromFunction(obj.getNamespace.bind(obj))}(resolver):"function"==typeof resolver?makeNSResolverFromFunction(resolver):"object"==typeof resolver?function makeNSResolverFromMap(map){return makeNSResolverFromFunction((function(prefix){return map[prefix]}))}(resolver):defaultNSResolver}function convertValue(value){if(null==value||value instanceof XString||value instanceof XBoolean||value instanceof XNumber||value instanceof XNodeSet)return value;switch(typeof value){case"string":return new XString(value);case"boolean":return new XBoolean(value);case"number":return new XNumber(value)}var ns=new XNodeSet;return ns.addArray([].concat(value)),ns}function makeFunctionResolverFromFunction(func){return{getFunction:function(name,namespace){var found=func(name,namespace);return found?function makeEvaluator(func){return function(context){var args=Array.prototype.slice.call(arguments,1).map((function(arg){return arg.evaluate(context)}));return convertValue(func.apply(this,[].concat(context,args)))}}(found):defaultFunctionResolver.getFunction(name,namespace)}}}function makeFunctionResolver(resolver){return resolver&&"function"==typeof resolver.getFunction?function makeFunctionResolverFromObject(obj){return makeFunctionResolverFromFunction(obj.getFunction.bind(obj))}(resolver):"function"==typeof resolver?makeFunctionResolverFromFunction(resolver):"object"==typeof resolver?function makeFunctionResolverFromMap(map){return makeFunctionResolverFromFunction((function(name){return map[name]}))}(resolver):defaultFunctionResolver}function makeVariableResolverFromFunction(func){return{getVariable:function(name,namespace){return convertValue(func(name,namespace))}}}function copyIfPresent(prop,dest,source){prop in source&&(dest[prop]=source[prop])}function makeContext(options){var context=new XPathContext;return options?(context.namespaceResolver=makeNSResolver(options.namespaces),context.functionResolver=makeFunctionResolver(options.functions),context.variableResolver=function makeVariableResolver(resolver){if(resolver){if("function"==typeof resolver.getVariable)return makeVariableResolverFromFunction(resolver.getVariable.bind(resolver));if("function"==typeof resolver)return makeVariableResolverFromFunction(resolver);if("object"==typeof resolver)return makeVariableResolverFromFunction((function(name){return resolver[name]}))}return defaultVariableResolver}(options.variables),context.expressionContextNode=options.node,copyIfPresent("allowAnyNamespaceForNoPrefix",context,options),copyIfPresent("isHtml",context,options)):context.namespaceResolver=defaultNSResolver,context}var evaluatorPrototype={evaluate:function(options){return function evaluate(parsedExpression,options){var context=makeContext(options);return parsedExpression.evaluate(context)}(this.expression,options)},evaluateNumber:function(options){return this.evaluate(options).numberValue()},evaluateString:function(options){return this.evaluate(options).stringValue()},evaluateBoolean:function(options){return this.evaluate(options).booleanValue()},evaluateNodeSet:function(options){return this.evaluate(options).nodeset()},select:function(options){return this.evaluateNodeSet(options).toArray()},select1:function(options){return this.select(options)[0]}};exports.parse=function parse(xpath){var parsed=parser.parse(xpath);return Object.create(evaluatorPrototype,{expression:{value:parsed}})}}(),assign(exports,{XPath:XPath,XPathParser:XPathParser,XPathResult:XPathResult,Step:Step,PathExpr:PathExpr,NodeTest:NodeTest,LocationPath:LocationPath,OrOperation:OrOperation,AndOperation:AndOperation,BarOperation:BarOperation,EqualsOperation:EqualsOperation,NotEqualOperation:NotEqualOperation,LessThanOperation:LessThanOperation,GreaterThanOperation:GreaterThanOperation,LessThanOrEqualOperation:LessThanOrEqualOperation,GreaterThanOrEqualOperation:GreaterThanOrEqualOperation,PlusOperation:PlusOperation,MinusOperation:MinusOperation,MultiplyOperation:MultiplyOperation,DivOperation:DivOperation,ModOperation:ModOperation,UnaryMinusOperation:UnaryMinusOperation,FunctionCall:FunctionCall,VariableReference:VariableReference,XPathContext:XPathContext,XNodeSet:XNodeSet,XBoolean:XBoolean,XString:XString,XNumber:XNumber,NamespaceResolver:NamespaceResolver,FunctionResolver:FunctionResolver,VariableResolver:VariableResolver,Utilities:Utilities}),exports.select=function(e,doc,single){return exports.selectWithResolver(e,doc,null,single)},exports.useNamespaces=function(mappings){var resolver={mappings:mappings||{},lookupNamespaceURI:function(prefix){return this.mappings[prefix]}};return function(e,doc,single){return exports.selectWithResolver(e,doc,resolver,single)}},exports.selectWithResolver=function(e,doc,resolver,single){var expression=new XPathExpression(e,resolver,new XPathParser),type=XPathResult.ANY_TYPE,result=expression.evaluate(doc,type,null);return result.resultType==XPathResult.STRING_TYPE?result=result.stringValue:result.resultType==XPathResult.NUMBER_TYPE?result=result.numberValue:result.resultType==XPathResult.BOOLEAN_TYPE?result=result.booleanValue:(result=result.nodes,single&&(result=result[0])),result},exports.select1=function(e,doc){return exports.select(e,doc,!0)};var isNodeLike=function(value){return value&&"number"==typeof value.nodeType&&Number.isInteger(value.nodeType)&&value.nodeType>=1&&value.nodeType<=11&&"string"==typeof value.nodeName},isNodeOfType=function(type){return function(value){return isNodeLike(value)&&value.nodeType===type}};assign(exports,{isNodeLike:isNodeLike,isArrayOfNodes:function(value){return Array.isArray(value)&&value.every(isNodeLike)},isElement:isNodeOfType(NodeTypes_ELEMENT_NODE),isAttribute:isNodeOfType(NodeTypes_ATTRIBUTE_NODE),isTextNode:isNodeOfType(NodeTypes_TEXT_NODE),isCDATASection:isNodeOfType(NodeTypes_CDATA_SECTION_NODE),isProcessingInstruction:isNodeOfType(NodeTypes_PROCESSING_INSTRUCTION_NODE),isComment:isNodeOfType(NodeTypes_COMMENT_NODE),isDocumentNode:isNodeOfType(NodeTypes_DOCUMENT_NODE),isDocumentTypeNode:isNodeOfType(NodeTypes_DOCUMENT_TYPE_NODE),isDocumentFragment:isNodeOfType(NodeTypes_DOCUMENT_FRAGMENT_NODE)})}(exports)}(xpath)),xpath}var hasRequiredConventions,hasRequiredDom,lib$3={},dom={},conventions={};function requireConventions(){if(hasRequiredConventions)return conventions;function freeze(object,oc){return void 0===oc&&(oc=Object),oc&&"function"==typeof oc.freeze?oc.freeze(object):object}hasRequiredConventions=1;var MIME_TYPE=freeze({HTML:"text/html",isHTML:function(value){return value===MIME_TYPE.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),NAMESPACE=freeze({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(uri){return uri===NAMESPACE.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=function assign(target,source){if(null===target||"object"!=typeof target)throw new TypeError("target is not an object");for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},conventions.find=function find(list,predicate,ac){if(void 0===ac&&(ac=Array.prototype),list&&"function"==typeof ac.find)return ac.find.call(list,predicate);for(var i=0;i<list.length;i++)if(Object.prototype.hasOwnProperty.call(list,i)){var item=list[i];if(predicate.call(void 0,item,i,list))return item}},conventions.freeze=freeze,conventions.MIME_TYPE=MIME_TYPE,conventions.NAMESPACE=NAMESPACE,conventions}function requireDom(){if(hasRequiredDom)return dom;hasRequiredDom=1;var conventions=requireConventions(),find=conventions.find,NAMESPACE=conventions.NAMESPACE;function notEmptyString(input){return""!==input}function orderedSetReducer(current,element){return current.hasOwnProperty(element)||(current[element]=!0),current}function toOrderedSet(input){if(!input)return[];var list=function splitOnASCIIWhitespace(input){return input?input.split(/[\t\n\f\r ]+/).filter(notEmptyString):[]}(input);return Object.keys(list.reduce(orderedSetReducer,{}))}function copy(src,dest){for(var p in src)Object.prototype.hasOwnProperty.call(src,p)&&(dest[p]=src[p])}function _extends(Class,Super){var pt=Class.prototype;if(!(pt instanceof Super)){function t(){}t.prototype=Super.prototype,copy(pt,t=new t),Class.prototype=pt=t}pt.constructor!=Class&&("function"!=typeof Class&&console.error("unknown Class:"+Class),pt.constructor=Class)}var NodeType={},ELEMENT_NODE=NodeType.ELEMENT_NODE=1,ATTRIBUTE_NODE=NodeType.ATTRIBUTE_NODE=2,TEXT_NODE=NodeType.TEXT_NODE=3,CDATA_SECTION_NODE=NodeType.CDATA_SECTION_NODE=4,ENTITY_REFERENCE_NODE=NodeType.ENTITY_REFERENCE_NODE=5,ENTITY_NODE=NodeType.ENTITY_NODE=6,PROCESSING_INSTRUCTION_NODE=NodeType.PROCESSING_INSTRUCTION_NODE=7,COMMENT_NODE=NodeType.COMMENT_NODE=8,DOCUMENT_NODE=NodeType.DOCUMENT_NODE=9,DOCUMENT_TYPE_NODE=NodeType.DOCUMENT_TYPE_NODE=10,DOCUMENT_FRAGMENT_NODE=NodeType.DOCUMENT_FRAGMENT_NODE=11,NOTATION_NODE=NodeType.NOTATION_NODE=12,ExceptionCode={},ExceptionMessage={};ExceptionCode.INDEX_SIZE_ERR=(ExceptionMessage[1]="Index size error",1),ExceptionCode.DOMSTRING_SIZE_ERR=(ExceptionMessage[2]="DOMString size error",2);var HIERARCHY_REQUEST_ERR=ExceptionCode.HIERARCHY_REQUEST_ERR=(ExceptionMessage[3]="Hierarchy request error",3);ExceptionCode.WRONG_DOCUMENT_ERR=(ExceptionMessage[4]="Wrong document",4),ExceptionCode.INVALID_CHARACTER_ERR=(ExceptionMessage[5]="Invalid character",5),ExceptionCode.NO_DATA_ALLOWED_ERR=(ExceptionMessage[6]="No data allowed",6),ExceptionCode.NO_MODIFICATION_ALLOWED_ERR=(ExceptionMessage[7]="No modification allowed",7);var NOT_FOUND_ERR=ExceptionCode.NOT_FOUND_ERR=(ExceptionMessage[8]="Not found",8);ExceptionCode.NOT_SUPPORTED_ERR=(ExceptionMessage[9]="Not supported",9);var INUSE_ATTRIBUTE_ERR=ExceptionCode.INUSE_ATTRIBUTE_ERR=(ExceptionMessage[10]="Attribute in use",10);function DOMException(code,message){if(message instanceof Error)var error=message;else error=this,Error.call(this,ExceptionMessage[code]),this.message=ExceptionMessage[code],Error.captureStackTrace&&Error.captureStackTrace(this,DOMException);return error.code=code,message&&(this.message=this.message+": "+message),error}function NodeList(){}function LiveNodeList(node,refresh){this._node=node,this._refresh=refresh,_updateLiveList(this)}function _updateLiveList(list){var inc=list._node._inc||list._node.ownerDocument._inc;if(list._inc!==inc){var ls=list._refresh(list._node);if(__set__(list,"length",ls.length),!list.$$length||ls.length<list.$$length)for(var i=ls.length;i in list;i++)Object.prototype.hasOwnProperty.call(list,i)&&delete list[i];copy(ls,list),list._inc=inc}}function NamedNodeMap(){}function _findNodeIndex(list,node){for(var i=list.length;i--;)if(list[i]===node)return i}function _addNamedNode(el,list,newAttr,oldAttr){if(oldAttr?list[_findNodeIndex(list,oldAttr)]=newAttr:list[list.length++]=newAttr,el){newAttr.ownerElement=el;var doc=el.ownerDocument;doc&&(oldAttr&&_onRemoveAttribute(doc,el,oldAttr),function _onAddAttribute(doc,el,newAttr){doc&&doc._inc++;var ns=newAttr.namespaceURI;ns===NAMESPACE.XMLNS&&(el._nsMap[newAttr.prefix?newAttr.localName:""]=newAttr.value)}(doc,el,newAttr))}}function _removeNamedNode(el,list,attr){var i=_findNodeIndex(list,attr);if(!(i>=0))throw new DOMException(NOT_FOUND_ERR,new Error(el.tagName+"@"+attr));for(var lastIndex=list.length-1;i<lastIndex;)list[i]=list[++i];if(list.length=lastIndex,el){var doc=el.ownerDocument;doc&&(_onRemoveAttribute(doc,el,attr),attr.ownerElement=null)}}function DOMImplementation(){}function Node(){}function _xmlEncoder(c){return("<"==c?"&lt;":">"==c&&"&gt;")||"&"==c&&"&amp;"||'"'==c&&"&quot;"||"&#"+c.charCodeAt()+";"}function _visitNode(node,callback){if(callback(node))return!0;if(node=node.firstChild)do{if(_visitNode(node,callback))return!0}while(node=node.nextSibling)}function Document(){this.ownerDocument=this}function _onRemoveAttribute(doc,el,newAttr,remove){doc&&doc._inc++,newAttr.namespaceURI===NAMESPACE.XMLNS&&delete el._nsMap[newAttr.prefix?newAttr.localName:""]}function _onUpdateChild(doc,el,newChild){if(doc&&doc._inc){doc._inc++;var cs=el.childNodes;if(newChild)cs[cs.length++]=newChild;else{for(var child=el.firstChild,i=0;child;)cs[i++]=child,child=child.nextSibling;cs.length=i,delete cs[cs.length]}}}function _removeChild(parentNode,child){var previous=child.previousSibling,next=child.nextSibling;return previous?previous.nextSibling=next:parentNode.firstChild=next,next?next.previousSibling=previous:parentNode.lastChild=previous,child.parentNode=null,child.previousSibling=null,child.nextSibling=null,_onUpdateChild(parentNode.ownerDocument,parentNode),child}function isDocTypeNode(node){return node&&node.nodeType===Node.DOCUMENT_TYPE_NODE}function isElementNode(node){return node&&node.nodeType===Node.ELEMENT_NODE}function isTextNode(node){return node&&node.nodeType===Node.TEXT_NODE}function isElementInsertionPossible(doc,child){var parentChildNodes=doc.childNodes||[];if(find(parentChildNodes,isElementNode)||isDocTypeNode(child))return!1;var docTypeNode=find(parentChildNodes,isDocTypeNode);return!(child&&docTypeNode&&parentChildNodes.indexOf(docTypeNode)>parentChildNodes.indexOf(child))}function isElementReplacementPossible(doc,child){var parentChildNodes=doc.childNodes||[];if(find(parentChildNodes,(function hasElementChildThatIsNotChild(node){return isElementNode(node)&&node!==child})))return!1;var docTypeNode=find(parentChildNodes,isDocTypeNode);return!(child&&docTypeNode&&parentChildNodes.indexOf(docTypeNode)>parentChildNodes.indexOf(child))}function assertPreInsertionValidity1to5(parent,node,child){if(!function hasValidParentNodeType(node){return node&&(node.nodeType===Node.DOCUMENT_NODE||node.nodeType===Node.DOCUMENT_FRAGMENT_NODE||node.nodeType===Node.ELEMENT_NODE)}(parent))throw new DOMException(HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+parent.nodeType);if(child&&child.parentNode!==parent)throw new DOMException(NOT_FOUND_ERR,"child not in parent");if(!function hasInsertableNodeType(node){return node&&(isElementNode(node)||isTextNode(node)||isDocTypeNode(node)||node.nodeType===Node.DOCUMENT_FRAGMENT_NODE||node.nodeType===Node.COMMENT_NODE||node.nodeType===Node.PROCESSING_INSTRUCTION_NODE)}(node)||isDocTypeNode(node)&&parent.nodeType!==Node.DOCUMENT_NODE)throw new DOMException(HIERARCHY_REQUEST_ERR,"Unexpected node type "+node.nodeType+" for parent node type "+parent.nodeType)}function assertPreInsertionValidityInDocument(parent,node,child){var parentChildNodes=parent.childNodes||[],nodeChildNodes=node.childNodes||[];if(node.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var nodeChildElements=nodeChildNodes.filter(isElementNode);if(nodeChildElements.length>1||find(nodeChildNodes,isTextNode))throw new DOMException(HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===nodeChildElements.length&&!isElementInsertionPossible(parent,child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(isElementNode(node)&&!isElementInsertionPossible(parent,child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(isDocTypeNode(node)){if(find(parentChildNodes,isDocTypeNode))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var parentElementChild=find(parentChildNodes,isElementNode);if(child&&parentChildNodes.indexOf(parentElementChild)<parentChildNodes.indexOf(child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!child&&parentElementChild)throw new DOMException(HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function assertPreReplacementValidityInDocument(parent,node,child){var parentChildNodes=parent.childNodes||[],nodeChildNodes=node.childNodes||[];if(node.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var nodeChildElements=nodeChildNodes.filter(isElementNode);if(nodeChildElements.length>1||find(nodeChildNodes,isTextNode))throw new DOMException(HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===nodeChildElements.length&&!isElementReplacementPossible(parent,child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(isElementNode(node)&&!isElementReplacementPossible(parent,child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(isDocTypeNode(node)){function hasDoctypeChildThatIsNotChild(node){return isDocTypeNode(node)&&node!==child}if(find(parentChildNodes,hasDoctypeChildThatIsNotChild))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var parentElementChild=find(parentChildNodes,isElementNode);if(child&&parentChildNodes.indexOf(parentElementChild)<parentChildNodes.indexOf(child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function _insertBefore(parent,node,child,_inDocumentAssertion){assertPreInsertionValidity1to5(parent,node,child),parent.nodeType===Node.DOCUMENT_NODE&&(_inDocumentAssertion||assertPreInsertionValidityInDocument)(parent,node,child);var cp=node.parentNode;if(cp&&cp.removeChild(node),node.nodeType===DOCUMENT_FRAGMENT_NODE){var newFirst=node.firstChild;if(null==newFirst)return node;var newLast=node.lastChild}else newFirst=newLast=node;var pre=child?child.previousSibling:parent.lastChild;newFirst.previousSibling=pre,newLast.nextSibling=child,pre?pre.nextSibling=newFirst:parent.firstChild=newFirst,null==child?parent.lastChild=newLast:child.previousSibling=newLast;do{newFirst.parentNode=parent}while(newFirst!==newLast&&(newFirst=newFirst.nextSibling));return _onUpdateChild(parent.ownerDocument||parent,parent),node.nodeType==DOCUMENT_FRAGMENT_NODE&&(node.firstChild=node.lastChild=null),node}function Element(){this._nsMap={}}function Attr(){}function CharacterData(){}function Text(){}function Comment(){}function CDATASection(){}function DocumentType(){}function Notation(){}function Entity(){}function EntityReference(){}function DocumentFragment(){}function ProcessingInstruction(){}function XMLSerializer(){}function nodeSerializeToString(isHtml,nodeFilter){var buf=[],refNode=9==this.nodeType&&this.documentElement||this,prefix=refNode.prefix,uri=refNode.namespaceURI;if(uri&&null==prefix&&null==(prefix=refNode.lookupPrefix(uri)))var visibleNamespaces=[{namespace:uri,prefix:null}];return serializeToString(this,buf,isHtml,nodeFilter,visibleNamespaces),buf.join("")}function needNamespaceDefine(node,isHTML,visibleNamespaces){var prefix=node.prefix||"",uri=node.namespaceURI;if(!uri)return!1;if("xml"===prefix&&uri===NAMESPACE.XML||uri===NAMESPACE.XMLNS)return!1;for(var i=visibleNamespaces.length;i--;){var ns=visibleNamespaces[i];if(ns.prefix===prefix)return ns.namespace!==uri}return!0}function addSerializedAttribute(buf,qualifiedName,value){buf.push(" ",qualifiedName,'="',value.replace(/[<>&"\t\n\r]/g,_xmlEncoder),'"')}function serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){if(visibleNamespaces||(visibleNamespaces=[]),nodeFilter){if(!(node=nodeFilter(node)))return;if("string"==typeof node)return void buf.push(node)}switch(node.nodeType){case ELEMENT_NODE:var attrs=node.attributes,len=attrs.length,child=node.firstChild,nodeName=node.tagName,prefixedNodeName=nodeName;if(!(isHTML=NAMESPACE.isHTML(node.namespaceURI)||isHTML)&&!node.prefix&&node.namespaceURI){for(var defaultNS,ai=0;ai<attrs.length;ai++)if("xmlns"===attrs.item(ai).name){defaultNS=attrs.item(ai).value;break}if(!defaultNS)for(var nsi=visibleNamespaces.length-1;nsi>=0;nsi--){if(""===(namespace=visibleNamespaces[nsi]).prefix&&namespace.namespace===node.namespaceURI){defaultNS=namespace.namespace;break}}if(defaultNS!==node.namespaceURI)for(nsi=visibleNamespaces.length-1;nsi>=0;nsi--){var namespace;if((namespace=visibleNamespaces[nsi]).namespace===node.namespaceURI){namespace.prefix&&(prefixedNodeName=namespace.prefix+":"+nodeName);break}}}buf.push("<",prefixedNodeName);for(var i=0;i<len;i++){"xmlns"==(attr=attrs.item(i)).prefix?visibleNamespaces.push({prefix:attr.localName,namespace:attr.value}):"xmlns"==attr.nodeName&&visibleNamespaces.push({prefix:"",namespace:attr.value})}for(i=0;i<len;i++){var attr,prefix,uri;if(needNamespaceDefine(attr=attrs.item(i),0,visibleNamespaces))addSerializedAttribute(buf,(prefix=attr.prefix||"")?"xmlns:"+prefix:"xmlns",uri=attr.namespaceURI),visibleNamespaces.push({prefix:prefix,namespace:uri});serializeToString(attr,buf,isHTML,nodeFilter,visibleNamespaces)}if(nodeName===prefixedNodeName&&needNamespaceDefine(node,0,visibleNamespaces))addSerializedAttribute(buf,(prefix=node.prefix||"")?"xmlns:"+prefix:"xmlns",uri=node.namespaceURI),visibleNamespaces.push({prefix:prefix,namespace:uri});if(child||isHTML&&!/^(?:meta|link|img|br|hr|input)$/i.test(nodeName)){if(buf.push(">"),isHTML&&/^script$/i.test(nodeName))for(;child;)child.data?buf.push(child.data):serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces.slice()),child=child.nextSibling;else for(;child;)serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces.slice()),child=child.nextSibling;buf.push("</",prefixedNodeName,">")}else buf.push("/>");return;case DOCUMENT_NODE:case DOCUMENT_FRAGMENT_NODE:for(child=node.firstChild;child;)serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces.slice()),child=child.nextSibling;return;case ATTRIBUTE_NODE:return addSerializedAttribute(buf,node.name,node.value);case TEXT_NODE:return buf.push(node.data.replace(/[<&>]/g,_xmlEncoder));case CDATA_SECTION_NODE:return buf.push("<![CDATA[",node.data,"]]>");case COMMENT_NODE:return buf.push("\x3c!--",node.data,"--\x3e");case DOCUMENT_TYPE_NODE:var pubid=node.publicId,sysid=node.systemId;if(buf.push("<!DOCTYPE ",node.name),pubid)buf.push(" PUBLIC ",pubid),sysid&&"."!=sysid&&buf.push(" ",sysid),buf.push(">");else if(sysid&&"."!=sysid)buf.push(" SYSTEM ",sysid,">");else{var sub=node.internalSubset;sub&&buf.push(" [",sub,"]"),buf.push(">")}return;case PROCESSING_INSTRUCTION_NODE:return buf.push("<?",node.target," ",node.data,"?>");case ENTITY_REFERENCE_NODE:return buf.push("&",node.nodeName,";");default:buf.push("??",node.nodeName)}}function importNode(doc,node,deep){var node2;switch(node.nodeType){case ELEMENT_NODE:(node2=node.cloneNode(!1)).ownerDocument=doc;case DOCUMENT_FRAGMENT_NODE:break;case ATTRIBUTE_NODE:deep=!0}if(node2||(node2=node.cloneNode(!1)),node2.ownerDocument=doc,node2.parentNode=null,deep)for(var child=node.firstChild;child;)node2.appendChild(importNode(doc,child,deep)),child=child.nextSibling;return node2}function cloneNode(doc,node,deep){var node2=new node.constructor;for(var n in node)if(Object.prototype.hasOwnProperty.call(node,n)){var v=node[n];"object"!=typeof v&&v!=node2[n]&&(node2[n]=v)}switch(node.childNodes&&(node2.childNodes=new NodeList),node2.ownerDocument=doc,node2.nodeType){case ELEMENT_NODE:var attrs=node.attributes,attrs2=node2.attributes=new NamedNodeMap,len=attrs.length;attrs2._ownerElement=node2;for(var i=0;i<len;i++)node2.setAttributeNode(cloneNode(doc,attrs.item(i),!0));break;case ATTRIBUTE_NODE:deep=!0}if(deep)for(var child=node.firstChild;child;)node2.appendChild(cloneNode(doc,child,deep)),child=child.nextSibling;return node2}function __set__(object,key,value){object[key]=value}ExceptionCode.INVALID_STATE_ERR=(ExceptionMessage[11]="Invalid state",11),ExceptionCode.SYNTAX_ERR=(ExceptionMessage[12]="Syntax error",12),ExceptionCode.INVALID_MODIFICATION_ERR=(ExceptionMessage[13]="Invalid modification",13),ExceptionCode.NAMESPACE_ERR=(ExceptionMessage[14]="Invalid namespace",14),ExceptionCode.INVALID_ACCESS_ERR=(ExceptionMessage[15]="Invalid access",15),DOMException.prototype=Error.prototype,copy(ExceptionCode,DOMException),NodeList.prototype={length:0,item:function(index){return index>=0&&index<this.length?this[index]:null},toString:function(isHTML,nodeFilter){for(var buf=[],i=0;i<this.length;i++)serializeToString(this[i],buf,isHTML,nodeFilter);return buf.join("")},filter:function(predicate){return Array.prototype.filter.call(this,predicate)},indexOf:function(item){return Array.prototype.indexOf.call(this,item)}},LiveNodeList.prototype.item=function(i){return _updateLiveList(this),this[i]||null},_extends(LiveNodeList,NodeList),NamedNodeMap.prototype={length:0,item:NodeList.prototype.item,getNamedItem:function(key){for(var i=this.length;i--;){var attr=this[i];if(attr.nodeName==key)return attr}},setNamedItem:function(attr){var el=attr.ownerElement;if(el&&el!=this._ownerElement)throw new DOMException(INUSE_ATTRIBUTE_ERR);var oldAttr=this.getNamedItem(attr.nodeName);return _addNamedNode(this._ownerElement,this,attr,oldAttr),oldAttr},setNamedItemNS:function(attr){var oldAttr,el=attr.ownerElement;if(el&&el!=this._ownerElement)throw new DOMException(INUSE_ATTRIBUTE_ERR);return oldAttr=this.getNamedItemNS(attr.namespaceURI,attr.localName),_addNamedNode(this._ownerElement,this,attr,oldAttr),oldAttr},removeNamedItem:function(key){var attr=this.getNamedItem(key);return _removeNamedNode(this._ownerElement,this,attr),attr},removeNamedItemNS:function(namespaceURI,localName){var attr=this.getNamedItemNS(namespaceURI,localName);return _removeNamedNode(this._ownerElement,this,attr),attr},getNamedItemNS:function(namespaceURI,localName){for(var i=this.length;i--;){var node=this[i];if(node.localName==localName&&node.namespaceURI==namespaceURI)return node}return null}},DOMImplementation.prototype={hasFeature:function(feature,version){return!0},createDocument:function(namespaceURI,qualifiedName,doctype){var doc=new Document;if(doc.implementation=this,doc.childNodes=new NodeList,doc.doctype=doctype||null,doctype&&doc.appendChild(doctype),qualifiedName){var root=doc.createElementNS(namespaceURI,qualifiedName);doc.appendChild(root)}return doc},createDocumentType:function(qualifiedName,publicId,systemId){var node=new DocumentType;return node.name=qualifiedName,node.nodeName=qualifiedName,node.publicId=publicId||"",node.systemId=systemId||"",node}},Node.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(newChild,refChild){return _insertBefore(this,newChild,refChild)},replaceChild:function(newChild,oldChild){_insertBefore(this,newChild,oldChild,assertPreReplacementValidityInDocument),oldChild&&this.removeChild(oldChild)},removeChild:function(oldChild){return _removeChild(this,oldChild)},appendChild:function(newChild){return this.insertBefore(newChild,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(deep){return cloneNode(this.ownerDocument||this,this,deep)},normalize:function(){for(var child=this.firstChild;child;){var next=child.nextSibling;next&&next.nodeType==TEXT_NODE&&child.nodeType==TEXT_NODE?(this.removeChild(next),child.appendData(next.data)):(child.normalize(),child=next)}},isSupported:function(feature,version){return this.ownerDocument.implementation.hasFeature(feature,version)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(namespaceURI){for(var el=this;el;){var map=el._nsMap;if(map)for(var n in map)if(Object.prototype.hasOwnProperty.call(map,n)&&map[n]===namespaceURI)return n;el=el.nodeType==ATTRIBUTE_NODE?el.ownerDocument:el.parentNode}return null},lookupNamespaceURI:function(prefix){for(var el=this;el;){var map=el._nsMap;if(map&&Object.prototype.hasOwnProperty.call(map,prefix))return map[prefix];el=el.nodeType==ATTRIBUTE_NODE?el.ownerDocument:el.parentNode}return null},isDefaultNamespace:function(namespaceURI){return null==this.lookupPrefix(namespaceURI)}},copy(NodeType,Node),copy(NodeType,Node.prototype),Document.prototype={nodeName:"#document",nodeType:DOCUMENT_NODE,doctype:null,documentElement:null,_inc:1,insertBefore:function(newChild,refChild){if(newChild.nodeType==DOCUMENT_FRAGMENT_NODE){for(var child=newChild.firstChild;child;){var next=child.nextSibling;this.insertBefore(child,refChild),child=next}return newChild}return _insertBefore(this,newChild,refChild),newChild.ownerDocument=this,null===this.documentElement&&newChild.nodeType===ELEMENT_NODE&&(this.documentElement=newChild),newChild},removeChild:function(oldChild){return this.documentElement==oldChild&&(this.documentElement=null),_removeChild(this,oldChild)},replaceChild:function(newChild,oldChild){_insertBefore(this,newChild,oldChild,assertPreReplacementValidityInDocument),newChild.ownerDocument=this,oldChild&&this.removeChild(oldChild),isElementNode(newChild)&&(this.documentElement=newChild)},importNode:function(importedNode,deep){return importNode(this,importedNode,deep)},getElementById:function(id){var rtv=null;return _visitNode(this.documentElement,(function(node){if(node.nodeType==ELEMENT_NODE&&node.getAttribute("id")==id)return rtv=node,!0})),rtv},getElementsByClassName:function(classNames){var classNamesSet=toOrderedSet(classNames);return new LiveNodeList(this,(function(base){var ls=[];return classNamesSet.length>0&&_visitNode(base.documentElement,(function(node){if(node!==base&&node.nodeType===ELEMENT_NODE){var nodeClassNames=node.getAttribute("class");if(nodeClassNames){var matches=classNames===nodeClassNames;if(!matches){var nodeClassNamesSet=toOrderedSet(nodeClassNames);matches=classNamesSet.every(function arrayIncludes(list){return function(element){return list&&-1!==list.indexOf(element)}}(nodeClassNamesSet))}matches&&ls.push(node)}}})),ls}))},createElement:function(tagName){var node=new Element;return node.ownerDocument=this,node.nodeName=tagName,node.tagName=tagName,node.localName=tagName,node.childNodes=new NodeList,(node.attributes=new NamedNodeMap)._ownerElement=node,node},createDocumentFragment:function(){var node=new DocumentFragment;return node.ownerDocument=this,node.childNodes=new NodeList,node},createTextNode:function(data){var node=new Text;return node.ownerDocument=this,node.appendData(data),node},createComment:function(data){var node=new Comment;return node.ownerDocument=this,node.appendData(data),node},createCDATASection:function(data){var node=new CDATASection;return node.ownerDocument=this,node.appendData(data),node},createProcessingInstruction:function(target,data){var node=new ProcessingInstruction;return node.ownerDocument=this,node.tagName=node.nodeName=node.target=target,node.nodeValue=node.data=data,node},createAttribute:function(name){var node=new Attr;return node.ownerDocument=this,node.name=name,node.nodeName=name,node.localName=name,node.specified=!0,node},createEntityReference:function(name){var node=new EntityReference;return node.ownerDocument=this,node.nodeName=name,node},createElementNS:function(namespaceURI,qualifiedName){var node=new Element,pl=qualifiedName.split(":"),attrs=node.attributes=new NamedNodeMap;return node.childNodes=new NodeList,node.ownerDocument=this,node.nodeName=qualifiedName,node.tagName=qualifiedName,node.namespaceURI=namespaceURI,2==pl.length?(node.prefix=pl[0],node.localName=pl[1]):node.localName=qualifiedName,attrs._ownerElement=node,node},createAttributeNS:function(namespaceURI,qualifiedName){var node=new Attr,pl=qualifiedName.split(":");return node.ownerDocument=this,node.nodeName=qualifiedName,node.name=qualifiedName,node.namespaceURI=namespaceURI,node.specified=!0,2==pl.length?(node.prefix=pl[0],node.localName=pl[1]):node.localName=qualifiedName,node}},_extends(Document,Node),Element.prototype={nodeType:ELEMENT_NODE,hasAttribute:function(name){return null!=this.getAttributeNode(name)},getAttribute:function(name){var attr=this.getAttributeNode(name);return attr&&attr.value||""},getAttributeNode:function(name){return this.attributes.getNamedItem(name)},setAttribute:function(name,value){var attr=this.ownerDocument.createAttribute(name);attr.value=attr.nodeValue=""+value,this.setAttributeNode(attr)},removeAttribute:function(name){var attr=this.getAttributeNode(name);attr&&this.removeAttributeNode(attr)},appendChild:function(newChild){return newChild.nodeType===DOCUMENT_FRAGMENT_NODE?this.insertBefore(newChild,null):function _appendSingleChild(parentNode,newChild){return newChild.parentNode&&newChild.parentNode.removeChild(newChild),newChild.parentNode=parentNode,newChild.previousSibling=parentNode.lastChild,newChild.nextSibling=null,newChild.previousSibling?newChild.previousSibling.nextSibling=newChild:parentNode.firstChild=newChild,parentNode.lastChild=newChild,_onUpdateChild(parentNode.ownerDocument,parentNode,newChild),newChild}(this,newChild)},setAttributeNode:function(newAttr){return this.attributes.setNamedItem(newAttr)},setAttributeNodeNS:function(newAttr){return this.attributes.setNamedItemNS(newAttr)},removeAttributeNode:function(oldAttr){return this.attributes.removeNamedItem(oldAttr.nodeName)},removeAttributeNS:function(namespaceURI,localName){var old=this.getAttributeNodeNS(namespaceURI,localName);old&&this.removeAttributeNode(old)},hasAttributeNS:function(namespaceURI,localName){return null!=this.getAttributeNodeNS(namespaceURI,localName)},getAttributeNS:function(namespaceURI,localName){var attr=this.getAttributeNodeNS(namespaceURI,localName);return attr&&attr.value||""},setAttributeNS:function(namespaceURI,qualifiedName,value){var attr=this.ownerDocument.createAttributeNS(namespaceURI,qualifiedName);attr.value=attr.nodeValue=""+value,this.setAttributeNode(attr)},getAttributeNodeNS:function(namespaceURI,localName){return this.attributes.getNamedItemNS(namespaceURI,localName)},getElementsByTagName:function(tagName){return new LiveNodeList(this,(function(base){var ls=[];return _visitNode(base,(function(node){node===base||node.nodeType!=ELEMENT_NODE||"*"!==tagName&&node.tagName!=tagName||ls.push(node)})),ls}))},getElementsByTagNameNS:function(namespaceURI,localName){return new LiveNodeList(this,(function(base){var ls=[];return _visitNode(base,(function(node){node===base||node.nodeType!==ELEMENT_NODE||"*"!==namespaceURI&&node.namespaceURI!==namespaceURI||"*"!==localName&&node.localName!=localName||ls.push(node)})),ls}))}},Document.prototype.getElementsByTagName=Element.prototype.getElementsByTagName,Document.prototype.getElementsByTagNameNS=Element.prototype.getElementsByTagNameNS,_extends(Element,Node),Attr.prototype.nodeType=ATTRIBUTE_NODE,_extends(Attr,Node),CharacterData.prototype={data:"",substringData:function(offset,count){return this.data.substring(offset,offset+count)},appendData:function(text){text=this.data+text,this.nodeValue=this.data=text,this.length=text.length},insertData:function(offset,text){this.replaceData(offset,0,text)},appendChild:function(newChild){throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR])},deleteData:function(offset,count){this.replaceData(offset,count,"")},replaceData:function(offset,count,text){text=this.data.substring(0,offset)+text+this.data.substring(offset+count),this.nodeValue=this.data=text,this.length=text.length}},_extends(CharacterData,Node),Text.prototype={nodeName:"#text",nodeType:TEXT_NODE,splitText:function(offset){var text=this.data,newText=text.substring(offset);text=text.substring(0,offset),this.data=this.nodeValue=text,this.length=text.length;var newNode=this.ownerDocument.createTextNode(newText);return this.parentNode&&this.parentNode.insertBefore(newNode,this.nextSibling),newNode}},_extends(Text,CharacterData),Comment.prototype={nodeName:"#comment",nodeType:COMMENT_NODE},_extends(Comment,CharacterData),CDATASection.prototype={nodeName:"#cdata-section",nodeType:CDATA_SECTION_NODE},_extends(CDATASection,CharacterData),DocumentType.prototype.nodeType=DOCUMENT_TYPE_NODE,_extends(DocumentType,Node),Notation.prototype.nodeType=NOTATION_NODE,_extends(Notation,Node),Entity.prototype.nodeType=ENTITY_NODE,_extends(Entity,Node),EntityReference.prototype.nodeType=ENTITY_REFERENCE_NODE,_extends(EntityReference,Node),DocumentFragment.prototype.nodeName="#document-fragment",DocumentFragment.prototype.nodeType=DOCUMENT_FRAGMENT_NODE,_extends(DocumentFragment,Node),ProcessingInstruction.prototype.nodeType=PROCESSING_INSTRUCTION_NODE,_extends(ProcessingInstruction,Node),XMLSerializer.prototype.serializeToString=function(node,isHtml,nodeFilter){return nodeSerializeToString.call(node,isHtml,nodeFilter)},Node.prototype.toString=nodeSerializeToString;try{if(Object.defineProperty){function getTextContent(node){switch(node.nodeType){case ELEMENT_NODE:case DOCUMENT_FRAGMENT_NODE:var buf=[];for(node=node.firstChild;node;)7!==node.nodeType&&8!==node.nodeType&&buf.push(getTextContent(node)),node=node.nextSibling;return buf.join("");default:return node.nodeValue}}Object.defineProperty(LiveNodeList.prototype,"length",{get:function(){return _updateLiveList(this),this.$$length}}),Object.defineProperty(Node.prototype,"textContent",{get:function(){return getTextContent(this)},set:function(data){switch(this.nodeType){case ELEMENT_NODE:case DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(data||String(data))&&this.appendChild(this.ownerDocument.createTextNode(data));break;default:this.data=data,this.value=data,this.nodeValue=data}}}),__set__=function(object,key,value){object["$$"+key]=value}}}catch(e){}return dom.DocumentType=DocumentType,dom.DOMException=DOMException,dom.DOMImplementation=DOMImplementation,dom.Element=Element,dom.Node=Node,dom.NodeList=NodeList,dom.XMLSerializer=XMLSerializer,dom}var hasRequiredEntities,domParser={},entities={};function requireEntities(){return hasRequiredEntities||(hasRequiredEntities=1,function(exports){var freeze=requireConventions().freeze;exports.XML_ENTITIES=freeze({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),exports.HTML_ENTITIES=freeze({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:"\n",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:"\t",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:"‌"}),exports.entityMap=exports.HTML_ENTITIES}(entities)),entities}var hasRequiredSax,hasRequiredDomParser,hasRequiredLib$4,sax={};function requireSax(){if(hasRequiredSax)return sax;hasRequiredSax=1;var NAMESPACE=requireConventions().NAMESPACE,nameStartChar=/[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]/,nameChar=new RegExp("[\\-\\.0-9"+nameStartChar.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),tagNamePattern=new RegExp("^"+nameStartChar.source+nameChar.source+"*(?::"+nameStartChar.source+nameChar.source+"*)?$");function ParseError(message,locator){this.message=message,this.locator=locator,Error.captureStackTrace&&Error.captureStackTrace(this,ParseError)}function XMLReader(){}function copyLocator(f,t){return t.lineNumber=f.lineNumber,t.columnNumber=f.columnNumber,t}function parseElementStartPart(source,start,el,currentNSMap,entityReplacer,errorHandler){function addAttribute(qname,value,startIndex){el.attributeNames.hasOwnProperty(qname)&&errorHandler.fatalError("Attribute "+qname+" redefined"),el.addValue(qname,value.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,entityReplacer),startIndex)}for(var attrName,p=++start,s=0;;){var c=source.charAt(p);switch(c){case"=":if(1===s)attrName=source.slice(start,p),s=3;else{if(2!==s)throw new Error("attribute equal must after attrName");s=3}break;case"'":case'"':if(3===s||1===s){if(1===s&&(errorHandler.warning('attribute value must after "="'),attrName=source.slice(start,p)),start=p+1,!((p=source.indexOf(c,start))>0))throw new Error("attribute value no end '"+c+"' match");addAttribute(attrName,value=source.slice(start,p),start-1),s=5}else{if(4!=s)throw new Error('attribute value must after "="');addAttribute(attrName,value=source.slice(start,p),start),errorHandler.warning('attribute "'+attrName+'" missed start quot('+c+")!!"),start=p+1,s=5}break;case"/":switch(s){case 0:el.setTagName(source.slice(start,p));case 5:case 6:case 7:s=7,el.closed=!0;case 4:case 1:break;case 2:el.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return errorHandler.error("unexpected end of input"),0==s&&el.setTagName(source.slice(start,p)),p;case">":switch(s){case 0:el.setTagName(source.slice(start,p));case 5:case 6:case 7:break;case 4:case 1:"/"===(value=source.slice(start,p)).slice(-1)&&(el.closed=!0,value=value.slice(0,-1));case 2:2===s&&(value=attrName),4==s?(errorHandler.warning('attribute "'+value+'" missed quot(")!'),addAttribute(attrName,value,start)):(NAMESPACE.isHTML(currentNSMap[""])&&value.match(/^(?:disabled|checked|selected)$/i)||errorHandler.warning('attribute "'+value+'" missed value!! "'+value+'" instead!!'),addAttribute(value,value,start));break;case 3:throw new Error("attribute value missed!!")}return p;case"€":c=" ";default:if(c<=" ")switch(s){case 0:el.setTagName(source.slice(start,p)),s=6;break;case 1:attrName=source.slice(start,p),s=2;break;case 4:var value=source.slice(start,p);errorHandler.warning('attribute "'+value+'" missed quot(")!!'),addAttribute(attrName,value,start);case 5:s=6}else switch(s){case 2:el.tagName,NAMESPACE.isHTML(currentNSMap[""])&&attrName.match(/^(?:disabled|checked|selected)$/i)||errorHandler.warning('attribute "'+attrName+'" missed value!! "'+attrName+'" instead2!!'),addAttribute(attrName,attrName,start),start=p,s=1;break;case 5:errorHandler.warning('attribute space is required"'+attrName+'"!!');case 6:s=1,start=p;break;case 3:s=4,start=p;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}p++}}function appendElement(el,domBuilder,currentNSMap){for(var tagName=el.tagName,localNSMap=null,i=el.length;i--;){var a=el[i],qName=a.qName,value=a.value;if((nsp=qName.indexOf(":"))>0)var prefix=a.prefix=qName.slice(0,nsp),localName=qName.slice(nsp+1),nsPrefix="xmlns"===prefix&&localName;else localName=qName,prefix=null,nsPrefix="xmlns"===qName&&"";a.localName=localName,!1!==nsPrefix&&(null==localNSMap&&(localNSMap={},_copy(currentNSMap,currentNSMap={})),currentNSMap[nsPrefix]=localNSMap[nsPrefix]=value,a.uri=NAMESPACE.XMLNS,domBuilder.startPrefixMapping(nsPrefix,value))}for(i=el.length;i--;){(prefix=(a=el[i]).prefix)&&("xml"===prefix&&(a.uri=NAMESPACE.XML),"xmlns"!==prefix&&(a.uri=currentNSMap[prefix||""]))}var nsp;(nsp=tagName.indexOf(":"))>0?(prefix=el.prefix=tagName.slice(0,nsp),localName=el.localName=tagName.slice(nsp+1)):(prefix=null,localName=el.localName=tagName);var ns=el.uri=currentNSMap[prefix||""];if(domBuilder.startElement(ns,localName,tagName,el),!el.closed)return el.currentNSMap=currentNSMap,el.localNSMap=localNSMap,!0;if(domBuilder.endElement(ns,localName,tagName),localNSMap)for(prefix in localNSMap)Object.prototype.hasOwnProperty.call(localNSMap,prefix)&&domBuilder.endPrefixMapping(prefix)}function parseHtmlSpecialContent(source,elStartEnd,tagName,entityReplacer,domBuilder){if(/^(?:script|textarea)$/i.test(tagName)){var elEndStart=source.indexOf("</"+tagName+">",elStartEnd),text=source.substring(elStartEnd+1,elEndStart);if(/[&<]/.test(text))return/^script$/i.test(tagName)?(domBuilder.characters(text,0,text.length),elEndStart):(text=text.replace(/&#?\w+;/g,entityReplacer),domBuilder.characters(text,0,text.length),elEndStart)}return elStartEnd+1}function fixSelfClosed(source,elStartEnd,tagName,closeMap){var pos=closeMap[tagName];return null==pos&&((pos=source.lastIndexOf("</"+tagName+">"))<elStartEnd&&(pos=source.lastIndexOf("</"+tagName)),closeMap[tagName]=pos),pos<elStartEnd}function _copy(source,target){for(var n in source)Object.prototype.hasOwnProperty.call(source,n)&&(target[n]=source[n])}function parseDCC(source,start,domBuilder,errorHandler){if("-"===source.charAt(start+2))return"-"===source.charAt(start+3)?(end=source.indexOf("--\x3e",start+4))>start?(domBuilder.comment(source,start+4,end-start-4),end+3):(errorHandler.error("Unclosed comment"),-1):-1;if("CDATA["==source.substr(start+3,6)){var end=source.indexOf("]]>",start+9);return domBuilder.startCDATA(),domBuilder.characters(source,start+9,end-start-9),domBuilder.endCDATA(),end+3}var matchs=function split(source,start){var match,buf=[],reg=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;reg.lastIndex=start,reg.exec(source);for(;match=reg.exec(source);)if(buf.push(match),match[1])return buf}(source,start),len=matchs.length;if(len>1&&/!doctype/i.test(matchs[0][0])){var name=matchs[1][0],pubid=!1,sysid=!1;len>3&&(/^public$/i.test(matchs[2][0])?(pubid=matchs[3][0],sysid=len>4&&matchs[4][0]):/^system$/i.test(matchs[2][0])&&(sysid=matchs[3][0]));var lastMatch=matchs[len-1];return domBuilder.startDTD(name,pubid,sysid),domBuilder.endDTD(),lastMatch.index+lastMatch[0].length}return-1}function parseInstruction(source,start,domBuilder){var end=source.indexOf("?>",start);if(end){var match=source.substring(start,end).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return match?(match[0].length,domBuilder.processingInstruction(match[1],match[2]),end+2):-1}return-1}function ElementAttributes(){this.attributeNames={}}return ParseError.prototype=new Error,ParseError.prototype.name=ParseError.name,XMLReader.prototype={parse:function(source,defaultNSMap,entityMap){var domBuilder=this.domBuilder;domBuilder.startDocument(),_copy(defaultNSMap,defaultNSMap={}),function parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){function fixedFromCharCode(code){if(code>65535){var surrogate1=55296+((code-=65536)>>10),surrogate2=56320+(1023&code);return String.fromCharCode(surrogate1,surrogate2)}return String.fromCharCode(code)}function entityReplacer(a){var k=a.slice(1,-1);return Object.hasOwnProperty.call(entityMap,k)?entityMap[k]:"#"===k.charAt(0)?fixedFromCharCode(parseInt(k.substr(1).replace("x","0x"))):(errorHandler.error("entity not found:"+a),a)}function appendText(end){if(end>start){var xt=source.substring(start,end).replace(/&#?\w+;/g,entityReplacer);locator&&position(start),domBuilder.characters(xt,0,end-start),start=end}}function position(p,m){for(;p>=lineEnd&&(m=linePattern.exec(source));)lineStart=m.index,lineEnd=lineStart+m[0].length,locator.lineNumber++;locator.columnNumber=p-lineStart+1}var lineStart=0,lineEnd=0,linePattern=/.*(?:\r\n?|\n)|.*$/g,locator=domBuilder.locator,parseStack=[{currentNSMap:defaultNSMapCopy}],closeMap={},start=0;for(;;){try{var tagStart=source.indexOf("<",start);if(tagStart<0){if(!source.substr(start).match(/^\s*$/)){var doc=domBuilder.doc,text=doc.createTextNode(source.substr(start));doc.appendChild(text),domBuilder.currentElement=text}return}switch(tagStart>start&&appendText(tagStart),source.charAt(tagStart+1)){case"/":var end=source.indexOf(">",tagStart+3),tagName=source.substring(tagStart+2,end).replace(/[ \t\n\r]+$/g,""),config=parseStack.pop();end<0?(tagName=source.substring(tagStart+2).replace(/[\s<].*/,""),errorHandler.error("end tag name: "+tagName+" is not complete:"+config.tagName),end=tagStart+1+tagName.length):tagName.match(/\s</)&&(tagName=tagName.replace(/[\s<].*/,""),errorHandler.error("end tag name: "+tagName+" maybe not complete"),end=tagStart+1+tagName.length);var localNSMap=config.localNSMap,endMatch=config.tagName==tagName;if(endMatch||config.tagName&&config.tagName.toLowerCase()==tagName.toLowerCase()){if(domBuilder.endElement(config.uri,config.localName,tagName),localNSMap)for(var prefix in localNSMap)Object.prototype.hasOwnProperty.call(localNSMap,prefix)&&domBuilder.endPrefixMapping(prefix);endMatch||errorHandler.fatalError("end tag name: "+tagName+" is not match the current start tagName:"+config.tagName)}else parseStack.push(config);end++;break;case"?":locator&&position(tagStart),end=parseInstruction(source,tagStart,domBuilder);break;case"!":locator&&position(tagStart),end=parseDCC(source,tagStart,domBuilder,errorHandler);break;default:locator&&position(tagStart);var el=new ElementAttributes,currentNSMap=parseStack[parseStack.length-1].currentNSMap,len=(end=parseElementStartPart(source,tagStart,el,currentNSMap,entityReplacer,errorHandler),el.length);if(!el.closed&&fixSelfClosed(source,end,el.tagName,closeMap)&&(el.closed=!0,entityMap.nbsp||errorHandler.warning("unclosed xml attribute")),locator&&len){for(var locator2=copyLocator(locator,{}),i=0;i<len;i++){var a=el[i];position(a.offset),a.locator=copyLocator(locator,{})}domBuilder.locator=locator2,appendElement(el,domBuilder,currentNSMap)&&parseStack.push(el),domBuilder.locator=locator}else appendElement(el,domBuilder,currentNSMap)&&parseStack.push(el);NAMESPACE.isHTML(el.uri)&&!el.closed?end=parseHtmlSpecialContent(source,end,el.tagName,entityReplacer,domBuilder):end++}}catch(e){if(e instanceof ParseError)throw e;errorHandler.error("element parse error: "+e),end=-1}end>start?start=end:appendText(Math.max(tagStart,start)+1)}}(source,defaultNSMap,entityMap,domBuilder,this.errorHandler),domBuilder.endDocument()}},ElementAttributes.prototype={setTagName:function(tagName){if(!tagNamePattern.test(tagName))throw new Error("invalid tagName:"+tagName);this.tagName=tagName},addValue:function(qName,value,offset){if(!tagNamePattern.test(qName))throw new Error("invalid attribute:"+qName);this.attributeNames[qName]=this.length,this[this.length++]={qName:qName,value:value,offset:offset}},length:0,getLocalName:function(i){return this[i].localName},getLocator:function(i){return this[i].locator},getQName:function(i){return this[i].qName},getURI:function(i){return this[i].uri},getValue:function(i){return this[i].value}},sax.XMLReader=XMLReader,sax.ParseError=ParseError,sax}function requireDomParser(){if(hasRequiredDomParser)return domParser;hasRequiredDomParser=1;var conventions=requireConventions(),dom=requireDom(),entities=requireEntities(),sax=requireSax(),DOMImplementation=dom.DOMImplementation,NAMESPACE=conventions.NAMESPACE,ParseError=sax.ParseError,XMLReader=sax.XMLReader;function normalizeLineEndings(input){return input.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function DOMParser(options){this.options=options||{locator:{}}}function DOMHandler(){this.cdata=!1}function position(locator,node){node.lineNumber=locator.lineNumber,node.columnNumber=locator.columnNumber}function _locator(l){if(l)return"\n@"+(l.systemId||"")+"#[line:"+l.lineNumber+",col:"+l.columnNumber+"]"}function _toString(chars,start,length){return"string"==typeof chars?chars.substr(start,length):chars.length>=start+length||start?new java.lang.String(chars,start,length)+"":chars}function appendElement(hander,node){hander.currentElement?hander.currentElement.appendChild(node):hander.doc.appendChild(node)}return DOMParser.prototype.parseFromString=function(source,mimeType){var options=this.options,sax=new XMLReader,domBuilder=options.domBuilder||new DOMHandler,errorHandler=options.errorHandler,locator=options.locator,defaultNSMap=options.xmlns||{},isHTML=/\/x?html?$/.test(mimeType),entityMap=isHTML?entities.HTML_ENTITIES:entities.XML_ENTITIES;locator&&domBuilder.setDocumentLocator(locator),sax.errorHandler=function buildErrorHandler(errorImpl,domBuilder,locator){if(!errorImpl){if(domBuilder instanceof DOMHandler)return domBuilder;errorImpl=domBuilder}var errorHandler={},isCallback=errorImpl instanceof Function;function build(key){var fn=errorImpl[key];!fn&&isCallback&&(fn=2==errorImpl.length?function(msg){errorImpl(key,msg)}:errorImpl),errorHandler[key]=fn&&function(msg){fn("[xmldom "+key+"]\t"+msg+_locator(locator))}||function(){}}return locator=locator||{},build("warning"),build("error"),build("fatalError"),errorHandler}(errorHandler,domBuilder,locator),sax.domBuilder=options.domBuilder||domBuilder,isHTML&&(defaultNSMap[""]=NAMESPACE.HTML),defaultNSMap.xml=defaultNSMap.xml||NAMESPACE.XML;var normalize=options.normalizeLineEndings||normalizeLineEndings;return source&&"string"==typeof source?sax.parse(normalize(source),defaultNSMap,entityMap):sax.errorHandler.error("invalid doc source"),domBuilder.doc},DOMHandler.prototype={startDocument:function(){this.doc=(new DOMImplementation).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(namespaceURI,localName,qName,attrs){var doc=this.doc,el=doc.createElementNS(namespaceURI,qName||localName),len=attrs.length;appendElement(this,el),this.currentElement=el,this.locator&&position(this.locator,el);for(var i=0;i<len;i++){namespaceURI=attrs.getURI(i);var value=attrs.getValue(i),attr=(qName=attrs.getQName(i),doc.createAttributeNS(namespaceURI,qName));this.locator&&position(attrs.getLocator(i),attr),attr.value=attr.nodeValue=value,el.setAttributeNode(attr)}},endElement:function(namespaceURI,localName,qName){var current=this.currentElement;current.tagName,this.currentElement=current.parentNode},startPrefixMapping:function(prefix,uri){},endPrefixMapping:function(prefix){},processingInstruction:function(target,data){var ins=this.doc.createProcessingInstruction(target,data);this.locator&&position(this.locator,ins),appendElement(this,ins)},ignorableWhitespace:function(ch,start,length){},characters:function(chars,start,length){if(chars=_toString.apply(this,arguments)){if(this.cdata)var charNode=this.doc.createCDATASection(chars);else charNode=this.doc.createTextNode(chars);this.currentElement?this.currentElement.appendChild(charNode):/^\s*$/.test(chars)&&this.doc.appendChild(charNode),this.locator&&position(this.locator,charNode)}},skippedEntity:function(name){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(locator){(this.locator=locator)&&(locator.lineNumber=0)},comment:function(chars,start,length){chars=_toString.apply(this,arguments);var comm=this.doc.createComment(chars);this.locator&&position(this.locator,comm),appendElement(this,comm)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(name,publicId,systemId){var impl=this.doc.implementation;if(impl&&impl.createDocumentType){var dt=impl.createDocumentType(name,publicId,systemId);this.locator&&position(this.locator,dt),appendElement(this,dt),this.doc.doctype=dt}},warning:function(error){console.warn("[xmldom warning]\t"+error,_locator(this.locator))},error:function(error){console.error("[xmldom error]\t"+error,_locator(this.locator))},fatalError:function(error){throw new ParseError(error,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(key){DOMHandler.prototype[key]=function(){return null}})),domParser.__DOMHandler=DOMHandler,domParser.normalizeLineEndings=normalizeLineEndings,domParser.DOMParser=DOMParser,domParser}var hasRequiredDist,hasRequiredUtils$2,utils$4={},dist={};function requireDist(){if(hasRequiredDist)return dist;var NodeTypes;function isNodeLike(value){return value&&"object"==typeof value&&Number.isInteger(value.nodeType)&&value.nodeType>=1&&value.nodeType<=11&&"string"==typeof value.nodeName&&"function"==typeof value.appendChild&&"function"==typeof value.removeChild}function isArrayOfNodes(value){return Array.isArray(value)&&value.every(isNodeLike)}function isNodeOfType(type,value){return isNodeLike(value)&&value.nodeType===type}function assertIsNodeOfType(type,value){const typeName=Object.keys(NodeTypes).find((key=>NodeTypes[key]===type));if(!isNodeOfType(type,value))throw new Error(`Value is not of type ${typeName}`)}hasRequiredDist=1,Object.defineProperty(dist,"__esModule",{value:!0}),dist.assertIsDocumentFragmentNode=dist.assertIsDocumentTypeNode=dist.assertIsDocumentNode=dist.assertIsCommentNode=dist.assertIsProcessingInstructionNode=dist.assertIsCDATASectionNode=dist.assertIsTextNode=dist.assertIsAttributeNode=dist.assertIsElementNode=dist.isDocumentFragmentNode=dist.isDocumentTypeNode=dist.isDocumentNode=dist.isCommentNode=dist.isProcessingInstructionNode=dist.isCDATASectionNode=dist.isTextNode=dist.isAttributeNode=dist.isElementNode=dist.assertIsArrayOfNodes=dist.isArrayOfNodes=dist.assertIsNodeLike=dist.isNodeLike=dist.NodeTypes=void 0,function(NodeTypes){NodeTypes[NodeTypes.ELEMENT_NODE=1]="ELEMENT_NODE",NodeTypes[NodeTypes.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",NodeTypes[NodeTypes.TEXT_NODE=3]="TEXT_NODE",NodeTypes[NodeTypes.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",NodeTypes[NodeTypes.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",NodeTypes[NodeTypes.COMMENT_NODE=8]="COMMENT_NODE",NodeTypes[NodeTypes.DOCUMENT_NODE=9]="DOCUMENT_NODE",NodeTypes[NodeTypes.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",NodeTypes[NodeTypes.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(NodeTypes||(dist.NodeTypes=NodeTypes={})),dist.isNodeLike=isNodeLike,dist.assertIsNodeLike=function assertIsNodeLike(value){if(!isNodeLike(value))throw new Error(`Value is not a Node-like object. Received: ${value}`)},dist.isArrayOfNodes=isArrayOfNodes,dist.assertIsArrayOfNodes=function assertIsArrayOfNodes(value){if(!isArrayOfNodes(value))throw new Error("Value is not an array of Nodes")};dist.isElementNode=value=>isNodeOfType(NodeTypes.ELEMENT_NODE,value);dist.isAttributeNode=value=>isNodeOfType(NodeTypes.ATTRIBUTE_NODE,value);dist.isTextNode=value=>isNodeOfType(NodeTypes.TEXT_NODE,value);dist.isCDATASectionNode=value=>isNodeOfType(NodeTypes.CDATA_SECTION_NODE,value);dist.isProcessingInstructionNode=value=>isNodeOfType(NodeTypes.PROCESSING_INSTRUCTION_NODE,value);dist.isCommentNode=value=>isNodeOfType(NodeTypes.COMMENT_NODE,value);dist.isDocumentNode=value=>isNodeOfType(NodeTypes.DOCUMENT_NODE,value);dist.isDocumentTypeNode=value=>isNodeOfType(NodeTypes.DOCUMENT_TYPE_NODE,value);dist.isDocumentFragmentNode=value=>isNodeOfType(NodeTypes.DOCUMENT_FRAGMENT_NODE,value);dist.assertIsElementNode=value=>{assertIsNodeOfType(NodeTypes.ELEMENT_NODE,value)};dist.assertIsAttributeNode=value=>assertIsNodeOfType(NodeTypes.ATTRIBUTE_NODE,value);dist.assertIsTextNode=value=>assertIsNodeOfType(NodeTypes.TEXT_NODE,value);dist.assertIsCDATASectionNode=value=>assertIsNodeOfType(NodeTypes.CDATA_SECTION_NODE,value);dist.assertIsProcessingInstructionNode=value=>assertIsNodeOfType(NodeTypes.PROCESSING_INSTRUCTION_NODE,value);dist.assertIsCommentNode=value=>assertIsNodeOfType(NodeTypes.COMMENT_NODE,value);dist.assertIsDocumentNode=value=>assertIsNodeOfType(NodeTypes.DOCUMENT_NODE,value);dist.assertIsDocumentTypeNode=value=>assertIsNodeOfType(NodeTypes.DOCUMENT_TYPE_NODE,value);return dist.assertIsDocumentFragmentNode=value=>assertIsNodeOfType(NodeTypes.DOCUMENT_FRAGMENT_NODE,value),dist}function requireUtils$2(){return hasRequiredUtils$2||(hasRequiredUtils$2=1,function(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.validateDigestValue=exports.findAncestorNs=exports.derToPem=exports.pemToDer=exports.normalizePem=exports.BASE64_REGEX=exports.EXTRACT_X509_CERTS=exports.PEM_FORMAT_REGEX=exports.encodeSpecialCharactersInText=exports.encodeSpecialCharactersInAttribute=exports.findChilds=exports.findChildren=exports.findAttr=exports.isArrayHasLength=void 0;const xpath=requireXpath(),isDomNode=requireDist();function isArrayHasLength(array){return Array.isArray(array)&&array.length>0}function attrEqualsExplicitly(attr,localName,namespace){return attr.localName===localName&&(attr.namespaceURI===namespace||null==namespace)}function attrEqualsImplicitly(attr,localName,namespace,node){return attr.localName===localName&&(!attr.namespaceURI&&node?.namespaceURI===namespace||null==namespace)}function findChildren(node,localName,namespace){const element=node.documentElement??node,res=[];for(let i=0;i<element.childNodes.length;i++){const child=element.childNodes[i];!isDomNode.isElementNode(child)||child.localName!==localName||child.namespaceURI!==namespace&&null!=namespace||res.push(child)}return res}exports.isArrayHasLength=isArrayHasLength,exports.findAttr=function findAttr(element,localName,namespace){for(let i=0;i<element.attributes.length;i++){const attr=element.attributes[i];if(attrEqualsExplicitly(attr,localName,namespace)||attrEqualsImplicitly(attr,localName,namespace,element))return attr}return null},exports.findChildren=findChildren,exports.findChilds=function findChilds(node,localName,namespace){return findChildren(node,localName,namespace)};const xml_special_to_encoded_attribute={"&":"&amp;","<":"&lt;",'"':"&quot;","\r":"&#xD;","\n":"&#xA;","\t":"&#x9;"},xml_special_to_encoded_text={"&":"&amp;","<":"&lt;",">":"&gt;","\r":"&#xD;"};function normalizePem(pem){return`${(pem.trim().replace(/(\r\n|\r)/g,"\n").match(/.{1,64}/g)??[]).join("\n")}\n`}function collectAncestorNamespaces(node,nsArray=[]){if(!isDomNode.isElementNode(node.parentNode))return nsArray;const parent=node.parentNode;if(!parent)return nsArray;if(parent.attributes&&parent.attributes.length>0)for(let i=0;i<parent.attributes.length;i++){const attr=parent.attributes[i];attr&&attr.nodeName&&-1!==attr.nodeName.search(/^xmlns:?/)&&nsArray.push({prefix:attr.nodeName.replace(/^xmlns:?/,""),namespaceURI:attr.nodeValue||""})}return collectAncestorNamespaces(parent,nsArray)}exports.encodeSpecialCharactersInAttribute=function encodeSpecialCharactersInAttribute(attributeValue){return attributeValue.replace(/([&<"\r\n\t])/g,(function(str,item){return xml_special_to_encoded_attribute[item]}))},exports.encodeSpecialCharactersInText=function encodeSpecialCharactersInText(text){return text.replace(/([&<>\r])/g,(function(str,item){return xml_special_to_encoded_text[item]}))},exports.PEM_FORMAT_REGEX=new RegExp("^-----BEGIN [A-Z ]{1,48}-----([^-]*)-----END [A-Z ]{1,48}-----$","s"),exports.EXTRACT_X509_CERTS=new RegExp("-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----","g"),exports.BASE64_REGEX=new RegExp("^(?:[A-Za-z0-9\\+\\/]{4}\\n{0,1})*(?:[A-Za-z0-9\\+\\/]{2}==|[A-Za-z0-9\\+\\/]{3}=)?$","s"),exports.normalizePem=normalizePem,exports.pemToDer=function pemToDer(pem){if(!exports.PEM_FORMAT_REGEX.test(pem.trim()))throw new Error("Invalid PEM format.");return Buffer.from(pem.replace(/(\r\n|\r)/g,"").replace(/-----BEGIN [A-Z\x20]{1,48}-----\n?/,"").replace(/-----END [A-Z\x20]{1,48}-----\n?/,""),"base64")},exports.derToPem=function derToPem(der,pemLabel){const base64Der=Buffer.isBuffer(der)?der.toString("base64").trim():der.replace(/(\r\n|\r)/g,"").trim();if(exports.PEM_FORMAT_REGEX.test(base64Der))return normalizePem(base64Der);if(exports.BASE64_REGEX.test(base64Der.replace(/ /g,""))){if(null==pemLabel)throw new Error("PEM label is required when DER is given.");return normalizePem(`-----BEGIN ${pemLabel}-----\n${base64Der.replace(/ /g,"")}\n-----END ${pemLabel}-----`)}throw new Error("Unknown DER format.")},exports.findAncestorNs=function findAncestorNs(doc,docSubsetXpath,namespaceResolver){if(null==docSubsetXpath)return[];const docSubset=xpath.selectWithResolver(docSubsetXpath,doc,namespaceResolver);if(!isArrayHasLength(docSubset))return[];if(!function isElementSubset(docSubset){return docSubset.every((node=>isDomNode.isElementNode(node)))}(docSubset))throw new Error("Document subset must be list of elements");const ancestorNs=collectAncestorNamespaces(docSubset[0]),ancestorNsWithoutDuplicate=[];for(let i=0;i<ancestorNs.length;i++){let notOnTheList=!0;for(const v in ancestorNsWithoutDuplicate)if(ancestorNsWithoutDuplicate[v].prefix===ancestorNs[i].prefix){notOnTheList=!1;break}notOnTheList&&ancestorNsWithoutDuplicate.push(ancestorNs[i])}const returningNs=[],subsetNsPrefix=function findNSPrefix(subset){const subsetAttributes=subset.attributes;for(let k=0;k<subsetAttributes.length;k++){const nodeName=subsetAttributes[k].nodeName;if(-1!==nodeName.search(/^xmlns:?/))return nodeName.replace(/^xmlns:?/,"")}return subset.prefix||""}(docSubset[0]);for(const ancestorNs of ancestorNsWithoutDuplicate)ancestorNs.prefix!==subsetNsPrefix&&returningNs.push(ancestorNs);return returningNs},exports.validateDigestValue=function validateDigestValue(digest,expectedDigest){const buffer=Buffer.from(digest,"base64"),expectedBuffer=Buffer.from(expectedDigest,"base64");if("function"==typeof buffer.equals)return buffer.equals(expectedBuffer);if(buffer.length!==expectedBuffer.length)return!1;for(let i=0;i<buffer.length;i++)if(buffer[i]!==expectedBuffer[i])return!1;return!0}}(utils$4)),utils$4}var hasRequiredC14nCanonicalization,c14nCanonicalization={};var hasRequiredExclusiveCanonicalization,exclusiveCanonicalization={};var hasRequiredEnvelopedSignature,envelopedSignature={};var hasRequiredHashAlgorithms,hashAlgorithms={};function requireHashAlgorithms(){if(hasRequiredHashAlgorithms)return hashAlgorithms;hasRequiredHashAlgorithms=1,Object.defineProperty(hashAlgorithms,"__esModule",{value:!0}),hashAlgorithms.Sha512=hashAlgorithms.Sha256=hashAlgorithms.Sha1=void 0;const crypto=require$$0__default$1.default;hashAlgorithms.Sha1=class Sha1{constructor(){this.getHash=function(xml){const shasum=crypto.createHash("sha1");shasum.update(xml,"utf8");return shasum.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2000/09/xmldsig#sha1"}}};hashAlgorithms.Sha256=class Sha256{constructor(){this.getHash=function(xml){const shasum=crypto.createHash("sha256");shasum.update(xml,"utf8");return shasum.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha256"}}};return hashAlgorithms.Sha512=class Sha512{constructor(){this.getHash=function(xml){const shasum=crypto.createHash("sha512");shasum.update(xml,"utf8");return shasum.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha512"}}},hashAlgorithms}var hasRequiredTypes,hasRequiredSignatureAlgorithms,hasRequiredSignedXml,hasRequiredLib$3,signatureAlgorithms={},types={};function requireTypes(){if(hasRequiredTypes)return types;return hasRequiredTypes=1,Object.defineProperty(types,"__esModule",{value:!0}),types.createOptionalCallbackFunction=void 0,types.createOptionalCallbackFunction=function createOptionalCallbackFunction(syncVersion){return(...args)=>{const possibleCallback=args[args.length-1];if(!function isErrorFirstCallback(possibleCallback){return"function"==typeof possibleCallback}(possibleCallback))return syncVersion(...args);try{possibleCallback(null,syncVersion(...args.slice(0,-1)))}catch(err){possibleCallback(err instanceof Error?err:new Error("Unknown error"))}}},types}function requireSignatureAlgorithms(){if(hasRequiredSignatureAlgorithms)return signatureAlgorithms;hasRequiredSignatureAlgorithms=1,Object.defineProperty(signatureAlgorithms,"__esModule",{value:!0}),signatureAlgorithms.HmacSha1=signatureAlgorithms.RsaSha512=signatureAlgorithms.RsaSha256=signatureAlgorithms.RsaSha1=void 0;const crypto=require$$0__default$1.default,types_1=requireTypes();signatureAlgorithms.RsaSha1=class RsaSha1{constructor(){this.getSignature=(0,types_1.createOptionalCallbackFunction)(((signedInfo,privateKey)=>{const signer=crypto.createSign("RSA-SHA1");signer.update(signedInfo);return signer.sign(privateKey,"base64")})),this.verifySignature=(0,types_1.createOptionalCallbackFunction)(((material,key,signatureValue)=>{const verifier=crypto.createVerify("RSA-SHA1");verifier.update(material);return verifier.verify(key,signatureValue,"base64")})),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}};signatureAlgorithms.RsaSha256=class RsaSha256{constructor(){this.getSignature=(0,types_1.createOptionalCallbackFunction)(((signedInfo,privateKey)=>{const signer=crypto.createSign("RSA-SHA256");signer.update(signedInfo);return signer.sign(privateKey,"base64")})),this.verifySignature=(0,types_1.createOptionalCallbackFunction)(((material,key,signatureValue)=>{const verifier=crypto.createVerify("RSA-SHA256");verifier.update(material);return verifier.verify(key,signatureValue,"base64")})),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"}};signatureAlgorithms.RsaSha512=class RsaSha512{constructor(){this.getSignature=(0,types_1.createOptionalCallbackFunction)(((signedInfo,privateKey)=>{const signer=crypto.createSign("RSA-SHA512");signer.update(signedInfo);return signer.sign(privateKey,"base64")})),this.verifySignature=(0,types_1.createOptionalCallbackFunction)(((material,key,signatureValue)=>{const verifier=crypto.createVerify("RSA-SHA512");verifier.update(material);return verifier.verify(key,signatureValue,"base64")})),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"}};return signatureAlgorithms.HmacSha1=class HmacSha1{constructor(){this.getSignature=(0,types_1.createOptionalCallbackFunction)(((signedInfo,privateKey)=>{const signer=crypto.createHmac("SHA1",privateKey);signer.update(signedInfo);return signer.digest("base64")})),this.verifySignature=(0,types_1.createOptionalCallbackFunction)(((material,key,signatureValue)=>{const verifier=crypto.createHmac("SHA1",key);verifier.update(material);return verifier.digest("base64")===signatureValue})),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#hmac-sha1"}},signatureAlgorithms}function requireSignedXml(){if(hasRequiredSignedXml)return signedXml;hasRequiredSignedXml=1,Object.defineProperty(signedXml,"__esModule",{value:!0}),signedXml.SignedXml=void 0;const xpath=requireXpath(),xmldom=function requireLib$4(){if(hasRequiredLib$4)return lib$3;hasRequiredLib$4=1;var dom=requireDom();return lib$3.DOMImplementation=dom.DOMImplementation,lib$3.XMLSerializer=dom.XMLSerializer,lib$3.DOMParser=requireDomParser().DOMParser,lib$3}(),utils=requireUtils$2(),c14n=function requireC14nCanonicalization(){if(hasRequiredC14nCanonicalization)return c14nCanonicalization;hasRequiredC14nCanonicalization=1,Object.defineProperty(c14nCanonicalization,"__esModule",{value:!0}),c14nCanonicalization.C14nCanonicalizationWithComments=c14nCanonicalization.C14nCanonicalization=void 0;const utils=requireUtils$2(),isDomNode=requireDist();class C14nCanonicalization{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return-1;if(!b.namespaceURI&&a.namespaceURI)return 1;const left=a.namespaceURI+a.localName,right=b.namespaceURI+b.localName;return left===right?0:left<right?-1:1}nsCompare(a,b){const attr1=a.prefix,attr2=b.prefix;return attr1===attr2?0:attr1.localeCompare(attr2)}renderAttrs(node){let i,attr;const attrListToRender=[];if(isDomNode.isCommentNode(node))return this.renderComment(node);if(node.attributes)for(i=0;i<node.attributes.length;++i)attr=node.attributes[i],0!==attr.name.indexOf("xmlns")&&attrListToRender.push(attr);attrListToRender.sort(this.attrCompare);const res=attrListToRender.map((attr=>` ${attr.name}="${utils.encodeSpecialCharactersInAttribute(attr.value)}"`));return res.join("")}renderNs(node,prefixesInScope,defaultNs,defaultNsForPrefix,ancestorNamespaces){let i,attr;const res=[];let newDefaultNs=defaultNs;const nsListToRender=[],currNs=node.namespaceURI||"";if(node.prefix?-1===prefixesInScope.indexOf(node.prefix)&&(nsListToRender.push({prefix:node.prefix,namespaceURI:node.namespaceURI||defaultNsForPrefix[node.prefix]}),prefixesInScope.push(node.prefix)):defaultNs!==currNs&&(newDefaultNs=node.namespaceURI||"",res.push(' xmlns="',newDefaultNs,'"')),node.attributes)for(i=0;i<node.attributes.length;++i)attr=node.attributes[i],"xmlns"===attr.prefix&&-1===prefixesInScope.indexOf(attr.localName)&&(nsListToRender.push({prefix:attr.localName,namespaceURI:attr.value}),prefixesInScope.push(attr.localName)),attr.prefix&&-1===prefixesInScope.indexOf(attr.prefix)&&"xmlns"!==attr.prefix&&"xml"!==attr.prefix&&(nsListToRender.push({prefix:attr.prefix,namespaceURI:attr.namespaceURI}),prefixesInScope.push(attr.prefix));if(utils.isArrayHasLength(ancestorNamespaces))for(const ancestorNamespace of ancestorNamespaces){let alreadyListed=!1;for(const nsToRender of nsListToRender)nsToRender.prefix===ancestorNamespace.prefix&&nsToRender.namespaceURI===ancestorNamespace.namespaceURI&&(alreadyListed=!0);alreadyListed||nsListToRender.push(ancestorNamespace)}return nsListToRender.sort(this.nsCompare),res.push(...nsListToRender.map((attr=>attr.prefix?` xmlns:${attr.prefix}="${attr.namespaceURI}"`:` xmlns="${attr.namespaceURI}"`))),{rendered:res.join(""),newDefaultNs:newDefaultNs}}processInner(node,prefixesInScope,defaultNs,defaultNsForPrefix,ancestorNamespaces){if(isDomNode.isCommentNode(node))return this.renderComment(node);if(node.data)return utils.encodeSpecialCharactersInText(node.data);if(isDomNode.isElementNode(node)){let i,pfxCopy;const ns=this.renderNs(node,prefixesInScope,defaultNs,defaultNsForPrefix,ancestorNamespaces),res=["<",node.tagName,ns.rendered,this.renderAttrs(node),">"];for(i=0;i<node.childNodes.length;++i)pfxCopy=prefixesInScope.slice(0),res.push(this.processInner(node.childNodes[i],pfxCopy,ns.newDefaultNs,defaultNsForPrefix,[]));return res.push("</",node.tagName,">"),res.join("")}throw new Error(`Unable to canonicalize node type: ${node.nodeType}`)}renderComment(node){if(!this.includeComments)return"";let isBeforeDocument=!1,isAfterDocument=!1;if(node.ownerDocument===node.parentNode){let nextNode=node,previousNode=node;for(;null!==nextNode;){if(nextNode===node.ownerDocument.documentElement){isBeforeDocument=!0;break}nextNode=nextNode.nextSibling}for(;null!==previousNode;){if(previousNode===node.ownerDocument.documentElement){isAfterDocument=!0;break}previousNode=previousNode.previousSibling}}const beforeDocument=isBeforeDocument?"\n":"";return`${isAfterDocument?"\n":""}\x3c!--${utils.encodeSpecialCharactersInText(node.data)}--\x3e${beforeDocument}`}process(node,options){const defaultNs=(options=options||{}).defaultNs||"",defaultNsForPrefix=options.defaultNsForPrefix||{},ancestorNamespaces=options.ancestorNamespaces||[],prefixesInScope=[];for(let i=0;i<ancestorNamespaces.length;i++)prefixesInScope.push(ancestorNamespaces[i].prefix);return this.processInner(node,prefixesInScope,defaultNs,defaultNsForPrefix,ancestorNamespaces)}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}return c14nCanonicalization.C14nCanonicalization=C14nCanonicalization,c14nCanonicalization.C14nCanonicalizationWithComments=class C14nCanonicalizationWithComments extends C14nCanonicalization{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"}},c14nCanonicalization}(),execC14n=function requireExclusiveCanonicalization(){if(hasRequiredExclusiveCanonicalization)return exclusiveCanonicalization;hasRequiredExclusiveCanonicalization=1,Object.defineProperty(exclusiveCanonicalization,"__esModule",{value:!0}),exclusiveCanonicalization.ExclusiveCanonicalizationWithComments=exclusiveCanonicalization.ExclusiveCanonicalization=void 0;const utils=requireUtils$2(),isDomNode=requireDist();function isPrefixInScope(prefixesInScope,prefix,namespaceURI){let ret=!1;return prefixesInScope.forEach((function(pf){pf.prefix===prefix&&pf.namespaceURI===namespaceURI&&(ret=!0)})),ret}class ExclusiveCanonicalization{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return-1;if(!b.namespaceURI&&a.namespaceURI)return 1;const left=a.namespaceURI+a.localName,right=b.namespaceURI+b.localName;return left===right?0:left<right?-1:1}nsCompare(a,b){const attr1=a.prefix,attr2=b.prefix;return attr1===attr2?0:attr1.localeCompare(attr2)}renderAttrs(node){let i,attr;const res=[],attrListToRender=[];if(isDomNode.isCommentNode(node))return this.renderComment(node);if(node.attributes)for(i=0;i<node.attributes.length;++i)attr=node.attributes[i],0!==attr.name.indexOf("xmlns")&&attrListToRender.push(attr);for(attr of(attrListToRender.sort(this.attrCompare),attrListToRender))res.push(" ",attr.name,'="',utils.encodeSpecialCharactersInAttribute(attr.value),'"');return res.join("")}renderNs(node,prefixesInScope,defaultNs,defaultNsForPrefix,inclusiveNamespacesPrefixList){let i,attr;const res=[];let newDefaultNs=defaultNs;const nsListToRender=[],currNs=node.namespaceURI||"";if(node.prefix?isPrefixInScope(prefixesInScope,node.prefix,node.namespaceURI||defaultNsForPrefix[node.prefix])||(nsListToRender.push({prefix:node.prefix,namespaceURI:node.namespaceURI||defaultNsForPrefix[node.prefix]}),prefixesInScope.push({prefix:node.prefix,namespaceURI:node.namespaceURI||defaultNsForPrefix[node.prefix]})):defaultNs!==currNs&&(newDefaultNs=node.namespaceURI,res.push(' xmlns="',newDefaultNs,'"')),node.attributes)for(i=0;i<node.attributes.length;++i)attr=node.attributes[i],attr.prefix&&!isPrefixInScope(prefixesInScope,attr.localName,attr.value)&&inclusiveNamespacesPrefixList.indexOf(attr.localName)>=0&&(nsListToRender.push({prefix:attr.localName,namespaceURI:attr.value}),prefixesInScope.push({prefix:attr.localName,namespaceURI:attr.value})),attr.prefix&&!isPrefixInScope(prefixesInScope,attr.prefix,attr.namespaceURI)&&"xmlns"!==attr.prefix&&"xml"!==attr.prefix&&(nsListToRender.push({prefix:attr.prefix,namespaceURI:attr.namespaceURI}),prefixesInScope.push({prefix:attr.prefix,namespaceURI:attr.namespaceURI}));nsListToRender.sort(this.nsCompare);for(const p of nsListToRender)res.push(" xmlns:",p.prefix,'="',p.namespaceURI,'"');return{rendered:res.join(""),newDefaultNs:newDefaultNs}}processInner(node,prefixesInScope,defaultNs,defaultNsForPrefix,inclusiveNamespacesPrefixList){if(isDomNode.isCommentNode(node))return this.renderComment(node);if(node.data)return utils.encodeSpecialCharactersInText(node.data);if(isDomNode.isElementNode(node)){let i,pfxCopy;const ns=this.renderNs(node,prefixesInScope,defaultNs,defaultNsForPrefix,inclusiveNamespacesPrefixList),res=["<",node.tagName,ns.rendered,this.renderAttrs(node),">"];for(i=0;i<node.childNodes.length;++i)pfxCopy=prefixesInScope.slice(0),res.push(this.processInner(node.childNodes[i],pfxCopy,ns.newDefaultNs,defaultNsForPrefix,inclusiveNamespacesPrefixList));return res.push("</",node.tagName,">"),res.join("")}throw new Error(`Unable to exclusive canonicalize node type: ${node.nodeType}`)}renderComment(node){if(!this.includeComments)return"";let isBeforeDocument=!1,isAfterDocument=!1;if(node.ownerDocument===node.parentNode){let nextNode=node,previousNode=node;for(;null!=nextNode;){if(nextNode===node.ownerDocument.documentElement){isBeforeDocument=!0;break}nextNode=nextNode.nextSibling}for(;null!=previousNode;){if(previousNode===node.ownerDocument.documentElement){isAfterDocument=!0;break}previousNode=previousNode.previousSibling}}const beforeDocument=isBeforeDocument?"\n":"";return`${isAfterDocument?"\n":""}\x3c!--${utils.encodeSpecialCharactersInText(node.data)}--\x3e${beforeDocument}`}process(elem,options){let inclusiveNamespacesPrefixList=(options=options||{}).inclusiveNamespacesPrefixList||[];const defaultNs=options.defaultNs||"",defaultNsForPrefix=options.defaultNsForPrefix||{},ancestorNamespaces=options.ancestorNamespaces||[];if(!utils.isArrayHasLength(inclusiveNamespacesPrefixList)){const CanonicalizationMethod=utils.findChildren(elem,"CanonicalizationMethod");if(0!==CanonicalizationMethod.length){const inclusiveNamespaces=utils.findChildren(CanonicalizationMethod[0],"InclusiveNamespaces");0!==inclusiveNamespaces.length&&(inclusiveNamespacesPrefixList=(inclusiveNamespaces[0].getAttribute("PrefixList")||"").split(" "))}}return utils.isArrayHasLength(inclusiveNamespacesPrefixList)&&inclusiveNamespacesPrefixList.forEach((function(prefix){ancestorNamespaces&&ancestorNamespaces.forEach((function(ancestorNamespace){prefix===ancestorNamespace.prefix&&elem.setAttributeNS("http://www.w3.org/2000/xmlns/",`xmlns:${prefix}`,ancestorNamespace.namespaceURI)}))})),this.processInner(elem,[],defaultNs,defaultNsForPrefix,inclusiveNamespacesPrefixList)}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#"}}return exclusiveCanonicalization.ExclusiveCanonicalization=ExclusiveCanonicalization,exclusiveCanonicalization.ExclusiveCanonicalizationWithComments=class ExclusiveCanonicalizationWithComments extends ExclusiveCanonicalization{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"}},exclusiveCanonicalization}(),envelopedSignatures=function requireEnvelopedSignature(){if(hasRequiredEnvelopedSignature)return envelopedSignature;hasRequiredEnvelopedSignature=1,Object.defineProperty(envelopedSignature,"__esModule",{value:!0}),envelopedSignature.EnvelopedSignature=void 0;const xpath=requireXpath(),isDomNode=requireDist();return envelopedSignature.EnvelopedSignature=class EnvelopedSignature{constructor(){this.includeComments=!1,this.includeComments=!1}process(node,options){if(null==options.signatureNode){const signature=xpath.select1("./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",node);return isDomNode.isNodeLike(signature)&&signature.parentNode&&signature.parentNode.removeChild(signature),node}const signatureNode=options.signatureNode,expectedSignatureValue=xpath.select1(".//*[local-name(.)='SignatureValue']/text()",signatureNode);if(isDomNode.isTextNode(expectedSignatureValue)){const expectedSignatureValueData=expectedSignatureValue.data,signatures=xpath.select(".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",node);for(const nodeSignature of Array.isArray(signatures)?signatures:[]){const signatureValue=xpath.select1(".//*[local-name(.)='SignatureValue']/text()",nodeSignature);isDomNode.isTextNode(signatureValue)&&expectedSignatureValueData===signatureValue.data&&nodeSignature.parentNode&&nodeSignature.parentNode.removeChild(nodeSignature)}}return node}getAlgorithmName(){return"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}},envelopedSignature}(),hashAlgorithms=requireHashAlgorithms(),signatureAlgorithms=requireSignatureAlgorithms(),isDomNode=requireDist();class SignedXml{constructor(options={}){this.signatureAlgorithm=void 0,this.canonicalizationAlgorithm=void 0,this.inclusiveNamespacesPrefixList=[],this.namespaceResolver={lookupNamespaceURI:function(){throw new Error("Not implemented")}},this.implicitTransforms=[],this.keyInfoAttributes={},this.getKeyInfoContent=SignedXml.getKeyInfoContent,this.getCertFromKeyInfo=SignedXml.getCertFromKeyInfo,this.id=0,this.signedXml="",this.signatureXml="",this.signatureNode=null,this.signatureValue="",this.originalXmlWithIds="",this.keyInfo=null,this.references=[],this.CanonicalizationAlgorithms={"http://www.w3.org/TR/2001/REC-xml-c14n-20010315":c14n.C14nCanonicalization,"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":c14n.C14nCanonicalizationWithComments,"http://www.w3.org/2001/10/xml-exc-c14n#":execC14n.ExclusiveCanonicalization,"http://www.w3.org/2001/10/xml-exc-c14n#WithComments":execC14n.ExclusiveCanonicalizationWithComments,"http://www.w3.org/2000/09/xmldsig#enveloped-signature":envelopedSignatures.EnvelopedSignature},this.HashAlgorithms={"http://www.w3.org/2000/09/xmldsig#sha1":hashAlgorithms.Sha1,"http://www.w3.org/2001/04/xmlenc#sha256":hashAlgorithms.Sha256,"http://www.w3.org/2001/04/xmlenc#sha512":hashAlgorithms.Sha512},this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#rsa-sha1":signatureAlgorithms.RsaSha1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256":signatureAlgorithms.RsaSha256,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512":signatureAlgorithms.RsaSha512};const{idMode:idMode,idAttribute:idAttribute,privateKey:privateKey,publicCert:publicCert,signatureAlgorithm:signatureAlgorithm,canonicalizationAlgorithm:canonicalizationAlgorithm,inclusiveNamespacesPrefixList:inclusiveNamespacesPrefixList,implicitTransforms:implicitTransforms,keyInfoAttributes:keyInfoAttributes,getKeyInfoContent:getKeyInfoContent,getCertFromKeyInfo:getCertFromKeyInfo}=options;this.idMode=idMode,this.idAttributes=["Id","ID","id"],idAttribute&&this.idAttributes.unshift(idAttribute),this.privateKey=privateKey,this.publicCert=publicCert,this.signatureAlgorithm=signatureAlgorithm??this.signatureAlgorithm,this.canonicalizationAlgorithm=canonicalizationAlgorithm,"string"==typeof inclusiveNamespacesPrefixList?this.inclusiveNamespacesPrefixList=inclusiveNamespacesPrefixList.split(" "):utils.isArrayHasLength(inclusiveNamespacesPrefixList)&&(this.inclusiveNamespacesPrefixList=inclusiveNamespacesPrefixList),this.implicitTransforms=implicitTransforms??this.implicitTransforms,this.keyInfoAttributes=keyInfoAttributes??this.keyInfoAttributes,this.getKeyInfoContent=getKeyInfoContent??this.getKeyInfoContent,this.getCertFromKeyInfo=getCertFromKeyInfo??SignedXml.noop,this.CanonicalizationAlgorithms,this.HashAlgorithms,this.SignatureAlgorithms}enableHMAC(){this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#hmac-sha1":signatureAlgorithms.HmacSha1},this.getKeyInfoContent=SignedXml.noop}static getKeyInfoContent({publicCert:publicCert,prefix:prefix}){if(null==publicCert)return null;prefix=prefix?`${prefix}:`:"";let x509Certs="";Buffer.isBuffer(publicCert)&&(publicCert=publicCert.toString("latin1"));let publicCertMatches=[];return"string"==typeof publicCert&&(publicCertMatches=publicCert.match(utils.EXTRACT_X509_CERTS)||[]),publicCertMatches.length>0&&(x509Certs=publicCertMatches.map((c=>`<${prefix}X509Certificate>${utils.pemToDer(c).toString("base64")}</${prefix}X509Certificate>`)).join("")),`<${prefix}X509Data>${x509Certs}</${prefix}X509Data>`}static getCertFromKeyInfo(keyInfo){if(null!=keyInfo){const cert=xpath.select1(".//*[local-name(.)='X509Certificate']",keyInfo);if(isDomNode.isNodeLike(cert))return utils.derToPem(cert.textContent??"","CERTIFICATE")}return null}checkSignature(xml,callback){if(null!=callback&&"function"!=typeof callback)throw new Error("Last parameter must be a callback function");this.signedXml=xml;const doc=(new xmldom.DOMParser).parseFromString(xml);this.references=[];const unverifiedSignedInfoCanon=this.getCanonSignedInfoXml(doc);if(!unverifiedSignedInfoCanon){if(callback)return void callback(new Error("Canonical signed info cannot be empty"),!1);throw new Error("Canonical signed info cannot be empty")}const unverifiedSignedInfoDoc=(new xmldom.DOMParser).parseFromString(unverifiedSignedInfoCanon,"text/xml").documentElement;if(!unverifiedSignedInfoDoc){if(callback)return void callback(new Error("Could not parse unverifiedSignedInfoCanon into a document"),!1);throw new Error("Could not parse unverifiedSignedInfoCanon into a document")}const references=utils.findChildren(unverifiedSignedInfoDoc,"Reference");if(!utils.isArrayHasLength(references)){if(callback)return void callback(new Error("could not find any Reference elements"),!1);throw new Error("could not find any Reference elements")}for(const reference of references)this.loadReference(reference);if(!this.getReferences().every((ref=>this.validateReference(ref,doc))))return!!callback&&void callback(new Error("Could not validate all references"),!1);const signer=this.findSignatureAlgorithm(this.signatureAlgorithm),key=this.getCertFromKeyInfo(this.keyInfo)||this.publicCert||this.privateKey;if(null==key)throw new Error("KeyInfo or publicCert or privateKey is required to validate signature");if(!callback){if(!1===signer.verifySignature(unverifiedSignedInfoCanon,key,this.signatureValue))throw new Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`);return!0}signer.verifySignature(unverifiedSignedInfoCanon,key,this.signatureValue,callback)}getCanonSignedInfoXml(doc){if(null==this.signatureNode)throw new Error("No signature found.");if("string"!=typeof this.canonicalizationAlgorithm)throw new Error("Missing canonicalizationAlgorithm when trying to get signed info for XML");const signedInfo=utils.findChildren(this.signatureNode,"SignedInfo");if(0===signedInfo.length)throw new Error("could not find SignedInfo element in the message");if(signedInfo.length>1)throw new Error("could not get canonicalized signed info for a signature that contains multiple SignedInfo nodes");if(!("http://www.w3.org/TR/2001/REC-xml-c14n-20010315"!==this.canonicalizationAlgorithm&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"!==this.canonicalizationAlgorithm||doc&&"object"==typeof doc))throw new Error("When canonicalization method is non-exclusive, whole xml dom must be provided as an argument");const c14nOptions={ancestorNamespaces:utils.findAncestorNs(doc,"//*[local-name()='SignedInfo']")};return this.getCanonXml([this.canonicalizationAlgorithm],signedInfo[0],c14nOptions)}getCanonReferenceXml(doc,ref,node){Array.isArray(ref.transforms)&&(ref.ancestorNamespaces=utils.findAncestorNs(doc,ref.xpath,this.namespaceResolver));const c14nOptions={inclusiveNamespacesPrefixList:ref.inclusiveNamespacesPrefixList,ancestorNamespaces:ref.ancestorNamespaces};return this.getCanonXml(ref.transforms,node,c14nOptions)}calculateSignatureValue(doc,callback){const signedInfoCanon=this.getCanonSignedInfoXml(doc),signer=this.findSignatureAlgorithm(this.signatureAlgorithm);if(null==this.privateKey)throw new Error("Private key is required to compute signature");"function"==typeof callback?signer.getSignature(signedInfoCanon,this.privateKey,callback):this.signatureValue=signer.getSignature(signedInfoCanon,this.privateKey)}findSignatureAlgorithm(name){if(null==name)throw new Error("signatureAlgorithm is required");const algo=this.SignatureAlgorithms[name];if(algo)return new algo;throw new Error(`signature algorithm '${name}' is not supported`)}findCanonicalizationAlgorithm(name){if(null!=name){const algo=this.CanonicalizationAlgorithms[name];if(algo)return new algo}throw new Error(`canonicalization algorithm '${name}' is not supported`)}findHashAlgorithm(name){const algo=this.HashAlgorithms[name];if(algo)return new algo;throw new Error(`hash algorithm '${name}' is not supported`)}validateElementAgainstReferences(elemOrXpath,doc){let elem;if("string"==typeof elemOrXpath){const firstElem=xpath.select1(elemOrXpath,doc);isDomNode.assertIsElementNode(firstElem),elem=firstElem}else elem=elemOrXpath;for(const ref of this.getReferences()){const uri="#"===ref.uri?.[0]?ref.uri.substring(1):ref.uri;for(const attr of this.idAttributes){if(uri===elem.getAttribute(attr)){ref.xpath=`//*[@*[local-name(.)='${attr}']='${uri}']`;break}}const canonXml=this.getCanonReferenceXml(doc,ref,elem),digest=this.findHashAlgorithm(ref.digestAlgorithm).getHash(canonXml);if(utils.validateDigestValue(digest,ref.digestValue))return ref}throw new Error("No references passed validation")}validateReference(ref,doc){const uri="#"===ref.uri?.[0]?ref.uri.substring(1):ref.uri;let elem=null;if(""===uri)elem=xpath.select1("//*",doc);else{if(-1!==uri?.indexOf("'"))throw new Error("Cannot validate a uri with quotes inside it");{let num_elements_for_id=0;for(const attr of this.idAttributes){const tmp_elemXpath=`//*[@*[local-name(.)='${attr}']='${uri}']`,tmp_elem=xpath.select(tmp_elemXpath,doc);if(utils.isArrayHasLength(tmp_elem)){if(num_elements_for_id+=tmp_elem.length,num_elements_for_id>1)throw new Error("Cannot validate a document which contains multiple elements with the same value for the ID / Id / Id attributes, in order to prevent signature wrapping attack.");elem=tmp_elem[0],ref.xpath=tmp_elemXpath}}}}if(ref.getValidatedNode=xpathSelector=>{if("string"!=typeof(xpathSelector=xpathSelector||ref.xpath)||null!=ref.validationError)return null;const selectedValue=xpath.select1(xpathSelector,doc);return isDomNode.isNodeLike(selectedValue)?selectedValue:null},!isDomNode.isNodeLike(elem)){const validationError=new Error(`invalid signature: the signature references an element with uri ${ref.uri} but could not find such element in the xml`);return ref.validationError=validationError,!1}const canonXml=this.getCanonReferenceXml(doc,ref,elem),digest=this.findHashAlgorithm(ref.digestAlgorithm).getHash(canonXml);if(!utils.validateDigestValue(digest,ref.digestValue)){const validationError=new Error(`invalid signature: for uri ${ref.uri} calculated digest is ${digest} but the xml to validate supplies digest ${ref.digestValue}`);return ref.validationError=validationError,!1}return!0}findSignatures(doc){const nodes=xpath.select("//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",doc);return isDomNode.isArrayOfNodes(nodes)?nodes:[]}loadSignature(signatureNode){this.signatureNode="string"==typeof signatureNode?signatureNode=(new xmldom.DOMParser).parseFromString(signatureNode):signatureNode,this.signatureXml=signatureNode.toString();const node=xpath.select1(".//*[local-name(.)='CanonicalizationMethod']/@Algorithm",signatureNode);if(!isDomNode.isNodeLike(node))throw new Error("could not find CanonicalizationMethod/@Algorithm element");isDomNode.isAttributeNode(node)&&(this.canonicalizationAlgorithm=node.value);const signatureAlgorithm=xpath.select1(".//*[local-name(.)='SignatureMethod']/@Algorithm",signatureNode);isDomNode.isAttributeNode(signatureAlgorithm)&&(this.signatureAlgorithm=signatureAlgorithm.value);const signedInfoNodes=utils.findChildren(this.signatureNode,"SignedInfo");if(!utils.isArrayHasLength(signedInfoNodes))throw new Error("no signed info node found");if(signedInfoNodes.length>1)throw new Error("could not load signature that contains multiple SignedInfo nodes");let canonicalizationAlgorithmForSignedInfo=this.canonicalizationAlgorithm;canonicalizationAlgorithmForSignedInfo&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"!==canonicalizationAlgorithmForSignedInfo&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"!==canonicalizationAlgorithmForSignedInfo||(canonicalizationAlgorithmForSignedInfo="http://www.w3.org/2001/10/xml-exc-c14n#");const temporaryCanonSignedInfo=this.getCanonXml([canonicalizationAlgorithmForSignedInfo],signedInfoNodes[0]),signedInfoDoc=(new xmldom.DOMParser).parseFromString(temporaryCanonSignedInfo,"text/xml").documentElement;this.references=[];const references=utils.findChildren(signedInfoDoc,"Reference");if(!utils.isArrayHasLength(references))throw new Error("could not find any Reference elements");for(const reference of references)this.loadReference(reference);const signatureValue=xpath.select1(".//*[local-name(.)='SignatureValue']/text()",signatureNode);isDomNode.isTextNode(signatureValue)&&(this.signatureValue=signatureValue.data.replace(/\r?\n/g,""));const keyInfo=xpath.select1(".//*[local-name(.)='KeyInfo']",signatureNode);isDomNode.isNodeLike(keyInfo)&&(this.keyInfo=keyInfo)}loadReference(refNode){let nodes=utils.findChildren(refNode,"DigestMethod");if(0===nodes.length)throw new Error(`could not find DigestMethod in reference ${refNode.toString()}`);const digestAlgoNode=nodes[0],attr=utils.findAttr(digestAlgoNode,"Algorithm");if(!attr)throw new Error(`could not find Algorithm attribute in node ${digestAlgoNode.toString()}`);const digestAlgo=attr.value;if(nodes=utils.findChildren(refNode,"DigestValue"),0===nodes.length)throw new Error(`could not find DigestValue node in reference ${refNode.toString()}`);if(nodes.length>1)throw new Error(`could not load reference for a node that contains multiple DigestValue nodes: ${refNode.toString()}`);const digestValue=nodes[0].textContent;if(!digestValue)throw new Error(`could not find the value of DigestValue in ${refNode.toString()}`);const transforms=[];let inclusiveNamespacesPrefixList=[];if(nodes=utils.findChildren(refNode,"Transforms"),0!==nodes.length){const transformsNode=nodes[0],transformsAll=utils.findChildren(transformsNode,"Transform");for(const transform of transformsAll){const transformAttr=utils.findAttr(transform,"Algorithm");transformAttr&&transforms.push(transformAttr.value)}const inclusiveNamespaces=utils.findChildren(transformsAll[transformsAll.length-1],"InclusiveNamespaces");utils.isArrayHasLength(inclusiveNamespaces)&&(inclusiveNamespacesPrefixList=inclusiveNamespaces.flatMap((namespace=>(namespace.getAttribute("PrefixList")??"").split(" "))).filter((value=>value.length>0)))}utils.isArrayHasLength(this.implicitTransforms)&&this.implicitTransforms.forEach((function(t){transforms.push(t)})),0!==transforms.length&&"http://www.w3.org/2000/09/xmldsig#enveloped-signature"!==transforms[transforms.length-1]||transforms.push("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");const refUri=isDomNode.isElementNode(refNode)&&refNode.getAttribute("URI")||void 0;this.addReference({transforms:transforms,digestAlgorithm:digestAlgo,uri:refUri,digestValue:digestValue,inclusiveNamespacesPrefixList:inclusiveNamespacesPrefixList,isEmptyUri:!1})}addReference({xpath:xpath,transforms:transforms,digestAlgorithm:digestAlgorithm,uri:uri="",digestValue:digestValue,inclusiveNamespacesPrefixList:inclusiveNamespacesPrefixList=[],isEmptyUri:isEmptyUri=!1}){if(null==digestAlgorithm)throw new Error("digestAlgorithm is required");if(!utils.isArrayHasLength(transforms))throw new Error("transforms must contain at least one transform algorithm");this.references.push({xpath:xpath,transforms:transforms,digestAlgorithm:digestAlgorithm,uri:uri,digestValue:digestValue,inclusiveNamespacesPrefixList:inclusiveNamespacesPrefixList,isEmptyUri:isEmptyUri,getValidatedNode:()=>{throw new Error("Reference has not been validated yet; Did you call `sig.checkSignature()`?")}})}getReferences(){return this.references}computeSignature(xml,options,callbackParam){let callback;"function"==typeof options&&null==callbackParam?(callback=options,options={}):(callback=callbackParam,options=options??{});const doc=(new xmldom.DOMParser).parseFromString(xml);let xmlNsAttr="xmlns";const signatureAttrs=[];let currentPrefix;const validActions=["append","prepend","before","after"],prefix=options.prefix,attrs=options.attrs||{},location=options.location||{},existingPrefixes=options.existingPrefixes||{};if(this.namespaceResolver={lookupNamespaceURI:function(prefix){return prefix?existingPrefixes[prefix]:null}},location.reference=location.reference||"/*",location.action=location.action||"append",-1===validActions.indexOf(location.action)){const err=new Error(`location.action option has an invalid action: ${location.action}, must be any of the following values: ${validActions.join(", ")}`);if(callback)return void callback(err);throw err}prefix?(xmlNsAttr+=`:${prefix}`,currentPrefix=`${prefix}:`):currentPrefix="",Object.keys(attrs).forEach((function(name){"xmlns"!==name&&name!==xmlNsAttr&&signatureAttrs.push(`${name}="${attrs[name]}"`)})),signatureAttrs.push(`${xmlNsAttr}="http://www.w3.org/2000/09/xmldsig#"`);let signatureXml=`<${currentPrefix}Signature ${signatureAttrs.join(" ")}>`;signatureXml+=this.createSignedInfo(doc,prefix),signatureXml+=this.getKeyInfo(prefix),signatureXml+=`</${currentPrefix}Signature>`,this.originalXmlWithIds=doc.toString();let existingPrefixesString="";Object.keys(existingPrefixes).forEach((function(key){existingPrefixesString+=`xmlns:${key}="${existingPrefixes[key]}" `}));const dummySignatureWrapper=`<Dummy ${existingPrefixesString}>${signatureXml}</Dummy>`,signatureDoc=(new xmldom.DOMParser).parseFromString(dummySignatureWrapper).documentElement.firstChild,referenceNode=xpath.select1(location.reference,doc);if(!isDomNode.isNodeLike(referenceNode)){const err2=new Error(`the following xpath cannot be used because it was not found: ${location.reference}`);if(callback)return void callback(err2);throw err2}if("append"===location.action)referenceNode.appendChild(signatureDoc);else if("prepend"===location.action)referenceNode.insertBefore(signatureDoc,referenceNode.firstChild);else if("before"===location.action){if(null==referenceNode.parentNode)throw new Error("`location.reference` refers to the root node (by default), so we can't insert `before`");referenceNode.parentNode.insertBefore(signatureDoc,referenceNode)}else if("after"===location.action){if(null==referenceNode.parentNode)throw new Error("`location.reference` refers to the root node (by default), so we can't insert `after`");referenceNode.parentNode.insertBefore(signatureDoc,referenceNode.nextSibling)}this.signatureNode=signatureDoc;const signedInfoNodes=utils.findChildren(this.signatureNode,"SignedInfo");if(0===signedInfoNodes.length){const err3=new Error("could not find SignedInfo element in the message");if(callback)return void callback(err3);throw err3}const signedInfoNode=signedInfoNodes[0];"function"==typeof callback?this.calculateSignatureValue(doc,((err,signature)=>{err?callback(err):(this.signatureValue=signature||"",signatureDoc.insertBefore(this.createSignature(prefix),signedInfoNode.nextSibling),this.signatureXml=signatureDoc.toString(),this.signedXml=doc.toString(),callback(null,this))})):(this.calculateSignatureValue(doc),signatureDoc.insertBefore(this.createSignature(prefix),signedInfoNode.nextSibling),this.signatureXml=signatureDoc.toString(),this.signedXml=doc.toString())}getKeyInfo(prefix){const currentPrefix=prefix?`${prefix}:`:"";let keyInfoAttrs="";this.keyInfoAttributes&&Object.keys(this.keyInfoAttributes).forEach((name=>{keyInfoAttrs+=` ${name}="${this.keyInfoAttributes[name]}"`}));const keyInfoContent=this.getKeyInfoContent({publicCert:this.publicCert,prefix:prefix});return keyInfoAttrs||keyInfoContent?`<${currentPrefix}KeyInfo${keyInfoAttrs}>${keyInfoContent}</${currentPrefix}KeyInfo>`:""}createReferences(doc,prefix){let res="";prefix=(prefix=prefix||"")?`${prefix}:`:prefix;for(const ref of this.getReferences()){const nodes=xpath.selectWithResolver(ref.xpath??"",doc,this.namespaceResolver);if(!utils.isArrayHasLength(nodes))throw new Error(`the following xpath cannot be signed because it was not found: ${ref.xpath}`);for(const node of nodes){if(ref.isEmptyUri)res+=`<${prefix}Reference URI="">`;else{const id=this.ensureHasId(node);ref.uri=id,res+=`<${prefix}Reference URI="#${id}">`}res+=`<${prefix}Transforms>`;for(const trans of ref.transforms||[]){const transform=this.findCanonicalizationAlgorithm(trans);res+=`<${prefix}Transform Algorithm="${transform.getAlgorithmName()}"`,utils.isArrayHasLength(ref.inclusiveNamespacesPrefixList)?(res+=">",res+=`<InclusiveNamespaces PrefixList="${ref.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${transform.getAlgorithmName()}"/>`,res+=`</${prefix}Transform>`):res+=" />"}const canonXml=this.getCanonReferenceXml(doc,ref,node),digestAlgorithm=this.findHashAlgorithm(ref.digestAlgorithm);res+=`</${prefix}Transforms><${prefix}DigestMethod Algorithm="${digestAlgorithm.getAlgorithmName()}" /><${prefix}DigestValue>${digestAlgorithm.getHash(canonXml)}</${prefix}DigestValue></${prefix}Reference>`}}return res}getCanonXml(transforms,node,options={}){options.defaultNsForPrefix=options.defaultNsForPrefix??SignedXml.defaultNsForPrefix,options.signatureNode=this.signatureNode;let transformedXml=node.cloneNode(!0);return transforms.forEach((transformName=>{if(isDomNode.isNodeLike(transformedXml)){const transform=this.findCanonicalizationAlgorithm(transformName);transformedXml=transform.process(transformedXml,options)}})),transformedXml.toString()}ensureHasId(node){let attr;if("wssecurity"===this.idMode?attr=utils.findAttr(node,"Id","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"):this.idAttributes.some((idAttribute=>(attr=utils.findAttr(node,idAttribute),!!attr))),attr)return attr.value;const id="_"+this.id++;return"wssecurity"===this.idMode?(node.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:wsu","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"),node.setAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","wsu:Id",id)):node.setAttribute("Id",id),id}createSignedInfo(doc,prefix){if("string"!=typeof this.canonicalizationAlgorithm)throw new Error("Missing canonicalizationAlgorithm when trying to create signed info for XML");const transform=this.findCanonicalizationAlgorithm(this.canonicalizationAlgorithm),algo=this.findSignatureAlgorithm(this.signatureAlgorithm);let currentPrefix;currentPrefix=prefix||"",currentPrefix=currentPrefix?`${currentPrefix}:`:currentPrefix;let res=`<${currentPrefix}SignedInfo>`;return res+=`<${currentPrefix}CanonicalizationMethod Algorithm="${transform.getAlgorithmName()}"`,utils.isArrayHasLength(this.inclusiveNamespacesPrefixList)?(res+=">",res+=`<InclusiveNamespaces PrefixList="${this.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${transform.getAlgorithmName()}"/>`,res+=`</${currentPrefix}CanonicalizationMethod>`):res+=" />",res+=`<${currentPrefix}SignatureMethod Algorithm="${algo.getAlgorithmName()}" />`,res+=this.createReferences(doc,prefix),res+=`</${currentPrefix}SignedInfo>`,res}createSignature(prefix){let xmlNsAttr="xmlns";prefix?(xmlNsAttr+=`:${prefix}`,prefix+=":"):prefix="";const dummySignatureWrapper=`<${prefix}Signature ${xmlNsAttr}="http://www.w3.org/2000/09/xmldsig#">${`<${prefix}SignatureValue>${this.signatureValue}</${prefix}SignatureValue>`}</${prefix}Signature>`;return(new xmldom.DOMParser).parseFromString(dummySignatureWrapper).documentElement.firstChild}getSignatureXml(){return this.signatureXml}getOriginalXmlWithIds(){return this.originalXmlWithIds}getSignedXml(){return this.signedXml}}return signedXml.SignedXml=SignedXml,SignedXml.defaultNsForPrefix={ds:"http://www.w3.org/2000/09/xmldsig#"},SignedXml.noop=()=>null,signedXml}var libExports$3=function requireLib$3(){return hasRequiredLib$3||(hasRequiredLib$3=1,function(exports){var __createBinding=lib$4&&lib$4.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=lib$4&&lib$4.__exportStar||function(m,exports){for(var p in m)"default"===p||Object.prototype.hasOwnProperty.call(exports,p)||__createBinding(exports,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SignedXml=void 0;var signed_xml_1=requireSignedXml();Object.defineProperty(exports,"SignedXml",{enumerable:!0,get:function(){return signed_xml_1.SignedXml}}),__exportStar(requireUtils$2(),exports),__exportStar(requireTypes(),exports)}(lib$4)),lib$4}();class XmlBuilder{environment;constructor(environment){this.environment=environment}assinarXML(xml,tagAssinar){const signedXmlObj=new libExports$3.SignedXml({publicCert:this.environment.getCert(),privateKey:this.environment.getCertKey(),canonicalizationAlgorithm:"http://www.w3.org/TR/2001/REC-xml-c14n-20010315",implicitTransforms:["http://www.w3.org/TR/2001/REC-xml-c14n-20010315"]});return signedXmlObj.addReference({xpath:`//*[local-name(.)='${tagAssinar}']`,digestAlgorithm:"http://www.w3.org/2000/09/xmldsig#sha1",transforms:["http://www.w3.org/2000/09/xmldsig#enveloped-signature","http://www.w3.org/TR/2001/REC-xml-c14n-20010315"]}),signedXmlObj.signatureAlgorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1",signedXmlObj.computeSignature(xml),signedXmlObj.getSignedXml()}serializeXml(obj,rootTag){return new xml2js$1.Builder({rootName:rootTag,headless:!0,renderOpts:{pretty:!1}}).buildObject(obj)}gerarXml(xmlObject,rootTag){return this.serializeXml(xmlObject,rootTag)}buildSoapEnvelope(xml,soapMethod,soapVersion="soap12",rootTagObj=null){const soapNamespaces={soap12:"http://www.w3.org/2003/05/soap-envelope",soap:"http://schemas.xmlsoap.org/soap/envelope/"},soapNamespace=soapNamespaces[soapVersion]||soapNamespaces.soap12;let soapEnvelopeObj={$:{[`xmlns:${soapVersion}`]:soapNamespace,"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:xsd":"http://www.w3.org/2001/XMLSchema"},[`${soapVersion}:Body`]:{}};if(rootTagObj&&rootTagObj.tag){let bodyContent={nfeDadosMsg:{$:{xmlns:soapMethod},_:"[XML]"}};rootTagObj.namespace&&(bodyContent.$={xmlns:rootTagObj.namespace}),soapEnvelopeObj[`${soapVersion}:Body`][rootTagObj.tag]=bodyContent}else soapEnvelopeObj[`${soapVersion}:Body`]={nfeDadosMsg:{$:{xmlns:soapMethod},_:"[XML]"}};return this.serializeXml(soapEnvelopeObj,`${soapVersion}:Envelope`).replace("[XML]",xml)}}var NFeServicosUrl={NFe_AC_P:{Usar:"NFe_SVRS_P"},NFe_AC_H:{Usar:"NFe_SVRS_H"},NFe_AL_P:{Usar:"NFe_SVRS_P"},NFe_AL_H:{Usar:"NFe_SVRS_H"},NFe_AP_P:{Usar:"NFe_SVRS_P"},NFe_AP_H:{Usar:"NFe_SVRS_H"},NFe_AM_P:{"RecepcaoEvento_1.00":"https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento","NfeRecepcao_2.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2","NfeInutilizacao_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta2","NFEStatusServico_2.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico2","NFEStatusServico_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico2","NfeConsultaCadastro_2.00":"https://nfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2","NfeConsultaCadastro_3.10":"https://nfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2","NFEAutorizacao_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta4","NFEStatusServico_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico4","NFEInutilizacao_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4","NFEAutorizacao_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4","RecepcaoEvento_4.00":"https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4","NFERetAutorizacao_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},NFe_AM_H:{"RecepcaoEvento_1.00":"https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento","NfeRecepcao_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2","NfeInutilizacao_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta2","NFEStatusServico_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico2","NFEStatusServico_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico2","NfeConsultaCadastro_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2","NfeConsultaCadastro_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2","NFEAutorizacao_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao","NFEConsultaProtocolo_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta4","NFEStatusServico_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico4","NFEInutilizacao_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4","NFEAutorizacao_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4","RecepcaoEvento_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4","NFERetAutorizacao_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},NFe_BA_P:{"NfeRecepcao_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/NfeRetRecepcao2.asmx","NfeInutilizacao_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/nfeconsulta2.asmx","NFEStatusServico_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/NfeStatusServico2.asmx","NfeConsultaCadastro_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/CadConsultaCadastro2.asmx","RecepcaoEvento_1.00":"https://nfe.sefaz.ba.gov.br/webservices/sre/recepcaoevento.asmx","NfeInutilizacao_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeInutilizacao/NfeInutilizacao.asmx","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeConsulta/NfeConsulta.asmx","NFEStatusServico_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeStatusServico/NfeStatusServico.asmx","NFEAutorizacao_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFEInutilizacao_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEStatusServico_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx","NfeConsultaCadastro_4.00":"https://nfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx","RecepcaoEvento_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NFEAutorizacao_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx",SoapAction:"SOAP_V4_BA","NFERetAutorizacao_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},NFe_BA_H:{"NfeRecepcao_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/NfeRetRecepcao2.asmx","NfeInutilizacao_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/nfeconsulta2.asmx","NFEStatusServico_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/NfeStatusServico2.asmx","NfeConsultaCadastro_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/CadConsultaCadastro2.asmx","RecepcaoEvento_1.00":"https://hnfe.sefaz.ba.gov.br/webservices/sre/recepcaoevento.asmx","NfeInutilizacao_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeInutilizacao/NfeInutilizacao.asmx","NFEConsultaProtocolo_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeConsulta/NfeConsulta.asmx","NFEStatusServico_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeStatusServico/NfeStatusServico.asmx","NFEAutorizacao_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFEAutorizacao_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx","NFEConsultaProtocolo_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEInutilizacao_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx","NFERetornoAutorizacao_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx","NFEStatusServico_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx","RecepcaoEvento_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NfeConsultaCadastro_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx",SoapAction:"SOAP_V4_BA","NFERetAutorizacao_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},NFe_CE_P:{Usar:"NFe_SVRS_P"},NFe_CE_H:{Usar:"NFe_SVRS_H"},NFe_DF_P:{Usar:"NFe_SVRS_P"},NFe_DF_H:{Usar:"NFe_SVRS_H"},NFe_ES_P:{Usar:"NFe_SVRS_P"},NFe_ES_H:{Usar:"NFe_SVRS_H"},NFe_GO_P:{"RecepcaoEvento_1.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl","NfeRecepcao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NfeInutilizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NFEStatusServico_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NfeConsultaCadastro_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NfeConsultaCadastro_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","NFEInutilizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl","RecepcaoEvento_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl","NFEAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"},NFe_GO_H:{"RecepcaoEvento_1.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl","NfeRecepcao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NfeInutilizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEConsultaProtocolo_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NFEStatusServico_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NfeConsultaCadastro_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NfeConsultaCadastro_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","RecepcaoEvento_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl","NFEInutilizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl","NFEAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"},NFe_MA_P:{Usar:"NFe_SVAN_P","NfeConsultaCadastro_2.00":"https://sistemas.sefaz.ma.gov.br/wscadastro/CadConsultaCadastro2?wsdl"},NFe_MA_H:{Usar:"NFe_SVAN_H","NfeConsultaCadastro_2.0":"https://sistemas.sefaz.ma.gov.br/wscadastro/CadConsultaCadastro2?wsdl"},NFe_MG_P:{"NfeRecepcao_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2","NFEStatusServico_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeStatus2","NfeConsultaCadastro_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2","RecepcaoEvento_1.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento","NFEAutorizacao_3.10":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao","NFEInutilizacao_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4","NFEAutorizacao_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4","RecepcaoEvento_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4","NFERetAutorizacao_3.10":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},NFe_MG_H:{"RecepcaoEvento_1.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento","NfeRecepcao_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2","NfeInutilizacao_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2","NFEStatusServico_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeStatusServico2","NFEStatusServico_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeStatusServico2","NfeConsultaCadastro_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2","NfeConsultaCadastro_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2","NFEAutorizacao_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao","NFEAutorizacao_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4","NFEConsultaProtocolo_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4","NFEInutilizacao_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4","NFERetornoAutorizacao_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4","NFEStatusServico_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4","RecepcaoEvento_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4","NFERetAutorizacao_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},NFe_MS_P:{"RecepcaoEvento_1.00":"https://nfe.fazenda.ms.gov.br/producao/services2/RecepcaoEvento","NfeRecepcao_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeRecepcao2","NfeRetRecepcao_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetRecepcao2","NfeConsultaCadastro_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/CadConsultaCadastro2","NfeInutilizacao_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2","NfeInutilizacao_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeConsulta2","NFEStatusServico_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeStatusServico2","NFEStatusServico_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeStatusServico2","NFEAutorizacao_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao","NFEInutilizacao_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeStatusServico4","NfeConsultaCadastro_4.00":"https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4","RecepcaoEvento_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4","NFEAutorizacao_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4","NFERetAutorizacao_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NFe_MS_H:{"RecepcaoEvento_1.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/RecepcaoEvento","NfeRecepcao_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRecepcao2","NfeRetRecepcao_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetRecepcao2","NfeConsultaCadastro_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/CadConsultaCadastro2","NfeInutilizacao_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeInutilizacao2","NfeInutilizacao_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeConsulta2","NFEStatusServico_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeStatusServico2","NFEStatusServico_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeStatusServico2","NFEAutorizacao_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetAutorizacao","NFEAutorizacao_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4","NFEConsultaProtocolo_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeStatusServico4","NFEInutilizacao_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4","RecepcaoEvento_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4","NFERetAutorizacao_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NFe_MT_P:{"NfeRecepcao_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2?wsdl","NfeInutilizacao_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2?wsdl","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2?wsdl","NFEStatusServico_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2?wsdl","NfeConsultaCadastro_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro2?wsdl","RecepcaoEvento_1.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento?wsdl","NFEAutorizacao_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl","NFEInutilizacao_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4?wsdl","NFEStatusServico_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4?wsdl","RecepcaoEvento_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4?wsdl","NFEAutorizacao_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4?wsdl"},NFe_MT_H:{"NfeRecepcao_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2?wsdl","RecepcaoEvento_1.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento?wsdl","NfeConsultaCadastro_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl","NFERetornoAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4","RecepcaoEvento_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4","NFEConsultaProtocolo_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4","NFEAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4","NFEInutilizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4","NfeConsultaCadastro_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4","NFEStatusServico_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4","NFERetAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},NFe_PA_P:{Usar:"NFe_SVRS_P"},NFe_PA_H:{Usar:"NFe_SVRS_H"},NFe_PB_P:{Usar:"NFe_SVRS_P"},NFe_PB_H:{Usar:"NFe_SVRS_H"},NFe_PE_P:{"RecepcaoEvento_1.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/RecepcaoEvento","NfeRecepcao_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2","NfeInutilizacao_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2","NFEStatusServico_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2","NFEStatusServico_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2","NfeConsultaCadastro_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro2","NfeConsultaCadastro_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro2","NFEAutorizacao_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl","NFEInutilizacao_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4","RecepcaoEvento_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4","NFEAutorizacao_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4","NfeConsultaCadastro_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4","NFERetAutorizacao_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},NFe_PE_H:{"RecepcaoEvento_1.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/RecepcaoEvento","NfeRecepcao_2.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2","NfeInutilizacao_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2","NFEStatusServico_2.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2","NFEStatusServico_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2","NFEAutorizacao_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl","NFEInutilizacao_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4?wsdl","RecepcaoEvento_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4?wsdl","NFEAutorizacao_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4?wsdl"},NFe_PI_P:{Usar:"NFe_SVRS_P"},NFe_PI_H:{Usar:"NFe_SVRS_H"},NFe_PR_P:{"RecepcaoEvento_1.00":"https://nfe.fazenda.pr.gov.br/nfe/NFeRecepcaoEvento?wsdl","NfeInutilizacao_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeInutilizacao3?wsdl","NFEConsultaProtocolo_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeConsulta3?wsdl","NFEStatusServico_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeStatusServico3?wsdl","NfeConsultaCadastro_2.00":"https://nfe.fazenda.pr.gov.br/nfe/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeAutorizacao3?wsdl","NFERetornoAutorizacao_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl","NFEInutilizacao_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4?wsdl","RecepcaoEvento_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4?wsdl","NFEAutorizacao_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl","NFERetAutorizacao_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl"},NFe_PR_H:{"RecepcaoEvento_1.00":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRecepcaoEvento?wsdl","NfeInutilizacao_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeInutilizacao3?wsdl","NFEConsultaProtocolo_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeConsulta3?wsdl","NFEStatusServico_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeStatusServico3?wsdl","NfeConsultaCadastro_2.00":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeAutorizacao3?wsdl","NFERetornoAutorizacao_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl","RecepcaoEvento_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4?wsdl","NFEInutilizacao_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4?wsdl","NFEAutorizacao_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl","NFERetAutorizacao_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl"},NFe_RJ_P:{Usar:"NFe_SVRS_P"},NFe_RJ_H:{Usar:"NFe_SVRS_H"},NFe_RN_P:{Usar:"NFe_SVRS_P"},NFe_RN_H:{Usar:"NFe_SVRS_H"},NFe_RO_P:{Usar:"NFe_SVRS_P"},NFe_RO_H:{Usar:"NFe_SVRS_H"},NFe_RS_P:{"NFEAutorizacao_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_2.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeInutilizacao/NfeInutilizacao2.asmx","NfeInutilizacao_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeInutilizacao/NfeInutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NfeConsultaCadastro_2.00":"https://cad.sefazrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx","NFEInutilizacao_4.00":"https://nfe.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NfeConsultaCadastro_4.00":"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx","NFERetAutorizacao_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFe_RS_H:{"NFEAutorizacao_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_2.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NfeInutilizacao_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NfeConsultaCadastro_2.00":"https://cad.sefazrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx","NFEInutilizacao_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NfeConsultaCadastro_4.00":"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx","NFERetAutorizacao_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFe_RR_P:{Usar:"NFe_SVRS_P"},NFe_RR_H:{Usar:"NFe_SVRS_H"},NFe_SC_P:{Usar:"NFe_SVRS_P"},NFe_SC_H:{Usar:"NFe_SVRS_H"},NFe_SE_P:{Usar:"NFe_SVRS_P"},NFe_SE_H:{Usar:"NFe_SVRS_H"},NFe_SP_P:{"NfeRecepcao_2.00":"https://nfe.fazenda.sp.gov.br/nfeweb/services/nferecepcao2.asmx","NfeRetRecepcao_2.00":"https://nfe.fazenda.sp.gov.br/nfeweb/services/nferetrecepcao2.asmx","NfeInutilizacao_2.00":"https://nfe.fazenda.sp.gov.br/nfeweb/services/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx","NFEStatusServico_2.00":"https://nfe.fazenda.sp.gov.br/nfeweb/services/nfestatusservico2.asmx","NfeConsultaCadastro_2.00":"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx","RecepcaoEvento_1.00":"https://nfe.fazenda.sp.gov.br/ws/RecepcaoEvento.asmx","NfeInutilizacao_3.10":"https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfe.fazenda.sp.gov.br/ws/nfeconsulta2.asmx","NFEStatusServico_3.10":"https://nfe.fazenda.sp.gov.br/ws/nfestatusservico2.asmx","NFEAutorizacao_3.10":"https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFEInutilizacao_4.00":"https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx","NFEStatusServico_4.00":"https://nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx","NfeConsultaCadastro_4.00":"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx","RecepcaoEvento_4.00":"https://nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx","NFERetAutorizacao_3.10":"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},NFe_SP_H:{"NfeRecepcao_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/NfeRetRecepcao2.asmx","NfeInutilizacao_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx","NFEStatusServico_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfestatusservico2.asmx","NfeConsultaCadastro_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx","RecepcaoEvento_1.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/RecepcaoEvento.asmx","NfeInutilizacao_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsulta2.asmx","NFEStatusServico_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico2.asmx","NFEAutorizacao_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao.asmx","NFERetornoAutorizacao_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFEInutilizacao_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx","NFEStatusServico_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx","NFEAutorizacao_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx","NfeConsultaCadastro_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx","RecepcaoEvento_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx","NFERetAutorizacao_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFERetAutorizacao_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},NFe_TO_P:{Usar:"NFe_SVRS_P"},NFe_TO_H:{Usar:"NFe_SVRS_H"},NFe_SVAN_P:{"RecepcaoEvento_1.00":"https://www.sefazvirtual.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NfeRecepcao_2.00":"https://www.sefazvirtual.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://www.sefazvirtual.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx","NfeInutilizacao_2.00":"https://www.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx","NfeInutilizacao_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://www.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://www.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NfeDownloadNF_1.00":"https://www.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx","NFEAutorizacao_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","RecepcaoEvento_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NFEInutilizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEStatusServico_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx","NFEAutorizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},NFe_SVAN_H:{"RecepcaoEvento_1.00":"https://hom.sefazvirtual.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NfeRecepcao_2.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx","NfeInutilizacao_2.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx","NfeInutilizacao_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NfeDownloadNF_1.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx","NFEAutorizacao_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFEInutilizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEStatusServico_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx","RecepcaoEvento_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NFEAutorizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},NFe_SVRS_P:{"NFEAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_2.00":"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NfeInutilizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NfeConsultaCadastro_2.00":"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx","NFEAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NFEInutilizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NfeConsultaCadastro_4.00":"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx","NFERetAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFe_SVRS_H:{"NFEAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_2.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NfeInutilizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NfeConsultaCadastro_2.00":"https://cad-homologacao.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx","NFEInutilizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NfeConsultaCadastro_4.00":"https://cad-homologacao.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx","NFERetAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},"NFe_SVC-AN_P":{"RecepcaoEvento_1.00":"https://www.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NfeRecepcao_2.00":"https://www.svc.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://www.svc.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx","NFEConsultaProtocolo_2.00":"https://www.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://www.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://www.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://www.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEAutorizacao_3.10":"https://www.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://www.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFEConsultaProtocolo_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEStatusServico_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx","RecepcaoEvento_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NFEAutorizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://www.svc.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://www.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NfeInutilizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx","NFERetAutorizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},"NFe_SVC-AN_H":{"RecepcaoEvento_1.00":"https://hom.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NfeRecepcao_2.00":"https://hom.svc.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://hom.svc.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx","NFEConsultaProtocolo_2.00":"https://hom.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://hom.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://hom.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://hom.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEAutorizacao_3.10":"https://hom.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://hom.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFEConsultaProtocolo_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEStatusServico_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx","RecepcaoEvento_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NFEAutorizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://hom.svc.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://hom.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NfeInutilizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx","NFERetAutorizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},"NFe_SVC-RS_P":{"NFEAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NFEInutilizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},"NFe_SVC-RS_H":{"NFEAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NFEConsultaProtocolo_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFe_AN_P:{"RecepcaoEvento_1.00":"https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NFeDistribuicaoDFe_1.01":"https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx","RecepcaoEvento_4.00":"https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NFe_AN_H:{"RecepcaoEvento_1.00":"https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NFeDistribuicaoDFe_1.01":"https://hom1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx","RecepcaoEvento_4.00":"https://hom1.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NFCe_AC_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.sefaznet.ac.gov.br/nfce/qrcode","URL-ConsultaNFCe":"http://www.sefaznet.ac.gov.br/nfce/","URL-ConsultaNFCe_2.00":"www.sefaznet.ac.gov.br/nfce/consulta"},NFCe_AC_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode","URL-ConsultaNFCe":"http://hml.sefaznet.ac.gov.br/nfce/","URL-ConsultaNFCe_2.00":"www.sefaznet.ac.gov.br/nfce/consulta"},NFCe_AL_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp","URL-ConsultaNFCe":"http://nfce.sefaz.al.gov.br/consultaNFCe.htm","URL-ConsultaNFCe_2.00":"www.sefaz.al.gov.br/nfce/consulta"},NFCe_AL_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp","URL-ConsultaNFCe":"http://nfce.sefaz.al.gov.br/consultaNFCe.htm","URL-ConsultaNFCe_2.00":"www.sefaz.al.gov.br/nfce/consulta"},NFCe_AP_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"https://www.sefaz.ap.gov.br/nfce/nfcep.php","URL-ConsultaNFCe":"https://www.sefaz.ap.gov.br/sate/seg/SEGf_AcessarFuncao.jsp?cdFuncao=FIS_1261","URL-ConsultaNFCe_2.00":"www.sefaz.ap.gov.br/nfce/consulta"},NFCe_AP_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"https://www.sefaz.ap.gov.br/nfcehml/nfce.php","URL-ConsultaNFCe":"https://www.sefaz.ap.gov.br/sate1/seg/SEGf_AcessarFuncao.jsp?cdFuncao=FIS_1261","URL-ConsultaNFCe_2.00":"www.sefaz.ap.gov.br/nfce/consulta"},NFCe_AM_P:{"NFEAutorizacao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao","NFEConsultaProtocolo_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta2","NfeRecepcao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRecepcao2","RecepcaoEvento_1.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento","NFEStatusServico_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico2","NfeRetRecepcao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetRecepcao2","NfeInutilizacao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao2","AdministrarCSCNFCe_1.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/CscNFCe","NFEConsultaProtocolo_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4","NFEStatusServico_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4","NFEInutilizacao_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4","NFEAutorizacao_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4","RecepcaoEvento_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4","URL-QRCode":"http://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp","URL-ConsultaNFCe":"http://sistemas.sefaz.am.gov.br/nfceweb/formConsulta.do","URL-ConsultaNFCe_2.00":"www.sefaz.am.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NFCe_AM_H:{"NFEAutorizacao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao","NFEConsultaProtocolo_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeConsulta2","NfeRecepcao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRecepcao2","RecepcaoEvento_1.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/RecepcaoEvento","NFEStatusServico_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeStatusServico2","NfeRetRecepcao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetRecepcao2","NfeInutilizacao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeInutilizacao2","AdministrarCSCNFCe_1.00":"https://homnfce.sefaz.am.gov.br/nfce-services/services/CscNFCe","NFEConsultaProtocolo_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeConsulta4","NFEStatusServico_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeStatusServico4","NFEInutilizacao_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeInutilizacao4","NFEAutorizacao_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao4","RecepcaoEvento_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/RecepcaoEvento4","URL-QRCode":"http://homnfce.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp","URL-ConsultaNFCe":"http://homnfce.sefaz.am.gov.br/nfceweb/formConsulta.do","URL-ConsultaNFCe_2.00":"www.sefaz.am.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao4"},NFCe_BA_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://nfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx","URL-ConsultaNFCe":"http://nfe.sefaz.ba.gov.br/servicos/nfce/default.aspx","URL-ConsultaNFCe_2.00":"http://www.sefaz.ba.gov.br/nfce/consulta","URL-QRCode_1.00":"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx","URL-ConsultaNFCe_1.00":"www.sefaz.ba.gov.br/nfce/consulta"},NFCe_BA_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://hnfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx","URL-ConsultaNFCe":"http://nfe.sefaz.ba.gov.br/servicos/nfce/default.aspx","URL-ConsultaNFCe_2.00":"http://hinternet.sefaz.ba.gov.br/nfce/consulta","URL-QRCode_1.00":"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx","URL-ConsultaNFCe_1.00":"http://hinternet.sefaz.ba.gov.br/nfce/consulta"},NFCe_CE_P:{"NFEAutorizacao_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeAutorizacao?WSDL","NFERetornoAutorizacao_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeRetAutorizacao?WSDL","NFEConsultaProtocolo_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeConsulta2?WSDL","NfeInutilizacao_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeInutilizacao2?WSDL","NFEStatusServico_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeStatusServico2?WSDL","NfeConsultaCadastro_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/CadConsultaCadastro2?WSDL","RecepcaoEvento_1.00":"https://nfce.sefaz.ce.gov.br/nfce/services/RecepcaoEvento?WSDL","NFEAutorizacao_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeAutorizacao4?WSDL","NFERetornoAutorizacao_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL","NFEConsultaProtocolo_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeConsultaProtocolo4?WSDL","NFEInutilizacao_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeInutilizacao4?WSDL","NFEStatusServico_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeStatusServico4?WSDL","NfeConsultaCadastro_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/CadConsultaCadastro4?WSDL","RecepcaoEvento_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeRecepcaoEvento4?WSDL","URL-QRCode":"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html","URL-ConsultaNFCe":"http://nfce.sefaz.ce.gov.br/pages/consultaChaveAcesso.jsf","URL-ConsultaNFCe_2.00":"www.sefaz.ce.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeRetAutorizacao?WSDL","NFERetAutorizacao_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL"},NFCe_CE_H:{"NFEAutorizacao_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeRetAutorizacao?wsdl","NFEConsultaProtocolo_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeConsulta2?wsdl","NfeInutilizacao_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeInutilizacao2?wsdl","NFEStatusServico_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeStatusServico2?wsdl","NfeConsultaCadastro_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/CadConsultaCadastro2?wsdl","RecepcaoEvento_1.00":"https://nfceh.sefaz.ce.gov.br/nfce/services/RecepcaoEvento?wsdl","NFEAutorizacao_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeAutorizacao4?WSDL","NFERetornoAutorizacao_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL","NFEConsultaProtocolo_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeConsultaProtocolo4?WSDL","NFEInutilizacao_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeInutilizacao4?WSDL","NFEStatusServico_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeStatusServico4?WSDL","NfeConsultaCadastro_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/CadConsultaCadastro4?WSDL","RecepcaoEvento_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeRecepcaoEvento4?WSDL","URL-QRCode":"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html","URL-ConsultaNFCe":"http://nfceh.sefaz.ce.gov.br/pages/consultaChaveAcesso.jsf","URL-ConsultaNFCe_2.00":"www.sefaz.ce.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL"},NFCe_DF_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.fazenda.df.gov.br/nfce/qrcode","URL-ConsultaNFCe":"http://dec.fazenda.df.gov.br/nfce","URL-ConsultaNFCe_2.00":"www.fazenda.df.gov.br/nfce/consulta"},NFCe_DF_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx","URL-ConsultaNFCe":"http://dec.fazenda.df.gov.br/nfce","URL-ConsultaNFCe_2.00":"www.fazenda.df.gov.br/nfce/consulta"},NFCe_ES_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx","URL-ConsultaNFCe":"http://app.sefaz.es.gov.br/ConsultaNFCe","URL-ConsultaNFCe_2.00":"www.sefaz.es.gov.br/nfce/consulta"},NFCe_ES_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx","URL-ConsultaNFCe":"http://app.sefaz.es.gov.br/ConsultaNFCe","URL-ConsultaNFCe_2.00":"www.sefaz.es.gov.br/nfce/consulta"},NFCe_GO_P:{"RecepcaoEvento_1.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl","NfeRecepcao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NfeInutilizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NFEStatusServico_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NfeConsultaCadastro_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NfeConsultaCadastro_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","AdministrarCSCNFCe_1.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/CscNFCe?wsdl","RecepcaoEvento_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl","NFEInutilizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl","NFEAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl","URL-QRCode":"http://nfe.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe","URL-ConsultaNFCe":"http://nfe.sefaz.go.gov.br/nfeweb/jsp/ConsultaDANFENFCe.jsf","URL-ConsultaNFCe_1.00":"http://www.nfce.go.gov.br/post/ver/214344/consulta-nfce","URL-ConsultaNFCe_2.00":"http://www.sefaz.go.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"},NFCe_GO_H:{"RecepcaoEvento_1.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl","NfeRecepcao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NfeInutilizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEConsultaProtocolo_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NFEStatusServico_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NfeConsultaCadastro_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NfeConsultaCadastro_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","AdministrarCSCNFCe_1.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/CscNFCe?wsdl","RecepcaoEvento_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl","NFEInutilizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl","NFEAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl","URL-QRCode":"http://homolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe","URL-ConsultaNFCe":"http://homolog.sefaz.go.gov.br/nfeweb/jsp/ConsultaDANFENFCe.jsf","URL-ConsultaNFCe_1.00":"http://www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao","URL-ConsultaNFCe_2.00":"http://www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao","NFERetAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"},NFCe_MA_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe":"http://www.nfce.sefaz.ma.gov.br/portal/consultaNFe.do","URL-ConsultaNFCe_2.00":"www.sefaz.ma.gov.br/nfce/consulta"},NFCe_MA_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe":"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultaNFe.do","URL-ConsultaNFCe_2.00":"www.sefaz.ma.gov.br/nfce/consulta"},NFCe_MG_P:{"NFEAutorizacao_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4","RecepcaoEvento_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4","NFEInutilizacao_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4","NfeConsultaCadastro_4.00":"","URL-QRCode_2.00":"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml","URL-ConsultaNFCe_2.00":"https://portalsped.fazenda.mg.gov.br/portalnfce","NFERetAutorizacao_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NFCe_MG_H:{"NFEAutorizacao_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4","RecepcaoEvento_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4","NFEInutilizacao_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4","NfeConsultaCadastro_4.00":"","URL-QRCode_2.00":"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml","URL-ConsultaNFCe_2.00":"https://hportalsped.fazenda.mg.gov.br/portalnfce","NFERetAutorizacao_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NFCe_MS_P:{"NFEAutorizacao_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao","RecepcaoEvento_1.00":"https://nfce.fazenda.ms.gov.br/producao/services2/RecepcaoEvento","NfeInutilizacao_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2","NFEConsultaProtocolo_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeConsulta2","NFEStatusServico_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeStatusServico2","NfeConsultaCadastro_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/CadConsultaCadastro2","NFEAutorizacao_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4","RecepcaoEvento_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4","NFEInutilizacao_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeStatusServico4","NfeConsultaCadastro_4.00":"https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4","URL-QRCode":"http://www.dfe.ms.gov.br/nfce/qrcode","URL-ConsultaNFCe":"http://www.dfe.ms.gov.br/nfce","URL-ConsultaNFCe_2.00":"http://www.dfe.ms.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NFCe_MS_H:{"NFEAutorizacao_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeRetAutorizacao","RecepcaoEvento_1.00":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/RecepcaoEvento","NfeInutilizacao_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeInutilizacao2","NFEConsultaProtocolo_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeConsulta2","NFEStatusServico_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeStatusServico2","NfeConsultaCadastro_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/CadConsultaCadastro2","NFEAutorizacao_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4","NFEConsultaProtocolo_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4","NFEInutilizacao_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4","NFEStatusServico_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeStatusServico4","RecepcaoEvento_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4","URL-QRCode":"http://www.dfe.ms.gov.br/nfce/qrcode","URL-ConsultaNFCe":"http://www.dfe.ms.gov.br/nfce","URL-ConsultaNFCe_2.00":"http://www.dfe.ms.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NFCe_MT_P:{"NFEAutorizacao_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl","NfeInutilizacao_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao2?wsdl","RecepcaoEvento_1.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento?wsdl","NFEStatusServico_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico2?wsdl","NFEConsultaProtocolo_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta2?wsdl","NFEAutorizacao_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4","NFEInutilizacao_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta4","NFEStatusServico_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4","RecepcaoEvento_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4","URL-QRCode":"http://www.sefaz.mt.gov.br/nfce/consultanfce","URL-ConsultaNFCe":"http://www.sefaz.mt.gov.br/nfce/consultanfce","URL-ConsultaNFCe_2.00":"http://www.sefaz.mt.gov.br/nfce/consultanfce","NFERetAutorizacao_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NFCe_MT_H:{"NFEAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl","NfeInutilizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao2?wsdl","RecepcaoEvento_1.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento?wsdl","NFEStatusServico_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico2?wsdl","NFEConsultaProtocolo_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta2?wsdl","NFEAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4","NFEInutilizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4","NFEConsultaProtocolo_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta4","NFEStatusServico_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4","RecepcaoEvento_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4","URL-QRCode":"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce","URL-ConsultaNFCe":"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce","URL-ConsultaNFCe_2.00":"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce","NFERetAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NFCe_PA_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam","URL-ConsultaNFCe":"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/consultanfce.seam","URL-ConsultaNFCe_2.00":"www.sefa.pa.gov.br/nfce/consulta"},NFCe_PA_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam","URL-ConsultaNFCe":"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/consultanfce.seam","URL-ConsultaNFCe_2.00":"www.sefa.pa.gov.br/nfce/consulta"},NFCe_PB_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.sefaz.pb.gov.br/nfce","URL-ConsultaNFCe":"http://www.receita.pb.gov.br/nfce","URL-ConsultaNFCe_2.00":"www.sefaz.pb.gov.br/nfce/consulta"},NFCe_PB_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://www.sefaz.pb.gov.br/nfcehom","URL-ConsultaNFCe":"http://www.receita.pb.gov.br/nfcehom","URL-ConsultaNFCe_2.00":"www.receita.pb.gov.br/nfcehom"},NFCe_PE_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://nfce.sefaz.pe.gov.br/nfce-web/consultarNFCe","URL-ConsultaNFCe":"http://nfce.sefaz.pe.gov.br/nfce-web/consultarNFCe","URL-ConsultaNFCe_2.00":"nfce.sefaz.pe.gov.br/nfce/consulta"},NFCe_PE_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://nfcehomolog.sefaz.pe.gov.br/nfce-web/consultarNFCe","URL-ConsultaNFCe":"http://nfcehomolog.sefaz.pe.gov.br/nfce-web/consultarNFCe","URL-ConsultaNFCe_2.00":"nfce.sefaz.pe.gov.br/nfce/consulta"},NFCe_PI_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://webas.sefaz.pi.gov.br/nfceweb/consultarNFCe.jsf","URL-ConsultaNFCe":"http://webas.sefaz.pi.gov.br/nfceweb/consultarNFCe.jsf","URL-QRCode_2.00":"http://www.sefaz.pi.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"www.sefaz.pi.gov.br/nfce/consulta"},NFCe_PI_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://webas.sefaz.pi.gov.br/nfceweb-homologacao/consultarNFCe.jsf","URL-ConsultaNFCe":"http://webas.sefaz.pi.gov.br/nfceweb-homologacao/consultarNFCe.jsf","URL-QRCode_2.00":"http://www.sefaz.pi.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"www.sefaz.pi.gov.br/nfce/consulta"},NFCe_PR_P:{"NFEAutorizacao_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeAutorizacao3","NFERetornoAutorizacao_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3","NFEConsultaProtocolo_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeConsulta3","NfeInutilizacao_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeInutilizacao3","NFEStatusServico_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeStatusServico3","RecepcaoEvento_1.00":"https://nfce.fazenda.pr.gov.br/nfce/NFeRecepcaoEvento","NFEAutorizacao_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4","NFEConsultaProtocolo_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4","NFEInutilizacao_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4","NFEStatusServico_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeStatusServico4","RecepcaoEvento_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://nfce.sefa.pr.gov.br/nfce/CadConsultaCadastro4","URL-QRCode":"http://www.dfeportal.fazenda.pr.gov.br/dfe-portal/rest/servico/consultaNFCe","URL-ConsultaNFCe":"http://www.fazenda.pr.gov.br/","URL-QRCode_2.00":"http://www.fazenda.pr.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"http://www.fazenda.pr.gov.br/nfce/consulta","URL-QRCode_1.00":"http://www.fazenda.pr.gov.br/nfce/qrcode/","URL-ConsultaNFCe_1.00":"http://www.fazenda.pr.gov.br","NFERetAutorizacao_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3","NFERetAutorizacao_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NFCe_PR_H:{"NFEAutorizacao_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeAutorizacao3","NFERetornoAutorizacao_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3","NFEConsultaProtocolo_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeConsulta3","NfeInutilizacao_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeInutilizacao3","NFEStatusServico_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeStatusServico3","RecepcaoEvento_1.00":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeRecepcaoEvento","NFEAutorizacao_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4","NFEConsultaProtocolo_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4","NFEInutilizacao_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4","NFEStatusServico_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeStatusServico4","RecepcaoEvento_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/CadConsultaCadastro4","URL-QRCode":"http://www.dfeportal.fazenda.pr.gov.br/dfe-portal/rest/servico/consultaNFCe","URL-ConsultaNFCe":"http://www.fazenda.pr.gov.br/","URL-QRCode_2.00":"http://www.fazenda.pr.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"http://www.fazenda.pr.gov.br/nfce/consulta","URL-QRCode_1.00":"http://www.fazenda.pr.gov.br/nfce/qrcode/","URL-ConsultaNFCe_1.00":"http://www.fazenda.pr.gov.br","NFERetAutorizacao_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3","NFERetAutorizacao_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NFCe_RJ_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode","URL-ConsultaNFCe":"http://nfce.fazenda.rj.gov.br/consulta","URL-ConsultaNFCe_2.00":"www.fazenda.rj.gov.br/nfce/consulta"},NFCe_RJ_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode","URL-ConsultaNFCe":"http://nfce.fazenda.rj.gov.br/consulta","URL-ConsultaNFCe_2.00":"www.fazenda.rj.gov.br/nfce/consulta"},NFCe_RN_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://nfce.set.rn.gov.br/consultarNFCe.aspx","URL-ConsultaNFCe":"http://nfce.set.rn.gov.br/portalDFE/NFCe/ConsultaNFCe.aspx","URL-ConsultaNFCe_2.00":"www.set.rn.gov.br/nfce/consulta"},NFCe_RN_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx","URL-ConsultaNFCe":"http://hom.nfce.set.rn.gov.br/portalDFE/NFCe/ConsultaNFCe.aspx","URL-ConsultaNFCe_2.00":"www.set.rn.gov.br/nfce/consulta"},NFCe_RO_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp","URL-ConsultaNFCe":"http://www.nfce.sefin.ro.gov.br","URL-ConsultaNFCe_2.00":"www.sefin.ro.gov.br/nfce/consulta"},NFCe_RO_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp","URL-ConsultaNFCe":"http://www.nfce.sefin.ro.gov.br/consultaAmbHomologacao.jsp","URL-ConsultaNFCe_2.00":"www.sefin.ro.gov.br/nfce/consulta"},NFCe_RS_P:{"NFEAutorizacao_3.10":"https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFEConsultaProtocolo_3.10":"https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NfeInutilizacao_3.10":"https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEStatusServico_3.10":"https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NFEInutilizacao_4.00":"https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","URL-QRCode":"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx","URL-ConsultaNFCe":"https://www.sefaz.rs.gov.br/NFE/NFE-NFC.aspx","URL-ConsultaNFCe_2.00":"www.sefaz.rs.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFCe_RS_H:{"NFEAutorizacao_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFEConsultaProtocolo_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NfeInutilizacao_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEStatusServico_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","RecepcaoEvento_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEInutilizacao_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","NFEAutorizacao_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","URL-QRCode":"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx","URL-ConsultaNFCe":"https://www.sefaz.rs.gov.br/NFE/NFE-NFC.aspx","URL-ConsultaNFCe_2.00":"www.sefaz.rs.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFCe_RR_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"https://www.sefaz.rr.gov.br/nfce/servlet/qrcode","URL-ConsultaNFCe":"https://www.sefaz.rr.gov.br/nfce/servlet/wp_consulta_nfce","URL-ConsultaNFCe_2.00":"www.sefaz.rr.gov.br/nfce/consulta"},NFCe_RR_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://200.174.88.103:8080/nfce/servlet/qrcode","URL-ConsultaNFCe":"http://200.174.88.103:8080/nfce/servlet/wp_consulta_nfce","URL-ConsultaNFCe_2.00":"www.sefaz.rr.gov.br/nfce/consulta"},NFCe_SC_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"https://sat.sef.sc.gov.br/nfce/consulta","URL-ConsultaNFCe":"https://sat.sef.sc.gov.br/nfce/consulta","URL-ConsultaNFCe_2.00":"https://sat.sef.sc.gov.br/nfce/consulta"},NFCe_SC_H:{Usar:"NFCe_SVRS_H","URL-QRCode_2.00":"https://hom.sat.sef.sc.gov.br/nfce/consulta","URL-QRCode":"https://hom.sat.sef.sc.gov.br/nfce/consulta","URL-ConsultaNFCe":"https://hom.sat.sef.sc.gov.br/nfce/consulta","URL-QRCode_1.00":"https://hom.sat.sef.sc.gov.br/nfce/consulta","URL-ConsultaNFCe_1.00":"https://hom.sat.sef.sc.gov.br/nfce/consulta","URL-ConsultaNFCe_2.00":"https://hom.sat.sef.sc.gov.br/nfce/consulta"},NFCe_SE_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.nfce.se.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe":"http://www.nfce.se.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe_2.00":"http://www.nfce.se.gov.br/nfce/consulta"},NFCe_SE_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://www.hom.nfe.se.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe":"http://www.hom.nfe.se.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe_2.00":"http://www.hom.nfe.se.gov.br/nfce/consulta"},NFCe_SP_P:{"NfeInutilizacao_3.10":"https://nfce.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfce.fazenda.sp.gov.br/ws/nfeconsulta2.asmx","NFEStatusServico_3.10":"https://nfce.fazenda.sp.gov.br/ws/nfestatusservico2.asmx","NfeConsultaCadastro_3.10":"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx","RecepcaoEvento_1.00":"https://nfce.fazenda.sp.gov.br/ws/recepcaoevento.asmx","NFEAutorizacao_3.10":"https://nfce.fazenda.sp.gov.br/ws/nfeautorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","EventoEPEC_1.00":"https://nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx","NFEAutorizacao_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx","NFEInutilizacao_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx","RecepcaoEvento_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx","NFEStatusServico_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx","URL-QRCode":"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaQRCode.aspx","URL-ConsultaNFCe":"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaPublica.aspx","URL-QRCode_1.00":"https://www.nfce.fazenda.sp.gov.br/qrcode","URL-ConsultaNFCe_1.00":"https://www.nfce.fazenda.sp.gov.br/consulta","NFERetAutorizacao_3.10":"https://nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFERetAutorizacao_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx","NfeConsultaCadastro_4.00":"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"},NFCe_SP_H:{"NfeInutilizacao_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nfeconsulta2.asmx","NFEStatusServico_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nfestatusservico2.asmx","NfeConsultaCadastro_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx","RecepcaoEvento_1.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/recepcaoevento.asmx","NFEAutorizacao_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nfeautorizacao.asmx","NFERetornoAutorizacao_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","EventoEPEC_1.00":"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx","NFEAutorizacao_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx","NFEInutilizacao_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx","RecepcaoEvento_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx","NFEStatusServico_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx","URL-QRCode":"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaQRCode.aspx","URL-ConsultaNFCe":"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaPublica.aspx","URL-QRCode_1.00":"https://www.homologacao.nfce.fazenda.sp.gov.br/qrcode","URL-ConsultaNFCe_1.00":"https://www.homologacao.nfce.fazenda.sp.gov.br/consulta","NFERetAutorizacao_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFERetAutorizacao_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx","NfeConsultaCadastro_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"},NFCe_TO_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://apps.sefaz.to.gov.br/portal-nfce/qrcodeNFCe","URL-ConsultaNFCe":"http://apps.sefaz.to.gov.br/portal-nfce/consultarNFCe.jsf","URL-QRCode_2.00":"http://www.sefaz.to.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"www.sefaz.to.gov.br/nfce/consulta"},NFCe_TO_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://apps.sefaz.to.gov.br/portal-nfce-homologacao/qrcodeNFCe","URL-ConsultaNFCe":"http://apps.sefaz.to.gov.br/portal-nfce-homologacao/consultarNFCe.jsf","URL-QRCode_2.00":"http://homologacao.sefaz.to.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},NFCe_SVAN_P:{},NFCe_SVAN_H:{},NFCe_SVRS_P:{"NFEAutorizacao_3.10":"https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_3.10":"https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_3.10":"https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","RecepcaoEvento_4.00":"https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEInutilizacao_4.00":"https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","NFEAutorizacao_4.00":"https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFCe_SVRS_H:{"NFEAutorizacao_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","RecepcaoEvento_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEInutilizacao_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","NFEAutorizacao_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},WSDL_V4:{"NFEAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4","NFEInutilizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4","NFEStatusServico_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4","RecepcaoEvento_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4","CadConsultaCadastro_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4","NFeDistribuicaoDFe_1.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe","NFERetAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4"},SOAP_V4:{"NFEAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote","NFERetornoAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote","NFEInutilizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF","NFEConsultaProtocolo_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF","NFEStatusServico_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF","RecepcaoEvento_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEvento","CadConsultaCadastro_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro","NFeDistribuicaoDFe_1.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse","NFERetAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"},WSDL_V4_SP:{"NFEAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4","NFEInutilizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4","NFEStatusServico_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4","RecepcaoEvento_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4","CadConsultaCadastro_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4","NFeDistribuicaoDFe_1.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe","NFERetAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NfeRetAutorizacao4"},SOAP_V4_SP:{"NFEAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote","NFERetornoAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote","NFEInutilizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF","NFEConsultaProtocolo_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF","NFEStatusServico_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF","RecepcaoEvento_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF","CadConsultaCadastro_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro","NFeDistribuicaoDFe_1.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse","NFERetAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NfeRetAutorizacao4/nfeRetAutorizacaoLote"},SOAP_V4_BA:{"NFEAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote","NFERetornoAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote","NFEInutilizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF","NFEConsultaProtocolo_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsulta4/nfeConsultaNF","NFEStatusServico_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF","RecepcaoEvento_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF","CadConsultaCadastro_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro","NFeDistribuicaoDFe_1.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse","NFERetAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"}},soapMethod={NFEStatusServico:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",action:""},NFeDistribuicaoDFe:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse"},NFEAutorizacao:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote"},NFERetornoAutorizacao:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"},consultarStatusServico:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF"},NFEInutilizacao:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF"},NFEConsultaProtocolo:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF"},consultarCadastro:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/",action:"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro"},RecepcaoEvento:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF"}};const baseDir$3=path__default.default.dirname(require$$0$4.fileURLToPath("undefined"==typeof document?new(require("url").URL)("file:"+__filename).href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||new URL("index.cjs",document.baseURI).href)),getSchema=metodo=>{const pathSchemas=path__default.default.resolve(baseDir$3,"../resources/schemas"),schema={NFEStatusServico:`${pathSchemas}/consStatServ_v4.00.xsd`,NFEConsultaProtocolo:`${pathSchemas}/consSitNFe_v4.00.xsd`,RecepcaoEvento:`${pathSchemas}/envEvento_v1.00.xsd`,NFeDistribuicaoDFe:`${pathSchemas}/distDFeInt_v1.01.xsd`,NFEAutorizacao:`${pathSchemas}/enviNFe_v4.00.xsd`,NFEInutilizacao:`${pathSchemas}/inutNFe_v4.00.xsd`,NFERetAutorizacao:`${pathSchemas}/consReciNFe_v4.00.xsd`};try{return{basePath:pathSchemas,schemaPath:schema[metodo]}}catch(error){throw new Error(error.message)}};var arrayHelper,hasRequiredArrayHelper,optionsHelper,hasRequiredOptionsHelper,xml2js,hasRequiredXml2js,xml2json,hasRequiredXml2json,js2xml,hasRequiredJs2xml,json2xml,hasRequiredJson2xml,lib$2,hasRequiredLib$2;function requireArrayHelper(){return hasRequiredArrayHelper?arrayHelper:(hasRequiredArrayHelper=1,arrayHelper={isArray:function(value){return Array.isArray?Array.isArray(value):"[object Array]"===Object.prototype.toString.call(value)}})}function requireOptionsHelper(){if(hasRequiredOptionsHelper)return optionsHelper;hasRequiredOptionsHelper=1;var isArray=requireArrayHelper().isArray;return optionsHelper={copyOptions:function(options){var key,copy={};for(key in options)options.hasOwnProperty(key)&&(copy[key]=options[key]);return copy},ensureFlagExists:function(item,options){item in options&&"boolean"==typeof options[item]||(options[item]=!1)},ensureSpacesExists:function(options){(!("spaces"in options)||"number"!=typeof options.spaces&&"string"!=typeof options.spaces)&&(options.spaces=0)},ensureAlwaysArrayExists:function(options){"alwaysArray"in options&&("boolean"==typeof options.alwaysArray||isArray(options.alwaysArray))||(options.alwaysArray=!1)},ensureKeyExists:function(key,options){key+"Key"in options&&"string"==typeof options[key+"Key"]||(options[key+"Key"]=options.compact?"_"+key:key)},checkFnExists:function(key,options){return key+"Fn"in options}}}function requireXml2js(){if(hasRequiredXml2js)return xml2js;hasRequiredXml2js=1;var options,currentElement,sax=requireSax$1(),helper=requireOptionsHelper(),isArray=requireArrayHelper().isArray;function nativeType(value){var nValue=Number(value);if(!isNaN(nValue))return nValue;var bValue=value.toLowerCase();return"true"===bValue||"false"!==bValue&&value}function addField(type,value){var key;if(options.compact){if(!currentElement[options[type+"Key"]]&&(isArray(options.alwaysArray)?-1!==options.alwaysArray.indexOf(options[type+"Key"]):options.alwaysArray)&&(currentElement[options[type+"Key"]]=[]),currentElement[options[type+"Key"]]&&!isArray(currentElement[options[type+"Key"]])&&(currentElement[options[type+"Key"]]=[currentElement[options[type+"Key"]]]),type+"Fn"in options&&"string"==typeof value&&(value=options[type+"Fn"](value,currentElement)),"instruction"===type&&("instructionFn"in options||"instructionNameFn"in options))for(key in value)if(value.hasOwnProperty(key))if("instructionFn"in options)value[key]=options.instructionFn(value[key],key,currentElement);else{var temp=value[key];delete value[key],value[options.instructionNameFn(key,temp,currentElement)]=temp}isArray(currentElement[options[type+"Key"]])?currentElement[options[type+"Key"]].push(value):currentElement[options[type+"Key"]]=value}else{currentElement[options.elementsKey]||(currentElement[options.elementsKey]=[]);var element={};if(element[options.typeKey]=type,"instruction"===type){for(key in value)if(value.hasOwnProperty(key))break;element[options.nameKey]="instructionNameFn"in options?options.instructionNameFn(key,value,currentElement):key,options.instructionHasAttributes?(element[options.attributesKey]=value[key][options.attributesKey],"instructionFn"in options&&(element[options.attributesKey]=options.instructionFn(element[options.attributesKey],key,currentElement))):("instructionFn"in options&&(value[key]=options.instructionFn(value[key],key,currentElement)),element[options.instructionKey]=value[key])}else type+"Fn"in options&&(value=options[type+"Fn"](value,currentElement)),element[options[type+"Key"]]=value;options.addParent&&(element[options.parentKey]=currentElement),currentElement[options.elementsKey].push(element)}}function manipulateAttributes(attributes){var key;if("attributesFn"in options&&attributes&&(attributes=options.attributesFn(attributes,currentElement)),(options.trim||"attributeValueFn"in options||"attributeNameFn"in options||options.nativeTypeAttributes)&&attributes)for(key in attributes)if(attributes.hasOwnProperty(key)&&(options.trim&&(attributes[key]=attributes[key].trim()),options.nativeTypeAttributes&&(attributes[key]=nativeType(attributes[key])),"attributeValueFn"in options&&(attributes[key]=options.attributeValueFn(attributes[key],key,currentElement)),"attributeNameFn"in options)){var temp=attributes[key];delete attributes[key],attributes[options.attributeNameFn(key,attributes[key],currentElement)]=temp}return attributes}function onInstruction(instruction){var attributes={};if(instruction.body&&("xml"===instruction.name.toLowerCase()||options.instructionHasAttributes)){for(var match,attrsRegExp=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(match=attrsRegExp.exec(instruction.body));)attributes[match[1]]=match[2]||match[3]||match[4];attributes=manipulateAttributes(attributes)}if("xml"===instruction.name.toLowerCase()){if(options.ignoreDeclaration)return;currentElement[options.declarationKey]={},Object.keys(attributes).length&&(currentElement[options.declarationKey][options.attributesKey]=attributes),options.addParent&&(currentElement[options.declarationKey][options.parentKey]=currentElement)}else{if(options.ignoreInstruction)return;options.trim&&(instruction.body=instruction.body.trim());var value={};options.instructionHasAttributes&&Object.keys(attributes).length?(value[instruction.name]={},value[instruction.name][options.attributesKey]=attributes):value[instruction.name]=instruction.body,addField("instruction",value)}}function onStartElement(name,attributes){var element;if("object"==typeof name&&(attributes=name.attributes,name=name.name),attributes=manipulateAttributes(attributes),"elementNameFn"in options&&(name=options.elementNameFn(name,currentElement)),options.compact){var key;if(element={},!options.ignoreAttributes&&attributes&&Object.keys(attributes).length)for(key in element[options.attributesKey]={},attributes)attributes.hasOwnProperty(key)&&(element[options.attributesKey][key]=attributes[key]);!(name in currentElement)&&(isArray(options.alwaysArray)?-1!==options.alwaysArray.indexOf(name):options.alwaysArray)&&(currentElement[name]=[]),currentElement[name]&&!isArray(currentElement[name])&&(currentElement[name]=[currentElement[name]]),isArray(currentElement[name])?currentElement[name].push(element):currentElement[name]=element}else currentElement[options.elementsKey]||(currentElement[options.elementsKey]=[]),(element={})[options.typeKey]="element",element[options.nameKey]=name,!options.ignoreAttributes&&attributes&&Object.keys(attributes).length&&(element[options.attributesKey]=attributes),options.alwaysChildren&&(element[options.elementsKey]=[]),currentElement[options.elementsKey].push(element);element[options.parentKey]=currentElement,currentElement=element}function onText(text){options.ignoreText||(text.trim()||options.captureSpacesBetweenElements)&&(options.trim&&(text=text.trim()),options.nativeType&&(text=nativeType(text)),options.sanitize&&(text=text.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),addField("text",text))}function onComment(comment){options.ignoreComment||(options.trim&&(comment=comment.trim()),addField("comment",comment))}function onEndElement(name){var parentElement=currentElement[options.parentKey];options.addParent||delete currentElement[options.parentKey],currentElement=parentElement}function onCdata(cdata){options.ignoreCdata||(options.trim&&(cdata=cdata.trim()),addField("cdata",cdata))}function onDoctype(doctype){options.ignoreDoctype||(doctype=doctype.replace(/^ /,""),options.trim&&(doctype=doctype.trim()),addField("doctype",doctype))}function onError(error){error.note=error}return xml2js=function(xml,userOptions){var parser=sax.parser(!0,{}),result={};if(currentElement=result,options=function validateOptions(userOptions){return options=helper.copyOptions(userOptions),helper.ensureFlagExists("ignoreDeclaration",options),helper.ensureFlagExists("ignoreInstruction",options),helper.ensureFlagExists("ignoreAttributes",options),helper.ensureFlagExists("ignoreText",options),helper.ensureFlagExists("ignoreComment",options),helper.ensureFlagExists("ignoreCdata",options),helper.ensureFlagExists("ignoreDoctype",options),helper.ensureFlagExists("compact",options),helper.ensureFlagExists("alwaysChildren",options),helper.ensureFlagExists("addParent",options),helper.ensureFlagExists("trim",options),helper.ensureFlagExists("nativeType",options),helper.ensureFlagExists("nativeTypeAttributes",options),helper.ensureFlagExists("sanitize",options),helper.ensureFlagExists("instructionHasAttributes",options),helper.ensureFlagExists("captureSpacesBetweenElements",options),helper.ensureAlwaysArrayExists(options),helper.ensureKeyExists("declaration",options),helper.ensureKeyExists("instruction",options),helper.ensureKeyExists("attributes",options),helper.ensureKeyExists("text",options),helper.ensureKeyExists("comment",options),helper.ensureKeyExists("cdata",options),helper.ensureKeyExists("doctype",options),helper.ensureKeyExists("type",options),helper.ensureKeyExists("name",options),helper.ensureKeyExists("elements",options),helper.ensureKeyExists("parent",options),helper.checkFnExists("doctype",options),helper.checkFnExists("instruction",options),helper.checkFnExists("cdata",options),helper.checkFnExists("comment",options),helper.checkFnExists("text",options),helper.checkFnExists("instructionName",options),helper.checkFnExists("elementName",options),helper.checkFnExists("attributeName",options),helper.checkFnExists("attributeValue",options),helper.checkFnExists("attributes",options),options}(userOptions),parser.opt={strictEntities:!0},parser.onopentag=onStartElement,parser.ontext=onText,parser.oncomment=onComment,parser.onclosetag=onEndElement,parser.onerror=onError,parser.oncdata=onCdata,parser.ondoctype=onDoctype,parser.onprocessinginstruction=onInstruction,parser.write(xml).close(),result[options.elementsKey]){var temp=result[options.elementsKey];delete result[options.elementsKey],result[options.elementsKey]=temp,delete result.text}return result},xml2js}function requireXml2json(){if(hasRequiredXml2json)return xml2json;hasRequiredXml2json=1;var helper=requireOptionsHelper(),xml2js=requireXml2js();return xml2json=function(xml,userOptions){var options,js,parentKey;return options=function validateOptions(userOptions){var options=helper.copyOptions(userOptions);return helper.ensureSpacesExists(options),options}(userOptions),js=xml2js(xml,options),parentKey="compact"in options&&options.compact?"_parent":"parent",("addParent"in options&&options.addParent?JSON.stringify(js,(function(k,v){return k===parentKey?"_":v}),options.spaces):JSON.stringify(js,null,options.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}function requireJs2xml(){if(hasRequiredJs2xml)return js2xml;hasRequiredJs2xml=1;var currentElement,currentElementName,helper=requireOptionsHelper(),isArray=requireArrayHelper().isArray;function writeIndentation(options,depth,firstLine){return(!firstLine&&options.spaces?"\n":"")+Array(depth+1).join(options.spaces)}function writeAttributes(attributes,options,depth){if(options.ignoreAttributes)return"";"attributesFn"in options&&(attributes=options.attributesFn(attributes,currentElementName,currentElement));var key,attr,attrName,quote,result=[];for(key in attributes)attributes.hasOwnProperty(key)&&null!==attributes[key]&&void 0!==attributes[key]&&(quote=options.noQuotesForNativeAttributes&&"string"!=typeof attributes[key]?"":'"',attr=(attr=""+attributes[key]).replace(/"/g,"&quot;"),attrName="attributeNameFn"in options?options.attributeNameFn(key,attr,currentElementName,currentElement):key,result.push(options.spaces&&options.indentAttributes?writeIndentation(options,depth+1,!1):" "),result.push(attrName+"="+quote+("attributeValueFn"in options?options.attributeValueFn(attr,key,currentElementName,currentElement):attr)+quote));return attributes&&Object.keys(attributes).length&&options.spaces&&options.indentAttributes&&result.push(writeIndentation(options,depth,!1)),result.join("")}function writeDeclaration(declaration,options,depth){return currentElement=declaration,currentElementName="xml",options.ignoreDeclaration?"":"<?xml"+writeAttributes(declaration[options.attributesKey],options,depth)+"?>"}function writeInstruction(instruction,options,depth){if(options.ignoreInstruction)return"";var key;for(key in instruction)if(instruction.hasOwnProperty(key))break;var instructionName="instructionNameFn"in options?options.instructionNameFn(key,instruction[key],currentElementName,currentElement):key;if("object"==typeof instruction[key])return currentElement=instruction,currentElementName=instructionName,"<?"+instructionName+writeAttributes(instruction[key][options.attributesKey],options,depth)+"?>";var instructionValue=instruction[key]?instruction[key]:"";return"instructionFn"in options&&(instructionValue=options.instructionFn(instructionValue,key,currentElementName,currentElement)),"<?"+instructionName+(instructionValue?" "+instructionValue:"")+"?>"}function writeComment(comment,options){return options.ignoreComment?"":"\x3c!--"+("commentFn"in options?options.commentFn(comment,currentElementName,currentElement):comment)+"--\x3e"}function writeCdata(cdata,options){return options.ignoreCdata?"":"<![CDATA["+("cdataFn"in options?options.cdataFn(cdata,currentElementName,currentElement):cdata.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function writeDoctype(doctype,options){return options.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in options?options.doctypeFn(doctype,currentElementName,currentElement):doctype)+">"}function writeText(text,options){return options.ignoreText?"":(text=(text=(text=""+text).replace(/&amp;/g,"&")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in options?options.textFn(text,currentElementName,currentElement):text)}function writeElements(elements,options,depth,firstLine){return elements.reduce((function(xml,element){var indent=writeIndentation(options,depth,firstLine&&!xml);switch(element.type){case"element":return xml+indent+function writeElement(element,options,depth){currentElement=element,currentElementName=element.name;var xml=[],elementName="elementNameFn"in options?options.elementNameFn(element.name,element):element.name;xml.push("<"+elementName),element[options.attributesKey]&&xml.push(writeAttributes(element[options.attributesKey],options,depth));var withClosingTag=element[options.elementsKey]&&element[options.elementsKey].length||element[options.attributesKey]&&"preserve"===element[options.attributesKey]["xml:space"];return withClosingTag||(withClosingTag="fullTagEmptyElementFn"in options?options.fullTagEmptyElementFn(element.name,element):options.fullTagEmptyElement),withClosingTag?(xml.push(">"),element[options.elementsKey]&&element[options.elementsKey].length&&(xml.push(writeElements(element[options.elementsKey],options,depth+1)),currentElement=element,currentElementName=element.name),xml.push(options.spaces&&function hasContent(element,options){var i;if(element.elements&&element.elements.length)for(i=0;i<element.elements.length;++i)switch(element.elements[i][options.typeKey]){case"text":if(options.indentText)return!0;break;case"cdata":if(options.indentCdata)return!0;break;case"instruction":if(options.indentInstruction)return!0;break;default:return!0}return!1}(element,options)?"\n"+Array(depth+1).join(options.spaces):""),xml.push("</"+elementName+">")):xml.push("/>"),xml.join("")}(element,options,depth);case"comment":return xml+indent+writeComment(element[options.commentKey],options);case"doctype":return xml+indent+writeDoctype(element[options.doctypeKey],options);case"cdata":return xml+(options.indentCdata?indent:"")+writeCdata(element[options.cdataKey],options);case"text":return xml+(options.indentText?indent:"")+writeText(element[options.textKey],options);case"instruction":var instruction={};return instruction[element[options.nameKey]]=element[options.attributesKey]?element:element[options.instructionKey],xml+(options.indentInstruction?indent:"")+writeInstruction(instruction,options,depth)}}),"")}function hasContentCompact(element,options,anyContent){var key;for(key in element)if(element.hasOwnProperty(key))switch(key){case options.parentKey:case options.attributesKey:break;case options.textKey:if(options.indentText||anyContent)return!0;break;case options.cdataKey:if(options.indentCdata||anyContent)return!0;break;case options.instructionKey:if(options.indentInstruction||anyContent)return!0;break;case options.doctypeKey:case options.commentKey:default:return!0}return!1}function writeElementCompact(element,name,options,depth,indent){currentElement=element,currentElementName=name;var elementName="elementNameFn"in options?options.elementNameFn(name,element):name;if(null==element||""===element)return"fullTagEmptyElementFn"in options&&options.fullTagEmptyElementFn(name,element)||options.fullTagEmptyElement?"<"+elementName+"></"+elementName+">":"<"+elementName+"/>";var xml=[];if(name){if(xml.push("<"+elementName),"object"!=typeof element)return xml.push(">"+writeText(element,options)+"</"+elementName+">"),xml.join("");element[options.attributesKey]&&xml.push(writeAttributes(element[options.attributesKey],options,depth));var withClosingTag=hasContentCompact(element,options,!0)||element[options.attributesKey]&&"preserve"===element[options.attributesKey]["xml:space"];if(withClosingTag||(withClosingTag="fullTagEmptyElementFn"in options?options.fullTagEmptyElementFn(name,element):options.fullTagEmptyElement),!withClosingTag)return xml.push("/>"),xml.join("");xml.push(">")}return xml.push(writeElementsCompact(element,options,depth+1,!1)),currentElement=element,currentElementName=name,name&&xml.push((indent?writeIndentation(options,depth,!1):"")+"</"+elementName+">"),xml.join("")}function writeElementsCompact(element,options,depth,firstLine){var i,key,nodes,xml=[];for(key in element)if(element.hasOwnProperty(key))for(nodes=isArray(element[key])?element[key]:[element[key]],i=0;i<nodes.length;++i){switch(key){case options.declarationKey:xml.push(writeDeclaration(nodes[i],options,depth));break;case options.instructionKey:xml.push((options.indentInstruction?writeIndentation(options,depth,firstLine):"")+writeInstruction(nodes[i],options,depth));break;case options.attributesKey:case options.parentKey:break;case options.textKey:xml.push((options.indentText?writeIndentation(options,depth,firstLine):"")+writeText(nodes[i],options));break;case options.cdataKey:xml.push((options.indentCdata?writeIndentation(options,depth,firstLine):"")+writeCdata(nodes[i],options));break;case options.doctypeKey:xml.push(writeIndentation(options,depth,firstLine)+writeDoctype(nodes[i],options));break;case options.commentKey:xml.push(writeIndentation(options,depth,firstLine)+writeComment(nodes[i],options));break;default:xml.push(writeIndentation(options,depth,firstLine)+writeElementCompact(nodes[i],key,options,depth,hasContentCompact(nodes[i],options)))}firstLine=firstLine&&!xml.length}return xml.join("")}return js2xml=function(js,options){options=function validateOptions(userOptions){var options=helper.copyOptions(userOptions);return helper.ensureFlagExists("ignoreDeclaration",options),helper.ensureFlagExists("ignoreInstruction",options),helper.ensureFlagExists("ignoreAttributes",options),helper.ensureFlagExists("ignoreText",options),helper.ensureFlagExists("ignoreComment",options),helper.ensureFlagExists("ignoreCdata",options),helper.ensureFlagExists("ignoreDoctype",options),helper.ensureFlagExists("compact",options),helper.ensureFlagExists("indentText",options),helper.ensureFlagExists("indentCdata",options),helper.ensureFlagExists("indentAttributes",options),helper.ensureFlagExists("indentInstruction",options),helper.ensureFlagExists("fullTagEmptyElement",options),helper.ensureFlagExists("noQuotesForNativeAttributes",options),helper.ensureSpacesExists(options),"number"==typeof options.spaces&&(options.spaces=Array(options.spaces+1).join(" ")),helper.ensureKeyExists("declaration",options),helper.ensureKeyExists("instruction",options),helper.ensureKeyExists("attributes",options),helper.ensureKeyExists("text",options),helper.ensureKeyExists("comment",options),helper.ensureKeyExists("cdata",options),helper.ensureKeyExists("doctype",options),helper.ensureKeyExists("type",options),helper.ensureKeyExists("name",options),helper.ensureKeyExists("elements",options),helper.checkFnExists("doctype",options),helper.checkFnExists("instruction",options),helper.checkFnExists("cdata",options),helper.checkFnExists("comment",options),helper.checkFnExists("text",options),helper.checkFnExists("instructionName",options),helper.checkFnExists("elementName",options),helper.checkFnExists("attributeName",options),helper.checkFnExists("attributeValue",options),helper.checkFnExists("attributes",options),helper.checkFnExists("fullTagEmptyElement",options),options}(options);var xml=[];return currentElement=js,currentElementName="_root_",options.compact?xml.push(writeElementsCompact(js,options,0,!0)):(js[options.declarationKey]&&xml.push(writeDeclaration(js[options.declarationKey],options,0)),js[options.elementsKey]&&js[options.elementsKey].length&&xml.push(writeElements(js[options.elementsKey],options,0,!xml.length))),xml.join("")}}function requireJson2xml(){if(hasRequiredJson2xml)return json2xml;hasRequiredJson2xml=1;var js2xml=requireJs2xml();return json2xml=function(json,options){json instanceof Buffer&&(json=json.toString());var js=null;if("string"==typeof json)try{js=JSON.parse(json)}catch(e){throw new Error("The JSON structure is invalid")}else js=json;return js2xml(js,options)}}var cjs,hasRequiredCjs,libExports$2=function requireLib$2(){if(hasRequiredLib$2)return lib$2;hasRequiredLib$2=1;var xml2js=requireXml2js(),xml2json=requireXml2json(),js2xml=requireJs2xml(),json2xml=requireJson2xml();return lib$2={xml2js:xml2js,xml2json:xml2json,js2xml:js2xml,json2xml:json2xml}}();class XmlParser{constructor(){}findInObj=(obj,chave)=>{if(obj.hasOwnProperty(chave))return obj[chave];for(let prop in obj)if("object"==typeof obj[prop]){const result=this.findInObj(obj[prop],chave);if(result)return result}return""};removeJsonTextAttribute(value,parentElement){const pOpKeys=Object.keys(parentElement._parent),keyName=pOpKeys[pOpKeys.length-1],arrOfKey=parentElement._parent[keyName];if(arrOfKey.length>0){arrOfKey[arrOfKey.length-1]=value}else parentElement._parent[keyName]=value}getStatusServicoBody(jsonData){return this.findInObj(jsonData,"retConsStatServ")}getConsultaProtocoloBody(jsonData){return this.findInObj(jsonData,"retConsSitNFe")}getRecepcaoEventoBody(jsonData){return this.findInObj(jsonData,"retEnvEvento")}getDistribuicaoDFe(jsonData){return this.findInObj(jsonData,"nfeDistDFeInteresseResult")}getDistribuicaoDFeProcBody(jsonData){return this.findInObj(jsonData,"NFe")}getDistribuicaoDFeResBody(jsonData){return this.findInObj(jsonData,"resNFe")}getDistribuicaoDFeEventBody(jsonData){return this.findInObj(jsonData,"evento")}getAutorizacaoEventBody(jsonData){return this.findInObj(jsonData,"retEnviNFe")}getAutorizacaoFinalEventBody(jsonData){return this.findInObj(jsonData,"nfeProc")}getAutorizacaoRetornoEventBody(jsonData){return this.findInObj(jsonData,"protNFe")}getInutilizacaoRetornoEventBody(jsonData){return this.findInObj(jsonData,"infInut")}convertXmlToJson(xml,metodo,nsu){try{const jsonAsString=libExports$2.xml2json(xml,{compact:!0,spaces:2,ignoreAttributes:!0,ignoreDeclaration:!0,trim:!0,ignoreInstruction:!0,ignoreComment:!0,ignoreCdata:!0,ignoreDoctype:!0,textFn:this.removeJsonTextAttribute}),jsonData=JSON.parse(jsonAsString);let jsonBody;switch(metodo){case"NFEStatusServico":jsonBody=this.getStatusServicoBody(jsonData);break;case"NFEConsultaProtocolo":jsonBody=this.getConsultaProtocoloBody(jsonData);break;case"RecepcaoEvento":jsonBody=this.getRecepcaoEventoBody(jsonData);break;case"NFeDistribuicaoDFe":jsonBody=this.getDistribuicaoDFe(jsonData);break;case"NFeDistribuicaoDFe_proc":jsonBody=jsonData;break;case"NFeDistribuicaoDFe_res":jsonBody=this.getDistribuicaoDFeResBody(jsonData);break;case"NFeDistribuicaoDFe_event":jsonBody=this.getDistribuicaoDFeEventBody(jsonData);break;case"NFEAutorizacao":jsonBody=this.getAutorizacaoEventBody(jsonData);break;case"NFEAutorizacaoFinal":case"NFCEAutorizacaoFinal":jsonBody=this.getAutorizacaoFinalEventBody(jsonData);break;case"NFERetAutorizacao":jsonBody=this.getAutorizacaoRetornoEventBody(jsonData);break;case"NFEInutilizacao":jsonBody=this.getInutilizacaoRetornoEventBody(jsonData);break;default:throw new Error("Formato de XML desconhecido")}return jsonBody&&(nsu&&(jsonBody.nsu=nsu),jsonBody.xml=xml),jsonBody}catch(error){throw new Error(`Erro ao converter XML para Json: ${error}`)}}}var xsdAssembler=getDefaultExportFromCjs(function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var e=path__default.default,t=fs__default.default;class s{constructor(e,t,s){this.loader=e,this.resolver=t,this.merger=s}async assemble(t){const s=await this.resolver.resolveIncludes(t,!0,e.dirname(t)),r=this.normalizeRegexPatterns(s);return this.merger.mergeProperties(r)}normalizeRegexPatterns(e){return e.replace(/\\\\/g,"\\")}}class r{constructor(){this.schemaAttributes={}}extractSchemaAttributes(e){const t=e.match(/<xs:schema([^>]*)>/i);if(t){const e=t[1].trim().split(/\s+/);for(const t of e){const[e,s]=t.split("=");e&&s&&!this.schemaAttributes[e]&&(this.schemaAttributes[e]=s)}}}mergeSchemaAttributes(e){const t=e.match(/<xs:schema([^>]*)>/i);if(t){const e=t[1].trim().split(/\s+/);for(const t of e){const[e,s]=t.split("=");e&&s&&!this.schemaAttributes[e]&&(this.schemaAttributes[e]=s)}}}getSchemaAttributes(){return this.schemaAttributes}async load(e,s){return new Promise(((r,i)=>{t.readFile(e,"utf8",((e,t)=>{if(e)return i(e);s?this.extractSchemaAttributes(t):this.mergeSchemaAttributes(t),s||(t=t.replace(/<\?xml.*?\?>\s*/i,"")),s||(t=t.replace(/<xs:schema[^>]*>/i,"").replace(/<\/xs:schema>/i,"")),r(t)}))}))}}class i{constructor(e){this.loader=e}applySchemaAttributes(e){const t=this.loader.getSchemaAttributes(),s=e.match(/<xs:schema[^>]*>/i);if(s){const r=`<xs:schema ${Object.entries(t).map((([e,t])=>`${e}=${t}`)).join(" ")}>`;return e.replace(s[0],r)}return e}reorderSchemaDirectives(e){const t=/<xs:import[^>]*\/>/g,s=/<xs:include[^>]*\/>/g,r=[...e.match(t)||[]],i=[...e.match(s)||[]];let c=e.replace(t,"").replace(s,"");const a=c.match(/<xs:schema[^>]*>/i);if(!a)throw new Error("A tag <xs:schema> não foi encontrada no conteúdo do schema.");const n=a[0],o=c.indexOf(n)+n.length,h=c.slice(0,o),l=c.slice(o);return`${h}\n${r.join("\n")}\n${i.join("\n")}\n${l}`}async resolveIncludes(t,s=!0,r="."){let i=await this.loader.load(t,s);const c=/<xs:include\s+schemaLocation="([^"]+)"\s*\/?>/g;let a;for(;null!==(a=c.exec(i));){const t=e.resolve(r,a[1]),s=await this.resolveIncludes(t,!1,r);i=i.replace(a[0],s)}return s&&(i=this.applySchemaAttributes(i),i=this.reorderSchemaDirectives(i)),i}}class c{constructor(e){this.strategy=e}mergeProperties(e){return e}}class a{merge(e,t){return`${t}`}}const n=new class{constructor(){this.loader=new r,this.resolver=new i(this.loader),this.setMergeStrategy(new a)}setMergeStrategy(e){return this.merger=new c(e),this}assemble(e){if(!this.merger)throw new Error("Merge strategy must be set before building XSDAssembler.");return new s(this.loader,this.resolver,this.merger).assemble(e)}};return cjs=n}());class Utility{environment;xmlParser;constructor(environment){this.environment=environment,this.xmlParser=new XmlParser}createDir(path){fs__default.default.existsSync(path)||fs__default.default.mkdirSync(path,{recursive:!0})}createFile(path,fileName,file,extension){"json"===extension.toLowerCase()?fs__default.default.writeFileSync(`${path}/${fileName}.${extension}`,JSON.stringify(file)):fs__default.default.writeFileSync(`${path}/${fileName}.${extension}`,file)}findInObj=(obj,chave)=>{if(obj.hasOwnProperty(chave))return obj[chave];for(let prop in obj)if("object"==typeof obj[prop]){const result=this.findInObj(obj[prop],chave);if(result)return result}return""};salvaJSON(props){const{fileName:fileName,metodo:metodo,path:path,data:data}=props;try{let pathJson=path;pathJson&&""!==pathJson.trim()||(pathJson=`../tmp/${metodo}/`),this.createDir(pathJson),this.createFile(pathJson,fileName,data,"json")}catch(error){throw new Error(error.message)}}salvaXMLFromJson(config,xmlInJson,fileName="",metodo=""){try{let pathXml=config.dfe.pathXMLRetorno;pathXml&&""!==pathXml.trim()||(pathXml=`../tmp/${metodo}/`);const{xml:xml}=xmlInJson,chNFe=this.findInObj(xmlInJson,"chNFe");this.createDir(pathXml),this.createFile(pathXml,fileName||chNFe,xml,"xml")}catch(error){throw new Error(error.message)}}salvaXML(props){const{fileName:fileName,metodo:metodo,path:path,data:data}=props;try{let pathXml=path;pathXml&&""!==pathXml.trim()||(pathXml=`../tmp/${metodo}/`),this.createDir(pathXml),this.createFile(pathXml,fileName,data,"xml")}catch(error){throw new Error(error.message)}}getSoapInfo1(uf,metodo){const methodInfo=soapMethod[metodo];if(!methodInfo)throw new Error("Método não encontrado no arquivo de configuração SOAP.");return{method:methodInfo.method,action:methodInfo.action}}getSoapInfo(uf,method){const servicos=NFeServicosUrl;let chaveMethod="",chaveSoap="";switch(uf){case"SP":chaveSoap="SOAP_V4_SP";break;case"BA":chaveSoap="SOAP_V4_BA";break;default:chaveSoap="SOAP_V4"}if("SP"===uf)chaveMethod="WSDL_V4_SP";else chaveMethod="WSDL_V4";const methodServices=servicos[chaveMethod],methodUrl=this.getLatestURLConsulta(methodServices,method),soapServices=servicos[chaveSoap],soapUrl=this.getLatestURLConsulta(soapServices,method);if(!methodUrl||!soapUrl)throw new Error("Método não encontrado no arquivo de configuração SOAP.");return{method:methodUrl,action:soapUrl}}getLatestURLConsultaFix(chave){const temp_urls={...NFeServicosUrl[chave]};if("Usar"in temp_urls){const referencedUrls=NFeServicosUrl[temp_urls.Usar]||{};Object.keys(referencedUrls).forEach((key=>{key in temp_urls||(temp_urls[key]=referencedUrls[key])})),delete temp_urls.Usar}return temp_urls}getLatestURLConsulta(data,metodo){const keys=Object.keys(data),prefix=`${metodo}_`,versions=keys.map((key=>{const match=key.match(new RegExp(`^${prefix}(\\d+\\.\\d+)$`));return match?parseFloat(match[1]):null})).filter((version=>null!==version)).sort(((a,b)=>b-a));for(let version of versions){const key=`${prefix}${version.toFixed(2)}`;if(data[key])return data[key]}return data[metodo]||null}setAmbiente(metodo,ambienteNacional=!1,versao,mod){const config=this.environment.getConfig(),ambiente=2===config.nfe.ambiente?"H":"P",versaoDF=""!==versao?versao:config.nfe.versaoDF;if(ambienteNacional){return{chaveMae:`${mod}_AN_${ambiente}`,chaveFilha:`${metodo}_${versaoDF}`}}return{chaveMae:`${mod}_${config.dfe.UF}_${ambiente}`,chaveFilha:`${metodo}_${versaoDF}`}}getWebServiceUrl(metodo,ambienteNacional=!1,versao="",mod="NFe"){let{chaveMae:chaveMae,chaveFilha:chaveFilha}=this.setAmbiente(metodo,ambienteNacional,versao,mod);const urls=NFeServicosUrl;"Usar"in urls[chaveMae]&&(chaveMae=urls[chaveMae].Usar);const url=urls[chaveMae]&&urls[chaveMae][chaveFilha];if(!url)throw new Error(`Não foi possível recuperar a url para o webservice: ${chaveFilha}`);return url}getUrlNFCe(metodo,ambienteNacional=!1,versao=""){let{chaveMae:chaveMae}=this.setAmbiente(metodo,ambienteNacional,versao,"NFCe");const urls=NFeServicosUrl,url=urls[chaveMae]&&this.getLatestURLConsulta(urls[chaveMae],metodo);if(!url)throw new Error(`Não foi possível recuperar a url para consulta de NFCe: ${chaveMae}`);return url}formatErrorMessage(message){const match=message.match(/\[error\]\s(.+?)\:\s(.+?)\s\((\d+):(\d+)\)/);if(match){const[_,errorCode,errorDescription,line,column]=match;return`Erro na Validação do XML: ${errorCode} na linha ${line}, coluna ${column}. Descrição: ${errorDescription}`}return`Erro Não Identificado na Validação do XML: ${message}`}validateSchemaJsBased(xml,metodo){return new Promise((async(resolve,reject)=>{try{const{basePath:basePath,schemaPath:schemaPath}=getSchema(metodo),completeXSD=await xsdAssembler.assemble(schemaPath),xmlDoc=libxmljs__default.default.parseXml(xml),xsdDoc=libxmljs__default.default.parseXml(completeXSD,{baseUrl:`${basePath}/`});xmlDoc.validate(xsdDoc)?resolve({success:!0,message:"XML válido."}):reject({success:!1,message:this.formatErrorMessage(xmlDoc.validationErrors[0].message)})}catch(error){reject({success:!1,message:this.formatErrorMessage(error.message)})}}))}validateSchemaJavaBased(xml,metodo){return new Promise((async(resolve,reject)=>{try{const{schemaPath:schemaPath}=getSchema(metodo);xsdValidator__default.default.validateXML(xml,schemaPath,((err,validationResult)=>{err?reject({success:!1,message:this.formatErrorMessage(err.message)}):validationResult.valid?resolve({success:!0,message:"XML válido."}):reject({success:!1,message:this.formatErrorMessage(validationResult.messages[0])})}))}catch(error){reject({success:!1,message:this.formatErrorMessage(error.message)})}}))}verificaRejeicao(data,metodo,name){const responseInJson=this.xmlParser.convertXmlToJson(data,metodo),xMotivo=this.findInObj(responseInJson,"xMotivo"),infProt=this.findInObj(responseInJson,"infProt");if(this.salvaRetorno(data,responseInJson,metodo,name),xMotivo&&(xMotivo.includes("Rejeição")||xMotivo.includes("Rejeicao")))throw new Error(xMotivo);if(infProt&&(infProt?.xMotivo.includes("Rejeição")||infProt?.xMotivo.includes("Rejeicao")))throw new Error(infProt?.xMotivo);return responseInJson}getProtNFe(xmlRetorno){let protNFe,nRec="";return xml2js$1.parseString(xmlRetorno,((err,result)=>{if(err)console.error("Erro ao parsear o XML para captura do nRec e protNFe:",err);else{const nRecTag=this.findInObj(result,"nRec");nRec=nRecTag[0];const protNFeTag=this.findInObj(result,"protNFe");protNFe=protNFeTag}})),{protNFe:protNFe,nRec:nRec}}getRequestLogFileName(metodo,tipo){switch(metodo){case"NFEStatusServico":return`NFeStatusServico-${tipo}`;case"NFEConsultaProtocolo":return`NFeConsultaProtocolo-${tipo}`;case"NFeDistribuicaoDFe":return`NFeDistribuicaoDFe-${tipo}`;case"RecepcaoEvento":return`RecepcaoEvento-${tipo}`;case"NFECancelamento":return`NFECancelamento-${tipo}`;case"NFEInutilizacao":return`NFEInutilizacao-${tipo}`;case"NFEAutorizacao":return`NFEAutorizacao-${tipo}`;case"NFCEAutorizacao":return`NFCEAutorizacao-${tipo}`;case"NFERetAutorizacao":return`NFERetAutorizacao-${tipo}`;default:throw new Error("Erro: Requisição de nome para método não implementado.")}}salvaConsulta(xmlConsulta,xmlFormated,metodo,name){try{const fileName=name||this.getRequestLogFileName(metodo,"consulta"),{armazenarXMLConsulta:armazenarXMLConsulta,pathXMLConsulta:pathXMLConsulta,armazenarXMLConsultaComTagSoap:armazenarXMLConsultaComTagSoap}=this.environment.config.dfe,xmlConsultaASalvar=armazenarXMLConsultaComTagSoap?xmlFormated:xmlConsulta;armazenarXMLConsulta&&this.salvaXML({data:xmlConsultaASalvar,fileName:fileName,metodo:metodo,path:pathXMLConsulta})}catch(error){throw new Error(error.message)}}salvaRetorno(xmlRetorno,responseInJson,metodo,name){try{const fileName=name||this.getRequestLogFileName(metodo,"retorno"),{armazenarXMLRetorno:armazenarXMLRetorno,pathXMLRetorno:pathXMLRetorno,armazenarRetornoEmJSON:armazenarRetornoEmJSON}=this.environment.config.dfe;armazenarXMLRetorno&&xmlRetorno&&(this.salvaXML({data:xmlRetorno,fileName:fileName,metodo:metodo,path:pathXMLRetorno}),armazenarRetornoEmJSON&&responseInJson&&this.salvaJSON({data:responseInJson,fileName:fileName,metodo:metodo,path:pathXMLRetorno}))}catch(error){throw new Error(error.message)}}}class GerarConsulta{utility;environment;xmlBuilder;constructor(environment,utility,xmlBuilder){this.environment=environment,this.utility=utility,this.xmlBuilder=xmlBuilder}async gerarConsulta(xmlConsulta,metodo,ambienteNacional=!1,versao="",mod="NFe",rootTag=!1,tag=""){try{const config=this.environment.getConfig();"validateSchemaJsBased"!==config.lib?.useForSchemaValidation?await this.utility.validateSchemaJavaBased(xmlConsulta,metodo):await this.utility.validateSchemaJsBased(xmlConsulta,metodo);const{method:method,action:action}=this.utility.getSoapInfo(config.dfe.UF,metodo);let rootTagObj=null;rootTag&&(rootTagObj={tag:tag,namespace:method});const xmlFormated=this.xmlBuilder.buildSoapEnvelope(xmlConsulta,method,"soap12",rootTagObj),agent=this.environment.getHttpAgent();return{xmlFormated:xmlFormated,agent:agent,webServiceUrl:this.utility.getWebServiceUrl(metodo,ambienteNacional,versao,mod),action:action}}catch(error){throw new Error(error.message)}}}function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function toInteger(dirtyNumber){if(null===dirtyNumber||!0===dirtyNumber||!1===dirtyNumber)return NaN;var number=Number(dirtyNumber);return isNaN(number)?number:number<0?Math.ceil(number):Math.floor(number)}function requiredArgs(required,args){if(args.length<required)throw new TypeError(required+" argument"+(required>1?"s":"")+" required, but only "+args.length+" present")}function toDate(argument){requiredArgs(1,arguments);var argStr=Object.prototype.toString.call(argument);return argument instanceof Date||"object"===_typeof(argument)&&"[object Date]"===argStr?new Date(argument.getTime()):"number"==typeof argument||"[object Number]"===argStr?new Date(argument):("string"!=typeof argument&&"[object String]"!==argStr||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var defaultOptions={};function getDefaultOptions(){return defaultOptions}function isValid(dirtyDate){if(requiredArgs(1,arguments),!function isDate$1(value){return requiredArgs(1,arguments),value instanceof Date||"object"===_typeof(value)&&"[object Date]"===Object.prototype.toString.call(value)}(dirtyDate)&&"number"!=typeof dirtyDate)return!1;var date=toDate(dirtyDate);return!isNaN(Number(date))}function subMilliseconds(dirtyDate,dirtyAmount){return requiredArgs(2,arguments),function addMilliseconds(dirtyDate,dirtyAmount){requiredArgs(2,arguments);var timestamp=toDate(dirtyDate).getTime(),amount=toInteger(dirtyAmount);return new Date(timestamp+amount)}(dirtyDate,-toInteger(dirtyAmount))}function startOfUTCISOWeek(dirtyDate){requiredArgs(1,arguments);var date=toDate(dirtyDate),day=date.getUTCDay(),diff=(day<1?7:0)+day-1;return date.setUTCDate(date.getUTCDate()-diff),date.setUTCHours(0,0,0,0),date}function getUTCISOWeekYear(dirtyDate){requiredArgs(1,arguments);var date=toDate(dirtyDate),year=date.getUTCFullYear(),fourthOfJanuaryOfNextYear=new Date(0);fourthOfJanuaryOfNextYear.setUTCFullYear(year+1,0,4),fourthOfJanuaryOfNextYear.setUTCHours(0,0,0,0);var startOfNextYear=startOfUTCISOWeek(fourthOfJanuaryOfNextYear),fourthOfJanuaryOfThisYear=new Date(0);fourthOfJanuaryOfThisYear.setUTCFullYear(year,0,4),fourthOfJanuaryOfThisYear.setUTCHours(0,0,0,0);var startOfThisYear=startOfUTCISOWeek(fourthOfJanuaryOfThisYear);return date.getTime()>=startOfNextYear.getTime()?year+1:date.getTime()>=startOfThisYear.getTime()?year:year-1}function getUTCISOWeek(dirtyDate){requiredArgs(1,arguments);var date=toDate(dirtyDate),diff=startOfUTCISOWeek(date).getTime()-function startOfUTCISOWeekYear(dirtyDate){requiredArgs(1,arguments);var year=getUTCISOWeekYear(dirtyDate),fourthOfJanuary=new Date(0);return fourthOfJanuary.setUTCFullYear(year,0,4),fourthOfJanuary.setUTCHours(0,0,0,0),startOfUTCISOWeek(fourthOfJanuary)}(date).getTime();return Math.round(diff/6048e5)+1}function startOfUTCWeek(dirtyDate,options){var _ref,_ref2,_ref3,_options$weekStartsOn,_options$locale,_options$locale$optio,_defaultOptions$local,_defaultOptions$local2;requiredArgs(1,arguments);var defaultOptions=getDefaultOptions(),weekStartsOn=toInteger(null!==(_ref=null!==(_ref2=null!==(_ref3=null!==(_options$weekStartsOn=null==options?void 0:options.weekStartsOn)&&void 0!==_options$weekStartsOn?_options$weekStartsOn:null==options||null===(_options$locale=options.locale)||void 0===_options$locale||null===(_options$locale$optio=_options$locale.options)||void 0===_options$locale$optio?void 0:_options$locale$optio.weekStartsOn)&&void 0!==_ref3?_ref3:defaultOptions.weekStartsOn)&&void 0!==_ref2?_ref2:null===(_defaultOptions$local=defaultOptions.locale)||void 0===_defaultOptions$local||null===(_defaultOptions$local2=_defaultOptions$local.options)||void 0===_defaultOptions$local2?void 0:_defaultOptions$local2.weekStartsOn)&&void 0!==_ref?_ref:0);if(!(weekStartsOn>=0&&weekStartsOn<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var date=toDate(dirtyDate),day=date.getUTCDay(),diff=(day<weekStartsOn?7:0)+day-weekStartsOn;return date.setUTCDate(date.getUTCDate()-diff),date.setUTCHours(0,0,0,0),date}function getUTCWeekYear(dirtyDate,options){var _ref,_ref2,_ref3,_options$firstWeekCon,_options$locale,_options$locale$optio,_defaultOptions$local,_defaultOptions$local2;requiredArgs(1,arguments);var date=toDate(dirtyDate),year=date.getUTCFullYear(),defaultOptions=getDefaultOptions(),firstWeekContainsDate=toInteger(null!==(_ref=null!==(_ref2=null!==(_ref3=null!==(_options$firstWeekCon=null==options?void 0:options.firstWeekContainsDate)&&void 0!==_options$firstWeekCon?_options$firstWeekCon:null==options||null===(_options$locale=options.locale)||void 0===_options$locale||null===(_options$locale$optio=_options$locale.options)||void 0===_options$locale$optio?void 0:_options$locale$optio.firstWeekContainsDate)&&void 0!==_ref3?_ref3:defaultOptions.firstWeekContainsDate)&&void 0!==_ref2?_ref2:null===(_defaultOptions$local=defaultOptions.locale)||void 0===_defaultOptions$local||null===(_defaultOptions$local2=_defaultOptions$local.options)||void 0===_defaultOptions$local2?void 0:_defaultOptions$local2.firstWeekContainsDate)&&void 0!==_ref?_ref:1);if(!(firstWeekContainsDate>=1&&firstWeekContainsDate<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var firstWeekOfNextYear=new Date(0);firstWeekOfNextYear.setUTCFullYear(year+1,0,firstWeekContainsDate),firstWeekOfNextYear.setUTCHours(0,0,0,0);var startOfNextYear=startOfUTCWeek(firstWeekOfNextYear,options),firstWeekOfThisYear=new Date(0);firstWeekOfThisYear.setUTCFullYear(year,0,firstWeekContainsDate),firstWeekOfThisYear.setUTCHours(0,0,0,0);var startOfThisYear=startOfUTCWeek(firstWeekOfThisYear,options);return date.getTime()>=startOfNextYear.getTime()?year+1:date.getTime()>=startOfThisYear.getTime()?year:year-1}function getUTCWeek(dirtyDate,options){requiredArgs(1,arguments);var date=toDate(dirtyDate),diff=startOfUTCWeek(date,options).getTime()-function startOfUTCWeekYear(dirtyDate,options){var _ref,_ref2,_ref3,_options$firstWeekCon,_options$locale,_options$locale$optio,_defaultOptions$local,_defaultOptions$local2;requiredArgs(1,arguments);var defaultOptions=getDefaultOptions(),firstWeekContainsDate=toInteger(null!==(_ref=null!==(_ref2=null!==(_ref3=null!==(_options$firstWeekCon=null==options?void 0:options.firstWeekContainsDate)&&void 0!==_options$firstWeekCon?_options$firstWeekCon:null==options||null===(_options$locale=options.locale)||void 0===_options$locale||null===(_options$locale$optio=_options$locale.options)||void 0===_options$locale$optio?void 0:_options$locale$optio.firstWeekContainsDate)&&void 0!==_ref3?_ref3:defaultOptions.firstWeekContainsDate)&&void 0!==_ref2?_ref2:null===(_defaultOptions$local=defaultOptions.locale)||void 0===_defaultOptions$local||null===(_defaultOptions$local2=_defaultOptions$local.options)||void 0===_defaultOptions$local2?void 0:_defaultOptions$local2.firstWeekContainsDate)&&void 0!==_ref?_ref:1),year=getUTCWeekYear(dirtyDate,options),firstWeek=new Date(0);return firstWeek.setUTCFullYear(year,0,firstWeekContainsDate),firstWeek.setUTCHours(0,0,0,0),startOfUTCWeek(firstWeek,options)}(date,options).getTime();return Math.round(diff/6048e5)+1}function addLeadingZeros(number,targetLength){for(var sign=number<0?"-":"",output=Math.abs(number).toString();output.length<targetLength;)output="0"+output;return sign+output}var formatters$2={y:function y(date,token){var signedYear=date.getUTCFullYear(),year=signedYear>0?signedYear:1-signedYear;return addLeadingZeros("yy"===token?year%100:year,token.length)},M:function M(date,token){var month=date.getUTCMonth();return"M"===token?String(month+1):addLeadingZeros(month+1,2)},d:function d(date,token){return addLeadingZeros(date.getUTCDate(),token.length)},a:function a(date,token){var dayPeriodEnumValue=date.getUTCHours()/12>=1?"pm":"am";switch(token){case"a":case"aa":return dayPeriodEnumValue.toUpperCase();case"aaa":return dayPeriodEnumValue;case"aaaaa":return dayPeriodEnumValue[0];default:return"am"===dayPeriodEnumValue?"a.m.":"p.m."}},h:function h(date,token){return addLeadingZeros(date.getUTCHours()%12||12,token.length)},H:function H(date,token){return addLeadingZeros(date.getUTCHours(),token.length)},m:function m(date,token){return addLeadingZeros(date.getUTCMinutes(),token.length)},s:function s(date,token){return addLeadingZeros(date.getUTCSeconds(),token.length)},S:function S(date,token){var numberOfDigits=token.length,milliseconds=date.getUTCMilliseconds();return addLeadingZeros(Math.floor(milliseconds*Math.pow(10,numberOfDigits-3)),token.length)}},formatters$3=formatters$2,dayPeriodEnum_midnight="midnight",dayPeriodEnum_noon="noon",dayPeriodEnum_morning="morning",dayPeriodEnum_afternoon="afternoon",dayPeriodEnum_evening="evening",dayPeriodEnum_night="night",formatters={G:function G(date,token,localize){var era=date.getUTCFullYear()>0?1:0;switch(token){case"G":case"GG":case"GGG":return localize.era(era,{width:"abbreviated"});case"GGGGG":return localize.era(era,{width:"narrow"});default:return localize.era(era,{width:"wide"})}},y:function y(date,token,localize){if("yo"===token){var signedYear=date.getUTCFullYear(),year=signedYear>0?signedYear:1-signedYear;return localize.ordinalNumber(year,{unit:"year"})}return formatters$3.y(date,token)},Y:function Y(date,token,localize,options){var signedWeekYear=getUTCWeekYear(date,options),weekYear=signedWeekYear>0?signedWeekYear:1-signedWeekYear;return"YY"===token?addLeadingZeros(weekYear%100,2):"Yo"===token?localize.ordinalNumber(weekYear,{unit:"year"}):addLeadingZeros(weekYear,token.length)},R:function R(date,token){return addLeadingZeros(getUTCISOWeekYear(date),token.length)},u:function u(date,token){return addLeadingZeros(date.getUTCFullYear(),token.length)},Q:function Q(date,token,localize){var quarter=Math.ceil((date.getUTCMonth()+1)/3);switch(token){case"Q":return String(quarter);case"QQ":return addLeadingZeros(quarter,2);case"Qo":return localize.ordinalNumber(quarter,{unit:"quarter"});case"QQQ":return localize.quarter(quarter,{width:"abbreviated",context:"formatting"});case"QQQQQ":return localize.quarter(quarter,{width:"narrow",context:"formatting"});default:return localize.quarter(quarter,{width:"wide",context:"formatting"})}},q:function q(date,token,localize){var quarter=Math.ceil((date.getUTCMonth()+1)/3);switch(token){case"q":return String(quarter);case"qq":return addLeadingZeros(quarter,2);case"qo":return localize.ordinalNumber(quarter,{unit:"quarter"});case"qqq":return localize.quarter(quarter,{width:"abbreviated",context:"standalone"});case"qqqqq":return localize.quarter(quarter,{width:"narrow",context:"standalone"});default:return localize.quarter(quarter,{width:"wide",context:"standalone"})}},M:function M(date,token,localize){var month=date.getUTCMonth();switch(token){case"M":case"MM":return formatters$3.M(date,token);case"Mo":return localize.ordinalNumber(month+1,{unit:"month"});case"MMM":return localize.month(month,{width:"abbreviated",context:"formatting"});case"MMMMM":return localize.month(month,{width:"narrow",context:"formatting"});default:return localize.month(month,{width:"wide",context:"formatting"})}},L:function L(date,token,localize){var month=date.getUTCMonth();switch(token){case"L":return String(month+1);case"LL":return addLeadingZeros(month+1,2);case"Lo":return localize.ordinalNumber(month+1,{unit:"month"});case"LLL":return localize.month(month,{width:"abbreviated",context:"standalone"});case"LLLLL":return localize.month(month,{width:"narrow",context:"standalone"});default:return localize.month(month,{width:"wide",context:"standalone"})}},w:function w(date,token,localize,options){var week=getUTCWeek(date,options);return"wo"===token?localize.ordinalNumber(week,{unit:"week"}):addLeadingZeros(week,token.length)},I:function I(date,token,localize){var isoWeek=getUTCISOWeek(date);return"Io"===token?localize.ordinalNumber(isoWeek,{unit:"week"}):addLeadingZeros(isoWeek,token.length)},d:function d(date,token,localize){return"do"===token?localize.ordinalNumber(date.getUTCDate(),{unit:"date"}):formatters$3.d(date,token)},D:function D(date,token,localize){var dayOfYear=function getUTCDayOfYear(dirtyDate){requiredArgs(1,arguments);var date=toDate(dirtyDate),timestamp=date.getTime();date.setUTCMonth(0,1),date.setUTCHours(0,0,0,0);var difference=timestamp-date.getTime();return Math.floor(difference/864e5)+1}(date);return"Do"===token?localize.ordinalNumber(dayOfYear,{unit:"dayOfYear"}):addLeadingZeros(dayOfYear,token.length)},E:function E(date,token,localize){var dayOfWeek=date.getUTCDay();switch(token){case"E":case"EE":case"EEE":return localize.day(dayOfWeek,{width:"abbreviated",context:"formatting"});case"EEEEE":return localize.day(dayOfWeek,{width:"narrow",context:"formatting"});case"EEEEEE":return localize.day(dayOfWeek,{width:"short",context:"formatting"});default:return localize.day(dayOfWeek,{width:"wide",context:"formatting"})}},e:function e(date,token,localize,options){var dayOfWeek=date.getUTCDay(),localDayOfWeek=(dayOfWeek-options.weekStartsOn+8)%7||7;switch(token){case"e":return String(localDayOfWeek);case"ee":return addLeadingZeros(localDayOfWeek,2);case"eo":return localize.ordinalNumber(localDayOfWeek,{unit:"day"});case"eee":return localize.day(dayOfWeek,{width:"abbreviated",context:"formatting"});case"eeeee":return localize.day(dayOfWeek,{width:"narrow",context:"formatting"});case"eeeeee":return localize.day(dayOfWeek,{width:"short",context:"formatting"});default:return localize.day(dayOfWeek,{width:"wide",context:"formatting"})}},c:function c(date,token,localize,options){var dayOfWeek=date.getUTCDay(),localDayOfWeek=(dayOfWeek-options.weekStartsOn+8)%7||7;switch(token){case"c":return String(localDayOfWeek);case"cc":return addLeadingZeros(localDayOfWeek,token.length);case"co":return localize.ordinalNumber(localDayOfWeek,{unit:"day"});case"ccc":return localize.day(dayOfWeek,{width:"abbreviated",context:"standalone"});case"ccccc":return localize.day(dayOfWeek,{width:"narrow",context:"standalone"});case"cccccc":return localize.day(dayOfWeek,{width:"short",context:"standalone"});default:return localize.day(dayOfWeek,{width:"wide",context:"standalone"})}},i:function i(date,token,localize){var dayOfWeek=date.getUTCDay(),isoDayOfWeek=0===dayOfWeek?7:dayOfWeek;switch(token){case"i":return String(isoDayOfWeek);case"ii":return addLeadingZeros(isoDayOfWeek,token.length);case"io":return localize.ordinalNumber(isoDayOfWeek,{unit:"day"});case"iii":return localize.day(dayOfWeek,{width:"abbreviated",context:"formatting"});case"iiiii":return localize.day(dayOfWeek,{width:"narrow",context:"formatting"});case"iiiiii":return localize.day(dayOfWeek,{width:"short",context:"formatting"});default:return localize.day(dayOfWeek,{width:"wide",context:"formatting"})}},a:function a(date,token,localize){var dayPeriodEnumValue=date.getUTCHours()/12>=1?"pm":"am";switch(token){case"a":case"aa":return localize.dayPeriod(dayPeriodEnumValue,{width:"abbreviated",context:"formatting"});case"aaa":return localize.dayPeriod(dayPeriodEnumValue,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return localize.dayPeriod(dayPeriodEnumValue,{width:"narrow",context:"formatting"});default:return localize.dayPeriod(dayPeriodEnumValue,{width:"wide",context:"formatting"})}},b:function b(date,token,localize){var dayPeriodEnumValue,hours=date.getUTCHours();switch(dayPeriodEnumValue=12===hours?dayPeriodEnum_noon:0===hours?dayPeriodEnum_midnight:hours/12>=1?"pm":"am",token){case"b":case"bb":return localize.dayPeriod(dayPeriodEnumValue,{width:"abbreviated",context:"formatting"});case"bbb":return localize.dayPeriod(dayPeriodEnumValue,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return localize.dayPeriod(dayPeriodEnumValue,{width:"narrow",context:"formatting"});default:return localize.dayPeriod(dayPeriodEnumValue,{width:"wide",context:"formatting"})}},B:function B(date,token,localize){var dayPeriodEnumValue,hours=date.getUTCHours();switch(dayPeriodEnumValue=hours>=17?dayPeriodEnum_evening:hours>=12?dayPeriodEnum_afternoon:hours>=4?dayPeriodEnum_morning:dayPeriodEnum_night,token){case"B":case"BB":case"BBB":return localize.dayPeriod(dayPeriodEnumValue,{width:"abbreviated",context:"formatting"});case"BBBBB":return localize.dayPeriod(dayPeriodEnumValue,{width:"narrow",context:"formatting"});default:return localize.dayPeriod(dayPeriodEnumValue,{width:"wide",context:"formatting"})}},h:function h(date,token,localize){if("ho"===token){var hours=date.getUTCHours()%12;return 0===hours&&(hours=12),localize.ordinalNumber(hours,{unit:"hour"})}return formatters$3.h(date,token)},H:function H(date,token,localize){return"Ho"===token?localize.ordinalNumber(date.getUTCHours(),{unit:"hour"}):formatters$3.H(date,token)},K:function K(date,token,localize){var hours=date.getUTCHours()%12;return"Ko"===token?localize.ordinalNumber(hours,{unit:"hour"}):addLeadingZeros(hours,token.length)},k:function k(date,token,localize){var hours=date.getUTCHours();return 0===hours&&(hours=24),"ko"===token?localize.ordinalNumber(hours,{unit:"hour"}):addLeadingZeros(hours,token.length)},m:function m(date,token,localize){return"mo"===token?localize.ordinalNumber(date.getUTCMinutes(),{unit:"minute"}):formatters$3.m(date,token)},s:function s(date,token,localize){return"so"===token?localize.ordinalNumber(date.getUTCSeconds(),{unit:"second"}):formatters$3.s(date,token)},S:function S(date,token){return formatters$3.S(date,token)},X:function X(date,token,_localize,options){var timezoneOffset=(options._originalDate||date).getTimezoneOffset();if(0===timezoneOffset)return"Z";switch(token){case"X":return formatTimezoneWithOptionalMinutes(timezoneOffset);case"XXXX":case"XX":return formatTimezone(timezoneOffset);default:return formatTimezone(timezoneOffset,":")}},x:function x(date,token,_localize,options){var timezoneOffset=(options._originalDate||date).getTimezoneOffset();switch(token){case"x":return formatTimezoneWithOptionalMinutes(timezoneOffset);case"xxxx":case"xx":return formatTimezone(timezoneOffset);default:return formatTimezone(timezoneOffset,":")}},O:function O(date,token,_localize,options){var timezoneOffset=(options._originalDate||date).getTimezoneOffset();switch(token){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(timezoneOffset,":");default:return"GMT"+formatTimezone(timezoneOffset,":")}},z:function z(date,token,_localize,options){var timezoneOffset=(options._originalDate||date).getTimezoneOffset();switch(token){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(timezoneOffset,":");default:return"GMT"+formatTimezone(timezoneOffset,":")}},t:function t(date,token,_localize,options){var originalDate=options._originalDate||date;return addLeadingZeros(Math.floor(originalDate.getTime()/1e3),token.length)},T:function T(date,token,_localize,options){return addLeadingZeros((options._originalDate||date).getTime(),token.length)}};function formatTimezoneShort(offset,dirtyDelimiter){var sign=offset>0?"-":"+",absOffset=Math.abs(offset),hours=Math.floor(absOffset/60),minutes=absOffset%60;if(0===minutes)return sign+String(hours);var delimiter=dirtyDelimiter||"";return sign+String(hours)+delimiter+addLeadingZeros(minutes,2)}function formatTimezoneWithOptionalMinutes(offset,dirtyDelimiter){return offset%60==0?(offset>0?"-":"+")+addLeadingZeros(Math.abs(offset)/60,2):formatTimezone(offset,dirtyDelimiter)}function formatTimezone(offset,dirtyDelimiter){var delimiter=dirtyDelimiter||"",sign=offset>0?"-":"+",absOffset=Math.abs(offset);return sign+addLeadingZeros(Math.floor(absOffset/60),2)+delimiter+addLeadingZeros(absOffset%60,2)}var formatters$1=formatters,dateLongFormatter=function dateLongFormatter(pattern,formatLong){switch(pattern){case"P":return formatLong.date({width:"short"});case"PP":return formatLong.date({width:"medium"});case"PPP":return formatLong.date({width:"long"});default:return formatLong.date({width:"full"})}},timeLongFormatter=function timeLongFormatter(pattern,formatLong){switch(pattern){case"p":return formatLong.time({width:"short"});case"pp":return formatLong.time({width:"medium"});case"ppp":return formatLong.time({width:"long"});default:return formatLong.time({width:"full"})}},longFormatters={p:timeLongFormatter,P:function dateTimeLongFormatter(pattern,formatLong){var dateTimeFormat,matchResult=pattern.match(/(P+)(p+)?/)||[],datePattern=matchResult[1],timePattern=matchResult[2];if(!timePattern)return dateLongFormatter(pattern,formatLong);switch(datePattern){case"P":dateTimeFormat=formatLong.dateTime({width:"short"});break;case"PP":dateTimeFormat=formatLong.dateTime({width:"medium"});break;case"PPP":dateTimeFormat=formatLong.dateTime({width:"long"});break;default:dateTimeFormat=formatLong.dateTime({width:"full"})}return dateTimeFormat.replace("{{date}}",dateLongFormatter(datePattern,formatLong)).replace("{{time}}",timeLongFormatter(timePattern,formatLong))}},longFormatters$1=longFormatters,protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function throwProtectedError(token,format,input){if("YYYY"===token)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format,"`) for formatting years to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===token)throw new RangeError("Use `yy` instead of `YY` (in `".concat(format,"`) for formatting years to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===token)throw new RangeError("Use `d` instead of `D` (in `".concat(format,"`) for formatting days of the month to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===token)throw new RangeError("Use `dd` instead of `DD` (in `".concat(format,"`) for formatting days of the month to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance$1=function formatDistance(token,count,options){var result,tokenValue=formatDistanceLocale[token];return result="string"==typeof tokenValue?tokenValue:1===count?tokenValue.one:tokenValue.other.replace("{{count}}",count.toString()),null!=options&&options.addSuffix?options.comparison&&options.comparison>0?"in "+result:result+" ago":result};function buildFormatLongFn(args){return function(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},width=options.width?String(options.width):args.defaultWidth;return args.formats[width]||args.formats[args.defaultWidth]}}var formatLong={date:buildFormatLongFn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:buildFormatLongFn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative$1=function formatRelative(token,_date,_baseDate,_options){return formatRelativeLocale[token]};function buildLocalizeFn(args){return function(dirtyIndex,options){var valuesArray;if("formatting"===(null!=options&&options.context?String(options.context):"standalone")&&args.formattingValues){var defaultWidth=args.defaultFormattingWidth||args.defaultWidth,width=null!=options&&options.width?String(options.width):defaultWidth;valuesArray=args.formattingValues[width]||args.formattingValues[defaultWidth]}else{var _defaultWidth=args.defaultWidth,_width=null!=options&&options.width?String(options.width):args.defaultWidth;valuesArray=args.values[_width]||args.values[_defaultWidth]}return valuesArray[args.argumentCallback?args.argumentCallback(dirtyIndex):dirtyIndex]}}function buildMatchFn(args){return function(string){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},width=options.width,matchPattern=width&&args.matchPatterns[width]||args.matchPatterns[args.defaultMatchWidth],matchResult=string.match(matchPattern);if(!matchResult)return null;var value,matchedString=matchResult[0],parsePatterns=width&&args.parsePatterns[width]||args.parsePatterns[args.defaultParseWidth],key=Array.isArray(parsePatterns)?function findIndex(array,predicate){for(var key=0;key<array.length;key++)if(predicate(array[key]))return key;return}(parsePatterns,(function(pattern){return pattern.test(matchedString)})):function findKey$1(object,predicate){for(var key in object)if(object.hasOwnProperty(key)&&predicate(object[key]))return key;return}(parsePatterns,(function(pattern){return pattern.test(matchedString)}));return value=args.valueCallback?args.valueCallback(key):key,{value:value=options.valueCallback?options.valueCallback(value):value,rest:string.slice(matchedString.length)}}}var defaultLocale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong,formatRelative:formatRelative$1,localize:{ordinalNumber:function ordinalNumber(dirtyNumber,_options){var number=Number(dirtyNumber),rem100=number%100;if(rem100>20||rem100<10)switch(rem100%10){case 1:return number+"st";case 2:return number+"nd";case 3:return number+"rd"}return number+"th"},era:buildLocalizeFn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:buildLocalizeFn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function argumentCallback(quarter){return quarter-1}}),month:buildLocalizeFn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:buildLocalizeFn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function buildMatchPatternFn(args){return function(string){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},matchResult=string.match(args.matchPattern);if(!matchResult)return null;var matchedString=matchResult[0],parseResult=string.match(args.parsePattern);if(!parseResult)return null;var value=args.valueCallback?args.valueCallback(parseResult[0]):parseResult[0];return{value:value=options.valueCallback?options.valueCallback(value):value,rest:string.slice(matchedString.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function valueCallback(value){return parseInt(value,10)}}),era:buildMatchFn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function valueCallback(index){return index+1}}),month:buildMatchFn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(dirtyDate,dirtyFormatStr,options){var _ref,_options$locale,_ref2,_ref3,_ref4,_options$firstWeekCon,_options$locale2,_options$locale2$opti,_defaultOptions$local,_defaultOptions$local2,_ref5,_ref6,_ref7,_options$weekStartsOn,_options$locale3,_options$locale3$opti,_defaultOptions$local3,_defaultOptions$local4;requiredArgs(2,arguments);var formatStr=String(dirtyFormatStr),defaultOptions=getDefaultOptions(),locale=null!==(_ref=null!==(_options$locale=null==options?void 0:options.locale)&&void 0!==_options$locale?_options$locale:defaultOptions.locale)&&void 0!==_ref?_ref:defaultLocale,firstWeekContainsDate=toInteger(null!==(_ref2=null!==(_ref3=null!==(_ref4=null!==(_options$firstWeekCon=null==options?void 0:options.firstWeekContainsDate)&&void 0!==_options$firstWeekCon?_options$firstWeekCon:null==options||null===(_options$locale2=options.locale)||void 0===_options$locale2||null===(_options$locale2$opti=_options$locale2.options)||void 0===_options$locale2$opti?void 0:_options$locale2$opti.firstWeekContainsDate)&&void 0!==_ref4?_ref4:defaultOptions.firstWeekContainsDate)&&void 0!==_ref3?_ref3:null===(_defaultOptions$local=defaultOptions.locale)||void 0===_defaultOptions$local||null===(_defaultOptions$local2=_defaultOptions$local.options)||void 0===_defaultOptions$local2?void 0:_defaultOptions$local2.firstWeekContainsDate)&&void 0!==_ref2?_ref2:1);if(!(firstWeekContainsDate>=1&&firstWeekContainsDate<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var weekStartsOn=toInteger(null!==(_ref5=null!==(_ref6=null!==(_ref7=null!==(_options$weekStartsOn=null==options?void 0:options.weekStartsOn)&&void 0!==_options$weekStartsOn?_options$weekStartsOn:null==options||null===(_options$locale3=options.locale)||void 0===_options$locale3||null===(_options$locale3$opti=_options$locale3.options)||void 0===_options$locale3$opti?void 0:_options$locale3$opti.weekStartsOn)&&void 0!==_ref7?_ref7:defaultOptions.weekStartsOn)&&void 0!==_ref6?_ref6:null===(_defaultOptions$local3=defaultOptions.locale)||void 0===_defaultOptions$local3||null===(_defaultOptions$local4=_defaultOptions$local3.options)||void 0===_defaultOptions$local4?void 0:_defaultOptions$local4.weekStartsOn)&&void 0!==_ref5?_ref5:0);if(!(weekStartsOn>=0&&weekStartsOn<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!locale.localize)throw new RangeError("locale must contain localize property");if(!locale.formatLong)throw new RangeError("locale must contain formatLong property");var originalDate=toDate(dirtyDate);if(!isValid(originalDate))throw new RangeError("Invalid time value");var timezoneOffset=function getTimezoneOffsetInMilliseconds(date){var utcDate=new Date(Date.UTC(date.getFullYear(),date.getMonth(),date.getDate(),date.getHours(),date.getMinutes(),date.getSeconds(),date.getMilliseconds()));return utcDate.setUTCFullYear(date.getFullYear()),date.getTime()-utcDate.getTime()}(originalDate),utcDate=subMilliseconds(originalDate,timezoneOffset),formatterOptions={firstWeekContainsDate:firstWeekContainsDate,weekStartsOn:weekStartsOn,locale:locale,_originalDate:originalDate};return formatStr.match(longFormattingTokensRegExp).map((function(substring){var firstCharacter=substring[0];return"p"===firstCharacter||"P"===firstCharacter?(0,longFormatters$1[firstCharacter])(substring,locale.formatLong):substring})).join("").match(formattingTokensRegExp).map((function(substring){if("''"===substring)return"'";var firstCharacter=substring[0];if("'"===firstCharacter)return function cleanEscapedString(input){var matched=input.match(escapedStringRegExp);if(!matched)return input;return matched[1].replace(doubleQuoteRegExp,"'")}(substring);var formatter=formatters$1[firstCharacter];if(formatter)return null!=options&&options.useAdditionalWeekYearTokens||!function isProtectedWeekYearToken(token){return-1!==protectedWeekYearTokens.indexOf(token)}(substring)||throwProtectedError(substring,dirtyFormatStr,String(dirtyDate)),null!=options&&options.useAdditionalDayOfYearTokens||!function isProtectedDayOfYearToken(token){return-1!==protectedDayOfYearTokens.indexOf(token)}(substring)||throwProtectedError(substring,dirtyFormatStr,String(dirtyDate)),formatter(utcDate,substring,locale.localize,formatterOptions);if(firstCharacter.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+firstCharacter+"`");return substring})).join("")}function parseISO(argument,options){var _options$additionalDi;requiredArgs(1,arguments);var additionalDigits=toInteger(null!==(_options$additionalDi=null==options?void 0:options.additionalDigits)&&void 0!==_options$additionalDi?_options$additionalDi:2);if(2!==additionalDigits&&1!==additionalDigits&&0!==additionalDigits)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof argument&&"[object String]"!==Object.prototype.toString.call(argument))return new Date(NaN);var date,dateStrings=function splitDateString(dateString){var timeString,dateStrings={},array=dateString.split(patterns.dateTimeDelimiter);if(array.length>2)return dateStrings;/:/.test(array[0])?timeString=array[0]:(dateStrings.date=array[0],timeString=array[1],patterns.timeZoneDelimiter.test(dateStrings.date)&&(dateStrings.date=dateString.split(patterns.timeZoneDelimiter)[0],timeString=dateString.substr(dateStrings.date.length,dateString.length)));if(timeString){var token=patterns.timezone.exec(timeString);token?(dateStrings.time=timeString.replace(token[1],""),dateStrings.timezone=token[1]):dateStrings.time=timeString}return dateStrings}(argument);if(dateStrings.date){var parseYearResult=function parseYear(dateString,additionalDigits){var regex=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+additionalDigits)+"})|(\\d{2}|[+-]\\d{"+(2+additionalDigits)+"})$)"),captures=dateString.match(regex);if(!captures)return{year:NaN,restDateString:""};var year=captures[1]?parseInt(captures[1]):null,century=captures[2]?parseInt(captures[2]):null;return{year:null===century?year:100*century,restDateString:dateString.slice((captures[1]||captures[2]).length)}}(dateStrings.date,additionalDigits);date=function parseDate(dateString,year){if(null===year)return new Date(NaN);var captures=dateString.match(dateRegex);if(!captures)return new Date(NaN);var isWeekDate=!!captures[4],dayOfYear=parseDateUnit(captures[1]),month=parseDateUnit(captures[2])-1,day=parseDateUnit(captures[3]),week=parseDateUnit(captures[4]),dayOfWeek=parseDateUnit(captures[5])-1;if(isWeekDate)return function validateWeekDate(_year,week,day){return week>=1&&week<=53&&day>=0&&day<=6}(0,week,dayOfWeek)?function dayOfISOWeekYear(isoWeekYear,week,day){var date=new Date(0);date.setUTCFullYear(isoWeekYear,0,4);var fourthOfJanuaryDay=date.getUTCDay()||7,diff=7*(week-1)+day+1-fourthOfJanuaryDay;return date.setUTCDate(date.getUTCDate()+diff),date}(year,week,dayOfWeek):new Date(NaN);var date=new Date(0);return function validateDate(year,month,date){return month>=0&&month<=11&&date>=1&&date<=(daysInMonths[month]||(isLeapYearIndex(year)?29:28))}(year,month,day)&&function validateDayOfYearDate(year,dayOfYear){return dayOfYear>=1&&dayOfYear<=(isLeapYearIndex(year)?366:365)}(year,dayOfYear)?(date.setUTCFullYear(year,month,Math.max(dayOfYear,day)),date):new Date(NaN)}(parseYearResult.restDateString,parseYearResult.year)}if(!date||isNaN(date.getTime()))return new Date(NaN);var offset,timestamp=date.getTime(),time=0;if(dateStrings.time&&(time=function parseTime(timeString){var captures=timeString.match(timeRegex);if(!captures)return NaN;var hours=parseTimeUnit(captures[1]),minutes=parseTimeUnit(captures[2]),seconds=parseTimeUnit(captures[3]);if(!function validateTime(hours,minutes,seconds){if(24===hours)return 0===minutes&&0===seconds;return seconds>=0&&seconds<60&&minutes>=0&&minutes<60&&hours>=0&&hours<25}(hours,minutes,seconds))return NaN;return 36e5*hours+6e4*minutes+1e3*seconds}(dateStrings.time),isNaN(time)))return new Date(NaN);if(!dateStrings.timezone){var dirtyDate=new Date(timestamp+time),result=new Date(0);return result.setFullYear(dirtyDate.getUTCFullYear(),dirtyDate.getUTCMonth(),dirtyDate.getUTCDate()),result.setHours(dirtyDate.getUTCHours(),dirtyDate.getUTCMinutes(),dirtyDate.getUTCSeconds(),dirtyDate.getUTCMilliseconds()),result}return offset=function parseTimezone(timezoneString){if("Z"===timezoneString)return 0;var captures=timezoneString.match(timezoneRegex);if(!captures)return 0;var sign="+"===captures[1]?-1:1,hours=parseInt(captures[2]),minutes=captures[3]&&parseInt(captures[3])||0;if(!function validateTimezone(_hours,minutes){return minutes>=0&&minutes<=59}(0,minutes))return NaN;return sign*(36e5*hours+6e4*minutes)}(dateStrings.timezone),isNaN(offset)?new Date(NaN):new Date(timestamp+time+offset)}var patterns={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dateRegex=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,timeRegex=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,timezoneRegex=/^([+-])(\d{2})(?::?(\d{2}))?$/;function parseDateUnit(value){return value?parseInt(value):1}function parseTimeUnit(value){return value&&parseFloat(value.replace(",","."))||0}var daysInMonths=[31,null,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(year){return year%400==0||year%4==0&&year%100!=0}class SaveFiles{utility;environment;constructor(environment,utility){this.environment=environment,this.utility=utility}salvaArquivos(xmlConsulta,responseInJson,xmlRetorno,metodo,xmlFormated,options){const config=this.environment.getConfig();let dateAndTimeInFileName=config.dfe.incluirTimestampNoNomeDosArquivos;const{armazenarXMLConsultaComTagSoap:armazenarXMLConsultaComTagSoap}=this.environment.config.dfe,xmlConsultaASalvar=armazenarXMLConsultaComTagSoap?xmlFormated:xmlConsulta,salvarArquivo=(data,prefix,path,fileType)=>{const fileName=(prefix=>{const dtaTime=dateAndTimeInFileName?`-${format(new Date,"dd-MM-yyyy-HHmm")}`:"";return`${metodo}${prefix?`-${prefix}`:""}${responseInJson&&responseInJson.chNFe?`-${responseInJson.chNFe}`:""}${dtaTime}`})(prefix),method="xml"===fileType?"salvaXML":"salvaJSON";this.utility[method]({data:data||"",fileName:fileName,metodo:metodo,path:path})};config.dfe.armazenarXMLConsulta&&salvarArquivo(xmlConsultaASalvar,"consulta",config.dfe.pathXMLConsulta,"xml"),config.dfe.armazenarXMLRetorno&&salvarArquivo(xmlRetorno.data,"retorno",config.dfe.pathXMLRetorno,"xml"),config.dfe.armazenarRetornoEmJSON&&salvarArquivo(responseInJson,void 0,config.dfe.pathRetornoEmJSON,"json")}}function bind(fn,thisArg){return function wrap(){return fn.apply(thisArg,arguments)}}const{toString:toString$2}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,kindOf=(cache=Object.create(null),thing=>{const str=toString$2.call(thing);return cache[str]||(cache[str]=str.slice(8,-1).toLowerCase())});var cache;const kindOfTest=type=>(type=type.toLowerCase(),thing=>kindOf(thing)===type),typeOfTest=type=>thing=>typeof thing===type,{isArray:isArray}=Array,isUndefined=typeOfTest("undefined");const isArrayBuffer=kindOfTest("ArrayBuffer");const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=thing=>null!==thing&&"object"==typeof thing,isPlainObject=val=>{if("object"!==kindOf(val))return!1;const prototype=getPrototypeOf(val);return!(null!==prototype&&prototype!==Object.prototype&&null!==Object.getPrototypeOf(prototype)||Symbol.toStringTag in val||Symbol.iterator in val)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);function forEach(obj,fn,{allOwnKeys:allOwnKeys=!1}={}){if(null==obj)return;let i,l;if("object"!=typeof obj&&(obj=[obj]),isArray(obj))for(i=0,l=obj.length;i<l;i++)fn.call(null,obj[i],i,obj);else{const keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj),len=keys.length;let key;for(i=0;i<len;i++)key=keys[i],fn.call(null,obj[key],key,obj)}}function findKey(obj,key){key=key.toLowerCase();const keys=Object.keys(obj);let _key,i=keys.length;for(;i-- >0;)if(_key=keys[i],key===_key.toLowerCase())return _key;return null}const _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=context=>!isUndefined(context)&&context!==_global;const isTypedArray=(TypedArray="undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array),thing=>TypedArray&&thing instanceof TypedArray);var TypedArray;const isHTMLForm=kindOfTest("HTMLFormElement"),hasOwnProperty=(({hasOwnProperty:hasOwnProperty})=>(obj,prop)=>hasOwnProperty.call(obj,prop))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(obj,reducer)=>{const descriptors=Object.getOwnPropertyDescriptors(obj),reducedDescriptors={};forEach(descriptors,((descriptor,name)=>{let ret;!1!==(ret=reducer(descriptor,name,obj))&&(reducedDescriptors[name]=ret||descriptor)})),Object.defineProperties(obj,reducedDescriptors)};const isAsyncFn=kindOfTest("AsyncFunction"),_setImmediate=(setImmediateSupported="function"==typeof setImmediate,postMessageSupported=isFunction(_global.postMessage),setImmediateSupported?setImmediate:postMessageSupported?(token=`axios@${Math.random()}`,callbacks=[],_global.addEventListener("message",(({source:source,data:data})=>{source===_global&&data===token&&callbacks.length&&callbacks.shift()()}),!1),cb=>{callbacks.push(cb),_global.postMessage(token,"*")}):cb=>setTimeout(cb));var setImmediateSupported,postMessageSupported,token,callbacks;const asap="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global):"undefined"!=typeof process&&process.nextTick||_setImmediate;var utils$3={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:function isBuffer(val){return null!==val&&!isUndefined(val)&&null!==val.constructor&&!isUndefined(val.constructor)&&isFunction(val.constructor.isBuffer)&&val.constructor.isBuffer(val)},isFormData:thing=>{let kind;return thing&&("function"==typeof FormData&&thing instanceof FormData||isFunction(thing.append)&&("formdata"===(kind=kindOf(thing))||"object"===kind&&isFunction(thing.toString)&&"[object FormData]"===thing.toString()))},isArrayBufferView:function isArrayBufferView(val){let result;return result="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(val):val&&val.buffer&&isArrayBuffer(val.buffer),result},isString:isString,isNumber:isNumber,isBoolean:thing=>!0===thing||!1===thing,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:val=>isObject(val)&&isFunction(val.pipe),isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:function merge(){const{caseless:caseless}=isContextDefined(this)&&this||{},result={},assignValue=(val,key)=>{const targetKey=caseless&&findKey(result,key)||key;isPlainObject(result[targetKey])&&isPlainObject(val)?result[targetKey]=merge(result[targetKey],val):isPlainObject(val)?result[targetKey]=merge({},val):isArray(val)?result[targetKey]=val.slice():result[targetKey]=val};for(let i=0,l=arguments.length;i<l;i++)arguments[i]&&forEach(arguments[i],assignValue);return result},extend:(a,b,thisArg,{allOwnKeys:allOwnKeys}={})=>(forEach(b,((val,key)=>{thisArg&&isFunction(val)?a[key]=bind(val,thisArg):a[key]=val}),{allOwnKeys:allOwnKeys}),a),trim:str=>str.trim?str.trim():str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:content=>(65279===content.charCodeAt(0)&&(content=content.slice(1)),content),inherits:(constructor,superConstructor,props,descriptors)=>{constructor.prototype=Object.create(superConstructor.prototype,descriptors),constructor.prototype.constructor=constructor,Object.defineProperty(constructor,"super",{value:superConstructor.prototype}),props&&Object.assign(constructor.prototype,props)},toFlatObject:(sourceObj,destObj,filter,propFilter)=>{let props,i,prop;const merged={};if(destObj=destObj||{},null==sourceObj)return destObj;do{for(props=Object.getOwnPropertyNames(sourceObj),i=props.length;i-- >0;)prop=props[i],propFilter&&!propFilter(prop,sourceObj,destObj)||merged[prop]||(destObj[prop]=sourceObj[prop],merged[prop]=!0);sourceObj=!1!==filter&&getPrototypeOf(sourceObj)}while(sourceObj&&(!filter||filter(sourceObj,destObj))&&sourceObj!==Object.prototype);return destObj},kindOf:kindOf,kindOfTest:kindOfTest,endsWith:(str,searchString,position)=>{str=String(str),(void 0===position||position>str.length)&&(position=str.length),position-=searchString.length;const lastIndex=str.indexOf(searchString,position);return-1!==lastIndex&&lastIndex===position},toArray:thing=>{if(!thing)return null;if(isArray(thing))return thing;let i=thing.length;if(!isNumber(i))return null;const arr=new Array(i);for(;i-- >0;)arr[i]=thing[i];return arr},forEachEntry:(obj,fn)=>{const iterator=(obj&&obj[Symbol.iterator]).call(obj);let result;for(;(result=iterator.next())&&!result.done;){const pair=result.value;fn.call(obj,pair[0],pair[1])}},matchAll:(regExp,str)=>{let matches;const arr=[];for(;null!==(matches=regExp.exec(str));)arr.push(matches);return arr},isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:obj=>{reduceDescriptors(obj,((descriptor,name)=>{if(isFunction(obj)&&-1!==["arguments","caller","callee"].indexOf(name))return!1;const value=obj[name];isFunction(value)&&(descriptor.enumerable=!1,"writable"in descriptor?descriptor.writable=!1:descriptor.set||(descriptor.set=()=>{throw Error("Can not rewrite read-only method '"+name+"'")}))}))},toObjectSet:(arrayOrString,delimiter)=>{const obj={},define=arr=>{arr.forEach((value=>{obj[value]=!0}))};return isArray(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter)),obj},toCamelCase:str=>str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function replacer(m,p1,p2){return p1.toUpperCase()+p2})),noop:()=>{},toFiniteNumber:(value,defaultValue)=>null!=value&&Number.isFinite(value=+value)?value:defaultValue,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&"FormData"===thing[Symbol.toStringTag]&&thing[Symbol.iterator])},toJSONObject:obj=>{const stack=new Array(10),visit=(source,i)=>{if(isObject(source)){if(stack.indexOf(source)>=0)return;if(!("toJSON"in source)){stack[i]=source;const target=isArray(source)?[]:{};return forEach(source,((value,key)=>{const reducedValue=visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue)})),stack[i]=void 0,target}}return source};return visit(obj,0)},isAsyncFn:isAsyncFn,isThenable:thing=>thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing.catch),setImmediate:_setImmediate,asap:asap};function AxiosError(message,code,config,request,response){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=message,this.name="AxiosError",code&&(this.code=code),config&&(this.config=config),request&&(this.request=request),response&&(this.response=response,this.status=response.status?response.status:null)}utils$3.inherits(AxiosError,Error,{toJSON:function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$3.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};var delayed_stream,hasRequiredDelayed_stream,combined_stream,hasRequiredCombined_stream;function requireCombined_stream(){if(hasRequiredCombined_stream)return combined_stream;hasRequiredCombined_stream=1;var util=require$$0__default$3.default,Stream=require$$0__default$2.default.Stream,DelayedStream=function requireDelayed_stream(){if(hasRequiredDelayed_stream)return delayed_stream;hasRequiredDelayed_stream=1;var Stream=require$$0__default$2.default.Stream,util=require$$0__default$3.default;function DelayedStream(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}return delayed_stream=DelayedStream,util.inherits(DelayedStream,Stream),DelayedStream.create=function(source,options){var delayedStream=new this;for(var option in options=options||{})delayedStream[option]=options[option];delayedStream.source=source;var realEmit=source.emit;return source.emit=function(){return delayedStream._handleEmit(arguments),realEmit.apply(source,arguments)},source.on("error",(function(){})),delayedStream.pauseStream&&source.pause(),delayedStream},Object.defineProperty(DelayedStream.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},DelayedStream.prototype.resume=function(){this._released||this.release(),this.source.resume()},DelayedStream.prototype.pause=function(){this.source.pause()},DelayedStream.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(args){this.emit.apply(this,args)}.bind(this)),this._bufferedEvents=[]},DelayedStream.prototype.pipe=function(){var r=Stream.prototype.pipe.apply(this,arguments);return this.resume(),r},DelayedStream.prototype._handleEmit=function(args){this._released?this.emit.apply(this,args):("data"===args[0]&&(this.dataSize+=args[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(args))},DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var message="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(message))}},delayed_stream}();function CombinedStream(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}return combined_stream=CombinedStream,util.inherits(CombinedStream,Stream),CombinedStream.create=function(options){var combinedStream=new this;for(var option in options=options||{})combinedStream[option]=options[option];return combinedStream},CombinedStream.isStreamLike=function(stream){return"function"!=typeof stream&&"string"!=typeof stream&&"boolean"!=typeof stream&&"number"!=typeof stream&&!Buffer.isBuffer(stream)},CombinedStream.prototype.append=function(stream){if(CombinedStream.isStreamLike(stream)){if(!(stream instanceof DelayedStream)){var newStream=DelayedStream.create(stream,{maxDataSize:1/0,pauseStream:this.pauseStreams});stream.on("data",this._checkDataSize.bind(this)),stream=newStream}this._handleErrors(stream),this.pauseStreams&&stream.pause()}return this._streams.push(stream),this},CombinedStream.prototype.pipe=function(dest,options){return Stream.prototype.pipe.call(this,dest,options),this.resume(),dest},CombinedStream.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},CombinedStream.prototype._realGetNext=function(){var stream=this._streams.shift();void 0!==stream?"function"==typeof stream?stream(function(stream){CombinedStream.isStreamLike(stream)&&(stream.on("data",this._checkDataSize.bind(this)),this._handleErrors(stream)),this._pipeNext(stream)}.bind(this)):this._pipeNext(stream):this.end()},CombinedStream.prototype._pipeNext=function(stream){if(this._currentStream=stream,CombinedStream.isStreamLike(stream))return stream.on("end",this._getNext.bind(this)),void stream.pipe(this,{end:!1});var value=stream;this.write(value),this._getNext()},CombinedStream.prototype._handleErrors=function(stream){var self=this;stream.on("error",(function(err){self._emitError(err)}))},CombinedStream.prototype.write=function(data){this.emit("data",data)},CombinedStream.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},CombinedStream.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},CombinedStream.prototype.end=function(){this._reset(),this.emit("end")},CombinedStream.prototype.destroy=function(){this._reset(),this.emit("close")},CombinedStream.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},CombinedStream.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var message="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(message))}},CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var self=this;this._streams.forEach((function(stream){stream.dataSize&&(self.dataSize+=stream.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},CombinedStream.prototype._emitError=function(err){this._reset(),this.emit("error",err)},combined_stream}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((code=>{descriptors[code]={value:code}})),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(error,code,config,request,response,customProps)=>{const axiosError=Object.create(prototype$1);return utils$3.toFlatObject(error,axiosError,(function filter(obj){return obj!==Error.prototype}),(prop=>"isAxiosError"!==prop)),AxiosError.call(axiosError,error.message,code,config,request,response),axiosError.cause=error,axiosError.name=error.name,customProps&&Object.assign(axiosError,customProps),axiosError};var mimeDb,hasRequiredMimeDb,hasRequiredMimeTypes$1,defer_1,hasRequiredDefer,async_1,hasRequiredAsync,abort_1,hasRequiredAbort,iterate_1,hasRequiredIterate,state_1,hasRequiredState,terminator_1,hasRequiredTerminator,parallel_1,hasRequiredParallel,mimeTypes={},require$$0$1={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};function requireMimeTypes$1(){return hasRequiredMimeTypes$1||(hasRequiredMimeTypes$1=1,function(exports){var db=function requireMimeDb(){return hasRequiredMimeDb?mimeDb:(hasRequiredMimeDb=1,mimeDb=require$$0$1)}
2
+ /*! http://mths.be/fromcodepoint v0.1.0 by @mathias */,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){!function flushBuffers(parser){closeText(parser),""!==parser.cdata&&(emitNode(parser,"oncdata",parser.cdata),parser.cdata=""),""!==parser.script&&(emitNode(parser,"onscript",parser.script),parser.script="")}(this)}};try{Stream=require("stream").Stream}catch(ex){Stream=function(){}}Stream||(Stream=function(){});var streamWraps=sax.EVENTS.filter((function(ev){return"error"!==ev&&"end"!==ev}));function SAXStream(strict,opt){if(!(this instanceof SAXStream))return new SAXStream(strict,opt);Stream.apply(this),this._parser=new SAXParser(strict,opt),this.writable=!0,this.readable=!0;var me=this;this._parser.onend=function(){me.emit("end")},this._parser.onerror=function(er){me.emit("error",er),me._parser.error=null},this._decoder=null,streamWraps.forEach((function(ev){Object.defineProperty(me,"on"+ev,{get:function(){return me._parser["on"+ev]},set:function(h){if(!h)return me.removeAllListeners(ev),me._parser["on"+ev]=h,h;me.on(ev,h)},enumerable:!0,configurable:!1})}))}SAXStream.prototype=Object.create(Stream.prototype,{constructor:{value:SAXStream}}),SAXStream.prototype.write=function(data){if("function"==typeof Buffer&&"function"==typeof Buffer.isBuffer&&Buffer.isBuffer(data)){if(!this._decoder){var SD=require$$1__default.default.StringDecoder;this._decoder=new SD("utf8")}data=this._decoder.write(data)}return this._parser.write(data.toString()),this.emit("data",data),!0},SAXStream.prototype.end=function(chunk){return chunk&&chunk.length&&this.write(chunk),this._parser.end(),!0},SAXStream.prototype.on=function(ev,handler){var me=this;return me._parser["on"+ev]||-1===streamWraps.indexOf(ev)||(me._parser["on"+ev]=function(){var args=1===arguments.length?[arguments[0]]:Array.apply(null,arguments);args.splice(0,0,ev),me.emit.apply(me,args)}),Stream.prototype.on.call(me,ev,handler)};var CDATA="[CDATA[",DOCTYPE="DOCTYPE",XML_NAMESPACE="http://www.w3.org/XML/1998/namespace",XMLNS_NAMESPACE="http://www.w3.org/2000/xmlns/",rootNS={xml:XML_NAMESPACE,xmlns:XMLNS_NAMESPACE},nameStart=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,nameBody=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,entityStart=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,entityBody=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function isWhitespace(c){return" "===c||"\n"===c||"\r"===c||"\t"===c}function isQuote(c){return'"'===c||"'"===c}function isAttribEnd(c){return">"===c||isWhitespace(c)}function isMatch(regex,c){return regex.test(c)}function notMatch(regex,c){return!isMatch(regex,c)}var stringFromCharCode,floor,fromCodePoint,S=0;for(var s in sax.STATE={BEGIN:S++,BEGIN_WHITESPACE:S++,TEXT:S++,TEXT_ENTITY:S++,OPEN_WAKA:S++,SGML_DECL:S++,SGML_DECL_QUOTED:S++,DOCTYPE:S++,DOCTYPE_QUOTED:S++,DOCTYPE_DTD:S++,DOCTYPE_DTD_QUOTED:S++,COMMENT_STARTING:S++,COMMENT:S++,COMMENT_ENDING:S++,COMMENT_ENDED:S++,CDATA:S++,CDATA_ENDING:S++,CDATA_ENDING_2:S++,PROC_INST:S++,PROC_INST_BODY:S++,PROC_INST_ENDING:S++,OPEN_TAG:S++,OPEN_TAG_SLASH:S++,ATTRIB:S++,ATTRIB_NAME:S++,ATTRIB_NAME_SAW_WHITE:S++,ATTRIB_VALUE:S++,ATTRIB_VALUE_QUOTED:S++,ATTRIB_VALUE_CLOSED:S++,ATTRIB_VALUE_UNQUOTED:S++,ATTRIB_VALUE_ENTITY_Q:S++,ATTRIB_VALUE_ENTITY_U:S++,CLOSE_TAG:S++,CLOSE_TAG_SAW_WHITE:S++,SCRIPT:S++,SCRIPT_ENDING:S++},sax.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},sax.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(sax.ENTITIES).forEach((function(key){var e=sax.ENTITIES[key],s="number"==typeof e?String.fromCharCode(e):e;sax.ENTITIES[key]=s})),sax.STATE)sax.STATE[sax.STATE[s]]=s;function emit(parser,event,data){parser[event]&&parser[event](data)}function emitNode(parser,nodeType,data){parser.textNode&&closeText(parser),emit(parser,nodeType,data)}function closeText(parser){parser.textNode=textopts(parser.opt,parser.textNode),parser.textNode&&emit(parser,"ontext",parser.textNode),parser.textNode=""}function textopts(opt,text){return opt.trim&&(text=text.trim()),opt.normalize&&(text=text.replace(/\s+/g," ")),text}function error(parser,er){return closeText(parser),parser.trackPosition&&(er+="\nLine: "+parser.line+"\nColumn: "+parser.column+"\nChar: "+parser.c),er=new Error(er),parser.error=er,emit(parser,"onerror",er),parser}function end(parser){return parser.sawRoot&&!parser.closedRoot&&strictFail(parser,"Unclosed root tag"),parser.state!==S.BEGIN&&parser.state!==S.BEGIN_WHITESPACE&&parser.state!==S.TEXT&&error(parser,"Unexpected end"),closeText(parser),parser.c="",parser.closed=!0,emit(parser,"onend"),SAXParser.call(parser,parser.strict,parser.opt),parser}function strictFail(parser,message){if("object"!=typeof parser||!(parser instanceof SAXParser))throw new Error("bad call to strictFail");parser.strict&&error(parser,message)}function newTag(parser){parser.strict||(parser.tagName=parser.tagName[parser.looseCase]());var parent=parser.tags[parser.tags.length-1]||parser,tag=parser.tag={name:parser.tagName,attributes:{}};parser.opt.xmlns&&(tag.ns=parent.ns),parser.attribList.length=0,emitNode(parser,"onopentagstart",tag)}function qname(name,attribute){var qualName=name.indexOf(":")<0?["",name]:name.split(":"),prefix=qualName[0],local=qualName[1];return attribute&&"xmlns"===name&&(prefix="xmlns",local=""),{prefix:prefix,local:local}}function attrib(parser){if(parser.strict||(parser.attribName=parser.attribName[parser.looseCase]()),-1!==parser.attribList.indexOf(parser.attribName)||parser.tag.attributes.hasOwnProperty(parser.attribName))parser.attribName=parser.attribValue="";else{if(parser.opt.xmlns){var qn=qname(parser.attribName,!0),prefix=qn.prefix,local=qn.local;if("xmlns"===prefix)if("xml"===local&&parser.attribValue!==XML_NAMESPACE)strictFail(parser,"xml: prefix must be bound to "+XML_NAMESPACE+"\nActual: "+parser.attribValue);else if("xmlns"===local&&parser.attribValue!==XMLNS_NAMESPACE)strictFail(parser,"xmlns: prefix must be bound to "+XMLNS_NAMESPACE+"\nActual: "+parser.attribValue);else{var tag=parser.tag,parent=parser.tags[parser.tags.length-1]||parser;tag.ns===parent.ns&&(tag.ns=Object.create(parent.ns)),tag.ns[local]=parser.attribValue}parser.attribList.push([parser.attribName,parser.attribValue])}else parser.tag.attributes[parser.attribName]=parser.attribValue,emitNode(parser,"onattribute",{name:parser.attribName,value:parser.attribValue});parser.attribName=parser.attribValue=""}}function openTag(parser,selfClosing){if(parser.opt.xmlns){var tag=parser.tag,qn=qname(parser.tagName);tag.prefix=qn.prefix,tag.local=qn.local,tag.uri=tag.ns[qn.prefix]||"",tag.prefix&&!tag.uri&&(strictFail(parser,"Unbound namespace prefix: "+JSON.stringify(parser.tagName)),tag.uri=qn.prefix);var parent=parser.tags[parser.tags.length-1]||parser;tag.ns&&parent.ns!==tag.ns&&Object.keys(tag.ns).forEach((function(p){emitNode(parser,"onopennamespace",{prefix:p,uri:tag.ns[p]})}));for(var i=0,l=parser.attribList.length;i<l;i++){var nv=parser.attribList[i],name=nv[0],value=nv[1],qualName=qname(name,!0),prefix=qualName.prefix,local=qualName.local,uri=""===prefix?"":tag.ns[prefix]||"",a={name:name,value:value,prefix:prefix,local:local,uri:uri};prefix&&"xmlns"!==prefix&&!uri&&(strictFail(parser,"Unbound namespace prefix: "+JSON.stringify(prefix)),a.uri=prefix),parser.tag.attributes[name]=a,emitNode(parser,"onattribute",a)}parser.attribList.length=0}parser.tag.isSelfClosing=!!selfClosing,parser.sawRoot=!0,parser.tags.push(parser.tag),emitNode(parser,"onopentag",parser.tag),selfClosing||(parser.noscript||"script"!==parser.tagName.toLowerCase()?parser.state=S.TEXT:parser.state=S.SCRIPT,parser.tag=null,parser.tagName=""),parser.attribName=parser.attribValue="",parser.attribList.length=0}function closeTag(parser){if(!parser.tagName)return strictFail(parser,"Weird empty close tag."),parser.textNode+="</>",void(parser.state=S.TEXT);if(parser.script){if("script"!==parser.tagName)return parser.script+="</"+parser.tagName+">",parser.tagName="",void(parser.state=S.SCRIPT);emitNode(parser,"onscript",parser.script),parser.script=""}var t=parser.tags.length,tagName=parser.tagName;parser.strict||(tagName=tagName[parser.looseCase]());for(var closeTo=tagName;t--&&parser.tags[t].name!==closeTo;)strictFail(parser,"Unexpected close tag");if(t<0)return strictFail(parser,"Unmatched closing tag: "+parser.tagName),parser.textNode+="</"+parser.tagName+">",void(parser.state=S.TEXT);parser.tagName=tagName;for(var s=parser.tags.length;s-- >t;){var tag=parser.tag=parser.tags.pop();parser.tagName=parser.tag.name,emitNode(parser,"onclosetag",parser.tagName);var x={};for(var i in tag.ns)x[i]=tag.ns[i];var parent=parser.tags[parser.tags.length-1]||parser;parser.opt.xmlns&&tag.ns!==parent.ns&&Object.keys(tag.ns).forEach((function(p){var n=tag.ns[p];emitNode(parser,"onclosenamespace",{prefix:p,uri:n})}))}0===t&&(parser.closedRoot=!0),parser.tagName=parser.attribValue=parser.attribName="",parser.attribList.length=0,parser.state=S.TEXT}function parseEntity(parser){var num,entity=parser.entity,entityLC=entity.toLowerCase(),numStr="";return parser.ENTITIES[entity]?parser.ENTITIES[entity]:parser.ENTITIES[entityLC]?parser.ENTITIES[entityLC]:("#"===(entity=entityLC).charAt(0)&&("x"===entity.charAt(1)?(entity=entity.slice(2),numStr=(num=parseInt(entity,16)).toString(16)):(entity=entity.slice(1),numStr=(num=parseInt(entity,10)).toString(10))),entity=entity.replace(/^0+/,""),isNaN(num)||numStr.toLowerCase()!==entity?(strictFail(parser,"Invalid character entity"),"&"+parser.entity+";"):String.fromCodePoint(num))}function beginWhiteSpace(parser,c){"<"===c?(parser.state=S.OPEN_WAKA,parser.startTagPosition=parser.position):isWhitespace(c)||(strictFail(parser,"Non-whitespace before first tag."),parser.textNode=c,parser.state=S.TEXT)}function charAt(chunk,i){var result="";return i<chunk.length&&(result=chunk.charAt(i)),result}S=sax.STATE,String.fromCodePoint||(stringFromCharCode=String.fromCharCode,floor=Math.floor,fromCodePoint=function(){var highSurrogate,lowSurrogate,codeUnits=[],index=-1,length=arguments.length;if(!length)return"";for(var result="";++index<length;){var codePoint=Number(arguments[index]);if(!isFinite(codePoint)||codePoint<0||codePoint>1114111||floor(codePoint)!==codePoint)throw RangeError("Invalid code point: "+codePoint);codePoint<=65535?codeUnits.push(codePoint):(highSurrogate=55296+((codePoint-=65536)>>10),lowSurrogate=codePoint%1024+56320,codeUnits.push(highSurrogate,lowSurrogate)),(index+1===length||codeUnits.length>16384)&&(result+=stringFromCharCode.apply(null,codeUnits),codeUnits.length=0)}return result},Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:fromCodePoint,configurable:!0,writable:!0}):String.fromCodePoint=fromCodePoint)}(sax$1)),sax$1}var hasRequiredBom,bom={};function requireBom(){return hasRequiredBom||(hasRequiredBom=1,function(){bom.stripBOM=function(str){return"\ufeff"===str[0]?str.substring(1):str}}.call(bom)),bom}var hasRequiredProcessors,hasRequiredParser$1,hasRequiredXml2js$1,processors={};function requireProcessors(){return hasRequiredProcessors||(hasRequiredProcessors=1,function(){var prefixMatch;prefixMatch=new RegExp(/(?!xmlns)^.*:/),processors.normalize=function(str){return str.toLowerCase()},processors.firstCharLowerCase=function(str){return str.charAt(0).toLowerCase()+str.slice(1)},processors.stripPrefix=function(str){return str.replace(prefixMatch,"")},processors.parseNumbers=function(str){return isNaN(str)||(str=str%1==0?parseInt(str,10):parseFloat(str)),str},processors.parseBooleans=function(str){return/^(?:true|false)$/i.test(str)&&(str="true"===str.toLowerCase()),str}}.call(processors)),processors}function requireParser$1(){return hasRequiredParser$1||(hasRequiredParser$1=1,function(exports){(function(){var bom,defaults,defineProperty,events,isEmpty,processItem,processors,sax,setImmediate,bind=function(fn,me){return function(){return fn.apply(me,arguments)}},hasProp={}.hasOwnProperty;sax=requireSax$1(),events=require$$0__default.default,bom=requireBom(),processors=requireProcessors(),setImmediate=require$$4__default.default.setImmediate,defaults=requireDefaults().defaults,isEmpty=function(thing){return"object"==typeof thing&&null!=thing&&0===Object.keys(thing).length},processItem=function(processors,item,key){var i,len;for(i=0,len=processors.length;i<len;i++)item=(0,processors[i])(item,key);return item},defineProperty=function(obj,key,value){var descriptor;return(descriptor=Object.create(null)).value=value,descriptor.writable=!0,descriptor.enumerable=!0,descriptor.configurable=!0,Object.defineProperty(obj,key,descriptor)},exports.Parser=function(superClass){function Parser(opts){var key,ref,value;if(this.parseStringPromise=bind(this.parseStringPromise,this),this.parseString=bind(this.parseString,this),this.reset=bind(this.reset,this),this.assignOrPush=bind(this.assignOrPush,this),this.processAsync=bind(this.processAsync,this),!(this instanceof exports.Parser))return new exports.Parser(opts);for(key in this.options={},ref=defaults[.2])hasProp.call(ref,key)&&(value=ref[key],this.options[key]=value);for(key in opts)hasProp.call(opts,key)&&(value=opts[key],this.options[key]=value);this.options.xmlns&&(this.options.xmlnskey=this.options.attrkey+"ns"),this.options.normalizeTags&&(this.options.tagNameProcessors||(this.options.tagNameProcessors=[]),this.options.tagNameProcessors.unshift(processors.normalize)),this.reset()}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(Parser,superClass),Parser.prototype.processAsync=function(){var chunk,err;try{return this.remaining.length<=this.options.chunkSize?(chunk=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(chunk),this.saxParser.close()):(chunk=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(chunk),setImmediate(this.processAsync))}catch(error1){if(err=error1,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(err)}},Parser.prototype.assignOrPush=function(obj,key,newValue){return key in obj?(obj[key]instanceof Array||defineProperty(obj,key,[obj[key]]),obj[key].push(newValue)):this.options.explicitArray?defineProperty(obj,key,[newValue]):defineProperty(obj,key,newValue)},Parser.prototype.reset=function(){var attrkey,charkey,ontext,stack,_this;return this.removeAllListeners(),this.saxParser=sax.parser(this.options.strict,{trim:!1,normalize:!1,xmlns:this.options.xmlns}),this.saxParser.errThrown=!1,this.saxParser.onerror=(_this=this,function(error){if(_this.saxParser.resume(),!_this.saxParser.errThrown)return _this.saxParser.errThrown=!0,_this.emit("error",error)}),this.saxParser.onend=function(_this){return function(){if(!_this.saxParser.ended)return _this.saxParser.ended=!0,_this.emit("end",_this.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,stack=[],attrkey=this.options.attrkey,charkey=this.options.charkey,this.saxParser.onopentag=function(_this){return function(node){var key,newValue,obj,processedKey,ref;if((obj={})[charkey]="",!_this.options.ignoreAttrs)for(key in ref=node.attributes)hasProp.call(ref,key)&&(attrkey in obj||_this.options.mergeAttrs||(obj[attrkey]={}),newValue=_this.options.attrValueProcessors?processItem(_this.options.attrValueProcessors,node.attributes[key],key):node.attributes[key],processedKey=_this.options.attrNameProcessors?processItem(_this.options.attrNameProcessors,key):key,_this.options.mergeAttrs?_this.assignOrPush(obj,processedKey,newValue):defineProperty(obj[attrkey],processedKey,newValue));return obj["#name"]=_this.options.tagNameProcessors?processItem(_this.options.tagNameProcessors,node.name):node.name,_this.options.xmlns&&(obj[_this.options.xmlnskey]={uri:node.uri,local:node.local}),stack.push(obj)}}(this),this.saxParser.onclosetag=function(_this){return function(){var cdata,emptyStr,key,node,nodeName,obj,objClone,old,s,xpath;if(obj=stack.pop(),nodeName=obj["#name"],_this.options.explicitChildren&&_this.options.preserveChildrenOrder||delete obj["#name"],!0===obj.cdata&&(cdata=obj.cdata,delete obj.cdata),s=stack[stack.length-1],obj[charkey].match(/^\s*$/)&&!cdata?(emptyStr=obj[charkey],delete obj[charkey]):(_this.options.trim&&(obj[charkey]=obj[charkey].trim()),_this.options.normalize&&(obj[charkey]=obj[charkey].replace(/\s{2,}/g," ").trim()),obj[charkey]=_this.options.valueProcessors?processItem(_this.options.valueProcessors,obj[charkey],nodeName):obj[charkey],1===Object.keys(obj).length&&charkey in obj&&!_this.EXPLICIT_CHARKEY&&(obj=obj[charkey])),isEmpty(obj)&&(obj="function"==typeof _this.options.emptyTag?_this.options.emptyTag():""!==_this.options.emptyTag?_this.options.emptyTag:emptyStr),null!=_this.options.validator&&(xpath="/"+function(){var i,len,results;for(results=[],i=0,len=stack.length;i<len;i++)node=stack[i],results.push(node["#name"]);return results}().concat(nodeName).join("/"),function(){var err;try{return obj=_this.options.validator(xpath,s&&s[nodeName],obj)}catch(error1){return err=error1,_this.emit("error",err)}}()),_this.options.explicitChildren&&!_this.options.mergeAttrs&&"object"==typeof obj)if(_this.options.preserveChildrenOrder){if(s){for(key in s[_this.options.childkey]=s[_this.options.childkey]||[],objClone={},obj)hasProp.call(obj,key)&&defineProperty(objClone,key,obj[key]);s[_this.options.childkey].push(objClone),delete obj["#name"],1===Object.keys(obj).length&&charkey in obj&&!_this.EXPLICIT_CHARKEY&&(obj=obj[charkey])}}else node={},_this.options.attrkey in obj&&(node[_this.options.attrkey]=obj[_this.options.attrkey],delete obj[_this.options.attrkey]),!_this.options.charsAsChildren&&_this.options.charkey in obj&&(node[_this.options.charkey]=obj[_this.options.charkey],delete obj[_this.options.charkey]),Object.getOwnPropertyNames(obj).length>0&&(node[_this.options.childkey]=obj),obj=node;return stack.length>0?_this.assignOrPush(s,nodeName,obj):(_this.options.explicitRoot&&(old=obj,defineProperty(obj={},nodeName,old)),_this.resultObject=obj,_this.saxParser.ended=!0,_this.emit("end",_this.resultObject))}}(this),ontext=function(_this){return function(text){var charChild,s;if(s=stack[stack.length-1])return s[charkey]+=text,_this.options.explicitChildren&&_this.options.preserveChildrenOrder&&_this.options.charsAsChildren&&(_this.options.includeWhiteChars||""!==text.replace(/\\n/g,"").trim())&&(s[_this.options.childkey]=s[_this.options.childkey]||[],(charChild={"#name":"__text__"})[charkey]=text,_this.options.normalize&&(charChild[charkey]=charChild[charkey].replace(/\s{2,}/g," ").trim()),s[_this.options.childkey].push(charChild)),s}}(this),this.saxParser.ontext=ontext,this.saxParser.oncdata=function(text){var s;if(s=ontext(text))return s.cdata=!0}},Parser.prototype.parseString=function(str,cb){var err;null!=cb&&"function"==typeof cb&&(this.on("end",(function(result){return this.reset(),cb(null,result)})),this.on("error",(function(err){return this.reset(),cb(err)})));try{return""===(str=str.toString()).trim()?(this.emit("end",null),!0):(str=bom.stripBOM(str),this.options.async?(this.remaining=str,setImmediate(this.processAsync),this.saxParser):this.saxParser.write(str).close())}catch(error1){if(err=error1,!this.saxParser.errThrown&&!this.saxParser.ended)return this.emit("error",err),this.saxParser.errThrown=!0;if(this.saxParser.ended)throw err}},Parser.prototype.parseStringPromise=function(str){return new Promise((_this=this,function(resolve,reject){return _this.parseString(str,(function(err,value){return err?reject(err):resolve(value)}))}));var _this},Parser}(events),exports.parseString=function(str,a,b){var cb,options;return null!=b?("function"==typeof b&&(cb=b),"object"==typeof a&&(options=a)):("function"==typeof a&&(cb=a),options={}),new exports.Parser(options).parseString(str,cb)},exports.parseStringPromise=function(str,a){var options;return"object"==typeof a&&(options=a),new exports.Parser(options).parseStringPromise(str)}}).call(parser$1)}(parser$1)),parser$1}var hasRequiredXpath,xml2jsExports=function requireXml2js$1(){return hasRequiredXml2js$1||(hasRequiredXml2js$1=1,function(){var builder,defaults,parser,processors,hasProp={}.hasOwnProperty;defaults=requireDefaults(),builder=requireBuilder(),parser=requireParser$1(),processors=requireProcessors(),xml2js$2.defaults=defaults.defaults,xml2js$2.processors=processors,xml2js$2.ValidationError=function(){function ValidationError(message){this.message=message}return function(child,parent){for(var key in parent)hasProp.call(parent,key)&&(child[key]=parent[key]);function ctor(){this.constructor=child}ctor.prototype=parent.prototype,child.prototype=new ctor,child.__super__=parent.prototype}(ValidationError,Error),ValidationError}(),xml2js$2.Builder=builder.Builder,xml2js$2.Parser=parser.Parser,xml2js$2.parseString=parser.parseString,xml2js$2.parseStringPromise=parser.parseStringPromise}.call(xml2js$2)),xml2js$2}(),xml2js$1=getDefaultExportFromCjs(xml2jsExports),lib$4={},signedXml={},xpath={};function requireXpath(){return hasRequiredXpath||(hasRequiredXpath=1,function(exports){!function(exports){var forEach=function(f,xs){for(var i=0;i<xs.length;i+=1)f(xs[i],i,xs)},reduce=function(f,seed,xs){var acc=seed;return forEach((function(x,i){acc=f(acc,x,i)}),xs),acc},map=function(f,xs){var mapped=new Array(xs.length);return forEach((function(x,i){mapped[i]=f(x)}),xs),mapped};function toString(x){return x.toString()}var join=function(s,xs){return xs.join(s)},wrap=function(pref,suf,str){return pref+str+suf},prototypeConcat=Array.prototype.concat;function assign(target,varArgs){for(var to=Object(target),index=1;index<arguments.length;index++){var nextSource=arguments[index];if(null!=nextSource)for(var nextKey in nextSource)Object.prototype.hasOwnProperty.call(nextSource,nextKey)&&(to[nextKey]=nextSource[nextKey])}return to}var NodeTypes_ELEMENT_NODE=1,NodeTypes_ATTRIBUTE_NODE=2,NodeTypes_TEXT_NODE=3,NodeTypes_CDATA_SECTION_NODE=4,NodeTypes_PROCESSING_INSTRUCTION_NODE=7,NodeTypes_COMMENT_NODE=8,NodeTypes_DOCUMENT_NODE=9,NodeTypes_DOCUMENT_TYPE_NODE=10,NodeTypes_DOCUMENT_FRAGMENT_NODE=11;function XPathParser(){this.init()}function XPath(e){this.expression=e}function setIfUnset(obj,prop,value){prop in obj||(obj[prop]=value)}function Expression(){}function UnaryOperation(rhs){arguments.length>0&&this.init(rhs)}function UnaryMinusOperation(rhs){arguments.length>0&&this.init(rhs)}function BinaryOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function OrOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function AndOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function EqualsOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function NotEqualOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function LessThanOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function GreaterThanOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function LessThanOrEqualOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function GreaterThanOrEqualOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function PlusOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function MinusOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function MultiplyOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function DivOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function ModOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function BarOperation(lhs,rhs){arguments.length>0&&this.init(lhs,rhs)}function PathExpr(filter,filterPreds,locpath){arguments.length>0&&this.init(filter,filterPreds,locpath)}function findRoot(node){for(;node&&node.parentNode;)node=node.parentNode;return node}function applyStepWithPredicates(step,xpc,node){return PathExpr.applyPredicates(step.predicates,xpc,PathExpr.applyStep(step,xpc,node))}function applyStepToNodes(context,nodes,step){return function flatten(arr){for(var result=[],start=0;start<arr.length;start+=32767){var chunk=arr.slice(start,start+32767);result=prototypeConcat.apply(result,chunk)}return result}(map(applyStepWithPredicates.bind(null,step,context),nodes))}function LocationPath(abs,steps){arguments.length>0&&this.init(abs,steps)}function Step(axis,nodetest,preds){arguments.length>0&&this.init(axis,nodetest,preds)}function NodeTest(type,value){arguments.length>0&&this.init(type,value)}function VariableReference(v){arguments.length>0&&this.init(v)}function FunctionCall(fn,args){arguments.length>0&&this.init(fn,args)}XPathParser.prototype=new Object,XPathParser.prototype.constructor=XPathParser,XPathParser.superclass=Object.prototype,XPathParser.prototype.init=function(){this.reduceActions=[],this.reduceActions[3]=function(rhs){return new OrOperation(rhs[0],rhs[2])},this.reduceActions[5]=function(rhs){return new AndOperation(rhs[0],rhs[2])},this.reduceActions[7]=function(rhs){return new EqualsOperation(rhs[0],rhs[2])},this.reduceActions[8]=function(rhs){return new NotEqualOperation(rhs[0],rhs[2])},this.reduceActions[10]=function(rhs){return new LessThanOperation(rhs[0],rhs[2])},this.reduceActions[11]=function(rhs){return new GreaterThanOperation(rhs[0],rhs[2])},this.reduceActions[12]=function(rhs){return new LessThanOrEqualOperation(rhs[0],rhs[2])},this.reduceActions[13]=function(rhs){return new GreaterThanOrEqualOperation(rhs[0],rhs[2])},this.reduceActions[15]=function(rhs){return new PlusOperation(rhs[0],rhs[2])},this.reduceActions[16]=function(rhs){return new MinusOperation(rhs[0],rhs[2])},this.reduceActions[18]=function(rhs){return new MultiplyOperation(rhs[0],rhs[2])},this.reduceActions[19]=function(rhs){return new DivOperation(rhs[0],rhs[2])},this.reduceActions[20]=function(rhs){return new ModOperation(rhs[0],rhs[2])},this.reduceActions[22]=function(rhs){return new UnaryMinusOperation(rhs[1])},this.reduceActions[24]=function(rhs){return new BarOperation(rhs[0],rhs[2])},this.reduceActions[25]=function(rhs){return new PathExpr(void 0,void 0,rhs[0])},this.reduceActions[27]=function(rhs){return rhs[0].locationPath=rhs[2],rhs[0]},this.reduceActions[28]=function(rhs){return rhs[0].locationPath=rhs[2],rhs[0].locationPath.steps.unshift(new Step(Step.DESCENDANTORSELF,NodeTest.nodeTest,[])),rhs[0]},this.reduceActions[29]=function(rhs){return new PathExpr(rhs[0],[],void 0)},this.reduceActions[30]=function(rhs){return Utilities.instance_of(rhs[0],PathExpr)?(null==rhs[0].filterPredicates&&(rhs[0].filterPredicates=[]),rhs[0].filterPredicates.push(rhs[1]),rhs[0]):new PathExpr(rhs[0],[rhs[1]],void 0)},this.reduceActions[32]=function(rhs){return rhs[1]},this.reduceActions[33]=function(rhs){return new XString(rhs[0])},this.reduceActions[34]=function(rhs){return new XNumber(rhs[0])},this.reduceActions[36]=function(rhs){return new FunctionCall(rhs[0],[])},this.reduceActions[37]=function(rhs){return new FunctionCall(rhs[0],rhs[2])},this.reduceActions[38]=function(rhs){return[rhs[0]]},this.reduceActions[39]=function(rhs){return rhs[2].unshift(rhs[0]),rhs[2]},this.reduceActions[43]=function(rhs){return new LocationPath(!0,[])},this.reduceActions[44]=function(rhs){return rhs[1].absolute=!0,rhs[1]},this.reduceActions[46]=function(rhs){return new LocationPath(!1,[rhs[0]])},this.reduceActions[47]=function(rhs){return rhs[0].steps.push(rhs[2]),rhs[0]},this.reduceActions[49]=function(rhs){return new Step(rhs[0],rhs[1],[])},this.reduceActions[50]=function(rhs){return new Step(Step.CHILD,rhs[0],[])},this.reduceActions[51]=function(rhs){return new Step(rhs[0],rhs[1],rhs[2])},this.reduceActions[52]=function(rhs){return new Step(Step.CHILD,rhs[0],rhs[1])},this.reduceActions[54]=function(rhs){return[rhs[0]]},this.reduceActions[55]=function(rhs){return rhs[1].unshift(rhs[0]),rhs[1]},this.reduceActions[56]=function(rhs){return"ancestor"==rhs[0]?Step.ANCESTOR:"ancestor-or-self"==rhs[0]?Step.ANCESTORORSELF:"attribute"==rhs[0]?Step.ATTRIBUTE:"child"==rhs[0]?Step.CHILD:"descendant"==rhs[0]?Step.DESCENDANT:"descendant-or-self"==rhs[0]?Step.DESCENDANTORSELF:"following"==rhs[0]?Step.FOLLOWING:"following-sibling"==rhs[0]?Step.FOLLOWINGSIBLING:"namespace"==rhs[0]?Step.NAMESPACE:"parent"==rhs[0]?Step.PARENT:"preceding"==rhs[0]?Step.PRECEDING:"preceding-sibling"==rhs[0]?Step.PRECEDINGSIBLING:"self"==rhs[0]?Step.SELF:-1},this.reduceActions[57]=function(rhs){return Step.ATTRIBUTE},this.reduceActions[59]=function(rhs){return"comment"==rhs[0]?NodeTest.commentTest:"text"==rhs[0]?NodeTest.textTest:"processing-instruction"==rhs[0]?NodeTest.anyPiTest:"node"==rhs[0]?NodeTest.nodeTest:new NodeTest(-1,void 0)},this.reduceActions[60]=function(rhs){return new NodeTest.PITest(rhs[2])},this.reduceActions[61]=function(rhs){return rhs[1]},this.reduceActions[63]=function(rhs){return rhs[1].absolute=!0,rhs[1].steps.unshift(new Step(Step.DESCENDANTORSELF,NodeTest.nodeTest,[])),rhs[1]},this.reduceActions[64]=function(rhs){return rhs[0].steps.push(new Step(Step.DESCENDANTORSELF,NodeTest.nodeTest,[])),rhs[0].steps.push(rhs[2]),rhs[0]},this.reduceActions[65]=function(rhs){return new Step(Step.SELF,NodeTest.nodeTest,[])},this.reduceActions[66]=function(rhs){return new Step(Step.PARENT,NodeTest.nodeTest,[])},this.reduceActions[67]=function(rhs){return new VariableReference(rhs[1])},this.reduceActions[68]=function(rhs){return NodeTest.nameTestAny},this.reduceActions[69]=function(rhs){return new NodeTest.NameTestPrefixAny(rhs[0].split(":")[0])},this.reduceActions[70]=function(rhs){return new NodeTest.NameTestQName(rhs[0])}},XPathParser.actionTable=[" s s sssssssss s ss s ss"," s ","r rrrrrrrrr rrrrrrr rr r "," rrrrr "," s s sssssssss s ss s ss","rs rrrrrrrr s sssssrrrrrr rrs rs "," s s sssssssss s ss s ss"," s "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s "," s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr r ","a ","r s rr r ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrs rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r srrrrrrrr rrrrrrs rr sr ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrr rrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r "," sssss ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrr rrrrr rr r "," s "," s "," rrrrr "," s s sssssssss s sss s ss","r srrrrrrrr rrrrrrs rr r "," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss s ss s ss"," s s sssssssss ss s ss"," s s sssssssss s ss s ss"," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr rr "," s s sssss s s "," s s sssss s s ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr sr ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr "," s ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," rr "," s "," rs ","r sr rr r ","r s rr s rr r ","r rssrr rss rr r ","r rssrr rss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrr rrrss rr r ","r rrrrrsss rrrrr rr r ","r rrrrrsss rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrr rr r ","r rrrrrrrr rrrrrr rr r "," r "," s ","r srrrrrrrr rrrrrrs rr r ","r srrrrrrrr rrrrrrs rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr r ","r rrrrrrrrr rrrrrrr rr rr ","r rrrrrrrrr rrrrrrr rr rr "," s s sssssssss s ss s ss","r rrrrrrrrr rrrrrrr rr rr "," r "],XPathParser.actionTableNumber=[" 1 0 /.-,+*)(' & %$ # \"!"," J ","a aaaaaaaaa aaaaaaa aa a "," YYYYY "," 1 0 /.-,+*)(' & %$ # \"!","K1 KKKKKKKK . +*)('KKKKKK KK# K\" "," 1 0 /.-,+*)(' & %$ # \"!"," N "," O ","e eeeeeeeee eeeeeee ee ee ","f fffffffff fffffff ff ff ","d ddddddddd ddddddd dd dd ","B BBBBBBBBB BBBBBBB BB BB ","A AAAAAAAAA AAAAAAA AA AA "," P "," Q "," 1 . +*)(' # \" ","b bbbbbbbbb bbbbbbb bb b "," ","! S !! ! ",'" T" "" " ',"$ V $$ U $$ $ ","& &ZY&& &XW && & ",") ))))) )))\\[ )) ) ",". ....._^] ..... .. . ","1 11111111 11111 11 1 ","5 55555555 55555` 55 5 ","7 77777777 777777 77 7 ","9 99999999 999999 99 9 ",": c:::::::: ::::::b :: a: ","I fIIIIIIII IIIIIIe II I ","= ========= ======= == == ","? ????????? ??????? ?? ?? ","C CCCCCCCCC CCCCCCC CC CC ","J JJJJJJJJ JJJJJJ JJ J ","M MMMMMMMM MMMMMM MM M ","N NNNNNNNNN NNNNNNN NN N ","P PPPPPPPPP PPPPPPP PP P "," +*)(' ","R RRRRRRRRR RRRRRRR RR aR ","U UUUUUUUUU UUUUUUU UU U ","Z ZZZZZZZZZ ZZZZZZZ ZZ ZZ ","c ccccccccc ccccccc cc cc "," j ","L fLLLLLLLL LLLLLLe LL L ","6 66666666 66666 66 6 "," k "," l "," XXXXX "," 1 0 /.-,+*)(' & %$m # \"!","_ f________ ______e __ _ "," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 0 /.-,+*)(' %$ # \"!"," 1 0 /.-,+*)(' & %$ # \"!"," 1 . +*)(' # \" "," 1 . +*)(' # \" ","> >>>>>>>>> >>>>>>> >> >> "," 1 . +*)(' # \" "," 1 . +*)(' # \" ","Q QQQQQQQQQ QQQQQQQ QQ aQ ","V VVVVVVVVV VVVVVVV VV aV ","T TTTTTTTTT TTTTTTT TT T ","@ @@@@@@@@@ @@@@@@@ @@ @@ "," ‡ ","[ [[[[[[[[[ [[[[[[[ [[ [[ ","D DDDDDDDDD DDDDDDD DD DD "," HH "," ˆ "," F‰ ","# T# ## # ","% V %% U %% % ","' 'ZY'' 'XW '' ' ","( (ZY(( (XW (( ( ","+ +++++ +++\\[ ++ + ","* ***** ***\\[ ** * ","- ----- ---\\[ -- - ",", ,,,,, ,,,\\[ ,, , ","0 00000_^] 00000 00 0 ","/ /////_^] ///// // / ","2 22222222 22222 22 2 ","3 33333333 33333 33 3 ","4 44444444 44444 44 4 ","8 88888888 888888 88 8 "," ^ "," Š ","; f;;;;;;;; ;;;;;;e ;; ; ","< f<<<<<<<< <<<<<<e << < ","O OOOOOOOOO OOOOOOO OO O ","` ````````` ``````` `` ` ","S SSSSSSSSS SSSSSSS SS S ","W WWWWWWWWW WWWWWWW WW W ","\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\ \\\\ \\\\ ","E EEEEEEEEE EEEEEEE EE EE "," 1 0 /.-,+*)(' & %$ # \"!","] ]]]]]]]]] ]]]]]]] ]] ]] "," G "],XPathParser.gotoTable=["3456789:;<=>?@ AB CDEFGH IJ "," "," "," ","L456789:;<=>?@ AB CDEFGH IJ "," M EFGH IJ "," N;<=>?@ AB CDEFGH IJ "," "," "," "," "," "," "," "," "," "," S EFGH IJ "," "," "," "," "," "," "," "," "," "," "," "," "," e "," "," "," "," "," "," "," "," "," h J "," i j "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABpqCDEFGH IJ "," "," r6789:;<=>?@ AB CDEFGH IJ "," s789:;<=>?@ AB CDEFGH IJ "," t89:;<=>?@ AB CDEFGH IJ "," u89:;<=>?@ AB CDEFGH IJ "," v9:;<=>?@ AB CDEFGH IJ "," w9:;<=>?@ AB CDEFGH IJ "," x9:;<=>?@ AB CDEFGH IJ "," y9:;<=>?@ AB CDEFGH IJ "," z:;<=>?@ AB CDEFGH IJ "," {:;<=>?@ AB CDEFGH IJ "," |;<=>?@ AB CDEFGH IJ "," };<=>?@ AB CDEFGH IJ "," ~;<=>?@ AB CDEFGH IJ "," =>?@ AB CDEFGH IJ ","€456789:;<=>?@ AB CDEFGH IJ"," ‚ EFGH IJ "," ƒ EFGH IJ "," "," „ GH IJ "," … GH IJ "," i † "," i ‡ "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," "," ","o456789:;<=>?@ ABŒqCDEFGH IJ "," "," "],XPathParser.productions=[[1,1,2],[2,1,3],[3,1,4],[3,3,3,-9,4],[4,1,5],[4,3,4,-8,5],[5,1,6],[5,3,5,-22,6],[5,3,5,-5,6],[6,1,7],[6,3,6,-23,7],[6,3,6,-24,7],[6,3,6,-6,7],[6,3,6,-7,7],[7,1,8],[7,3,7,-25,8],[7,3,7,-26,8],[8,1,9],[8,3,8,-12,9],[8,3,8,-11,9],[8,3,8,-10,9],[9,1,10],[9,2,-26,9],[10,1,11],[10,3,10,-27,11],[11,1,12],[11,1,13],[11,3,13,-28,14],[11,3,13,-4,14],[13,1,15],[13,2,13,16],[15,1,17],[15,3,-29,2,-30],[15,1,-15],[15,1,-16],[15,1,18],[18,3,-13,-29,-30],[18,4,-13,-29,19,-30],[19,1,20],[19,3,20,-31,19],[20,1,2],[12,1,14],[12,1,21],[21,1,-28],[21,2,-28,14],[21,1,22],[14,1,23],[14,3,14,-28,23],[14,1,24],[23,2,25,26],[23,1,26],[23,3,25,26,27],[23,2,26,27],[23,1,28],[27,1,16],[27,2,16,27],[25,2,-14,-3],[25,1,-32],[26,1,29],[26,3,-20,-29,-30],[26,4,-21,-29,-15,-30],[16,3,-33,30,-34],[30,1,2],[22,2,-4,14],[24,3,14,-4,23],[28,1,-35],[28,1,-2],[17,2,-36,-18],[29,1,-17],[29,1,-19],[29,1,-18]],XPathParser.DOUBLEDOT=2,XPathParser.DOUBLECOLON=3,XPathParser.DOUBLESLASH=4,XPathParser.NOTEQUAL=5,XPathParser.LESSTHANOREQUAL=6,XPathParser.GREATERTHANOREQUAL=7,XPathParser.AND=8,XPathParser.OR=9,XPathParser.MOD=10,XPathParser.DIV=11,XPathParser.MULTIPLYOPERATOR=12,XPathParser.FUNCTIONNAME=13,XPathParser.AXISNAME=14,XPathParser.LITERAL=15,XPathParser.NUMBER=16,XPathParser.ASTERISKNAMETEST=17,XPathParser.QNAME=18,XPathParser.NCNAMECOLONASTERISK=19,XPathParser.NODETYPE=20,XPathParser.PROCESSINGINSTRUCTIONWITHLITERAL=21,XPathParser.EQUALS=22,XPathParser.LESSTHAN=23,XPathParser.GREATERTHAN=24,XPathParser.PLUS=25,XPathParser.MINUS=26,XPathParser.BAR=27,XPathParser.SLASH=28,XPathParser.LEFTPARENTHESIS=29,XPathParser.RIGHTPARENTHESIS=30,XPathParser.COMMA=31,XPathParser.AT=32,XPathParser.LEFTBRACKET=33,XPathParser.RIGHTBRACKET=34,XPathParser.DOT=35,XPathParser.DOLLAR=36,XPathParser.prototype.tokenize=function(s1){for(var types=[],values=[],s=s1+"\0",pos=0,c=s.charAt(pos++);;){for(;" "==c||"\t"==c||"\r"==c||"\n"==c;)c=s.charAt(pos++);if("\0"==c||pos>=s.length)break;if("("!=c)if(")"!=c)if("["!=c)if("]"!=c)if("@"!=c)if(","!=c)if("|"!=c)if("+"!=c)if("-"!=c)if("="!=c)if("$"!=c)if("."!=c)if("'"!=c&&'"'!=c)if(c>="0"&&c<="9"){number=c;for(c=s.charAt(pos++);c>="0"&&c<="9";)number+=c,c=s.charAt(pos++);if("."==c&&s.charAt(pos)>="0"&&s.charAt(pos)<="9")for(number+=c,number+=s.charAt(pos++),c=s.charAt(pos++);c>="0"&&c<="9";)number+=c,c=s.charAt(pos++);types.push(XPathParser.NUMBER),values.push(number)}else if("*"!=c)if(":"!=c||":"!=s.charAt(pos))if("/"!=c)if("!"!=c||"="!=s.charAt(pos))if("<"!=c)if(">"!=c){if("_"!=c&&!Utilities.isLetter(c.charCodeAt(0)))throw new Error("Unexpected character "+c);var name=c;for(c=s.charAt(pos++);Utilities.isNCNameChar(c.charCodeAt(0));)name+=c,c=s.charAt(pos++);if(types.length>0&&(last=types[types.length-1])!=XPathParser.AT&&last!=XPathParser.DOUBLECOLON&&last!=XPathParser.LEFTPARENTHESIS&&last!=XPathParser.LEFTBRACKET&&last!=XPathParser.AND&&last!=XPathParser.OR&&last!=XPathParser.MOD&&last!=XPathParser.DIV&&last!=XPathParser.MULTIPLYOPERATOR&&last!=XPathParser.SLASH&&last!=XPathParser.DOUBLESLASH&&last!=XPathParser.BAR&&last!=XPathParser.PLUS&&last!=XPathParser.MINUS&&last!=XPathParser.EQUALS&&last!=XPathParser.NOTEQUAL&&last!=XPathParser.LESSTHAN&&last!=XPathParser.LESSTHANOREQUAL&&last!=XPathParser.GREATERTHAN&&last!=XPathParser.GREATERTHANOREQUAL){if("and"==name){types.push(XPathParser.AND),values.push(name);continue}if("or"==name){types.push(XPathParser.OR),values.push(name);continue}if("mod"==name){types.push(XPathParser.MOD),values.push(name);continue}if("div"==name){types.push(XPathParser.DIV),values.push(name);continue}}if(":"==c){if("*"==s.charAt(pos)){types.push(XPathParser.NCNAMECOLONASTERISK),values.push(name+":*"),pos++,c=s.charAt(pos++);continue}if("_"==s.charAt(pos)||Utilities.isLetter(s.charCodeAt(pos))){for(name+=":",c=s.charAt(pos++);Utilities.isNCNameChar(c.charCodeAt(0));)name+=c,c=s.charAt(pos++);if("("==c){types.push(XPathParser.FUNCTIONNAME),values.push(name);continue}types.push(XPathParser.QNAME),values.push(name);continue}if(":"==s.charAt(pos)){types.push(XPathParser.AXISNAME),values.push(name);continue}}if("("==c){if("comment"==name||"text"==name||"node"==name){types.push(XPathParser.NODETYPE),values.push(name);continue}if("processing-instruction"==name){")"==s.charAt(pos)?types.push(XPathParser.NODETYPE):types.push(XPathParser.PROCESSINGINSTRUCTIONWITHLITERAL),values.push(name);continue}types.push(XPathParser.FUNCTIONNAME),values.push(name);continue}types.push(XPathParser.QNAME),values.push(name)}else{if("="==s.charAt(pos)){types.push(XPathParser.GREATERTHANOREQUAL),values.push(">="),pos++,c=s.charAt(pos++);continue}types.push(XPathParser.GREATERTHAN),values.push(">"),c=s.charAt(pos++)}else{if("="==s.charAt(pos)){types.push(XPathParser.LESSTHANOREQUAL),values.push("<="),pos++,c=s.charAt(pos++);continue}types.push(XPathParser.LESSTHAN),values.push("<"),c=s.charAt(pos++)}else types.push(XPathParser.NOTEQUAL),values.push("!="),pos++,c=s.charAt(pos++);else{if("/"==(c=s.charAt(pos++))){types.push(XPathParser.DOUBLESLASH),values.push("//"),c=s.charAt(pos++);continue}types.push(XPathParser.SLASH),values.push("/")}else types.push(XPathParser.DOUBLECOLON),values.push("::"),pos++,c=s.charAt(pos++);else{var last;if(types.length>0&&(last=types[types.length-1])!=XPathParser.AT&&last!=XPathParser.DOUBLECOLON&&last!=XPathParser.LEFTPARENTHESIS&&last!=XPathParser.LEFTBRACKET&&last!=XPathParser.AND&&last!=XPathParser.OR&&last!=XPathParser.MOD&&last!=XPathParser.DIV&&last!=XPathParser.MULTIPLYOPERATOR&&last!=XPathParser.SLASH&&last!=XPathParser.DOUBLESLASH&&last!=XPathParser.BAR&&last!=XPathParser.PLUS&&last!=XPathParser.MINUS&&last!=XPathParser.EQUALS&&last!=XPathParser.NOTEQUAL&&last!=XPathParser.LESSTHAN&&last!=XPathParser.LESSTHANOREQUAL&&last!=XPathParser.GREATERTHAN&&last!=XPathParser.GREATERTHANOREQUAL){types.push(XPathParser.MULTIPLYOPERATOR),values.push(c),c=s.charAt(pos++);continue}types.push(XPathParser.ASTERISKNAMETEST),values.push(c),c=s.charAt(pos++)}else{for(var delimiter=c,literal="";pos<s.length&&(c=s.charAt(pos))!==delimiter;)literal+=c,pos+=1;if(c!==delimiter)throw XPathException.fromMessage("Unterminated string literal: "+delimiter+literal);pos+=1,types.push(XPathParser.LITERAL),values.push(literal),c=s.charAt(pos++)}else{if("."==(c=s.charAt(pos++))){types.push(XPathParser.DOUBLEDOT),values.push(".."),c=s.charAt(pos++);continue}if(c>="0"&&c<="9"){var number="."+c;for(c=s.charAt(pos++);c>="0"&&c<="9";)number+=c,c=s.charAt(pos++);types.push(XPathParser.NUMBER),values.push(number);continue}types.push(XPathParser.DOT),values.push(".")}else types.push(XPathParser.DOLLAR),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.EQUALS),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.MINUS),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.PLUS),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.BAR),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.COMMA),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.AT),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.RIGHTBRACKET),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.LEFTBRACKET),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.RIGHTPARENTHESIS),values.push(c),c=s.charAt(pos++);else types.push(XPathParser.LEFTPARENTHESIS),values.push(c),c=s.charAt(pos++)}return types.push(1),values.push("[EOF]"),[types,values]},XPathParser.SHIFT="s",XPathParser.REDUCE="r",XPathParser.ACCEPT="a",XPathParser.prototype.parse=function(s){var types,values,res=this.tokenize(s);if(null!=res){types=res[0],values=res[1];var a,t,tokenPos=0,state=[],tokenType=[],tokenValue=[];for(state.push(0),tokenType.push(1),tokenValue.push("_S"),a=types[tokenPos],t=values[tokenPos++];;)switch(s=state[state.length-1],XPathParser.actionTable[s].charAt(a-1)){case XPathParser.SHIFT:tokenType.push(-a),tokenValue.push(t),state.push(XPathParser.actionTableNumber[s].charCodeAt(a-1)-32),a=types[tokenPos],t=values[tokenPos++];break;case XPathParser.REDUCE:for(var num=XPathParser.productions[XPathParser.actionTableNumber[s].charCodeAt(a-1)-32][1],rhs=[],i=0;i<num;i++)tokenType.pop(),rhs.unshift(tokenValue.pop()),state.pop();var s_=state[state.length-1];tokenType.push(XPathParser.productions[XPathParser.actionTableNumber[s].charCodeAt(a-1)-32][0]),null==this.reduceActions[XPathParser.actionTableNumber[s].charCodeAt(a-1)-32]?tokenValue.push(rhs[0]):tokenValue.push(this.reduceActions[XPathParser.actionTableNumber[s].charCodeAt(a-1)-32](rhs)),state.push(XPathParser.gotoTable[s_].charCodeAt(XPathParser.productions[XPathParser.actionTableNumber[s].charCodeAt(a-1)-32][0]-2)-33);break;case XPathParser.ACCEPT:return new XPath(tokenValue.pop());default:throw new Error("XPath parse error")}}},XPath.prototype=new Object,XPath.prototype.constructor=XPath,XPath.superclass=Object.prototype,XPath.prototype.toString=function(){return this.expression.toString()},XPath.prototype.evaluate=function(c){return c.contextNode=c.expressionContextNode,c.contextSize=1,c.contextPosition=1,c.isHtml&&(setIfUnset(c,"caseInsensitive",!0),setIfUnset(c,"allowAnyNamespaceForNoPrefix",!0)),setIfUnset(c,"caseInsensitive",!1),this.expression.evaluate(c)},XPath.XML_NAMESPACE_URI="http://www.w3.org/XML/1998/namespace",XPath.XMLNS_NAMESPACE_URI="http://www.w3.org/2000/xmlns/",Expression.prototype=new Object,Expression.prototype.constructor=Expression,Expression.superclass=Object.prototype,Expression.prototype.init=function(){},Expression.prototype.toString=function(){return"<Expression>"},Expression.prototype.evaluate=function(c){throw new Error("Could not evaluate expression.")},UnaryOperation.prototype=new Expression,UnaryOperation.prototype.constructor=UnaryOperation,UnaryOperation.superclass=Expression.prototype,UnaryOperation.prototype.init=function(rhs){this.rhs=rhs},UnaryMinusOperation.prototype=new UnaryOperation,UnaryMinusOperation.prototype.constructor=UnaryMinusOperation,UnaryMinusOperation.superclass=UnaryOperation.prototype,UnaryMinusOperation.prototype.init=function(rhs){UnaryMinusOperation.superclass.init.call(this,rhs)},UnaryMinusOperation.prototype.evaluate=function(c){return this.rhs.evaluate(c).number().negate()},UnaryMinusOperation.prototype.toString=function(){return"-"+this.rhs.toString()},BinaryOperation.prototype=new Expression,BinaryOperation.prototype.constructor=BinaryOperation,BinaryOperation.superclass=Expression.prototype,BinaryOperation.prototype.init=function(lhs,rhs){this.lhs=lhs,this.rhs=rhs},OrOperation.prototype=new BinaryOperation,OrOperation.prototype.constructor=OrOperation,OrOperation.superclass=BinaryOperation.prototype,OrOperation.prototype.init=function(lhs,rhs){OrOperation.superclass.init.call(this,lhs,rhs)},OrOperation.prototype.toString=function(){return"("+this.lhs.toString()+" or "+this.rhs.toString()+")"},OrOperation.prototype.evaluate=function(c){var b=this.lhs.evaluate(c).bool();return b.booleanValue()?b:this.rhs.evaluate(c).bool()},AndOperation.prototype=new BinaryOperation,AndOperation.prototype.constructor=AndOperation,AndOperation.superclass=BinaryOperation.prototype,AndOperation.prototype.init=function(lhs,rhs){AndOperation.superclass.init.call(this,lhs,rhs)},AndOperation.prototype.toString=function(){return"("+this.lhs.toString()+" and "+this.rhs.toString()+")"},AndOperation.prototype.evaluate=function(c){var b=this.lhs.evaluate(c).bool();return b.booleanValue()?this.rhs.evaluate(c).bool():b},EqualsOperation.prototype=new BinaryOperation,EqualsOperation.prototype.constructor=EqualsOperation,EqualsOperation.superclass=BinaryOperation.prototype,EqualsOperation.prototype.init=function(lhs,rhs){EqualsOperation.superclass.init.call(this,lhs,rhs)},EqualsOperation.prototype.toString=function(){return"("+this.lhs.toString()+" = "+this.rhs.toString()+")"},EqualsOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).equals(this.rhs.evaluate(c))},NotEqualOperation.prototype=new BinaryOperation,NotEqualOperation.prototype.constructor=NotEqualOperation,NotEqualOperation.superclass=BinaryOperation.prototype,NotEqualOperation.prototype.init=function(lhs,rhs){NotEqualOperation.superclass.init.call(this,lhs,rhs)},NotEqualOperation.prototype.toString=function(){return"("+this.lhs.toString()+" != "+this.rhs.toString()+")"},NotEqualOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).notequal(this.rhs.evaluate(c))},LessThanOperation.prototype=new BinaryOperation,LessThanOperation.prototype.constructor=LessThanOperation,LessThanOperation.superclass=BinaryOperation.prototype,LessThanOperation.prototype.init=function(lhs,rhs){LessThanOperation.superclass.init.call(this,lhs,rhs)},LessThanOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).lessthan(this.rhs.evaluate(c))},LessThanOperation.prototype.toString=function(){return"("+this.lhs.toString()+" < "+this.rhs.toString()+")"},GreaterThanOperation.prototype=new BinaryOperation,GreaterThanOperation.prototype.constructor=GreaterThanOperation,GreaterThanOperation.superclass=BinaryOperation.prototype,GreaterThanOperation.prototype.init=function(lhs,rhs){GreaterThanOperation.superclass.init.call(this,lhs,rhs)},GreaterThanOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).greaterthan(this.rhs.evaluate(c))},GreaterThanOperation.prototype.toString=function(){return"("+this.lhs.toString()+" > "+this.rhs.toString()+")"},LessThanOrEqualOperation.prototype=new BinaryOperation,LessThanOrEqualOperation.prototype.constructor=LessThanOrEqualOperation,LessThanOrEqualOperation.superclass=BinaryOperation.prototype,LessThanOrEqualOperation.prototype.init=function(lhs,rhs){LessThanOrEqualOperation.superclass.init.call(this,lhs,rhs)},LessThanOrEqualOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).lessthanorequal(this.rhs.evaluate(c))},LessThanOrEqualOperation.prototype.toString=function(){return"("+this.lhs.toString()+" <= "+this.rhs.toString()+")"},GreaterThanOrEqualOperation.prototype=new BinaryOperation,GreaterThanOrEqualOperation.prototype.constructor=GreaterThanOrEqualOperation,GreaterThanOrEqualOperation.superclass=BinaryOperation.prototype,GreaterThanOrEqualOperation.prototype.init=function(lhs,rhs){GreaterThanOrEqualOperation.superclass.init.call(this,lhs,rhs)},GreaterThanOrEqualOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).greaterthanorequal(this.rhs.evaluate(c))},GreaterThanOrEqualOperation.prototype.toString=function(){return"("+this.lhs.toString()+" >= "+this.rhs.toString()+")"},PlusOperation.prototype=new BinaryOperation,PlusOperation.prototype.constructor=PlusOperation,PlusOperation.superclass=BinaryOperation.prototype,PlusOperation.prototype.init=function(lhs,rhs){PlusOperation.superclass.init.call(this,lhs,rhs)},PlusOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).number().plus(this.rhs.evaluate(c).number())},PlusOperation.prototype.toString=function(){return"("+this.lhs.toString()+" + "+this.rhs.toString()+")"},MinusOperation.prototype=new BinaryOperation,MinusOperation.prototype.constructor=MinusOperation,MinusOperation.superclass=BinaryOperation.prototype,MinusOperation.prototype.init=function(lhs,rhs){MinusOperation.superclass.init.call(this,lhs,rhs)},MinusOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).number().minus(this.rhs.evaluate(c).number())},MinusOperation.prototype.toString=function(){return"("+this.lhs.toString()+" - "+this.rhs.toString()+")"},MultiplyOperation.prototype=new BinaryOperation,MultiplyOperation.prototype.constructor=MultiplyOperation,MultiplyOperation.superclass=BinaryOperation.prototype,MultiplyOperation.prototype.init=function(lhs,rhs){MultiplyOperation.superclass.init.call(this,lhs,rhs)},MultiplyOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).number().multiply(this.rhs.evaluate(c).number())},MultiplyOperation.prototype.toString=function(){return"("+this.lhs.toString()+" * "+this.rhs.toString()+")"},DivOperation.prototype=new BinaryOperation,DivOperation.prototype.constructor=DivOperation,DivOperation.superclass=BinaryOperation.prototype,DivOperation.prototype.init=function(lhs,rhs){DivOperation.superclass.init.call(this,lhs,rhs)},DivOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).number().div(this.rhs.evaluate(c).number())},DivOperation.prototype.toString=function(){return"("+this.lhs.toString()+" div "+this.rhs.toString()+")"},ModOperation.prototype=new BinaryOperation,ModOperation.prototype.constructor=ModOperation,ModOperation.superclass=BinaryOperation.prototype,ModOperation.prototype.init=function(lhs,rhs){ModOperation.superclass.init.call(this,lhs,rhs)},ModOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).number().mod(this.rhs.evaluate(c).number())},ModOperation.prototype.toString=function(){return"("+this.lhs.toString()+" mod "+this.rhs.toString()+")"},BarOperation.prototype=new BinaryOperation,BarOperation.prototype.constructor=BarOperation,BarOperation.superclass=BinaryOperation.prototype,BarOperation.prototype.init=function(lhs,rhs){BarOperation.superclass.init.call(this,lhs,rhs)},BarOperation.prototype.evaluate=function(c){return this.lhs.evaluate(c).nodeset().union(this.rhs.evaluate(c).nodeset())},BarOperation.prototype.toString=function(){return map(toString,[this.lhs,this.rhs]).join(" | ")},PathExpr.prototype=new Expression,PathExpr.prototype.constructor=PathExpr,PathExpr.superclass=Expression.prototype,PathExpr.prototype.init=function(filter,filterPreds,locpath){PathExpr.superclass.init.call(this),this.filter=filter,this.filterPredicates=filterPreds,this.locationPath=locpath},PathExpr.applyPredicates=function(predicates,c,nodes){if(0===predicates.length)return nodes;var ctx=c.extend({});return reduce((function(inNodes,pred){return ctx.contextSize=inNodes.length,f=function(node,i){return ctx.contextNode=node,ctx.contextPosition=i+1,PathExpr.predicateMatches(pred,ctx)},filtered=[],forEach((function(x,i){f(x,i)&&filtered.push(x)}),inNodes),filtered;var f,filtered}),nodes,predicates)},PathExpr.getRoot=function(xpc,nodes){var firstNode=nodes[0];if(firstNode.nodeType===NodeTypes_DOCUMENT_NODE)return firstNode;if(xpc.virtualRoot)return xpc.virtualRoot;var ownerDoc=firstNode.ownerDocument;if(ownerDoc)return ownerDoc;for(var n=firstNode;null!=n.parentNode;)n=n.parentNode;return n},PathExpr.applyStep=function(step,xpc,node){var newNodes=[];switch(xpc.contextNode=node,step.axis){case Step.ANCESTOR:if(xpc.contextNode===xpc.virtualRoot)break;for(m=xpc.contextNode.nodeType==NodeTypes_ATTRIBUTE_NODE?PathExpr.getOwnerElement(xpc.contextNode):xpc.contextNode.parentNode;null!=m&&(step.nodeTest.matches(m,xpc)&&newNodes.push(m),m!==xpc.virtualRoot);)m=m.parentNode;break;case Step.ANCESTORORSELF:for(var m=xpc.contextNode;null!=m&&(step.nodeTest.matches(m,xpc)&&newNodes.push(m),m!==xpc.virtualRoot);m=m.nodeType==NodeTypes_ATTRIBUTE_NODE?PathExpr.getOwnerElement(m):m.parentNode);break;case Step.ATTRIBUTE:var nnm=xpc.contextNode.attributes;if(null!=nnm)for(var k=0;k<nnm.length;k++){m=nnm.item(k);step.nodeTest.matches(m,xpc)&&newNodes.push(m)}break;case Step.CHILD:for(m=xpc.contextNode.firstChild;null!=m;m=m.nextSibling)step.nodeTest.matches(m,xpc)&&newNodes.push(m);break;case Step.DESCENDANT:for(var st=[xpc.contextNode.firstChild];st.length>0;)for(m=st.pop();null!=m;)step.nodeTest.matches(m,xpc)&&newNodes.push(m),null!=m.firstChild?(st.push(m.nextSibling),m=m.firstChild):m=m.nextSibling;break;case Step.DESCENDANTORSELF:step.nodeTest.matches(xpc.contextNode,xpc)&&newNodes.push(xpc.contextNode);for(st=[xpc.contextNode.firstChild];st.length>0;)for(m=st.pop();null!=m;)step.nodeTest.matches(m,xpc)&&newNodes.push(m),null!=m.firstChild?(st.push(m.nextSibling),m=m.firstChild):m=m.nextSibling;break;case Step.FOLLOWING:if(xpc.contextNode===xpc.virtualRoot)break;st=[];null!=xpc.contextNode.firstChild?st.unshift(xpc.contextNode.firstChild):st.unshift(xpc.contextNode.nextSibling);for(m=xpc.contextNode.parentNode;null!=m&&m.nodeType!=NodeTypes_DOCUMENT_NODE&&m!==xpc.virtualRoot;m=m.parentNode)st.unshift(m.nextSibling);do{for(m=st.pop();null!=m;)step.nodeTest.matches(m,xpc)&&newNodes.push(m),null!=m.firstChild?(st.push(m.nextSibling),m=m.firstChild):m=m.nextSibling}while(st.length>0);break;case Step.FOLLOWINGSIBLING:if(xpc.contextNode===xpc.virtualRoot)break;for(m=xpc.contextNode.nextSibling;null!=m;m=m.nextSibling)step.nodeTest.matches(m,xpc)&&newNodes.push(m);break;case Step.NAMESPACE:var n={};if(xpc.contextNode.nodeType==NodeTypes_ELEMENT_NODE){n.xml=XPath.XML_NAMESPACE_URI,n.xmlns=XPath.XMLNS_NAMESPACE_URI;for(m=xpc.contextNode;null!=m&&m.nodeType==NodeTypes_ELEMENT_NODE;m=m.parentNode)for(k=0;k<m.attributes.length;k++){var attr=m.attributes.item(k),nm=String(attr.name);if("xmlns"==nm)null==n[""]&&(n[""]=attr.value);else if(nm.length>6&&"xmlns:"==nm.substring(0,6)){null==n[pre=nm.substring(6,nm.length)]&&(n[pre]=attr.value)}}for(var pre in n){var nsn=new XPathNamespace(pre,n[pre],xpc.contextNode);step.nodeTest.matches(nsn,xpc)&&newNodes.push(nsn)}}break;case Step.PARENT:m=null,xpc.contextNode!==xpc.virtualRoot&&(m=xpc.contextNode.nodeType==NodeTypes_ATTRIBUTE_NODE?PathExpr.getOwnerElement(xpc.contextNode):xpc.contextNode.parentNode),null!=m&&step.nodeTest.matches(m,xpc)&&newNodes.push(m);break;case Step.PRECEDING:st=null!=xpc.virtualRoot?[xpc.virtualRoot]:[findRoot(xpc.contextNode)];outer:for(;st.length>0;)for(m=st.pop();null!=m;){if(m==xpc.contextNode)break outer;step.nodeTest.matches(m,xpc)&&newNodes.unshift(m),null!=m.firstChild?(st.push(m.nextSibling),m=m.firstChild):m=m.nextSibling}break;case Step.PRECEDINGSIBLING:if(xpc.contextNode===xpc.virtualRoot)break;for(m=xpc.contextNode.previousSibling;null!=m;m=m.previousSibling)step.nodeTest.matches(m,xpc)&&newNodes.push(m);break;case Step.SELF:step.nodeTest.matches(xpc.contextNode,xpc)&&newNodes.push(xpc.contextNode)}return newNodes},PathExpr.applySteps=function(steps,xpc,nodes){return reduce(applyStepToNodes.bind(null,xpc),nodes,steps)},PathExpr.prototype.applyFilter=function(c,xpc){if(!this.filter)return{nodes:[c.contextNode]};var ns=this.filter.evaluate(c);if(!Utilities.instance_of(ns,XNodeSet)){if(null!=this.filterPredicates&&this.filterPredicates.length>0||null!=this.locationPath)throw new Error("Path expression filter must evaluate to a nodeset if predicates or location path are used");return{nonNodes:ns}}return{nodes:PathExpr.applyPredicates(this.filterPredicates||[],xpc,ns.toUnsortedArray())}},PathExpr.applyLocationPath=function(locationPath,xpc,nodes){if(!locationPath)return nodes;var startNodes=locationPath.absolute?[PathExpr.getRoot(xpc,nodes)]:nodes;return PathExpr.applySteps(locationPath.steps,xpc,startNodes)},PathExpr.prototype.evaluate=function(c){var xpc=assign(new XPathContext,c),filterResult=this.applyFilter(c,xpc);if("nonNodes"in filterResult)return filterResult.nonNodes;var ns=new XNodeSet;return ns.addArray(PathExpr.applyLocationPath(this.locationPath,xpc,filterResult.nodes)),ns},PathExpr.predicateMatches=function(pred,c){var res=pred.evaluate(c);return Utilities.instance_of(res,XNumber)?c.contextPosition===res.numberValue():res.booleanValue()},PathExpr.predicateString=function(predicate){return wrap("[","]",predicate.toString())},PathExpr.predicatesString=function(predicates){return join("",map(PathExpr.predicateString,predicates))},PathExpr.prototype.toString=function(){if(null!=this.filter){var filterStr=toString(this.filter);return Utilities.instance_of(this.filter,XString)?wrap("'","'",filterStr):null!=this.filterPredicates&&this.filterPredicates.length?wrap("(",")",filterStr)+PathExpr.predicatesString(this.filterPredicates):null!=this.locationPath?filterStr+(this.locationPath.absolute?"":"/")+toString(this.locationPath):filterStr}return toString(this.locationPath)},PathExpr.getOwnerElement=function(n){if(n.ownerElement)return n.ownerElement;try{if(n.selectSingleNode)return n.selectSingleNode("..")}catch(e){}for(var elts=(n.nodeType==NodeTypes_DOCUMENT_NODE?n:n.ownerDocument).getElementsByTagName("*"),i=0;i<elts.length;i++)for(var elt=elts.item(i),nnm=elt.attributes,j=0;j<nnm.length;j++){if(nnm.item(j)===n)return elt}return null},LocationPath.prototype=new Object,LocationPath.prototype.constructor=LocationPath,LocationPath.superclass=Object.prototype,LocationPath.prototype.init=function(abs,steps){this.absolute=abs,this.steps=steps},LocationPath.prototype.toString=function(){return(this.absolute?"/":"")+map(toString,this.steps).join("/")},Step.prototype=new Object,Step.prototype.constructor=Step,Step.superclass=Object.prototype,Step.prototype.init=function(axis,nodetest,preds){this.axis=axis,this.nodeTest=nodetest,this.predicates=preds},Step.prototype.toString=function(){return Step.STEPNAMES[this.axis]+"::"+this.nodeTest.toString()+PathExpr.predicatesString(this.predicates)},Step.ANCESTOR=0,Step.ANCESTORORSELF=1,Step.ATTRIBUTE=2,Step.CHILD=3,Step.DESCENDANT=4,Step.DESCENDANTORSELF=5,Step.FOLLOWING=6,Step.FOLLOWINGSIBLING=7,Step.NAMESPACE=8,Step.PARENT=9,Step.PRECEDING=10,Step.PRECEDINGSIBLING=11,Step.SELF=12,Step.STEPNAMES=reduce((function(acc,x){return acc[x[0]]=x[1],acc}),{},[[Step.ANCESTOR,"ancestor"],[Step.ANCESTORORSELF,"ancestor-or-self"],[Step.ATTRIBUTE,"attribute"],[Step.CHILD,"child"],[Step.DESCENDANT,"descendant"],[Step.DESCENDANTORSELF,"descendant-or-self"],[Step.FOLLOWING,"following"],[Step.FOLLOWINGSIBLING,"following-sibling"],[Step.NAMESPACE,"namespace"],[Step.PARENT,"parent"],[Step.PRECEDING,"preceding"],[Step.PRECEDINGSIBLING,"preceding-sibling"],[Step.SELF,"self"]]),NodeTest.prototype=new Object,NodeTest.prototype.constructor=NodeTest,NodeTest.superclass=Object.prototype,NodeTest.prototype.init=function(type,value){this.type=type,this.value=value},NodeTest.prototype.toString=function(){return"<unknown nodetest type>"},NodeTest.prototype.matches=function(n,xpc){console.warn("unknown node test type")},NodeTest.NAMETESTANY=0,NodeTest.NAMETESTPREFIXANY=1,NodeTest.NAMETESTQNAME=2,NodeTest.COMMENT=3,NodeTest.TEXT=4,NodeTest.PI=5,NodeTest.NODE=6,NodeTest.isNodeType=function(types){return function(node){return function(values,value){for(var i=0;i<values.length;i+=1)if(values[i]===value)return!0;return!1}(types,node.nodeType)}},NodeTest.makeNodeTestType=function(type,members,ctor){var newType=ctor||function(){};return newType.prototype=new NodeTest(type),newType.prototype.constructor=newType,assign(newType.prototype,members),newType},NodeTest.makeNodeTypeTest=function(type,nodeTypes,stringVal){return new(NodeTest.makeNodeTestType(type,{matches:NodeTest.isNodeType(nodeTypes),toString:(value=stringVal,function(){return value})}));var value},NodeTest.hasPrefix=function(node){return node.prefix||-1!==(node.nodeName||node.tagName).indexOf(":")},NodeTest.isElementOrAttribute=NodeTest.isNodeType([1,2]),NodeTest.nameSpaceMatches=function(prefix,xpc,n){var nNamespace=n.namespaceURI||"";if(!prefix)return!nNamespace||xpc.allowAnyNamespaceForNoPrefix&&!NodeTest.hasPrefix(n);var ns=xpc.namespaceResolver.getNamespace(prefix,xpc.expressionContextNode);if(null==ns)throw new Error("Cannot resolve QName "+prefix);return ns===nNamespace},NodeTest.localNameMatches=function(localName,xpc,n){var nLocalName=n.localName||n.nodeName;return xpc.caseInsensitive?localName.toLowerCase()===nLocalName.toLowerCase():localName===nLocalName},NodeTest.NameTestPrefixAny=NodeTest.makeNodeTestType(NodeTest.NAMETESTPREFIXANY,{matches:function(n,xpc){return NodeTest.isElementOrAttribute(n)&&NodeTest.nameSpaceMatches(this.prefix,xpc,n)},toString:function(){return this.prefix+":*"}},(function NameTestPrefixAny(prefix){this.prefix=prefix})),NodeTest.NameTestQName=NodeTest.makeNodeTestType(NodeTest.NAMETESTQNAME,{matches:function(n,xpc){return NodeTest.isNodeType([NodeTypes_ELEMENT_NODE,NodeTypes_ATTRIBUTE_NODE,XPathNamespace.XPATH_NAMESPACE_NODE])(n)&&NodeTest.nameSpaceMatches(this.prefix,xpc,n)&&NodeTest.localNameMatches(this.localName,xpc,n)},toString:function(){return this.name}},(function NameTestQName(name){var nameParts=name.split(":");this.name=name,this.prefix=nameParts.length>1?nameParts[0]:null,this.localName=nameParts[nameParts.length>1?1:0]})),NodeTest.PITest=NodeTest.makeNodeTestType(NodeTest.PI,{matches:function(n,xpc){return NodeTest.isNodeType([NodeTypes_PROCESSING_INSTRUCTION_NODE])(n)&&(n.target||n.nodeName)===this.name},toString:function(){return wrap('processing-instruction("','")',this.name)}},(function(name){this.name=name})),NodeTest.nameTestAny=NodeTest.makeNodeTypeTest(NodeTest.NAMETESTANY,[NodeTypes_ELEMENT_NODE,NodeTypes_ATTRIBUTE_NODE,XPathNamespace.XPATH_NAMESPACE_NODE],"*"),NodeTest.textTest=NodeTest.makeNodeTypeTest(NodeTest.TEXT,[NodeTypes_TEXT_NODE,NodeTypes_CDATA_SECTION_NODE],"text()"),NodeTest.commentTest=NodeTest.makeNodeTypeTest(NodeTest.COMMENT,[NodeTypes_COMMENT_NODE],"comment()"),NodeTest.nodeTest=NodeTest.makeNodeTypeTest(NodeTest.NODE,[NodeTypes_ELEMENT_NODE,NodeTypes_ATTRIBUTE_NODE,NodeTypes_TEXT_NODE,NodeTypes_CDATA_SECTION_NODE,NodeTypes_PROCESSING_INSTRUCTION_NODE,NodeTypes_COMMENT_NODE,NodeTypes_DOCUMENT_NODE],"node()"),NodeTest.anyPiTest=NodeTest.makeNodeTypeTest(NodeTest.PI,[NodeTypes_PROCESSING_INSTRUCTION_NODE],"processing-instruction()"),VariableReference.prototype=new Expression,VariableReference.prototype.constructor=VariableReference,VariableReference.superclass=Expression.prototype,VariableReference.prototype.init=function(v){this.variable=v},VariableReference.prototype.toString=function(){return"$"+this.variable},VariableReference.prototype.evaluate=function(c){var parts=Utilities.resolveQName(this.variable,c.namespaceResolver,c.contextNode,!1);if(null==parts[0])throw new Error("Cannot resolve QName "+fn);var result=c.variableResolver.getVariable(parts[1],parts[0]);if(!result)throw XPathException.fromMessage("Undeclared variable: "+this.toString());return result},FunctionCall.prototype=new Expression,FunctionCall.prototype.constructor=FunctionCall,FunctionCall.superclass=Expression.prototype,FunctionCall.prototype.init=function(fn,args){this.functionName=fn,this.arguments=args},FunctionCall.prototype.toString=function(){for(var s=this.functionName+"(",i=0;i<this.arguments.length;i++)i>0&&(s+=", "),s+=this.arguments[i].toString();return s+")"},FunctionCall.prototype.evaluate=function(c){var f=FunctionResolver.getFunctionFromContext(this.functionName,c);if(!f)throw new Error("Unknown function "+this.functionName);var a=[c].concat(this.arguments);return f.apply(c.functionResolver.thisArg,a)};var Operators=new Object;function XString(s){arguments.length>0&&this.init(s)}function XNumber(n){arguments.length>0&&this.init(n)}function XBoolean(b){arguments.length>0&&this.init(b)}function AVLTree(n){this.init(n)}function XNodeSet(){this.init()}function XPathNamespace(pre,ns,p){this.isXPathNamespace=!0,this.ownerDocument=p.ownerDocument,this.nodeName="#namespace",this.prefix=pre,this.localName=pre,this.namespaceURI=ns,this.nodeValue=ns,this.ownerElement=p,this.nodeType=XPathNamespace.XPATH_NAMESPACE_NODE}function XPathContext(vr,nr,fr){this.variableResolver=null!=vr?vr:new VariableResolver,this.namespaceResolver=null!=nr?nr:new NamespaceResolver,this.functionResolver=null!=fr?fr:new FunctionResolver}function VariableResolver(){}function FunctionResolver(thisArg){this.thisArg=null!=thisArg?thisArg:Functions,this.functions=new Object,this.addStandardFunctions()}function NamespaceResolver(){}Operators.equals=function(l,r){return l.equals(r)},Operators.notequal=function(l,r){return l.notequal(r)},Operators.lessthan=function(l,r){return l.lessthan(r)},Operators.greaterthan=function(l,r){return l.greaterthan(r)},Operators.lessthanorequal=function(l,r){return l.lessthanorequal(r)},Operators.greaterthanorequal=function(l,r){return l.greaterthanorequal(r)},XString.prototype=new Expression,XString.prototype.constructor=XString,XString.superclass=Expression.prototype,XString.prototype.init=function(s){this.str=String(s)},XString.prototype.toString=function(){return this.str},XString.prototype.evaluate=function(c){return this},XString.prototype.string=function(){return this},XString.prototype.number=function(){return new XNumber(this.str)},XString.prototype.bool=function(){return new XBoolean(this.str)},XString.prototype.nodeset=function(){throw new Error("Cannot convert string to nodeset")},XString.prototype.stringValue=function(){return this.str},XString.prototype.numberValue=function(){return this.number().numberValue()},XString.prototype.booleanValue=function(){return this.bool().booleanValue()},XString.prototype.equals=function(r){return Utilities.instance_of(r,XBoolean)?this.bool().equals(r):Utilities.instance_of(r,XNumber)?this.number().equals(r):Utilities.instance_of(r,XNodeSet)?r.compareWithString(this,Operators.equals):new XBoolean(this.str==r.str)},XString.prototype.notequal=function(r){return Utilities.instance_of(r,XBoolean)?this.bool().notequal(r):Utilities.instance_of(r,XNumber)?this.number().notequal(r):Utilities.instance_of(r,XNodeSet)?r.compareWithString(this,Operators.notequal):new XBoolean(this.str!=r.str)},XString.prototype.lessthan=function(r){return this.number().lessthan(r)},XString.prototype.greaterthan=function(r){return this.number().greaterthan(r)},XString.prototype.lessthanorequal=function(r){return this.number().lessthanorequal(r)},XString.prototype.greaterthanorequal=function(r){return this.number().greaterthanorequal(r)},XNumber.prototype=new Expression,XNumber.prototype.constructor=XNumber,XNumber.superclass=Expression.prototype,XNumber.prototype.init=function(n){this.num="string"==typeof n?this.parse(n):Number(n)},XNumber.prototype.numberFormat=/^\s*-?[0-9]*\.?[0-9]+\s*$/,XNumber.prototype.parse=function(s){return this.numberFormat.test(s)?parseFloat(s):Number.NaN},XNumber.prototype.toString=function(){var strValue=this.num.toString();return-1!==strValue.indexOf("e-")?function padSmallNumber(numberStr){for(var parts=numberStr.split("e-"),base=parts[0].replace(".",""),exponent=Number(parts[1]),i=0;i<exponent-1;i+=1)base="0"+base;return"0."+base}(strValue):-1!==strValue.indexOf("e")?function padLargeNumber(numberStr){for(var parts=numberStr.split("e"),base=parts[0].replace(".",""),zerosToAppend=Number(parts[1])+1-base.length,i=0;i<zerosToAppend;i+=1)base+="0";return base}(strValue):strValue},XNumber.prototype.evaluate=function(c){return this},XNumber.prototype.string=function(){return new XString(this.toString())},XNumber.prototype.number=function(){return this},XNumber.prototype.bool=function(){return new XBoolean(this.num)},XNumber.prototype.nodeset=function(){throw new Error("Cannot convert number to nodeset")},XNumber.prototype.stringValue=function(){return this.string().stringValue()},XNumber.prototype.numberValue=function(){return this.num},XNumber.prototype.booleanValue=function(){return this.bool().booleanValue()},XNumber.prototype.negate=function(){return new XNumber(-this.num)},XNumber.prototype.equals=function(r){return Utilities.instance_of(r,XBoolean)?this.bool().equals(r):Utilities.instance_of(r,XString)?this.equals(r.number()):Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.equals):new XBoolean(this.num==r.num)},XNumber.prototype.notequal=function(r){return Utilities.instance_of(r,XBoolean)?this.bool().notequal(r):Utilities.instance_of(r,XString)?this.notequal(r.number()):Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.notequal):new XBoolean(this.num!=r.num)},XNumber.prototype.lessthan=function(r){return Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.greaterthan):Utilities.instance_of(r,XBoolean)||Utilities.instance_of(r,XString)?this.lessthan(r.number()):new XBoolean(this.num<r.num)},XNumber.prototype.greaterthan=function(r){return Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.lessthan):Utilities.instance_of(r,XBoolean)||Utilities.instance_of(r,XString)?this.greaterthan(r.number()):new XBoolean(this.num>r.num)},XNumber.prototype.lessthanorequal=function(r){return Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.greaterthanorequal):Utilities.instance_of(r,XBoolean)||Utilities.instance_of(r,XString)?this.lessthanorequal(r.number()):new XBoolean(this.num<=r.num)},XNumber.prototype.greaterthanorequal=function(r){return Utilities.instance_of(r,XNodeSet)?r.compareWithNumber(this,Operators.lessthanorequal):Utilities.instance_of(r,XBoolean)||Utilities.instance_of(r,XString)?this.greaterthanorequal(r.number()):new XBoolean(this.num>=r.num)},XNumber.prototype.plus=function(r){return new XNumber(this.num+r.num)},XNumber.prototype.minus=function(r){return new XNumber(this.num-r.num)},XNumber.prototype.multiply=function(r){return new XNumber(this.num*r.num)},XNumber.prototype.div=function(r){return new XNumber(this.num/r.num)},XNumber.prototype.mod=function(r){return new XNumber(this.num%r.num)},XBoolean.prototype=new Expression,XBoolean.prototype.constructor=XBoolean,XBoolean.superclass=Expression.prototype,XBoolean.prototype.init=function(b){this.b=Boolean(b)},XBoolean.prototype.toString=function(){return this.b.toString()},XBoolean.prototype.evaluate=function(c){return this},XBoolean.prototype.string=function(){return new XString(this.b)},XBoolean.prototype.number=function(){return new XNumber(this.b)},XBoolean.prototype.bool=function(){return this},XBoolean.prototype.nodeset=function(){throw new Error("Cannot convert boolean to nodeset")},XBoolean.prototype.stringValue=function(){return this.string().stringValue()},XBoolean.prototype.numberValue=function(){return this.number().numberValue()},XBoolean.prototype.booleanValue=function(){return this.b},XBoolean.prototype.not=function(){return new XBoolean(!this.b)},XBoolean.prototype.equals=function(r){return Utilities.instance_of(r,XString)||Utilities.instance_of(r,XNumber)?this.equals(r.bool()):Utilities.instance_of(r,XNodeSet)?r.compareWithBoolean(this,Operators.equals):new XBoolean(this.b==r.b)},XBoolean.prototype.notequal=function(r){return Utilities.instance_of(r,XString)||Utilities.instance_of(r,XNumber)?this.notequal(r.bool()):Utilities.instance_of(r,XNodeSet)?r.compareWithBoolean(this,Operators.notequal):new XBoolean(this.b!=r.b)},XBoolean.prototype.lessthan=function(r){return this.number().lessthan(r)},XBoolean.prototype.greaterthan=function(r){return this.number().greaterthan(r)},XBoolean.prototype.lessthanorequal=function(r){return this.number().lessthanorequal(r)},XBoolean.prototype.greaterthanorequal=function(r){return this.number().greaterthanorequal(r)},XBoolean.true_=new XBoolean(!0),XBoolean.false_=new XBoolean(!1),AVLTree.prototype=new Object,AVLTree.prototype.constructor=AVLTree,AVLTree.superclass=Object.prototype,AVLTree.prototype.init=function(n){this.left=null,this.right=null,this.node=n,this.depth=1},AVLTree.prototype.balance=function(){var ldepth=null==this.left?0:this.left.depth,rdepth=null==this.right?0:this.right.depth;if(ldepth>rdepth+1)(null==this.left.left?0:this.left.left.depth)<(null==this.left.right?0:this.left.right.depth)&&this.left.rotateRR(),this.rotateLL();else if(ldepth+1<rdepth){var rrdepth=null==this.right.right?0:this.right.right.depth;(null==this.right.left?0:this.right.left.depth)>rrdepth&&this.right.rotateLL(),this.rotateRR()}},AVLTree.prototype.rotateLL=function(){var nodeBefore=this.node,rightBefore=this.right;this.node=this.left.node,this.right=this.left,this.left=this.left.left,this.right.left=this.right.right,this.right.right=rightBefore,this.right.node=nodeBefore,this.right.updateInNewLocation(),this.updateInNewLocation()},AVLTree.prototype.rotateRR=function(){var nodeBefore=this.node,leftBefore=this.left;this.node=this.right.node,this.left=this.right,this.right=this.right.right,this.left.right=this.left.left,this.left.left=leftBefore,this.left.node=nodeBefore,this.left.updateInNewLocation(),this.updateInNewLocation()},AVLTree.prototype.updateInNewLocation=function(){this.getDepthFromChildren()},AVLTree.prototype.getDepthFromChildren=function(){this.depth=null==this.node?0:1,null!=this.left&&(this.depth=this.left.depth+1),null!=this.right&&this.depth<=this.right.depth&&(this.depth=this.right.depth+1)},AVLTree.prototype.add=function(n){if(n===this.node)return!1;var o=function nodeOrder(n1,n2){if(n1===n2)return 0;if(n1.compareDocumentPosition){var cpos=n1.compareDocumentPosition(n2);return 1&cpos||10&cpos?1:20&cpos?-1:0}for(var d1=0,d2=0,m1=n1;null!=m1;m1=m1.parentNode||m1.ownerElement)d1++;for(var m2=n2;null!=m2;m2=m2.parentNode||m2.ownerElement)d2++;if(d1>d2){for(;d1>d2;)n1=n1.parentNode||n1.ownerElement,d1--;if(n1===n2)return 1}else if(d2>d1){for(;d2>d1;)n2=n2.parentNode||n2.ownerElement,d2--;if(n1===n2)return-1}for(var n1Par=n1.parentNode||n1.ownerElement,n2Par=n2.parentNode||n2.ownerElement;n1Par!==n2Par;)n2=n2Par,n1Par=(n1=n1Par).parentNode||n1.ownerElement,n2Par=n2.parentNode||n2.ownerElement;var n1isAttr=Utilities.isAttribute(n1),n2isAttr=Utilities.isAttribute(n2);if(n1isAttr&&!n2isAttr)return-1;if(!n1isAttr&&n2isAttr)return 1;if(n1Par)for(var cn=n1isAttr?n1Par.attributes:n1Par.childNodes,len=cn.length,i=0;i<len;i+=1){var n=cn[i];if(n===n1)return-1;if(n===n2)return 1}throw new Error("Unexpected: could not determine node order")}(n,this.node),ret=!1;return-1==o?null==this.left?(this.left=new AVLTree(n),ret=!0):(ret=this.left.add(n))&&this.balance():1==o&&(null==this.right?(this.right=new AVLTree(n),ret=!0):(ret=this.right.add(n))&&this.balance()),ret&&this.getDepthFromChildren(),ret},XNodeSet.prototype=new Expression,XNodeSet.prototype.constructor=XNodeSet,XNodeSet.superclass=Expression.prototype,XNodeSet.prototype.init=function(){this.tree=null,this.nodes=[],this.size=0},XNodeSet.prototype.toString=function(){var p=this.first();return null==p?"":this.stringForNode(p)},XNodeSet.prototype.evaluate=function(c){return this},XNodeSet.prototype.string=function(){return new XString(this.toString())},XNodeSet.prototype.stringValue=function(){return this.toString()},XNodeSet.prototype.number=function(){return new XNumber(this.string())},XNodeSet.prototype.numberValue=function(){return Number(this.string())},XNodeSet.prototype.bool=function(){return new XBoolean(this.booleanValue())},XNodeSet.prototype.booleanValue=function(){return!!this.size},XNodeSet.prototype.nodeset=function(){return this},XNodeSet.prototype.stringForNode=function(n){return n.nodeType==NodeTypes_DOCUMENT_NODE||n.nodeType==NodeTypes_ELEMENT_NODE||n.nodeType===NodeTypes_DOCUMENT_FRAGMENT_NODE?this.stringForContainerNode(n):n.nodeType===NodeTypes_ATTRIBUTE_NODE?n.value||n.nodeValue:n.isNamespaceNode?n.namespace:n.nodeValue},XNodeSet.prototype.stringForContainerNode=function(n){for(var s="",n2=n.firstChild;null!=n2;n2=n2.nextSibling){var nt=n2.nodeType;1!==nt&&3!==nt&&4!==nt&&9!==nt&&11!==nt||(s+=this.stringForNode(n2))}return s},XNodeSet.prototype.buildTree=function(){if(!this.tree&&this.nodes.length){this.tree=new AVLTree(this.nodes[0]);for(var i=1;i<this.nodes.length;i+=1)this.tree.add(this.nodes[i])}return this.tree},XNodeSet.prototype.first=function(){var p=this.buildTree();if(null==p)return null;for(;null!=p.left;)p=p.left;return p.node},XNodeSet.prototype.add=function(n){for(var i=0;i<this.nodes.length;i+=1)if(n===this.nodes[i])return;this.tree=null,this.nodes.push(n),this.size+=1},XNodeSet.prototype.addArray=function(ns){var self=this;forEach((function(x){self.add(x)}),ns)},XNodeSet.prototype.toArray=function(){var a=[];return this.toArrayRec(this.buildTree(),a),a},XNodeSet.prototype.toArrayRec=function(t,a){null!=t&&(this.toArrayRec(t.left,a),a.push(t.node),this.toArrayRec(t.right,a))},XNodeSet.prototype.toUnsortedArray=function(){return this.nodes.slice()},XNodeSet.prototype.compareWithString=function(r,o){for(var a=this.toUnsortedArray(),i=0;i<a.length;i++){var n=a[i],res=o(new XString(this.stringForNode(n)),r);if(res.booleanValue())return res}return new XBoolean(!1)},XNodeSet.prototype.compareWithNumber=function(r,o){for(var a=this.toUnsortedArray(),i=0;i<a.length;i++){var n=a[i],res=o(new XNumber(this.stringForNode(n)),r);if(res.booleanValue())return res}return new XBoolean(!1)},XNodeSet.prototype.compareWithBoolean=function(r,o){return o(this.bool(),r)},XNodeSet.prototype.compareWithNodeSet=function(r,o){for(var arr=this.toUnsortedArray(),oInvert=function(lop,rop){return o(rop,lop)},i=0;i<arr.length;i++){var l=new XString(this.stringForNode(arr[i])),res=r.compareWithString(l,oInvert);if(res.booleanValue())return res}return new XBoolean(!1)},XNodeSet.compareWith=function curry(func){var slice=Array.prototype.slice,totalargs=func.length,fn=function(){var args=slice.call(arguments);return args.length<totalargs?function(args,fn){return function(){return fn.apply(this,args.concat(slice.call(arguments)))}}(args,fn):func.apply(this,slice.apply(arguments,[0,totalargs]))};return fn}((function(o,r){return Utilities.instance_of(r,XString)?this.compareWithString(r,o):Utilities.instance_of(r,XNumber)?this.compareWithNumber(r,o):Utilities.instance_of(r,XBoolean)?this.compareWithBoolean(r,o):this.compareWithNodeSet(r,o)})),XNodeSet.prototype.equals=XNodeSet.compareWith(Operators.equals),XNodeSet.prototype.notequal=XNodeSet.compareWith(Operators.notequal),XNodeSet.prototype.lessthan=XNodeSet.compareWith(Operators.lessthan),XNodeSet.prototype.greaterthan=XNodeSet.compareWith(Operators.greaterthan),XNodeSet.prototype.lessthanorequal=XNodeSet.compareWith(Operators.lessthanorequal),XNodeSet.prototype.greaterthanorequal=XNodeSet.compareWith(Operators.greaterthanorequal),XNodeSet.prototype.union=function(r){var ns=new XNodeSet;return ns.addArray(this.toUnsortedArray()),ns.addArray(r.toUnsortedArray()),ns},XPathNamespace.prototype=new Object,XPathNamespace.prototype.constructor=XPathNamespace,XPathNamespace.superclass=Object.prototype,XPathNamespace.prototype.toString=function(){return'{ "'+this.prefix+'", "'+this.namespaceURI+'" }'},XPathContext.prototype=new Object,XPathContext.prototype.constructor=XPathContext,XPathContext.superclass=Object.prototype,XPathContext.prototype.extend=function(newProps){return assign(new XPathContext,this,newProps)},VariableResolver.prototype=new Object,VariableResolver.prototype.constructor=VariableResolver,VariableResolver.superclass=Object.prototype,VariableResolver.prototype.getVariable=function(ln,ns){return null},FunctionResolver.prototype=new Object,FunctionResolver.prototype.constructor=FunctionResolver,FunctionResolver.superclass=Object.prototype,FunctionResolver.prototype.addStandardFunctions=function(){this.functions["{}last"]=Functions.last,this.functions["{}position"]=Functions.position,this.functions["{}count"]=Functions.count,this.functions["{}id"]=Functions.id,this.functions["{}local-name"]=Functions.localName,this.functions["{}namespace-uri"]=Functions.namespaceURI,this.functions["{}name"]=Functions.name,this.functions["{}string"]=Functions.string,this.functions["{}concat"]=Functions.concat,this.functions["{}starts-with"]=Functions.startsWith,this.functions["{}contains"]=Functions.contains,this.functions["{}substring-before"]=Functions.substringBefore,this.functions["{}substring-after"]=Functions.substringAfter,this.functions["{}substring"]=Functions.substring,this.functions["{}string-length"]=Functions.stringLength,this.functions["{}normalize-space"]=Functions.normalizeSpace,this.functions["{}translate"]=Functions.translate,this.functions["{}boolean"]=Functions.boolean_,this.functions["{}not"]=Functions.not,this.functions["{}true"]=Functions.true_,this.functions["{}false"]=Functions.false_,this.functions["{}lang"]=Functions.lang,this.functions["{}number"]=Functions.number,this.functions["{}sum"]=Functions.sum,this.functions["{}floor"]=Functions.floor,this.functions["{}ceiling"]=Functions.ceiling,this.functions["{}round"]=Functions.round},FunctionResolver.prototype.addFunction=function(ns,ln,f){this.functions["{"+ns+"}"+ln]=f},FunctionResolver.getFunctionFromContext=function(qName,context){var parts=Utilities.resolveQName(qName,context.namespaceResolver,context.contextNode,!1);if(null===parts[0])throw new Error("Cannot resolve QName "+name);return context.functionResolver.getFunction(parts[1],parts[0])},FunctionResolver.prototype.getFunction=function(localName,namespace){return this.functions["{"+namespace+"}"+localName]},NamespaceResolver.prototype=new Object,NamespaceResolver.prototype.constructor=NamespaceResolver,NamespaceResolver.superclass=Object.prototype,NamespaceResolver.prototype.getNamespace=function(prefix,n){if("xml"==prefix)return XPath.XML_NAMESPACE_URI;if("xmlns"==prefix)return XPath.XMLNS_NAMESPACE_URI;for(n.nodeType==NodeTypes_DOCUMENT_NODE?n=n.documentElement:n.nodeType==NodeTypes_ATTRIBUTE_NODE?n=PathExpr.getOwnerElement(n):n.nodeType!=NodeTypes_ELEMENT_NODE&&(n=n.parentNode);null!=n&&n.nodeType==NodeTypes_ELEMENT_NODE;){for(var nnm=n.attributes,i=0;i<nnm.length;i++){var a=nnm.item(i),aname=a.name||a.nodeName;if("xmlns"===aname&&""===prefix||aname==="xmlns:"+prefix)return String(a.value||a.nodeValue)}n=n.parentNode}return null};var Functions=new Object;Functions.last=function(c){if(1!=arguments.length)throw new Error("Function last expects ()");return new XNumber(c.contextSize)},Functions.position=function(c){if(1!=arguments.length)throw new Error("Function position expects ()");return new XNumber(c.contextPosition)},Functions.count=function(){var ns,c=arguments[0];if(2!=arguments.length||!Utilities.instance_of(ns=arguments[1].evaluate(c),XNodeSet))throw new Error("Function count expects (node-set)");return new XNumber(ns.size)},Functions.id=function(){var id,c=arguments[0];if(2!=arguments.length)throw new Error("Function id expects (object)");id=arguments[1].evaluate(c);for(var ids=(id=Utilities.instance_of(id,XNodeSet)?id.toArray().join(" "):id.stringValue()).split(/[\x0d\x0a\x09\x20]+/),ns=new XNodeSet,doc=c.contextNode.nodeType==NodeTypes_DOCUMENT_NODE?c.contextNode:c.contextNode.ownerDocument,i=0;i<ids.length;i++){var n;null!=(n=doc.getElementById?doc.getElementById(ids[i]):Utilities.getElementById(doc,ids[i]))&&ns.add(n)}return ns},Functions.localName=function(c,eNode){var n;if(1==arguments.length)n=c.contextNode;else{if(2!=arguments.length)throw new Error("Function local-name expects (node-set?)");n=eNode.evaluate(c).first()}return new XString(null==n?"":n.localName||n.baseName||n.target||n.nodeName||"")},Functions.namespaceURI=function(){var n,c=arguments[0];if(1==arguments.length)n=c.contextNode;else{if(2!=arguments.length)throw new Error("Function namespace-uri expects (node-set?)");n=arguments[1].evaluate(c).first()}return new XString(null==n?"":n.namespaceURI)},Functions.name=function(){var n,c=arguments[0];if(1==arguments.length)n=c.contextNode;else{if(2!=arguments.length)throw new Error("Function name expects (node-set?)");n=arguments[1].evaluate(c).first()}return null==n?new XString(""):n.nodeType==NodeTypes_ELEMENT_NODE?new XString(n.nodeName):n.nodeType==NodeTypes_ATTRIBUTE_NODE?new XString(n.name||n.nodeName):n.nodeType===NodeTypes_PROCESSING_INSTRUCTION_NODE?new XString(n.target||n.nodeName):null==n.localName?new XString(""):new XString(n.localName)},Functions.string=function(){var c=arguments[0];if(1==arguments.length)return new XString(XNodeSet.prototype.stringForNode(c.contextNode));if(2==arguments.length)return arguments[1].evaluate(c).string();throw new Error("Function string expects (object?)")},Functions.concat=function(c){if(arguments.length<3)throw new Error("Function concat expects (string, string[, string]*)");for(var s="",i=1;i<arguments.length;i++)s+=arguments[i].evaluate(c).stringValue();return new XString(s)},Functions.startsWith=function(){var c=arguments[0];if(3!=arguments.length)throw new Error("Function startsWith expects (string, string)");var s1=arguments[1].evaluate(c).stringValue(),s2=arguments[2].evaluate(c).stringValue();return new XBoolean(s1.substring(0,s2.length)==s2)},Functions.contains=function(){var c=arguments[0];if(3!=arguments.length)throw new Error("Function contains expects (string, string)");var s1=arguments[1].evaluate(c).stringValue(),s2=arguments[2].evaluate(c).stringValue();return new XBoolean(-1!==s1.indexOf(s2))},Functions.substringBefore=function(){var c=arguments[0];if(3!=arguments.length)throw new Error("Function substring-before expects (string, string)");var s1=arguments[1].evaluate(c).stringValue(),s2=arguments[2].evaluate(c).stringValue();return new XString(s1.substring(0,s1.indexOf(s2)))},Functions.substringAfter=function(){var c=arguments[0];if(3!=arguments.length)throw new Error("Function substring-after expects (string, string)");var s1=arguments[1].evaluate(c).stringValue(),s2=arguments[2].evaluate(c).stringValue();if(0==s2.length)return new XString(s1);var i=s1.indexOf(s2);return new XString(-1==i?"":s1.substring(i+s2.length))},Functions.substring=function(){var c=arguments[0];if(3!=arguments.length&&4!=arguments.length)throw new Error("Function substring expects (string, number, number?)");var s=arguments[1].evaluate(c).stringValue(),n1=Math.round(arguments[2].evaluate(c).numberValue())-1,n2=4==arguments.length?n1+Math.round(arguments[3].evaluate(c).numberValue()):void 0;return new XString(s.substring(n1,n2))},Functions.stringLength=function(){var s,c=arguments[0];if(1==arguments.length)s=XNodeSet.prototype.stringForNode(c.contextNode);else{if(2!=arguments.length)throw new Error("Function string-length expects (string?)");s=arguments[1].evaluate(c).stringValue()}return new XNumber(s.length)},Functions.normalizeSpace=function(){var s,c=arguments[0];if(1==arguments.length)s=XNodeSet.prototype.stringForNode(c.contextNode);else{if(2!=arguments.length)throw new Error("Function normalize-space expects (string?)");s=arguments[1].evaluate(c).stringValue()}for(var i=0,j=s.length-1;Utilities.isSpace(s.charCodeAt(j));)j--;for(var t="";i<=j&&Utilities.isSpace(s.charCodeAt(i));)i++;for(;i<=j;)if(Utilities.isSpace(s.charCodeAt(i)))for(t+=" ";i<=j&&Utilities.isSpace(s.charCodeAt(i));)i++;else t+=s.charAt(i),i++;return new XString(t)},Functions.translate=function(c,eValue,eFrom,eTo){if(4!=arguments.length)throw new Error("Function translate expects (string, string, string)");var value=eValue.evaluate(c).stringValue(),from=eFrom.evaluate(c).stringValue(),to=eTo.evaluate(c).stringValue(),cMap=reduce((function(acc,ch,i){return ch in acc||(acc[ch]=i>to.length?"":to[i]),acc}),{},from);return new XString(join("",map((function(ch){return ch in cMap?cMap[ch]:ch}),value)))},Functions.boolean_=function(){var c=arguments[0];if(2!=arguments.length)throw new Error("Function boolean expects (object)");return arguments[1].evaluate(c).bool()},Functions.not=function(c,eValue){if(2!=arguments.length)throw new Error("Function not expects (object)");return eValue.evaluate(c).bool().not()},Functions.true_=function(){if(1!=arguments.length)throw new Error("Function true expects ()");return XBoolean.true_},Functions.false_=function(){if(1!=arguments.length)throw new Error("Function false expects ()");return XBoolean.false_},Functions.lang=function(){var lang,c=arguments[0];if(2!=arguments.length)throw new Error("Function lang expects (string)");for(var n=c.contextNode;null!=n&&n.nodeType!=NodeTypes_DOCUMENT_NODE;n=n.parentNode){var a=n.getAttributeNS(XPath.XML_NAMESPACE_URI,"lang");if(null!=a){lang=String(a);break}}if(null==lang)return XBoolean.false_;var s=arguments[1].evaluate(c).stringValue();return new XBoolean(lang.substring(0,s.length)==s&&(lang.length==s.length||"-"==lang.charAt(s.length)))},Functions.number=function(){var c=arguments[0];if(1!=arguments.length&&2!=arguments.length)throw new Error("Function number expects (object?)");return 1==arguments.length?new XNumber(XNodeSet.prototype.stringForNode(c.contextNode)):arguments[1].evaluate(c).number()},Functions.sum=function(){var ns,c=arguments[0];if(2!=arguments.length||!Utilities.instance_of(ns=arguments[1].evaluate(c),XNodeSet))throw new Error("Function sum expects (node-set)");ns=ns.toUnsortedArray();for(var n=0,i=0;i<ns.length;i++)n+=new XNumber(XNodeSet.prototype.stringForNode(ns[i])).numberValue();return new XNumber(n)},Functions.floor=function(){var c=arguments[0];if(2!=arguments.length)throw new Error("Function floor expects (number)");return new XNumber(Math.floor(arguments[1].evaluate(c).numberValue()))},Functions.ceiling=function(){var c=arguments[0];if(2!=arguments.length)throw new Error("Function ceiling expects (number)");return new XNumber(Math.ceil(arguments[1].evaluate(c).numberValue()))},Functions.round=function(){var c=arguments[0];if(2!=arguments.length)throw new Error("Function round expects (number)");return new XNumber(Math.round(arguments[1].evaluate(c).numberValue()))};var Utilities=new Object;Utilities.isAttribute=function(val){return val&&(val.nodeType===NodeTypes_ATTRIBUTE_NODE||val.ownerElement)},Utilities.splitQName=function(qn){var i=qn.indexOf(":");return-1==i?[null,qn]:[qn.substring(0,i),qn.substring(i+1)]},Utilities.resolveQName=function(qn,nr,n,useDefault){var parts=Utilities.splitQName(qn);return null!=parts[0]?parts[0]=nr.getNamespace(parts[0],n):useDefault?(parts[0]=nr.getNamespace("",n),null==parts[0]&&(parts[0]="")):parts[0]="",parts},Utilities.isSpace=function(c){return 9==c||13==c||10==c||32==c},Utilities.isLetter=function(c){return c>=65&&c<=90||c>=97&&c<=122||c>=192&&c<=214||c>=216&&c<=246||c>=248&&c<=255||c>=256&&c<=305||c>=308&&c<=318||c>=321&&c<=328||c>=330&&c<=382||c>=384&&c<=451||c>=461&&c<=496||c>=500&&c<=501||c>=506&&c<=535||c>=592&&c<=680||c>=699&&c<=705||902==c||c>=904&&c<=906||908==c||c>=910&&c<=929||c>=931&&c<=974||c>=976&&c<=982||986==c||988==c||990==c||992==c||c>=994&&c<=1011||c>=1025&&c<=1036||c>=1038&&c<=1103||c>=1105&&c<=1116||c>=1118&&c<=1153||c>=1168&&c<=1220||c>=1223&&c<=1224||c>=1227&&c<=1228||c>=1232&&c<=1259||c>=1262&&c<=1269||c>=1272&&c<=1273||c>=1329&&c<=1366||1369==c||c>=1377&&c<=1414||c>=1488&&c<=1514||c>=1520&&c<=1522||c>=1569&&c<=1594||c>=1601&&c<=1610||c>=1649&&c<=1719||c>=1722&&c<=1726||c>=1728&&c<=1742||c>=1744&&c<=1747||1749==c||c>=1765&&c<=1766||c>=2309&&c<=2361||2365==c||c>=2392&&c<=2401||c>=2437&&c<=2444||c>=2447&&c<=2448||c>=2451&&c<=2472||c>=2474&&c<=2480||2482==c||c>=2486&&c<=2489||c>=2524&&c<=2525||c>=2527&&c<=2529||c>=2544&&c<=2545||c>=2565&&c<=2570||c>=2575&&c<=2576||c>=2579&&c<=2600||c>=2602&&c<=2608||c>=2610&&c<=2611||c>=2613&&c<=2614||c>=2616&&c<=2617||c>=2649&&c<=2652||2654==c||c>=2674&&c<=2676||c>=2693&&c<=2699||2701==c||c>=2703&&c<=2705||c>=2707&&c<=2728||c>=2730&&c<=2736||c>=2738&&c<=2739||c>=2741&&c<=2745||2749==c||2784==c||c>=2821&&c<=2828||c>=2831&&c<=2832||c>=2835&&c<=2856||c>=2858&&c<=2864||c>=2866&&c<=2867||c>=2870&&c<=2873||2877==c||c>=2908&&c<=2909||c>=2911&&c<=2913||c>=2949&&c<=2954||c>=2958&&c<=2960||c>=2962&&c<=2965||c>=2969&&c<=2970||2972==c||c>=2974&&c<=2975||c>=2979&&c<=2980||c>=2984&&c<=2986||c>=2990&&c<=2997||c>=2999&&c<=3001||c>=3077&&c<=3084||c>=3086&&c<=3088||c>=3090&&c<=3112||c>=3114&&c<=3123||c>=3125&&c<=3129||c>=3168&&c<=3169||c>=3205&&c<=3212||c>=3214&&c<=3216||c>=3218&&c<=3240||c>=3242&&c<=3251||c>=3253&&c<=3257||3294==c||c>=3296&&c<=3297||c>=3333&&c<=3340||c>=3342&&c<=3344||c>=3346&&c<=3368||c>=3370&&c<=3385||c>=3424&&c<=3425||c>=3585&&c<=3630||3632==c||c>=3634&&c<=3635||c>=3648&&c<=3653||c>=3713&&c<=3714||3716==c||c>=3719&&c<=3720||3722==c||3725==c||c>=3732&&c<=3735||c>=3737&&c<=3743||c>=3745&&c<=3747||3749==c||3751==c||c>=3754&&c<=3755||c>=3757&&c<=3758||3760==c||c>=3762&&c<=3763||3773==c||c>=3776&&c<=3780||c>=3904&&c<=3911||c>=3913&&c<=3945||c>=4256&&c<=4293||c>=4304&&c<=4342||4352==c||c>=4354&&c<=4355||c>=4357&&c<=4359||4361==c||c>=4363&&c<=4364||c>=4366&&c<=4370||4412==c||4414==c||4416==c||4428==c||4430==c||4432==c||c>=4436&&c<=4437||4441==c||c>=4447&&c<=4449||4451==c||4453==c||4455==c||4457==c||c>=4461&&c<=4462||c>=4466&&c<=4467||4469==c||4510==c||4520==c||4523==c||c>=4526&&c<=4527||c>=4535&&c<=4536||4538==c||c>=4540&&c<=4546||4587==c||4592==c||4601==c||c>=7680&&c<=7835||c>=7840&&c<=7929||c>=7936&&c<=7957||c>=7960&&c<=7965||c>=7968&&c<=8005||c>=8008&&c<=8013||c>=8016&&c<=8023||8025==c||8027==c||8029==c||c>=8031&&c<=8061||c>=8064&&c<=8116||c>=8118&&c<=8124||8126==c||c>=8130&&c<=8132||c>=8134&&c<=8140||c>=8144&&c<=8147||c>=8150&&c<=8155||c>=8160&&c<=8172||c>=8178&&c<=8180||c>=8182&&c<=8188||8486==c||c>=8490&&c<=8491||8494==c||c>=8576&&c<=8578||c>=12353&&c<=12436||c>=12449&&c<=12538||c>=12549&&c<=12588||c>=44032&&c<=55203||c>=19968&&c<=40869||12295==c||c>=12321&&c<=12329},Utilities.isNCNameChar=function(c){return c>=48&&c<=57||c>=1632&&c<=1641||c>=1776&&c<=1785||c>=2406&&c<=2415||c>=2534&&c<=2543||c>=2662&&c<=2671||c>=2790&&c<=2799||c>=2918&&c<=2927||c>=3047&&c<=3055||c>=3174&&c<=3183||c>=3302&&c<=3311||c>=3430&&c<=3439||c>=3664&&c<=3673||c>=3792&&c<=3801||c>=3872&&c<=3881||46==c||45==c||95==c||Utilities.isLetter(c)||c>=768&&c<=837||c>=864&&c<=865||c>=1155&&c<=1158||c>=1425&&c<=1441||c>=1443&&c<=1465||c>=1467&&c<=1469||1471==c||c>=1473&&c<=1474||1476==c||c>=1611&&c<=1618||1648==c||c>=1750&&c<=1756||c>=1757&&c<=1759||c>=1760&&c<=1764||c>=1767&&c<=1768||c>=1770&&c<=1773||c>=2305&&c<=2307||2364==c||c>=2366&&c<=2380||2381==c||c>=2385&&c<=2388||c>=2402&&c<=2403||c>=2433&&c<=2435||2492==c||2494==c||2495==c||c>=2496&&c<=2500||c>=2503&&c<=2504||c>=2507&&c<=2509||2519==c||c>=2530&&c<=2531||2562==c||2620==c||2622==c||2623==c||c>=2624&&c<=2626||c>=2631&&c<=2632||c>=2635&&c<=2637||c>=2672&&c<=2673||c>=2689&&c<=2691||2748==c||c>=2750&&c<=2757||c>=2759&&c<=2761||c>=2763&&c<=2765||c>=2817&&c<=2819||2876==c||c>=2878&&c<=2883||c>=2887&&c<=2888||c>=2891&&c<=2893||c>=2902&&c<=2903||c>=2946&&c<=2947||c>=3006&&c<=3010||c>=3014&&c<=3016||c>=3018&&c<=3021||3031==c||c>=3073&&c<=3075||c>=3134&&c<=3140||c>=3142&&c<=3144||c>=3146&&c<=3149||c>=3157&&c<=3158||c>=3202&&c<=3203||c>=3262&&c<=3268||c>=3270&&c<=3272||c>=3274&&c<=3277||c>=3285&&c<=3286||c>=3330&&c<=3331||c>=3390&&c<=3395||c>=3398&&c<=3400||c>=3402&&c<=3405||3415==c||3633==c||c>=3636&&c<=3642||c>=3655&&c<=3662||3761==c||c>=3764&&c<=3769||c>=3771&&c<=3772||c>=3784&&c<=3789||c>=3864&&c<=3865||3893==c||3895==c||3897==c||3902==c||3903==c||c>=3953&&c<=3972||c>=3974&&c<=3979||c>=3984&&c<=3989||3991==c||c>=3993&&c<=4013||c>=4017&&c<=4023||4025==c||c>=8400&&c<=8412||8417==c||c>=12330&&c<=12335||12441==c||12442==c||183==c||720==c||721==c||903==c||1600==c||3654==c||3782==c||12293==c||c>=12337&&c<=12341||c>=12445&&c<=12446||c>=12540&&c<=12542},Utilities.coalesceText=function(n){for(var m=n.firstChild;null!=m;m=m.nextSibling)if(m.nodeType==NodeTypes_TEXT_NODE||m.nodeType==NodeTypes_CDATA_SECTION_NODE){var s=m.nodeValue,first=m;for(m=m.nextSibling;null!=m&&(m.nodeType==NodeTypes_TEXT_NODE||m.nodeType==NodeTypes_CDATA_SECTION_NODE);){s+=m.nodeValue;var del=m;m=m.nextSibling,del.parentNode.removeChild(del)}if(first.nodeType==NodeTypes_CDATA_SECTION_NODE){var p=first.parentNode;if(null==first.nextSibling)p.removeChild(first),p.appendChild(p.ownerDocument.createTextNode(s));else{var next=first.nextSibling;p.removeChild(first),p.insertBefore(p.ownerDocument.createTextNode(s),next)}}else first.nodeValue=s;if(null==m)break}else m.nodeType==NodeTypes_ELEMENT_NODE&&Utilities.coalesceText(m)},Utilities.instance_of=function(o,c){for(;null!=o;){if(o.constructor===c)return!0;if(o===Object)return!1;o=o.constructor.superclass}return!1},Utilities.getElementById=function(n,id){if(n.nodeType==NodeTypes_ELEMENT_NODE&&(n.getAttribute("id")==id||n.getAttributeNS(null,"id")==id))return n;for(var m=n.firstChild;null!=m;m=m.nextSibling){var res=Utilities.getElementById(m,id);if(null!=res)return res}return null};var XPathException=function(){function XPathException(code,error,message){var err=Error.call(this,function getMessage(code,exception){var msg=exception?": "+exception.toString():"";switch(code){case XPathException.INVALID_EXPRESSION_ERR:return"Invalid expression"+msg;case XPathException.TYPE_ERR:return"Type error"+msg}return null}(code,error)||message);return err.code=code,err.exception=error,err}return XPathException.prototype=Object.create(Error.prototype),XPathException.prototype.constructor=XPathException,XPathException.superclass=Error,XPathException.prototype.toString=function(){return this.message},XPathException.fromMessage=function(message,error){return new XPathException(null,error,message)},XPathException.INVALID_EXPRESSION_ERR=51,XPathException.TYPE_ERR=52,XPathException}();function XPathExpression(e,r,p){this.xpath=p.parse(e),this.context=new XPathContext,this.context.namespaceResolver=new XPathNSResolverWrapper(r)}function XPathNSResolverWrapper(r){this.xpathNSResolver=r}function NodeXPathNSResolver(n){this.node=n,this.namespaceResolver=new NamespaceResolver}function XPathResult(v,t){switch(t==XPathResult.ANY_TYPE&&(v.constructor===XString?t=XPathResult.STRING_TYPE:v.constructor===XNumber?t=XPathResult.NUMBER_TYPE:v.constructor===XBoolean?t=XPathResult.BOOLEAN_TYPE:v.constructor===XNodeSet&&(t=XPathResult.UNORDERED_NODE_ITERATOR_TYPE)),this.resultType=t,t){case XPathResult.NUMBER_TYPE:return void(this.numberValue=v.numberValue());case XPathResult.STRING_TYPE:return void(this.stringValue=v.stringValue());case XPathResult.BOOLEAN_TYPE:return void(this.booleanValue=v.booleanValue());case XPathResult.ANY_UNORDERED_NODE_TYPE:case XPathResult.FIRST_ORDERED_NODE_TYPE:if(v.constructor===XNodeSet)return void(this.singleNodeValue=v.first());break;case XPathResult.UNORDERED_NODE_ITERATOR_TYPE:case XPathResult.ORDERED_NODE_ITERATOR_TYPE:if(v.constructor===XNodeSet)return this.invalidIteratorState=!1,this.nodes=v.toArray(),void(this.iteratorIndex=0);break;case XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE:case XPathResult.ORDERED_NODE_SNAPSHOT_TYPE:if(v.constructor===XNodeSet)return this.nodes=v.toArray(),void(this.snapshotLength=this.nodes.length)}throw new XPathException(XPathException.TYPE_ERR)}function installDOM3XPathSupport(doc,p){doc.createExpression=function(e,r){try{return new XPathExpression(e,r,p)}catch(e){throw new XPathException(XPathException.INVALID_EXPRESSION_ERR,e)}},doc.createNSResolver=function(n){return new NodeXPathNSResolver(n)},doc.evaluate=function(e,cn,r,t,res){if(t<0||t>9)throw{code:0,toString:function(){return"Request type not supported"}};return doc.createExpression(e,r,p).evaluate(cn,t,res)}}XPathExpression.prototype={},XPathExpression.prototype.constructor=XPathExpression,XPathExpression.superclass=Object.prototype,XPathExpression.getOwnerDocument=function(n){return n.nodeType===NodeTypes_DOCUMENT_NODE?n:n.ownerDocument},XPathExpression.detectHtmlDom=function(n){if(!n)return!1;var doc=XPathExpression.getOwnerDocument(n);try{return doc.implementation.hasFeature("HTML","2.0")}catch(e){return!0}},XPathExpression.prototype.evaluate=function(n,t,res){return this.context.expressionContextNode=n,this.context.caseInsensitive=XPathExpression.detectHtmlDom(n),new XPathResult(this.xpath.evaluate(this.context),t)},XPathNSResolverWrapper.prototype={},XPathNSResolverWrapper.prototype.constructor=XPathNSResolverWrapper,XPathNSResolverWrapper.superclass=Object.prototype,XPathNSResolverWrapper.prototype.getNamespace=function(prefix,n){return null==this.xpathNSResolver?null:this.xpathNSResolver.lookupNamespaceURI(prefix)},NodeXPathNSResolver.prototype={},NodeXPathNSResolver.prototype.constructor=NodeXPathNSResolver,NodeXPathNSResolver.superclass=Object.prototype,NodeXPathNSResolver.prototype.lookupNamespaceURI=function(prefix){return this.namespaceResolver.getNamespace(prefix,this.node)},XPathResult.prototype={},XPathResult.prototype.constructor=XPathResult,XPathResult.superclass=Object.prototype,XPathResult.prototype.iterateNext=function(){if(this.resultType!=XPathResult.UNORDERED_NODE_ITERATOR_TYPE&&this.resultType!=XPathResult.ORDERED_NODE_ITERATOR_TYPE)throw new XPathException(XPathException.TYPE_ERR);return this.nodes[this.iteratorIndex++]},XPathResult.prototype.snapshotItem=function(i){if(this.resultType!=XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE&&this.resultType!=XPathResult.ORDERED_NODE_SNAPSHOT_TYPE)throw new XPathException(XPathException.TYPE_ERR);return this.nodes[i]},XPathResult.ANY_TYPE=0,XPathResult.NUMBER_TYPE=1,XPathResult.STRING_TYPE=2,XPathResult.BOOLEAN_TYPE=3,XPathResult.UNORDERED_NODE_ITERATOR_TYPE=4,XPathResult.ORDERED_NODE_ITERATOR_TYPE=5,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE=6,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE=7,XPathResult.ANY_UNORDERED_NODE_TYPE=8,XPathResult.FIRST_ORDERED_NODE_TYPE=9;try{var shouldInstall=!0;try{document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("XPath",null)&&(shouldInstall=!1)}catch(e){}shouldInstall&&installDOM3XPathSupport(document,new XPathParser)}catch(e){}installDOM3XPathSupport(exports,new XPathParser),function(){var parser=new XPathParser,defaultNSResolver=new NamespaceResolver,defaultFunctionResolver=new FunctionResolver,defaultVariableResolver=new VariableResolver;function makeNSResolverFromFunction(func){return{getNamespace:function(prefix,node){return func(prefix,node)||defaultNSResolver.getNamespace(prefix,node)}}}function makeNSResolver(resolver){return resolver&&"function"==typeof resolver.getNamespace?function makeNSResolverFromObject(obj){return makeNSResolverFromFunction(obj.getNamespace.bind(obj))}(resolver):"function"==typeof resolver?makeNSResolverFromFunction(resolver):"object"==typeof resolver?function makeNSResolverFromMap(map){return makeNSResolverFromFunction((function(prefix){return map[prefix]}))}(resolver):defaultNSResolver}function convertValue(value){if(null==value||value instanceof XString||value instanceof XBoolean||value instanceof XNumber||value instanceof XNodeSet)return value;switch(typeof value){case"string":return new XString(value);case"boolean":return new XBoolean(value);case"number":return new XNumber(value)}var ns=new XNodeSet;return ns.addArray([].concat(value)),ns}function makeFunctionResolverFromFunction(func){return{getFunction:function(name,namespace){var found=func(name,namespace);return found?function makeEvaluator(func){return function(context){var args=Array.prototype.slice.call(arguments,1).map((function(arg){return arg.evaluate(context)}));return convertValue(func.apply(this,[].concat(context,args)))}}(found):defaultFunctionResolver.getFunction(name,namespace)}}}function makeFunctionResolver(resolver){return resolver&&"function"==typeof resolver.getFunction?function makeFunctionResolverFromObject(obj){return makeFunctionResolverFromFunction(obj.getFunction.bind(obj))}(resolver):"function"==typeof resolver?makeFunctionResolverFromFunction(resolver):"object"==typeof resolver?function makeFunctionResolverFromMap(map){return makeFunctionResolverFromFunction((function(name){return map[name]}))}(resolver):defaultFunctionResolver}function makeVariableResolverFromFunction(func){return{getVariable:function(name,namespace){return convertValue(func(name,namespace))}}}function copyIfPresent(prop,dest,source){prop in source&&(dest[prop]=source[prop])}function makeContext(options){var context=new XPathContext;return options?(context.namespaceResolver=makeNSResolver(options.namespaces),context.functionResolver=makeFunctionResolver(options.functions),context.variableResolver=function makeVariableResolver(resolver){if(resolver){if("function"==typeof resolver.getVariable)return makeVariableResolverFromFunction(resolver.getVariable.bind(resolver));if("function"==typeof resolver)return makeVariableResolverFromFunction(resolver);if("object"==typeof resolver)return makeVariableResolverFromFunction((function(name){return resolver[name]}))}return defaultVariableResolver}(options.variables),context.expressionContextNode=options.node,copyIfPresent("allowAnyNamespaceForNoPrefix",context,options),copyIfPresent("isHtml",context,options)):context.namespaceResolver=defaultNSResolver,context}var evaluatorPrototype={evaluate:function(options){return function evaluate(parsedExpression,options){var context=makeContext(options);return parsedExpression.evaluate(context)}(this.expression,options)},evaluateNumber:function(options){return this.evaluate(options).numberValue()},evaluateString:function(options){return this.evaluate(options).stringValue()},evaluateBoolean:function(options){return this.evaluate(options).booleanValue()},evaluateNodeSet:function(options){return this.evaluate(options).nodeset()},select:function(options){return this.evaluateNodeSet(options).toArray()},select1:function(options){return this.select(options)[0]}};exports.parse=function parse(xpath){var parsed=parser.parse(xpath);return Object.create(evaluatorPrototype,{expression:{value:parsed}})}}(),assign(exports,{XPath:XPath,XPathParser:XPathParser,XPathResult:XPathResult,Step:Step,PathExpr:PathExpr,NodeTest:NodeTest,LocationPath:LocationPath,OrOperation:OrOperation,AndOperation:AndOperation,BarOperation:BarOperation,EqualsOperation:EqualsOperation,NotEqualOperation:NotEqualOperation,LessThanOperation:LessThanOperation,GreaterThanOperation:GreaterThanOperation,LessThanOrEqualOperation:LessThanOrEqualOperation,GreaterThanOrEqualOperation:GreaterThanOrEqualOperation,PlusOperation:PlusOperation,MinusOperation:MinusOperation,MultiplyOperation:MultiplyOperation,DivOperation:DivOperation,ModOperation:ModOperation,UnaryMinusOperation:UnaryMinusOperation,FunctionCall:FunctionCall,VariableReference:VariableReference,XPathContext:XPathContext,XNodeSet:XNodeSet,XBoolean:XBoolean,XString:XString,XNumber:XNumber,NamespaceResolver:NamespaceResolver,FunctionResolver:FunctionResolver,VariableResolver:VariableResolver,Utilities:Utilities}),exports.select=function(e,doc,single){return exports.selectWithResolver(e,doc,null,single)},exports.useNamespaces=function(mappings){var resolver={mappings:mappings||{},lookupNamespaceURI:function(prefix){return this.mappings[prefix]}};return function(e,doc,single){return exports.selectWithResolver(e,doc,resolver,single)}},exports.selectWithResolver=function(e,doc,resolver,single){var expression=new XPathExpression(e,resolver,new XPathParser),type=XPathResult.ANY_TYPE,result=expression.evaluate(doc,type,null);return result.resultType==XPathResult.STRING_TYPE?result=result.stringValue:result.resultType==XPathResult.NUMBER_TYPE?result=result.numberValue:result.resultType==XPathResult.BOOLEAN_TYPE?result=result.booleanValue:(result=result.nodes,single&&(result=result[0])),result},exports.select1=function(e,doc){return exports.select(e,doc,!0)};var isNodeLike=function(value){return value&&"number"==typeof value.nodeType&&Number.isInteger(value.nodeType)&&value.nodeType>=1&&value.nodeType<=11&&"string"==typeof value.nodeName},isNodeOfType=function(type){return function(value){return isNodeLike(value)&&value.nodeType===type}};assign(exports,{isNodeLike:isNodeLike,isArrayOfNodes:function(value){return Array.isArray(value)&&value.every(isNodeLike)},isElement:isNodeOfType(NodeTypes_ELEMENT_NODE),isAttribute:isNodeOfType(NodeTypes_ATTRIBUTE_NODE),isTextNode:isNodeOfType(NodeTypes_TEXT_NODE),isCDATASection:isNodeOfType(NodeTypes_CDATA_SECTION_NODE),isProcessingInstruction:isNodeOfType(NodeTypes_PROCESSING_INSTRUCTION_NODE),isComment:isNodeOfType(NodeTypes_COMMENT_NODE),isDocumentNode:isNodeOfType(NodeTypes_DOCUMENT_NODE),isDocumentTypeNode:isNodeOfType(NodeTypes_DOCUMENT_TYPE_NODE),isDocumentFragment:isNodeOfType(NodeTypes_DOCUMENT_FRAGMENT_NODE)})}(exports)}(xpath)),xpath}var hasRequiredConventions,hasRequiredDom,lib$3={},dom={},conventions={};function requireConventions(){if(hasRequiredConventions)return conventions;function freeze(object,oc){return void 0===oc&&(oc=Object),oc&&"function"==typeof oc.freeze?oc.freeze(object):object}hasRequiredConventions=1;var MIME_TYPE=freeze({HTML:"text/html",isHTML:function(value){return value===MIME_TYPE.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),NAMESPACE=freeze({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(uri){return uri===NAMESPACE.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=function assign(target,source){if(null===target||"object"!=typeof target)throw new TypeError("target is not an object");for(var key in source)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key]);return target},conventions.find=function find(list,predicate,ac){if(void 0===ac&&(ac=Array.prototype),list&&"function"==typeof ac.find)return ac.find.call(list,predicate);for(var i=0;i<list.length;i++)if(Object.prototype.hasOwnProperty.call(list,i)){var item=list[i];if(predicate.call(void 0,item,i,list))return item}},conventions.freeze=freeze,conventions.MIME_TYPE=MIME_TYPE,conventions.NAMESPACE=NAMESPACE,conventions}function requireDom(){if(hasRequiredDom)return dom;hasRequiredDom=1;var conventions=requireConventions(),find=conventions.find,NAMESPACE=conventions.NAMESPACE;function notEmptyString(input){return""!==input}function orderedSetReducer(current,element){return current.hasOwnProperty(element)||(current[element]=!0),current}function toOrderedSet(input){if(!input)return[];var list=function splitOnASCIIWhitespace(input){return input?input.split(/[\t\n\f\r ]+/).filter(notEmptyString):[]}(input);return Object.keys(list.reduce(orderedSetReducer,{}))}function copy(src,dest){for(var p in src)Object.prototype.hasOwnProperty.call(src,p)&&(dest[p]=src[p])}function _extends(Class,Super){var pt=Class.prototype;if(!(pt instanceof Super)){function t(){}t.prototype=Super.prototype,copy(pt,t=new t),Class.prototype=pt=t}pt.constructor!=Class&&("function"!=typeof Class&&console.error("unknown Class:"+Class),pt.constructor=Class)}var NodeType={},ELEMENT_NODE=NodeType.ELEMENT_NODE=1,ATTRIBUTE_NODE=NodeType.ATTRIBUTE_NODE=2,TEXT_NODE=NodeType.TEXT_NODE=3,CDATA_SECTION_NODE=NodeType.CDATA_SECTION_NODE=4,ENTITY_REFERENCE_NODE=NodeType.ENTITY_REFERENCE_NODE=5,ENTITY_NODE=NodeType.ENTITY_NODE=6,PROCESSING_INSTRUCTION_NODE=NodeType.PROCESSING_INSTRUCTION_NODE=7,COMMENT_NODE=NodeType.COMMENT_NODE=8,DOCUMENT_NODE=NodeType.DOCUMENT_NODE=9,DOCUMENT_TYPE_NODE=NodeType.DOCUMENT_TYPE_NODE=10,DOCUMENT_FRAGMENT_NODE=NodeType.DOCUMENT_FRAGMENT_NODE=11,NOTATION_NODE=NodeType.NOTATION_NODE=12,ExceptionCode={},ExceptionMessage={};ExceptionCode.INDEX_SIZE_ERR=(ExceptionMessage[1]="Index size error",1),ExceptionCode.DOMSTRING_SIZE_ERR=(ExceptionMessage[2]="DOMString size error",2);var HIERARCHY_REQUEST_ERR=ExceptionCode.HIERARCHY_REQUEST_ERR=(ExceptionMessage[3]="Hierarchy request error",3);ExceptionCode.WRONG_DOCUMENT_ERR=(ExceptionMessage[4]="Wrong document",4),ExceptionCode.INVALID_CHARACTER_ERR=(ExceptionMessage[5]="Invalid character",5),ExceptionCode.NO_DATA_ALLOWED_ERR=(ExceptionMessage[6]="No data allowed",6),ExceptionCode.NO_MODIFICATION_ALLOWED_ERR=(ExceptionMessage[7]="No modification allowed",7);var NOT_FOUND_ERR=ExceptionCode.NOT_FOUND_ERR=(ExceptionMessage[8]="Not found",8);ExceptionCode.NOT_SUPPORTED_ERR=(ExceptionMessage[9]="Not supported",9);var INUSE_ATTRIBUTE_ERR=ExceptionCode.INUSE_ATTRIBUTE_ERR=(ExceptionMessage[10]="Attribute in use",10);function DOMException(code,message){if(message instanceof Error)var error=message;else error=this,Error.call(this,ExceptionMessage[code]),this.message=ExceptionMessage[code],Error.captureStackTrace&&Error.captureStackTrace(this,DOMException);return error.code=code,message&&(this.message=this.message+": "+message),error}function NodeList(){}function LiveNodeList(node,refresh){this._node=node,this._refresh=refresh,_updateLiveList(this)}function _updateLiveList(list){var inc=list._node._inc||list._node.ownerDocument._inc;if(list._inc!==inc){var ls=list._refresh(list._node);if(__set__(list,"length",ls.length),!list.$$length||ls.length<list.$$length)for(var i=ls.length;i in list;i++)Object.prototype.hasOwnProperty.call(list,i)&&delete list[i];copy(ls,list),list._inc=inc}}function NamedNodeMap(){}function _findNodeIndex(list,node){for(var i=list.length;i--;)if(list[i]===node)return i}function _addNamedNode(el,list,newAttr,oldAttr){if(oldAttr?list[_findNodeIndex(list,oldAttr)]=newAttr:list[list.length++]=newAttr,el){newAttr.ownerElement=el;var doc=el.ownerDocument;doc&&(oldAttr&&_onRemoveAttribute(doc,el,oldAttr),function _onAddAttribute(doc,el,newAttr){doc&&doc._inc++;var ns=newAttr.namespaceURI;ns===NAMESPACE.XMLNS&&(el._nsMap[newAttr.prefix?newAttr.localName:""]=newAttr.value)}(doc,el,newAttr))}}function _removeNamedNode(el,list,attr){var i=_findNodeIndex(list,attr);if(!(i>=0))throw new DOMException(NOT_FOUND_ERR,new Error(el.tagName+"@"+attr));for(var lastIndex=list.length-1;i<lastIndex;)list[i]=list[++i];if(list.length=lastIndex,el){var doc=el.ownerDocument;doc&&(_onRemoveAttribute(doc,el,attr),attr.ownerElement=null)}}function DOMImplementation(){}function Node(){}function _xmlEncoder(c){return("<"==c?"&lt;":">"==c&&"&gt;")||"&"==c&&"&amp;"||'"'==c&&"&quot;"||"&#"+c.charCodeAt()+";"}function _visitNode(node,callback){if(callback(node))return!0;if(node=node.firstChild)do{if(_visitNode(node,callback))return!0}while(node=node.nextSibling)}function Document(){this.ownerDocument=this}function _onRemoveAttribute(doc,el,newAttr,remove){doc&&doc._inc++,newAttr.namespaceURI===NAMESPACE.XMLNS&&delete el._nsMap[newAttr.prefix?newAttr.localName:""]}function _onUpdateChild(doc,el,newChild){if(doc&&doc._inc){doc._inc++;var cs=el.childNodes;if(newChild)cs[cs.length++]=newChild;else{for(var child=el.firstChild,i=0;child;)cs[i++]=child,child=child.nextSibling;cs.length=i,delete cs[cs.length]}}}function _removeChild(parentNode,child){var previous=child.previousSibling,next=child.nextSibling;return previous?previous.nextSibling=next:parentNode.firstChild=next,next?next.previousSibling=previous:parentNode.lastChild=previous,child.parentNode=null,child.previousSibling=null,child.nextSibling=null,_onUpdateChild(parentNode.ownerDocument,parentNode),child}function isDocTypeNode(node){return node&&node.nodeType===Node.DOCUMENT_TYPE_NODE}function isElementNode(node){return node&&node.nodeType===Node.ELEMENT_NODE}function isTextNode(node){return node&&node.nodeType===Node.TEXT_NODE}function isElementInsertionPossible(doc,child){var parentChildNodes=doc.childNodes||[];if(find(parentChildNodes,isElementNode)||isDocTypeNode(child))return!1;var docTypeNode=find(parentChildNodes,isDocTypeNode);return!(child&&docTypeNode&&parentChildNodes.indexOf(docTypeNode)>parentChildNodes.indexOf(child))}function isElementReplacementPossible(doc,child){var parentChildNodes=doc.childNodes||[];if(find(parentChildNodes,(function hasElementChildThatIsNotChild(node){return isElementNode(node)&&node!==child})))return!1;var docTypeNode=find(parentChildNodes,isDocTypeNode);return!(child&&docTypeNode&&parentChildNodes.indexOf(docTypeNode)>parentChildNodes.indexOf(child))}function assertPreInsertionValidity1to5(parent,node,child){if(!function hasValidParentNodeType(node){return node&&(node.nodeType===Node.DOCUMENT_NODE||node.nodeType===Node.DOCUMENT_FRAGMENT_NODE||node.nodeType===Node.ELEMENT_NODE)}(parent))throw new DOMException(HIERARCHY_REQUEST_ERR,"Unexpected parent node type "+parent.nodeType);if(child&&child.parentNode!==parent)throw new DOMException(NOT_FOUND_ERR,"child not in parent");if(!function hasInsertableNodeType(node){return node&&(isElementNode(node)||isTextNode(node)||isDocTypeNode(node)||node.nodeType===Node.DOCUMENT_FRAGMENT_NODE||node.nodeType===Node.COMMENT_NODE||node.nodeType===Node.PROCESSING_INSTRUCTION_NODE)}(node)||isDocTypeNode(node)&&parent.nodeType!==Node.DOCUMENT_NODE)throw new DOMException(HIERARCHY_REQUEST_ERR,"Unexpected node type "+node.nodeType+" for parent node type "+parent.nodeType)}function assertPreInsertionValidityInDocument(parent,node,child){var parentChildNodes=parent.childNodes||[],nodeChildNodes=node.childNodes||[];if(node.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var nodeChildElements=nodeChildNodes.filter(isElementNode);if(nodeChildElements.length>1||find(nodeChildNodes,isTextNode))throw new DOMException(HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===nodeChildElements.length&&!isElementInsertionPossible(parent,child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(isElementNode(node)&&!isElementInsertionPossible(parent,child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(isDocTypeNode(node)){if(find(parentChildNodes,isDocTypeNode))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var parentElementChild=find(parentChildNodes,isElementNode);if(child&&parentChildNodes.indexOf(parentElementChild)<parentChildNodes.indexOf(child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element");if(!child&&parentElementChild)throw new DOMException(HIERARCHY_REQUEST_ERR,"Doctype can not be appended since element is present")}}function assertPreReplacementValidityInDocument(parent,node,child){var parentChildNodes=parent.childNodes||[],nodeChildNodes=node.childNodes||[];if(node.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var nodeChildElements=nodeChildNodes.filter(isElementNode);if(nodeChildElements.length>1||find(nodeChildNodes,isTextNode))throw new DOMException(HIERARCHY_REQUEST_ERR,"More than one element or text in fragment");if(1===nodeChildElements.length&&!isElementReplacementPossible(parent,child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Element in fragment can not be inserted before doctype")}if(isElementNode(node)&&!isElementReplacementPossible(parent,child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one element can be added and only after doctype");if(isDocTypeNode(node)){function hasDoctypeChildThatIsNotChild(node){return isDocTypeNode(node)&&node!==child}if(find(parentChildNodes,hasDoctypeChildThatIsNotChild))throw new DOMException(HIERARCHY_REQUEST_ERR,"Only one doctype is allowed");var parentElementChild=find(parentChildNodes,isElementNode);if(child&&parentChildNodes.indexOf(parentElementChild)<parentChildNodes.indexOf(child))throw new DOMException(HIERARCHY_REQUEST_ERR,"Doctype can only be inserted before an element")}}function _insertBefore(parent,node,child,_inDocumentAssertion){assertPreInsertionValidity1to5(parent,node,child),parent.nodeType===Node.DOCUMENT_NODE&&(_inDocumentAssertion||assertPreInsertionValidityInDocument)(parent,node,child);var cp=node.parentNode;if(cp&&cp.removeChild(node),node.nodeType===DOCUMENT_FRAGMENT_NODE){var newFirst=node.firstChild;if(null==newFirst)return node;var newLast=node.lastChild}else newFirst=newLast=node;var pre=child?child.previousSibling:parent.lastChild;newFirst.previousSibling=pre,newLast.nextSibling=child,pre?pre.nextSibling=newFirst:parent.firstChild=newFirst,null==child?parent.lastChild=newLast:child.previousSibling=newLast;do{newFirst.parentNode=parent}while(newFirst!==newLast&&(newFirst=newFirst.nextSibling));return _onUpdateChild(parent.ownerDocument||parent,parent),node.nodeType==DOCUMENT_FRAGMENT_NODE&&(node.firstChild=node.lastChild=null),node}function Element(){this._nsMap={}}function Attr(){}function CharacterData(){}function Text(){}function Comment(){}function CDATASection(){}function DocumentType(){}function Notation(){}function Entity(){}function EntityReference(){}function DocumentFragment(){}function ProcessingInstruction(){}function XMLSerializer(){}function nodeSerializeToString(isHtml,nodeFilter){var buf=[],refNode=9==this.nodeType&&this.documentElement||this,prefix=refNode.prefix,uri=refNode.namespaceURI;if(uri&&null==prefix&&null==(prefix=refNode.lookupPrefix(uri)))var visibleNamespaces=[{namespace:uri,prefix:null}];return serializeToString(this,buf,isHtml,nodeFilter,visibleNamespaces),buf.join("")}function needNamespaceDefine(node,isHTML,visibleNamespaces){var prefix=node.prefix||"",uri=node.namespaceURI;if(!uri)return!1;if("xml"===prefix&&uri===NAMESPACE.XML||uri===NAMESPACE.XMLNS)return!1;for(var i=visibleNamespaces.length;i--;){var ns=visibleNamespaces[i];if(ns.prefix===prefix)return ns.namespace!==uri}return!0}function addSerializedAttribute(buf,qualifiedName,value){buf.push(" ",qualifiedName,'="',value.replace(/[<>&"\t\n\r]/g,_xmlEncoder),'"')}function serializeToString(node,buf,isHTML,nodeFilter,visibleNamespaces){if(visibleNamespaces||(visibleNamespaces=[]),nodeFilter){if(!(node=nodeFilter(node)))return;if("string"==typeof node)return void buf.push(node)}switch(node.nodeType){case ELEMENT_NODE:var attrs=node.attributes,len=attrs.length,child=node.firstChild,nodeName=node.tagName,prefixedNodeName=nodeName;if(!(isHTML=NAMESPACE.isHTML(node.namespaceURI)||isHTML)&&!node.prefix&&node.namespaceURI){for(var defaultNS,ai=0;ai<attrs.length;ai++)if("xmlns"===attrs.item(ai).name){defaultNS=attrs.item(ai).value;break}if(!defaultNS)for(var nsi=visibleNamespaces.length-1;nsi>=0;nsi--){if(""===(namespace=visibleNamespaces[nsi]).prefix&&namespace.namespace===node.namespaceURI){defaultNS=namespace.namespace;break}}if(defaultNS!==node.namespaceURI)for(nsi=visibleNamespaces.length-1;nsi>=0;nsi--){var namespace;if((namespace=visibleNamespaces[nsi]).namespace===node.namespaceURI){namespace.prefix&&(prefixedNodeName=namespace.prefix+":"+nodeName);break}}}buf.push("<",prefixedNodeName);for(var i=0;i<len;i++){"xmlns"==(attr=attrs.item(i)).prefix?visibleNamespaces.push({prefix:attr.localName,namespace:attr.value}):"xmlns"==attr.nodeName&&visibleNamespaces.push({prefix:"",namespace:attr.value})}for(i=0;i<len;i++){var attr,prefix,uri;if(needNamespaceDefine(attr=attrs.item(i),0,visibleNamespaces))addSerializedAttribute(buf,(prefix=attr.prefix||"")?"xmlns:"+prefix:"xmlns",uri=attr.namespaceURI),visibleNamespaces.push({prefix:prefix,namespace:uri});serializeToString(attr,buf,isHTML,nodeFilter,visibleNamespaces)}if(nodeName===prefixedNodeName&&needNamespaceDefine(node,0,visibleNamespaces))addSerializedAttribute(buf,(prefix=node.prefix||"")?"xmlns:"+prefix:"xmlns",uri=node.namespaceURI),visibleNamespaces.push({prefix:prefix,namespace:uri});if(child||isHTML&&!/^(?:meta|link|img|br|hr|input)$/i.test(nodeName)){if(buf.push(">"),isHTML&&/^script$/i.test(nodeName))for(;child;)child.data?buf.push(child.data):serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces.slice()),child=child.nextSibling;else for(;child;)serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces.slice()),child=child.nextSibling;buf.push("</",prefixedNodeName,">")}else buf.push("/>");return;case DOCUMENT_NODE:case DOCUMENT_FRAGMENT_NODE:for(child=node.firstChild;child;)serializeToString(child,buf,isHTML,nodeFilter,visibleNamespaces.slice()),child=child.nextSibling;return;case ATTRIBUTE_NODE:return addSerializedAttribute(buf,node.name,node.value);case TEXT_NODE:return buf.push(node.data.replace(/[<&>]/g,_xmlEncoder));case CDATA_SECTION_NODE:return buf.push("<![CDATA[",node.data,"]]>");case COMMENT_NODE:return buf.push("\x3c!--",node.data,"--\x3e");case DOCUMENT_TYPE_NODE:var pubid=node.publicId,sysid=node.systemId;if(buf.push("<!DOCTYPE ",node.name),pubid)buf.push(" PUBLIC ",pubid),sysid&&"."!=sysid&&buf.push(" ",sysid),buf.push(">");else if(sysid&&"."!=sysid)buf.push(" SYSTEM ",sysid,">");else{var sub=node.internalSubset;sub&&buf.push(" [",sub,"]"),buf.push(">")}return;case PROCESSING_INSTRUCTION_NODE:return buf.push("<?",node.target," ",node.data,"?>");case ENTITY_REFERENCE_NODE:return buf.push("&",node.nodeName,";");default:buf.push("??",node.nodeName)}}function importNode(doc,node,deep){var node2;switch(node.nodeType){case ELEMENT_NODE:(node2=node.cloneNode(!1)).ownerDocument=doc;case DOCUMENT_FRAGMENT_NODE:break;case ATTRIBUTE_NODE:deep=!0}if(node2||(node2=node.cloneNode(!1)),node2.ownerDocument=doc,node2.parentNode=null,deep)for(var child=node.firstChild;child;)node2.appendChild(importNode(doc,child,deep)),child=child.nextSibling;return node2}function cloneNode(doc,node,deep){var node2=new node.constructor;for(var n in node)if(Object.prototype.hasOwnProperty.call(node,n)){var v=node[n];"object"!=typeof v&&v!=node2[n]&&(node2[n]=v)}switch(node.childNodes&&(node2.childNodes=new NodeList),node2.ownerDocument=doc,node2.nodeType){case ELEMENT_NODE:var attrs=node.attributes,attrs2=node2.attributes=new NamedNodeMap,len=attrs.length;attrs2._ownerElement=node2;for(var i=0;i<len;i++)node2.setAttributeNode(cloneNode(doc,attrs.item(i),!0));break;case ATTRIBUTE_NODE:deep=!0}if(deep)for(var child=node.firstChild;child;)node2.appendChild(cloneNode(doc,child,deep)),child=child.nextSibling;return node2}function __set__(object,key,value){object[key]=value}ExceptionCode.INVALID_STATE_ERR=(ExceptionMessage[11]="Invalid state",11),ExceptionCode.SYNTAX_ERR=(ExceptionMessage[12]="Syntax error",12),ExceptionCode.INVALID_MODIFICATION_ERR=(ExceptionMessage[13]="Invalid modification",13),ExceptionCode.NAMESPACE_ERR=(ExceptionMessage[14]="Invalid namespace",14),ExceptionCode.INVALID_ACCESS_ERR=(ExceptionMessage[15]="Invalid access",15),DOMException.prototype=Error.prototype,copy(ExceptionCode,DOMException),NodeList.prototype={length:0,item:function(index){return index>=0&&index<this.length?this[index]:null},toString:function(isHTML,nodeFilter){for(var buf=[],i=0;i<this.length;i++)serializeToString(this[i],buf,isHTML,nodeFilter);return buf.join("")},filter:function(predicate){return Array.prototype.filter.call(this,predicate)},indexOf:function(item){return Array.prototype.indexOf.call(this,item)}},LiveNodeList.prototype.item=function(i){return _updateLiveList(this),this[i]||null},_extends(LiveNodeList,NodeList),NamedNodeMap.prototype={length:0,item:NodeList.prototype.item,getNamedItem:function(key){for(var i=this.length;i--;){var attr=this[i];if(attr.nodeName==key)return attr}},setNamedItem:function(attr){var el=attr.ownerElement;if(el&&el!=this._ownerElement)throw new DOMException(INUSE_ATTRIBUTE_ERR);var oldAttr=this.getNamedItem(attr.nodeName);return _addNamedNode(this._ownerElement,this,attr,oldAttr),oldAttr},setNamedItemNS:function(attr){var oldAttr,el=attr.ownerElement;if(el&&el!=this._ownerElement)throw new DOMException(INUSE_ATTRIBUTE_ERR);return oldAttr=this.getNamedItemNS(attr.namespaceURI,attr.localName),_addNamedNode(this._ownerElement,this,attr,oldAttr),oldAttr},removeNamedItem:function(key){var attr=this.getNamedItem(key);return _removeNamedNode(this._ownerElement,this,attr),attr},removeNamedItemNS:function(namespaceURI,localName){var attr=this.getNamedItemNS(namespaceURI,localName);return _removeNamedNode(this._ownerElement,this,attr),attr},getNamedItemNS:function(namespaceURI,localName){for(var i=this.length;i--;){var node=this[i];if(node.localName==localName&&node.namespaceURI==namespaceURI)return node}return null}},DOMImplementation.prototype={hasFeature:function(feature,version){return!0},createDocument:function(namespaceURI,qualifiedName,doctype){var doc=new Document;if(doc.implementation=this,doc.childNodes=new NodeList,doc.doctype=doctype||null,doctype&&doc.appendChild(doctype),qualifiedName){var root=doc.createElementNS(namespaceURI,qualifiedName);doc.appendChild(root)}return doc},createDocumentType:function(qualifiedName,publicId,systemId){var node=new DocumentType;return node.name=qualifiedName,node.nodeName=qualifiedName,node.publicId=publicId||"",node.systemId=systemId||"",node}},Node.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(newChild,refChild){return _insertBefore(this,newChild,refChild)},replaceChild:function(newChild,oldChild){_insertBefore(this,newChild,oldChild,assertPreReplacementValidityInDocument),oldChild&&this.removeChild(oldChild)},removeChild:function(oldChild){return _removeChild(this,oldChild)},appendChild:function(newChild){return this.insertBefore(newChild,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(deep){return cloneNode(this.ownerDocument||this,this,deep)},normalize:function(){for(var child=this.firstChild;child;){var next=child.nextSibling;next&&next.nodeType==TEXT_NODE&&child.nodeType==TEXT_NODE?(this.removeChild(next),child.appendData(next.data)):(child.normalize(),child=next)}},isSupported:function(feature,version){return this.ownerDocument.implementation.hasFeature(feature,version)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(namespaceURI){for(var el=this;el;){var map=el._nsMap;if(map)for(var n in map)if(Object.prototype.hasOwnProperty.call(map,n)&&map[n]===namespaceURI)return n;el=el.nodeType==ATTRIBUTE_NODE?el.ownerDocument:el.parentNode}return null},lookupNamespaceURI:function(prefix){for(var el=this;el;){var map=el._nsMap;if(map&&Object.prototype.hasOwnProperty.call(map,prefix))return map[prefix];el=el.nodeType==ATTRIBUTE_NODE?el.ownerDocument:el.parentNode}return null},isDefaultNamespace:function(namespaceURI){return null==this.lookupPrefix(namespaceURI)}},copy(NodeType,Node),copy(NodeType,Node.prototype),Document.prototype={nodeName:"#document",nodeType:DOCUMENT_NODE,doctype:null,documentElement:null,_inc:1,insertBefore:function(newChild,refChild){if(newChild.nodeType==DOCUMENT_FRAGMENT_NODE){for(var child=newChild.firstChild;child;){var next=child.nextSibling;this.insertBefore(child,refChild),child=next}return newChild}return _insertBefore(this,newChild,refChild),newChild.ownerDocument=this,null===this.documentElement&&newChild.nodeType===ELEMENT_NODE&&(this.documentElement=newChild),newChild},removeChild:function(oldChild){return this.documentElement==oldChild&&(this.documentElement=null),_removeChild(this,oldChild)},replaceChild:function(newChild,oldChild){_insertBefore(this,newChild,oldChild,assertPreReplacementValidityInDocument),newChild.ownerDocument=this,oldChild&&this.removeChild(oldChild),isElementNode(newChild)&&(this.documentElement=newChild)},importNode:function(importedNode,deep){return importNode(this,importedNode,deep)},getElementById:function(id){var rtv=null;return _visitNode(this.documentElement,(function(node){if(node.nodeType==ELEMENT_NODE&&node.getAttribute("id")==id)return rtv=node,!0})),rtv},getElementsByClassName:function(classNames){var classNamesSet=toOrderedSet(classNames);return new LiveNodeList(this,(function(base){var ls=[];return classNamesSet.length>0&&_visitNode(base.documentElement,(function(node){if(node!==base&&node.nodeType===ELEMENT_NODE){var nodeClassNames=node.getAttribute("class");if(nodeClassNames){var matches=classNames===nodeClassNames;if(!matches){var nodeClassNamesSet=toOrderedSet(nodeClassNames);matches=classNamesSet.every(function arrayIncludes(list){return function(element){return list&&-1!==list.indexOf(element)}}(nodeClassNamesSet))}matches&&ls.push(node)}}})),ls}))},createElement:function(tagName){var node=new Element;return node.ownerDocument=this,node.nodeName=tagName,node.tagName=tagName,node.localName=tagName,node.childNodes=new NodeList,(node.attributes=new NamedNodeMap)._ownerElement=node,node},createDocumentFragment:function(){var node=new DocumentFragment;return node.ownerDocument=this,node.childNodes=new NodeList,node},createTextNode:function(data){var node=new Text;return node.ownerDocument=this,node.appendData(data),node},createComment:function(data){var node=new Comment;return node.ownerDocument=this,node.appendData(data),node},createCDATASection:function(data){var node=new CDATASection;return node.ownerDocument=this,node.appendData(data),node},createProcessingInstruction:function(target,data){var node=new ProcessingInstruction;return node.ownerDocument=this,node.tagName=node.nodeName=node.target=target,node.nodeValue=node.data=data,node},createAttribute:function(name){var node=new Attr;return node.ownerDocument=this,node.name=name,node.nodeName=name,node.localName=name,node.specified=!0,node},createEntityReference:function(name){var node=new EntityReference;return node.ownerDocument=this,node.nodeName=name,node},createElementNS:function(namespaceURI,qualifiedName){var node=new Element,pl=qualifiedName.split(":"),attrs=node.attributes=new NamedNodeMap;return node.childNodes=new NodeList,node.ownerDocument=this,node.nodeName=qualifiedName,node.tagName=qualifiedName,node.namespaceURI=namespaceURI,2==pl.length?(node.prefix=pl[0],node.localName=pl[1]):node.localName=qualifiedName,attrs._ownerElement=node,node},createAttributeNS:function(namespaceURI,qualifiedName){var node=new Attr,pl=qualifiedName.split(":");return node.ownerDocument=this,node.nodeName=qualifiedName,node.name=qualifiedName,node.namespaceURI=namespaceURI,node.specified=!0,2==pl.length?(node.prefix=pl[0],node.localName=pl[1]):node.localName=qualifiedName,node}},_extends(Document,Node),Element.prototype={nodeType:ELEMENT_NODE,hasAttribute:function(name){return null!=this.getAttributeNode(name)},getAttribute:function(name){var attr=this.getAttributeNode(name);return attr&&attr.value||""},getAttributeNode:function(name){return this.attributes.getNamedItem(name)},setAttribute:function(name,value){var attr=this.ownerDocument.createAttribute(name);attr.value=attr.nodeValue=""+value,this.setAttributeNode(attr)},removeAttribute:function(name){var attr=this.getAttributeNode(name);attr&&this.removeAttributeNode(attr)},appendChild:function(newChild){return newChild.nodeType===DOCUMENT_FRAGMENT_NODE?this.insertBefore(newChild,null):function _appendSingleChild(parentNode,newChild){return newChild.parentNode&&newChild.parentNode.removeChild(newChild),newChild.parentNode=parentNode,newChild.previousSibling=parentNode.lastChild,newChild.nextSibling=null,newChild.previousSibling?newChild.previousSibling.nextSibling=newChild:parentNode.firstChild=newChild,parentNode.lastChild=newChild,_onUpdateChild(parentNode.ownerDocument,parentNode,newChild),newChild}(this,newChild)},setAttributeNode:function(newAttr){return this.attributes.setNamedItem(newAttr)},setAttributeNodeNS:function(newAttr){return this.attributes.setNamedItemNS(newAttr)},removeAttributeNode:function(oldAttr){return this.attributes.removeNamedItem(oldAttr.nodeName)},removeAttributeNS:function(namespaceURI,localName){var old=this.getAttributeNodeNS(namespaceURI,localName);old&&this.removeAttributeNode(old)},hasAttributeNS:function(namespaceURI,localName){return null!=this.getAttributeNodeNS(namespaceURI,localName)},getAttributeNS:function(namespaceURI,localName){var attr=this.getAttributeNodeNS(namespaceURI,localName);return attr&&attr.value||""},setAttributeNS:function(namespaceURI,qualifiedName,value){var attr=this.ownerDocument.createAttributeNS(namespaceURI,qualifiedName);attr.value=attr.nodeValue=""+value,this.setAttributeNode(attr)},getAttributeNodeNS:function(namespaceURI,localName){return this.attributes.getNamedItemNS(namespaceURI,localName)},getElementsByTagName:function(tagName){return new LiveNodeList(this,(function(base){var ls=[];return _visitNode(base,(function(node){node===base||node.nodeType!=ELEMENT_NODE||"*"!==tagName&&node.tagName!=tagName||ls.push(node)})),ls}))},getElementsByTagNameNS:function(namespaceURI,localName){return new LiveNodeList(this,(function(base){var ls=[];return _visitNode(base,(function(node){node===base||node.nodeType!==ELEMENT_NODE||"*"!==namespaceURI&&node.namespaceURI!==namespaceURI||"*"!==localName&&node.localName!=localName||ls.push(node)})),ls}))}},Document.prototype.getElementsByTagName=Element.prototype.getElementsByTagName,Document.prototype.getElementsByTagNameNS=Element.prototype.getElementsByTagNameNS,_extends(Element,Node),Attr.prototype.nodeType=ATTRIBUTE_NODE,_extends(Attr,Node),CharacterData.prototype={data:"",substringData:function(offset,count){return this.data.substring(offset,offset+count)},appendData:function(text){text=this.data+text,this.nodeValue=this.data=text,this.length=text.length},insertData:function(offset,text){this.replaceData(offset,0,text)},appendChild:function(newChild){throw new Error(ExceptionMessage[HIERARCHY_REQUEST_ERR])},deleteData:function(offset,count){this.replaceData(offset,count,"")},replaceData:function(offset,count,text){text=this.data.substring(0,offset)+text+this.data.substring(offset+count),this.nodeValue=this.data=text,this.length=text.length}},_extends(CharacterData,Node),Text.prototype={nodeName:"#text",nodeType:TEXT_NODE,splitText:function(offset){var text=this.data,newText=text.substring(offset);text=text.substring(0,offset),this.data=this.nodeValue=text,this.length=text.length;var newNode=this.ownerDocument.createTextNode(newText);return this.parentNode&&this.parentNode.insertBefore(newNode,this.nextSibling),newNode}},_extends(Text,CharacterData),Comment.prototype={nodeName:"#comment",nodeType:COMMENT_NODE},_extends(Comment,CharacterData),CDATASection.prototype={nodeName:"#cdata-section",nodeType:CDATA_SECTION_NODE},_extends(CDATASection,CharacterData),DocumentType.prototype.nodeType=DOCUMENT_TYPE_NODE,_extends(DocumentType,Node),Notation.prototype.nodeType=NOTATION_NODE,_extends(Notation,Node),Entity.prototype.nodeType=ENTITY_NODE,_extends(Entity,Node),EntityReference.prototype.nodeType=ENTITY_REFERENCE_NODE,_extends(EntityReference,Node),DocumentFragment.prototype.nodeName="#document-fragment",DocumentFragment.prototype.nodeType=DOCUMENT_FRAGMENT_NODE,_extends(DocumentFragment,Node),ProcessingInstruction.prototype.nodeType=PROCESSING_INSTRUCTION_NODE,_extends(ProcessingInstruction,Node),XMLSerializer.prototype.serializeToString=function(node,isHtml,nodeFilter){return nodeSerializeToString.call(node,isHtml,nodeFilter)},Node.prototype.toString=nodeSerializeToString;try{if(Object.defineProperty){function getTextContent(node){switch(node.nodeType){case ELEMENT_NODE:case DOCUMENT_FRAGMENT_NODE:var buf=[];for(node=node.firstChild;node;)7!==node.nodeType&&8!==node.nodeType&&buf.push(getTextContent(node)),node=node.nextSibling;return buf.join("");default:return node.nodeValue}}Object.defineProperty(LiveNodeList.prototype,"length",{get:function(){return _updateLiveList(this),this.$$length}}),Object.defineProperty(Node.prototype,"textContent",{get:function(){return getTextContent(this)},set:function(data){switch(this.nodeType){case ELEMENT_NODE:case DOCUMENT_FRAGMENT_NODE:for(;this.firstChild;)this.removeChild(this.firstChild);(data||String(data))&&this.appendChild(this.ownerDocument.createTextNode(data));break;default:this.data=data,this.value=data,this.nodeValue=data}}}),__set__=function(object,key,value){object["$$"+key]=value}}}catch(e){}return dom.DocumentType=DocumentType,dom.DOMException=DOMException,dom.DOMImplementation=DOMImplementation,dom.Element=Element,dom.Node=Node,dom.NodeList=NodeList,dom.XMLSerializer=XMLSerializer,dom}var hasRequiredEntities,domParser={},entities={};function requireEntities(){return hasRequiredEntities||(hasRequiredEntities=1,function(exports){var freeze=requireConventions().freeze;exports.XML_ENTITIES=freeze({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),exports.HTML_ENTITIES=freeze({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:"\n",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:"\t",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:"‌"}),exports.entityMap=exports.HTML_ENTITIES}(entities)),entities}var hasRequiredSax,hasRequiredDomParser,hasRequiredLib$4,sax={};function requireSax(){if(hasRequiredSax)return sax;hasRequiredSax=1;var NAMESPACE=requireConventions().NAMESPACE,nameStartChar=/[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]/,nameChar=new RegExp("[\\-\\.0-9"+nameStartChar.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),tagNamePattern=new RegExp("^"+nameStartChar.source+nameChar.source+"*(?::"+nameStartChar.source+nameChar.source+"*)?$");function ParseError(message,locator){this.message=message,this.locator=locator,Error.captureStackTrace&&Error.captureStackTrace(this,ParseError)}function XMLReader(){}function copyLocator(f,t){return t.lineNumber=f.lineNumber,t.columnNumber=f.columnNumber,t}function parseElementStartPart(source,start,el,currentNSMap,entityReplacer,errorHandler){function addAttribute(qname,value,startIndex){el.attributeNames.hasOwnProperty(qname)&&errorHandler.fatalError("Attribute "+qname+" redefined"),el.addValue(qname,value.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,entityReplacer),startIndex)}for(var attrName,p=++start,s=0;;){var c=source.charAt(p);switch(c){case"=":if(1===s)attrName=source.slice(start,p),s=3;else{if(2!==s)throw new Error("attribute equal must after attrName");s=3}break;case"'":case'"':if(3===s||1===s){if(1===s&&(errorHandler.warning('attribute value must after "="'),attrName=source.slice(start,p)),start=p+1,!((p=source.indexOf(c,start))>0))throw new Error("attribute value no end '"+c+"' match");addAttribute(attrName,value=source.slice(start,p),start-1),s=5}else{if(4!=s)throw new Error('attribute value must after "="');addAttribute(attrName,value=source.slice(start,p),start),errorHandler.warning('attribute "'+attrName+'" missed start quot('+c+")!!"),start=p+1,s=5}break;case"/":switch(s){case 0:el.setTagName(source.slice(start,p));case 5:case 6:case 7:s=7,el.closed=!0;case 4:case 1:break;case 2:el.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return errorHandler.error("unexpected end of input"),0==s&&el.setTagName(source.slice(start,p)),p;case">":switch(s){case 0:el.setTagName(source.slice(start,p));case 5:case 6:case 7:break;case 4:case 1:"/"===(value=source.slice(start,p)).slice(-1)&&(el.closed=!0,value=value.slice(0,-1));case 2:2===s&&(value=attrName),4==s?(errorHandler.warning('attribute "'+value+'" missed quot(")!'),addAttribute(attrName,value,start)):(NAMESPACE.isHTML(currentNSMap[""])&&value.match(/^(?:disabled|checked|selected)$/i)||errorHandler.warning('attribute "'+value+'" missed value!! "'+value+'" instead!!'),addAttribute(value,value,start));break;case 3:throw new Error("attribute value missed!!")}return p;case"€":c=" ";default:if(c<=" ")switch(s){case 0:el.setTagName(source.slice(start,p)),s=6;break;case 1:attrName=source.slice(start,p),s=2;break;case 4:var value=source.slice(start,p);errorHandler.warning('attribute "'+value+'" missed quot(")!!'),addAttribute(attrName,value,start);case 5:s=6}else switch(s){case 2:el.tagName,NAMESPACE.isHTML(currentNSMap[""])&&attrName.match(/^(?:disabled|checked|selected)$/i)||errorHandler.warning('attribute "'+attrName+'" missed value!! "'+attrName+'" instead2!!'),addAttribute(attrName,attrName,start),start=p,s=1;break;case 5:errorHandler.warning('attribute space is required"'+attrName+'"!!');case 6:s=1,start=p;break;case 3:s=4,start=p;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}p++}}function appendElement(el,domBuilder,currentNSMap){for(var tagName=el.tagName,localNSMap=null,i=el.length;i--;){var a=el[i],qName=a.qName,value=a.value;if((nsp=qName.indexOf(":"))>0)var prefix=a.prefix=qName.slice(0,nsp),localName=qName.slice(nsp+1),nsPrefix="xmlns"===prefix&&localName;else localName=qName,prefix=null,nsPrefix="xmlns"===qName&&"";a.localName=localName,!1!==nsPrefix&&(null==localNSMap&&(localNSMap={},_copy(currentNSMap,currentNSMap={})),currentNSMap[nsPrefix]=localNSMap[nsPrefix]=value,a.uri=NAMESPACE.XMLNS,domBuilder.startPrefixMapping(nsPrefix,value))}for(i=el.length;i--;){(prefix=(a=el[i]).prefix)&&("xml"===prefix&&(a.uri=NAMESPACE.XML),"xmlns"!==prefix&&(a.uri=currentNSMap[prefix||""]))}var nsp;(nsp=tagName.indexOf(":"))>0?(prefix=el.prefix=tagName.slice(0,nsp),localName=el.localName=tagName.slice(nsp+1)):(prefix=null,localName=el.localName=tagName);var ns=el.uri=currentNSMap[prefix||""];if(domBuilder.startElement(ns,localName,tagName,el),!el.closed)return el.currentNSMap=currentNSMap,el.localNSMap=localNSMap,!0;if(domBuilder.endElement(ns,localName,tagName),localNSMap)for(prefix in localNSMap)Object.prototype.hasOwnProperty.call(localNSMap,prefix)&&domBuilder.endPrefixMapping(prefix)}function parseHtmlSpecialContent(source,elStartEnd,tagName,entityReplacer,domBuilder){if(/^(?:script|textarea)$/i.test(tagName)){var elEndStart=source.indexOf("</"+tagName+">",elStartEnd),text=source.substring(elStartEnd+1,elEndStart);if(/[&<]/.test(text))return/^script$/i.test(tagName)?(domBuilder.characters(text,0,text.length),elEndStart):(text=text.replace(/&#?\w+;/g,entityReplacer),domBuilder.characters(text,0,text.length),elEndStart)}return elStartEnd+1}function fixSelfClosed(source,elStartEnd,tagName,closeMap){var pos=closeMap[tagName];return null==pos&&((pos=source.lastIndexOf("</"+tagName+">"))<elStartEnd&&(pos=source.lastIndexOf("</"+tagName)),closeMap[tagName]=pos),pos<elStartEnd}function _copy(source,target){for(var n in source)Object.prototype.hasOwnProperty.call(source,n)&&(target[n]=source[n])}function parseDCC(source,start,domBuilder,errorHandler){if("-"===source.charAt(start+2))return"-"===source.charAt(start+3)?(end=source.indexOf("--\x3e",start+4))>start?(domBuilder.comment(source,start+4,end-start-4),end+3):(errorHandler.error("Unclosed comment"),-1):-1;if("CDATA["==source.substr(start+3,6)){var end=source.indexOf("]]>",start+9);return domBuilder.startCDATA(),domBuilder.characters(source,start+9,end-start-9),domBuilder.endCDATA(),end+3}var matchs=function split(source,start){var match,buf=[],reg=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;reg.lastIndex=start,reg.exec(source);for(;match=reg.exec(source);)if(buf.push(match),match[1])return buf}(source,start),len=matchs.length;if(len>1&&/!doctype/i.test(matchs[0][0])){var name=matchs[1][0],pubid=!1,sysid=!1;len>3&&(/^public$/i.test(matchs[2][0])?(pubid=matchs[3][0],sysid=len>4&&matchs[4][0]):/^system$/i.test(matchs[2][0])&&(sysid=matchs[3][0]));var lastMatch=matchs[len-1];return domBuilder.startDTD(name,pubid,sysid),domBuilder.endDTD(),lastMatch.index+lastMatch[0].length}return-1}function parseInstruction(source,start,domBuilder){var end=source.indexOf("?>",start);if(end){var match=source.substring(start,end).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return match?(match[0].length,domBuilder.processingInstruction(match[1],match[2]),end+2):-1}return-1}function ElementAttributes(){this.attributeNames={}}return ParseError.prototype=new Error,ParseError.prototype.name=ParseError.name,XMLReader.prototype={parse:function(source,defaultNSMap,entityMap){var domBuilder=this.domBuilder;domBuilder.startDocument(),_copy(defaultNSMap,defaultNSMap={}),function parse(source,defaultNSMapCopy,entityMap,domBuilder,errorHandler){function fixedFromCharCode(code){if(code>65535){var surrogate1=55296+((code-=65536)>>10),surrogate2=56320+(1023&code);return String.fromCharCode(surrogate1,surrogate2)}return String.fromCharCode(code)}function entityReplacer(a){var k=a.slice(1,-1);return Object.hasOwnProperty.call(entityMap,k)?entityMap[k]:"#"===k.charAt(0)?fixedFromCharCode(parseInt(k.substr(1).replace("x","0x"))):(errorHandler.error("entity not found:"+a),a)}function appendText(end){if(end>start){var xt=source.substring(start,end).replace(/&#?\w+;/g,entityReplacer);locator&&position(start),domBuilder.characters(xt,0,end-start),start=end}}function position(p,m){for(;p>=lineEnd&&(m=linePattern.exec(source));)lineStart=m.index,lineEnd=lineStart+m[0].length,locator.lineNumber++;locator.columnNumber=p-lineStart+1}var lineStart=0,lineEnd=0,linePattern=/.*(?:\r\n?|\n)|.*$/g,locator=domBuilder.locator,parseStack=[{currentNSMap:defaultNSMapCopy}],closeMap={},start=0;for(;;){try{var tagStart=source.indexOf("<",start);if(tagStart<0){if(!source.substr(start).match(/^\s*$/)){var doc=domBuilder.doc,text=doc.createTextNode(source.substr(start));doc.appendChild(text),domBuilder.currentElement=text}return}switch(tagStart>start&&appendText(tagStart),source.charAt(tagStart+1)){case"/":var end=source.indexOf(">",tagStart+3),tagName=source.substring(tagStart+2,end).replace(/[ \t\n\r]+$/g,""),config=parseStack.pop();end<0?(tagName=source.substring(tagStart+2).replace(/[\s<].*/,""),errorHandler.error("end tag name: "+tagName+" is not complete:"+config.tagName),end=tagStart+1+tagName.length):tagName.match(/\s</)&&(tagName=tagName.replace(/[\s<].*/,""),errorHandler.error("end tag name: "+tagName+" maybe not complete"),end=tagStart+1+tagName.length);var localNSMap=config.localNSMap,endMatch=config.tagName==tagName;if(endMatch||config.tagName&&config.tagName.toLowerCase()==tagName.toLowerCase()){if(domBuilder.endElement(config.uri,config.localName,tagName),localNSMap)for(var prefix in localNSMap)Object.prototype.hasOwnProperty.call(localNSMap,prefix)&&domBuilder.endPrefixMapping(prefix);endMatch||errorHandler.fatalError("end tag name: "+tagName+" is not match the current start tagName:"+config.tagName)}else parseStack.push(config);end++;break;case"?":locator&&position(tagStart),end=parseInstruction(source,tagStart,domBuilder);break;case"!":locator&&position(tagStart),end=parseDCC(source,tagStart,domBuilder,errorHandler);break;default:locator&&position(tagStart);var el=new ElementAttributes,currentNSMap=parseStack[parseStack.length-1].currentNSMap,len=(end=parseElementStartPart(source,tagStart,el,currentNSMap,entityReplacer,errorHandler),el.length);if(!el.closed&&fixSelfClosed(source,end,el.tagName,closeMap)&&(el.closed=!0,entityMap.nbsp||errorHandler.warning("unclosed xml attribute")),locator&&len){for(var locator2=copyLocator(locator,{}),i=0;i<len;i++){var a=el[i];position(a.offset),a.locator=copyLocator(locator,{})}domBuilder.locator=locator2,appendElement(el,domBuilder,currentNSMap)&&parseStack.push(el),domBuilder.locator=locator}else appendElement(el,domBuilder,currentNSMap)&&parseStack.push(el);NAMESPACE.isHTML(el.uri)&&!el.closed?end=parseHtmlSpecialContent(source,end,el.tagName,entityReplacer,domBuilder):end++}}catch(e){if(e instanceof ParseError)throw e;errorHandler.error("element parse error: "+e),end=-1}end>start?start=end:appendText(Math.max(tagStart,start)+1)}}(source,defaultNSMap,entityMap,domBuilder,this.errorHandler),domBuilder.endDocument()}},ElementAttributes.prototype={setTagName:function(tagName){if(!tagNamePattern.test(tagName))throw new Error("invalid tagName:"+tagName);this.tagName=tagName},addValue:function(qName,value,offset){if(!tagNamePattern.test(qName))throw new Error("invalid attribute:"+qName);this.attributeNames[qName]=this.length,this[this.length++]={qName:qName,value:value,offset:offset}},length:0,getLocalName:function(i){return this[i].localName},getLocator:function(i){return this[i].locator},getQName:function(i){return this[i].qName},getURI:function(i){return this[i].uri},getValue:function(i){return this[i].value}},sax.XMLReader=XMLReader,sax.ParseError=ParseError,sax}function requireDomParser(){if(hasRequiredDomParser)return domParser;hasRequiredDomParser=1;var conventions=requireConventions(),dom=requireDom(),entities=requireEntities(),sax=requireSax(),DOMImplementation=dom.DOMImplementation,NAMESPACE=conventions.NAMESPACE,ParseError=sax.ParseError,XMLReader=sax.XMLReader;function normalizeLineEndings(input){return input.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function DOMParser(options){this.options=options||{locator:{}}}function DOMHandler(){this.cdata=!1}function position(locator,node){node.lineNumber=locator.lineNumber,node.columnNumber=locator.columnNumber}function _locator(l){if(l)return"\n@"+(l.systemId||"")+"#[line:"+l.lineNumber+",col:"+l.columnNumber+"]"}function _toString(chars,start,length){return"string"==typeof chars?chars.substr(start,length):chars.length>=start+length||start?new java.lang.String(chars,start,length)+"":chars}function appendElement(hander,node){hander.currentElement?hander.currentElement.appendChild(node):hander.doc.appendChild(node)}return DOMParser.prototype.parseFromString=function(source,mimeType){var options=this.options,sax=new XMLReader,domBuilder=options.domBuilder||new DOMHandler,errorHandler=options.errorHandler,locator=options.locator,defaultNSMap=options.xmlns||{},isHTML=/\/x?html?$/.test(mimeType),entityMap=isHTML?entities.HTML_ENTITIES:entities.XML_ENTITIES;locator&&domBuilder.setDocumentLocator(locator),sax.errorHandler=function buildErrorHandler(errorImpl,domBuilder,locator){if(!errorImpl){if(domBuilder instanceof DOMHandler)return domBuilder;errorImpl=domBuilder}var errorHandler={},isCallback=errorImpl instanceof Function;function build(key){var fn=errorImpl[key];!fn&&isCallback&&(fn=2==errorImpl.length?function(msg){errorImpl(key,msg)}:errorImpl),errorHandler[key]=fn&&function(msg){fn("[xmldom "+key+"]\t"+msg+_locator(locator))}||function(){}}return locator=locator||{},build("warning"),build("error"),build("fatalError"),errorHandler}(errorHandler,domBuilder,locator),sax.domBuilder=options.domBuilder||domBuilder,isHTML&&(defaultNSMap[""]=NAMESPACE.HTML),defaultNSMap.xml=defaultNSMap.xml||NAMESPACE.XML;var normalize=options.normalizeLineEndings||normalizeLineEndings;return source&&"string"==typeof source?sax.parse(normalize(source),defaultNSMap,entityMap):sax.errorHandler.error("invalid doc source"),domBuilder.doc},DOMHandler.prototype={startDocument:function(){this.doc=(new DOMImplementation).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(namespaceURI,localName,qName,attrs){var doc=this.doc,el=doc.createElementNS(namespaceURI,qName||localName),len=attrs.length;appendElement(this,el),this.currentElement=el,this.locator&&position(this.locator,el);for(var i=0;i<len;i++){namespaceURI=attrs.getURI(i);var value=attrs.getValue(i),attr=(qName=attrs.getQName(i),doc.createAttributeNS(namespaceURI,qName));this.locator&&position(attrs.getLocator(i),attr),attr.value=attr.nodeValue=value,el.setAttributeNode(attr)}},endElement:function(namespaceURI,localName,qName){var current=this.currentElement;current.tagName,this.currentElement=current.parentNode},startPrefixMapping:function(prefix,uri){},endPrefixMapping:function(prefix){},processingInstruction:function(target,data){var ins=this.doc.createProcessingInstruction(target,data);this.locator&&position(this.locator,ins),appendElement(this,ins)},ignorableWhitespace:function(ch,start,length){},characters:function(chars,start,length){if(chars=_toString.apply(this,arguments)){if(this.cdata)var charNode=this.doc.createCDATASection(chars);else charNode=this.doc.createTextNode(chars);this.currentElement?this.currentElement.appendChild(charNode):/^\s*$/.test(chars)&&this.doc.appendChild(charNode),this.locator&&position(this.locator,charNode)}},skippedEntity:function(name){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(locator){(this.locator=locator)&&(locator.lineNumber=0)},comment:function(chars,start,length){chars=_toString.apply(this,arguments);var comm=this.doc.createComment(chars);this.locator&&position(this.locator,comm),appendElement(this,comm)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(name,publicId,systemId){var impl=this.doc.implementation;if(impl&&impl.createDocumentType){var dt=impl.createDocumentType(name,publicId,systemId);this.locator&&position(this.locator,dt),appendElement(this,dt),this.doc.doctype=dt}},warning:function(error){console.warn("[xmldom warning]\t"+error,_locator(this.locator))},error:function(error){console.error("[xmldom error]\t"+error,_locator(this.locator))},fatalError:function(error){throw new ParseError(error,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(key){DOMHandler.prototype[key]=function(){return null}})),domParser.__DOMHandler=DOMHandler,domParser.normalizeLineEndings=normalizeLineEndings,domParser.DOMParser=DOMParser,domParser}var hasRequiredDist,hasRequiredUtils$2,utils$4={},dist={};function requireDist(){if(hasRequiredDist)return dist;var NodeTypes;function isNodeLike(value){return value&&"object"==typeof value&&Number.isInteger(value.nodeType)&&value.nodeType>=1&&value.nodeType<=11&&"string"==typeof value.nodeName&&"function"==typeof value.appendChild&&"function"==typeof value.removeChild}function isArrayOfNodes(value){return Array.isArray(value)&&value.every(isNodeLike)}function isNodeOfType(type,value){return isNodeLike(value)&&value.nodeType===type}function assertIsNodeOfType(type,value){const typeName=Object.keys(NodeTypes).find((key=>NodeTypes[key]===type));if(!isNodeOfType(type,value))throw new Error(`Value is not of type ${typeName}`)}hasRequiredDist=1,Object.defineProperty(dist,"__esModule",{value:!0}),dist.assertIsDocumentFragmentNode=dist.assertIsDocumentTypeNode=dist.assertIsDocumentNode=dist.assertIsCommentNode=dist.assertIsProcessingInstructionNode=dist.assertIsCDATASectionNode=dist.assertIsTextNode=dist.assertIsAttributeNode=dist.assertIsElementNode=dist.isDocumentFragmentNode=dist.isDocumentTypeNode=dist.isDocumentNode=dist.isCommentNode=dist.isProcessingInstructionNode=dist.isCDATASectionNode=dist.isTextNode=dist.isAttributeNode=dist.isElementNode=dist.assertIsArrayOfNodes=dist.isArrayOfNodes=dist.assertIsNodeLike=dist.isNodeLike=dist.NodeTypes=void 0,function(NodeTypes){NodeTypes[NodeTypes.ELEMENT_NODE=1]="ELEMENT_NODE",NodeTypes[NodeTypes.ATTRIBUTE_NODE=2]="ATTRIBUTE_NODE",NodeTypes[NodeTypes.TEXT_NODE=3]="TEXT_NODE",NodeTypes[NodeTypes.CDATA_SECTION_NODE=4]="CDATA_SECTION_NODE",NodeTypes[NodeTypes.PROCESSING_INSTRUCTION_NODE=7]="PROCESSING_INSTRUCTION_NODE",NodeTypes[NodeTypes.COMMENT_NODE=8]="COMMENT_NODE",NodeTypes[NodeTypes.DOCUMENT_NODE=9]="DOCUMENT_NODE",NodeTypes[NodeTypes.DOCUMENT_TYPE_NODE=10]="DOCUMENT_TYPE_NODE",NodeTypes[NodeTypes.DOCUMENT_FRAGMENT_NODE=11]="DOCUMENT_FRAGMENT_NODE"}(NodeTypes||(dist.NodeTypes=NodeTypes={})),dist.isNodeLike=isNodeLike,dist.assertIsNodeLike=function assertIsNodeLike(value){if(!isNodeLike(value))throw new Error(`Value is not a Node-like object. Received: ${value}`)},dist.isArrayOfNodes=isArrayOfNodes,dist.assertIsArrayOfNodes=function assertIsArrayOfNodes(value){if(!isArrayOfNodes(value))throw new Error("Value is not an array of Nodes")};dist.isElementNode=value=>isNodeOfType(NodeTypes.ELEMENT_NODE,value);dist.isAttributeNode=value=>isNodeOfType(NodeTypes.ATTRIBUTE_NODE,value);dist.isTextNode=value=>isNodeOfType(NodeTypes.TEXT_NODE,value);dist.isCDATASectionNode=value=>isNodeOfType(NodeTypes.CDATA_SECTION_NODE,value);dist.isProcessingInstructionNode=value=>isNodeOfType(NodeTypes.PROCESSING_INSTRUCTION_NODE,value);dist.isCommentNode=value=>isNodeOfType(NodeTypes.COMMENT_NODE,value);dist.isDocumentNode=value=>isNodeOfType(NodeTypes.DOCUMENT_NODE,value);dist.isDocumentTypeNode=value=>isNodeOfType(NodeTypes.DOCUMENT_TYPE_NODE,value);dist.isDocumentFragmentNode=value=>isNodeOfType(NodeTypes.DOCUMENT_FRAGMENT_NODE,value);dist.assertIsElementNode=value=>{assertIsNodeOfType(NodeTypes.ELEMENT_NODE,value)};dist.assertIsAttributeNode=value=>assertIsNodeOfType(NodeTypes.ATTRIBUTE_NODE,value);dist.assertIsTextNode=value=>assertIsNodeOfType(NodeTypes.TEXT_NODE,value);dist.assertIsCDATASectionNode=value=>assertIsNodeOfType(NodeTypes.CDATA_SECTION_NODE,value);dist.assertIsProcessingInstructionNode=value=>assertIsNodeOfType(NodeTypes.PROCESSING_INSTRUCTION_NODE,value);dist.assertIsCommentNode=value=>assertIsNodeOfType(NodeTypes.COMMENT_NODE,value);dist.assertIsDocumentNode=value=>assertIsNodeOfType(NodeTypes.DOCUMENT_NODE,value);dist.assertIsDocumentTypeNode=value=>assertIsNodeOfType(NodeTypes.DOCUMENT_TYPE_NODE,value);return dist.assertIsDocumentFragmentNode=value=>assertIsNodeOfType(NodeTypes.DOCUMENT_FRAGMENT_NODE,value),dist}function requireUtils$2(){return hasRequiredUtils$2||(hasRequiredUtils$2=1,function(exports){Object.defineProperty(exports,"__esModule",{value:!0}),exports.validateDigestValue=exports.findAncestorNs=exports.derToPem=exports.pemToDer=exports.normalizePem=exports.BASE64_REGEX=exports.EXTRACT_X509_CERTS=exports.PEM_FORMAT_REGEX=exports.encodeSpecialCharactersInText=exports.encodeSpecialCharactersInAttribute=exports.findChilds=exports.findChildren=exports.findAttr=exports.isArrayHasLength=void 0;const xpath=requireXpath(),isDomNode=requireDist();function isArrayHasLength(array){return Array.isArray(array)&&array.length>0}function attrEqualsExplicitly(attr,localName,namespace){return attr.localName===localName&&(attr.namespaceURI===namespace||null==namespace)}function attrEqualsImplicitly(attr,localName,namespace,node){return attr.localName===localName&&(!attr.namespaceURI&&node?.namespaceURI===namespace||null==namespace)}function findChildren(node,localName,namespace){const element=node.documentElement??node,res=[];for(let i=0;i<element.childNodes.length;i++){const child=element.childNodes[i];!isDomNode.isElementNode(child)||child.localName!==localName||child.namespaceURI!==namespace&&null!=namespace||res.push(child)}return res}exports.isArrayHasLength=isArrayHasLength,exports.findAttr=function findAttr(element,localName,namespace){for(let i=0;i<element.attributes.length;i++){const attr=element.attributes[i];if(attrEqualsExplicitly(attr,localName,namespace)||attrEqualsImplicitly(attr,localName,namespace,element))return attr}return null},exports.findChildren=findChildren,exports.findChilds=function findChilds(node,localName,namespace){return findChildren(node,localName,namespace)};const xml_special_to_encoded_attribute={"&":"&amp;","<":"&lt;",'"':"&quot;","\r":"&#xD;","\n":"&#xA;","\t":"&#x9;"},xml_special_to_encoded_text={"&":"&amp;","<":"&lt;",">":"&gt;","\r":"&#xD;"};function normalizePem(pem){return`${(pem.trim().replace(/(\r\n|\r)/g,"\n").match(/.{1,64}/g)??[]).join("\n")}\n`}function collectAncestorNamespaces(node,nsArray=[]){if(!isDomNode.isElementNode(node.parentNode))return nsArray;const parent=node.parentNode;if(!parent)return nsArray;if(parent.attributes&&parent.attributes.length>0)for(let i=0;i<parent.attributes.length;i++){const attr=parent.attributes[i];attr&&attr.nodeName&&-1!==attr.nodeName.search(/^xmlns:?/)&&nsArray.push({prefix:attr.nodeName.replace(/^xmlns:?/,""),namespaceURI:attr.nodeValue||""})}return collectAncestorNamespaces(parent,nsArray)}exports.encodeSpecialCharactersInAttribute=function encodeSpecialCharactersInAttribute(attributeValue){return attributeValue.replace(/([&<"\r\n\t])/g,(function(str,item){return xml_special_to_encoded_attribute[item]}))},exports.encodeSpecialCharactersInText=function encodeSpecialCharactersInText(text){return text.replace(/([&<>\r])/g,(function(str,item){return xml_special_to_encoded_text[item]}))},exports.PEM_FORMAT_REGEX=new RegExp("^-----BEGIN [A-Z ]{1,48}-----([^-]*)-----END [A-Z ]{1,48}-----$","s"),exports.EXTRACT_X509_CERTS=new RegExp("-----BEGIN CERTIFICATE-----[^-]*-----END CERTIFICATE-----","g"),exports.BASE64_REGEX=new RegExp("^(?:[A-Za-z0-9\\+\\/]{4}\\n{0,1})*(?:[A-Za-z0-9\\+\\/]{2}==|[A-Za-z0-9\\+\\/]{3}=)?$","s"),exports.normalizePem=normalizePem,exports.pemToDer=function pemToDer(pem){if(!exports.PEM_FORMAT_REGEX.test(pem.trim()))throw new Error("Invalid PEM format.");return Buffer.from(pem.replace(/(\r\n|\r)/g,"").replace(/-----BEGIN [A-Z\x20]{1,48}-----\n?/,"").replace(/-----END [A-Z\x20]{1,48}-----\n?/,""),"base64")},exports.derToPem=function derToPem(der,pemLabel){const base64Der=Buffer.isBuffer(der)?der.toString("base64").trim():der.replace(/(\r\n|\r)/g,"").trim();if(exports.PEM_FORMAT_REGEX.test(base64Der))return normalizePem(base64Der);if(exports.BASE64_REGEX.test(base64Der.replace(/ /g,""))){if(null==pemLabel)throw new Error("PEM label is required when DER is given.");return normalizePem(`-----BEGIN ${pemLabel}-----\n${base64Der.replace(/ /g,"")}\n-----END ${pemLabel}-----`)}throw new Error("Unknown DER format.")},exports.findAncestorNs=function findAncestorNs(doc,docSubsetXpath,namespaceResolver){if(null==docSubsetXpath)return[];const docSubset=xpath.selectWithResolver(docSubsetXpath,doc,namespaceResolver);if(!isArrayHasLength(docSubset))return[];if(!function isElementSubset(docSubset){return docSubset.every((node=>isDomNode.isElementNode(node)))}(docSubset))throw new Error("Document subset must be list of elements");const ancestorNs=collectAncestorNamespaces(docSubset[0]),ancestorNsWithoutDuplicate=[];for(let i=0;i<ancestorNs.length;i++){let notOnTheList=!0;for(const v in ancestorNsWithoutDuplicate)if(ancestorNsWithoutDuplicate[v].prefix===ancestorNs[i].prefix){notOnTheList=!1;break}notOnTheList&&ancestorNsWithoutDuplicate.push(ancestorNs[i])}const returningNs=[],subsetNsPrefix=function findNSPrefix(subset){const subsetAttributes=subset.attributes;for(let k=0;k<subsetAttributes.length;k++){const nodeName=subsetAttributes[k].nodeName;if(-1!==nodeName.search(/^xmlns:?/))return nodeName.replace(/^xmlns:?/,"")}return subset.prefix||""}(docSubset[0]);for(const ancestorNs of ancestorNsWithoutDuplicate)ancestorNs.prefix!==subsetNsPrefix&&returningNs.push(ancestorNs);return returningNs},exports.validateDigestValue=function validateDigestValue(digest,expectedDigest){const buffer=Buffer.from(digest,"base64"),expectedBuffer=Buffer.from(expectedDigest,"base64");if("function"==typeof buffer.equals)return buffer.equals(expectedBuffer);if(buffer.length!==expectedBuffer.length)return!1;for(let i=0;i<buffer.length;i++)if(buffer[i]!==expectedBuffer[i])return!1;return!0}}(utils$4)),utils$4}var hasRequiredC14nCanonicalization,c14nCanonicalization={};var hasRequiredExclusiveCanonicalization,exclusiveCanonicalization={};var hasRequiredEnvelopedSignature,envelopedSignature={};var hasRequiredHashAlgorithms,hashAlgorithms={};function requireHashAlgorithms(){if(hasRequiredHashAlgorithms)return hashAlgorithms;hasRequiredHashAlgorithms=1,Object.defineProperty(hashAlgorithms,"__esModule",{value:!0}),hashAlgorithms.Sha512=hashAlgorithms.Sha256=hashAlgorithms.Sha1=void 0;const crypto=require$$0__default$1.default;hashAlgorithms.Sha1=class Sha1{constructor(){this.getHash=function(xml){const shasum=crypto.createHash("sha1");shasum.update(xml,"utf8");return shasum.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2000/09/xmldsig#sha1"}}};hashAlgorithms.Sha256=class Sha256{constructor(){this.getHash=function(xml){const shasum=crypto.createHash("sha256");shasum.update(xml,"utf8");return shasum.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha256"}}};return hashAlgorithms.Sha512=class Sha512{constructor(){this.getHash=function(xml){const shasum=crypto.createHash("sha512");shasum.update(xml,"utf8");return shasum.digest("base64")},this.getAlgorithmName=function(){return"http://www.w3.org/2001/04/xmlenc#sha512"}}},hashAlgorithms}var hasRequiredTypes,hasRequiredSignatureAlgorithms,hasRequiredSignedXml,hasRequiredLib$3,signatureAlgorithms={},types={};function requireTypes(){if(hasRequiredTypes)return types;return hasRequiredTypes=1,Object.defineProperty(types,"__esModule",{value:!0}),types.createOptionalCallbackFunction=void 0,types.createOptionalCallbackFunction=function createOptionalCallbackFunction(syncVersion){return(...args)=>{const possibleCallback=args[args.length-1];if(!function isErrorFirstCallback(possibleCallback){return"function"==typeof possibleCallback}(possibleCallback))return syncVersion(...args);try{possibleCallback(null,syncVersion(...args.slice(0,-1)))}catch(err){possibleCallback(err instanceof Error?err:new Error("Unknown error"))}}},types}function requireSignatureAlgorithms(){if(hasRequiredSignatureAlgorithms)return signatureAlgorithms;hasRequiredSignatureAlgorithms=1,Object.defineProperty(signatureAlgorithms,"__esModule",{value:!0}),signatureAlgorithms.HmacSha1=signatureAlgorithms.RsaSha512=signatureAlgorithms.RsaSha256=signatureAlgorithms.RsaSha1=void 0;const crypto=require$$0__default$1.default,types_1=requireTypes();signatureAlgorithms.RsaSha1=class RsaSha1{constructor(){this.getSignature=(0,types_1.createOptionalCallbackFunction)(((signedInfo,privateKey)=>{const signer=crypto.createSign("RSA-SHA1");signer.update(signedInfo);return signer.sign(privateKey,"base64")})),this.verifySignature=(0,types_1.createOptionalCallbackFunction)(((material,key,signatureValue)=>{const verifier=crypto.createVerify("RSA-SHA1");verifier.update(material);return verifier.verify(key,signatureValue,"base64")})),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#rsa-sha1"}};signatureAlgorithms.RsaSha256=class RsaSha256{constructor(){this.getSignature=(0,types_1.createOptionalCallbackFunction)(((signedInfo,privateKey)=>{const signer=crypto.createSign("RSA-SHA256");signer.update(signedInfo);return signer.sign(privateKey,"base64")})),this.verifySignature=(0,types_1.createOptionalCallbackFunction)(((material,key,signatureValue)=>{const verifier=crypto.createVerify("RSA-SHA256");verifier.update(material);return verifier.verify(key,signatureValue,"base64")})),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"}};signatureAlgorithms.RsaSha512=class RsaSha512{constructor(){this.getSignature=(0,types_1.createOptionalCallbackFunction)(((signedInfo,privateKey)=>{const signer=crypto.createSign("RSA-SHA512");signer.update(signedInfo);return signer.sign(privateKey,"base64")})),this.verifySignature=(0,types_1.createOptionalCallbackFunction)(((material,key,signatureValue)=>{const verifier=crypto.createVerify("RSA-SHA512");verifier.update(material);return verifier.verify(key,signatureValue,"base64")})),this.getAlgorithmName=()=>"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512"}};return signatureAlgorithms.HmacSha1=class HmacSha1{constructor(){this.getSignature=(0,types_1.createOptionalCallbackFunction)(((signedInfo,privateKey)=>{const signer=crypto.createHmac("SHA1",privateKey);signer.update(signedInfo);return signer.digest("base64")})),this.verifySignature=(0,types_1.createOptionalCallbackFunction)(((material,key,signatureValue)=>{const verifier=crypto.createHmac("SHA1",key);verifier.update(material);return verifier.digest("base64")===signatureValue})),this.getAlgorithmName=()=>"http://www.w3.org/2000/09/xmldsig#hmac-sha1"}},signatureAlgorithms}function requireSignedXml(){if(hasRequiredSignedXml)return signedXml;hasRequiredSignedXml=1,Object.defineProperty(signedXml,"__esModule",{value:!0}),signedXml.SignedXml=void 0;const xpath=requireXpath(),xmldom=function requireLib$4(){if(hasRequiredLib$4)return lib$3;hasRequiredLib$4=1;var dom=requireDom();return lib$3.DOMImplementation=dom.DOMImplementation,lib$3.XMLSerializer=dom.XMLSerializer,lib$3.DOMParser=requireDomParser().DOMParser,lib$3}(),utils=requireUtils$2(),c14n=function requireC14nCanonicalization(){if(hasRequiredC14nCanonicalization)return c14nCanonicalization;hasRequiredC14nCanonicalization=1,Object.defineProperty(c14nCanonicalization,"__esModule",{value:!0}),c14nCanonicalization.C14nCanonicalizationWithComments=c14nCanonicalization.C14nCanonicalization=void 0;const utils=requireUtils$2(),isDomNode=requireDist();class C14nCanonicalization{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return-1;if(!b.namespaceURI&&a.namespaceURI)return 1;const left=a.namespaceURI+a.localName,right=b.namespaceURI+b.localName;return left===right?0:left<right?-1:1}nsCompare(a,b){const attr1=a.prefix,attr2=b.prefix;return attr1===attr2?0:attr1.localeCompare(attr2)}renderAttrs(node){let i,attr;const attrListToRender=[];if(isDomNode.isCommentNode(node))return this.renderComment(node);if(node.attributes)for(i=0;i<node.attributes.length;++i)attr=node.attributes[i],0!==attr.name.indexOf("xmlns")&&attrListToRender.push(attr);attrListToRender.sort(this.attrCompare);const res=attrListToRender.map((attr=>` ${attr.name}="${utils.encodeSpecialCharactersInAttribute(attr.value)}"`));return res.join("")}renderNs(node,prefixesInScope,defaultNs,defaultNsForPrefix,ancestorNamespaces){let i,attr;const res=[];let newDefaultNs=defaultNs;const nsListToRender=[],currNs=node.namespaceURI||"";if(node.prefix?-1===prefixesInScope.indexOf(node.prefix)&&(nsListToRender.push({prefix:node.prefix,namespaceURI:node.namespaceURI||defaultNsForPrefix[node.prefix]}),prefixesInScope.push(node.prefix)):defaultNs!==currNs&&(newDefaultNs=node.namespaceURI||"",res.push(' xmlns="',newDefaultNs,'"')),node.attributes)for(i=0;i<node.attributes.length;++i)attr=node.attributes[i],"xmlns"===attr.prefix&&-1===prefixesInScope.indexOf(attr.localName)&&(nsListToRender.push({prefix:attr.localName,namespaceURI:attr.value}),prefixesInScope.push(attr.localName)),attr.prefix&&-1===prefixesInScope.indexOf(attr.prefix)&&"xmlns"!==attr.prefix&&"xml"!==attr.prefix&&(nsListToRender.push({prefix:attr.prefix,namespaceURI:attr.namespaceURI}),prefixesInScope.push(attr.prefix));if(utils.isArrayHasLength(ancestorNamespaces))for(const ancestorNamespace of ancestorNamespaces){let alreadyListed=!1;for(const nsToRender of nsListToRender)nsToRender.prefix===ancestorNamespace.prefix&&nsToRender.namespaceURI===ancestorNamespace.namespaceURI&&(alreadyListed=!0);alreadyListed||nsListToRender.push(ancestorNamespace)}return nsListToRender.sort(this.nsCompare),res.push(...nsListToRender.map((attr=>attr.prefix?` xmlns:${attr.prefix}="${attr.namespaceURI}"`:` xmlns="${attr.namespaceURI}"`))),{rendered:res.join(""),newDefaultNs:newDefaultNs}}processInner(node,prefixesInScope,defaultNs,defaultNsForPrefix,ancestorNamespaces){if(isDomNode.isCommentNode(node))return this.renderComment(node);if(node.data)return utils.encodeSpecialCharactersInText(node.data);if(isDomNode.isElementNode(node)){let i,pfxCopy;const ns=this.renderNs(node,prefixesInScope,defaultNs,defaultNsForPrefix,ancestorNamespaces),res=["<",node.tagName,ns.rendered,this.renderAttrs(node),">"];for(i=0;i<node.childNodes.length;++i)pfxCopy=prefixesInScope.slice(0),res.push(this.processInner(node.childNodes[i],pfxCopy,ns.newDefaultNs,defaultNsForPrefix,[]));return res.push("</",node.tagName,">"),res.join("")}throw new Error(`Unable to canonicalize node type: ${node.nodeType}`)}renderComment(node){if(!this.includeComments)return"";let isBeforeDocument=!1,isAfterDocument=!1;if(node.ownerDocument===node.parentNode){let nextNode=node,previousNode=node;for(;null!==nextNode;){if(nextNode===node.ownerDocument.documentElement){isBeforeDocument=!0;break}nextNode=nextNode.nextSibling}for(;null!==previousNode;){if(previousNode===node.ownerDocument.documentElement){isAfterDocument=!0;break}previousNode=previousNode.previousSibling}}const beforeDocument=isBeforeDocument?"\n":"";return`${isAfterDocument?"\n":""}\x3c!--${utils.encodeSpecialCharactersInText(node.data)}--\x3e${beforeDocument}`}process(node,options){const defaultNs=(options=options||{}).defaultNs||"",defaultNsForPrefix=options.defaultNsForPrefix||{},ancestorNamespaces=options.ancestorNamespaces||[],prefixesInScope=[];for(let i=0;i<ancestorNamespaces.length;i++)prefixesInScope.push(ancestorNamespaces[i].prefix);return this.processInner(node,prefixesInScope,defaultNs,defaultNsForPrefix,ancestorNamespaces)}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"}}return c14nCanonicalization.C14nCanonicalization=C14nCanonicalization,c14nCanonicalization.C14nCanonicalizationWithComments=class C14nCanonicalizationWithComments extends C14nCanonicalization{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"}},c14nCanonicalization}(),execC14n=function requireExclusiveCanonicalization(){if(hasRequiredExclusiveCanonicalization)return exclusiveCanonicalization;hasRequiredExclusiveCanonicalization=1,Object.defineProperty(exclusiveCanonicalization,"__esModule",{value:!0}),exclusiveCanonicalization.ExclusiveCanonicalizationWithComments=exclusiveCanonicalization.ExclusiveCanonicalization=void 0;const utils=requireUtils$2(),isDomNode=requireDist();function isPrefixInScope(prefixesInScope,prefix,namespaceURI){let ret=!1;return prefixesInScope.forEach((function(pf){pf.prefix===prefix&&pf.namespaceURI===namespaceURI&&(ret=!0)})),ret}class ExclusiveCanonicalization{constructor(){this.includeComments=!1,this.includeComments=!1}attrCompare(a,b){if(!a.namespaceURI&&b.namespaceURI)return-1;if(!b.namespaceURI&&a.namespaceURI)return 1;const left=a.namespaceURI+a.localName,right=b.namespaceURI+b.localName;return left===right?0:left<right?-1:1}nsCompare(a,b){const attr1=a.prefix,attr2=b.prefix;return attr1===attr2?0:attr1.localeCompare(attr2)}renderAttrs(node){let i,attr;const res=[],attrListToRender=[];if(isDomNode.isCommentNode(node))return this.renderComment(node);if(node.attributes)for(i=0;i<node.attributes.length;++i)attr=node.attributes[i],0!==attr.name.indexOf("xmlns")&&attrListToRender.push(attr);for(attr of(attrListToRender.sort(this.attrCompare),attrListToRender))res.push(" ",attr.name,'="',utils.encodeSpecialCharactersInAttribute(attr.value),'"');return res.join("")}renderNs(node,prefixesInScope,defaultNs,defaultNsForPrefix,inclusiveNamespacesPrefixList){let i,attr;const res=[];let newDefaultNs=defaultNs;const nsListToRender=[],currNs=node.namespaceURI||"";if(node.prefix?isPrefixInScope(prefixesInScope,node.prefix,node.namespaceURI||defaultNsForPrefix[node.prefix])||(nsListToRender.push({prefix:node.prefix,namespaceURI:node.namespaceURI||defaultNsForPrefix[node.prefix]}),prefixesInScope.push({prefix:node.prefix,namespaceURI:node.namespaceURI||defaultNsForPrefix[node.prefix]})):defaultNs!==currNs&&(newDefaultNs=node.namespaceURI,res.push(' xmlns="',newDefaultNs,'"')),node.attributes)for(i=0;i<node.attributes.length;++i)attr=node.attributes[i],attr.prefix&&!isPrefixInScope(prefixesInScope,attr.localName,attr.value)&&inclusiveNamespacesPrefixList.indexOf(attr.localName)>=0&&(nsListToRender.push({prefix:attr.localName,namespaceURI:attr.value}),prefixesInScope.push({prefix:attr.localName,namespaceURI:attr.value})),attr.prefix&&!isPrefixInScope(prefixesInScope,attr.prefix,attr.namespaceURI)&&"xmlns"!==attr.prefix&&"xml"!==attr.prefix&&(nsListToRender.push({prefix:attr.prefix,namespaceURI:attr.namespaceURI}),prefixesInScope.push({prefix:attr.prefix,namespaceURI:attr.namespaceURI}));nsListToRender.sort(this.nsCompare);for(const p of nsListToRender)res.push(" xmlns:",p.prefix,'="',p.namespaceURI,'"');return{rendered:res.join(""),newDefaultNs:newDefaultNs}}processInner(node,prefixesInScope,defaultNs,defaultNsForPrefix,inclusiveNamespacesPrefixList){if(isDomNode.isCommentNode(node))return this.renderComment(node);if(node.data)return utils.encodeSpecialCharactersInText(node.data);if(isDomNode.isElementNode(node)){let i,pfxCopy;const ns=this.renderNs(node,prefixesInScope,defaultNs,defaultNsForPrefix,inclusiveNamespacesPrefixList),res=["<",node.tagName,ns.rendered,this.renderAttrs(node),">"];for(i=0;i<node.childNodes.length;++i)pfxCopy=prefixesInScope.slice(0),res.push(this.processInner(node.childNodes[i],pfxCopy,ns.newDefaultNs,defaultNsForPrefix,inclusiveNamespacesPrefixList));return res.push("</",node.tagName,">"),res.join("")}throw new Error(`Unable to exclusive canonicalize node type: ${node.nodeType}`)}renderComment(node){if(!this.includeComments)return"";let isBeforeDocument=!1,isAfterDocument=!1;if(node.ownerDocument===node.parentNode){let nextNode=node,previousNode=node;for(;null!=nextNode;){if(nextNode===node.ownerDocument.documentElement){isBeforeDocument=!0;break}nextNode=nextNode.nextSibling}for(;null!=previousNode;){if(previousNode===node.ownerDocument.documentElement){isAfterDocument=!0;break}previousNode=previousNode.previousSibling}}const beforeDocument=isBeforeDocument?"\n":"";return`${isAfterDocument?"\n":""}\x3c!--${utils.encodeSpecialCharactersInText(node.data)}--\x3e${beforeDocument}`}process(elem,options){let inclusiveNamespacesPrefixList=(options=options||{}).inclusiveNamespacesPrefixList||[];const defaultNs=options.defaultNs||"",defaultNsForPrefix=options.defaultNsForPrefix||{},ancestorNamespaces=options.ancestorNamespaces||[];if(!utils.isArrayHasLength(inclusiveNamespacesPrefixList)){const CanonicalizationMethod=utils.findChildren(elem,"CanonicalizationMethod");if(0!==CanonicalizationMethod.length){const inclusiveNamespaces=utils.findChildren(CanonicalizationMethod[0],"InclusiveNamespaces");0!==inclusiveNamespaces.length&&(inclusiveNamespacesPrefixList=(inclusiveNamespaces[0].getAttribute("PrefixList")||"").split(" "))}}return utils.isArrayHasLength(inclusiveNamespacesPrefixList)&&inclusiveNamespacesPrefixList.forEach((function(prefix){ancestorNamespaces&&ancestorNamespaces.forEach((function(ancestorNamespace){prefix===ancestorNamespace.prefix&&elem.setAttributeNS("http://www.w3.org/2000/xmlns/",`xmlns:${prefix}`,ancestorNamespace.namespaceURI)}))})),this.processInner(elem,[],defaultNs,defaultNsForPrefix,inclusiveNamespacesPrefixList)}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#"}}return exclusiveCanonicalization.ExclusiveCanonicalization=ExclusiveCanonicalization,exclusiveCanonicalization.ExclusiveCanonicalizationWithComments=class ExclusiveCanonicalizationWithComments extends ExclusiveCanonicalization{constructor(){super(),this.includeComments=!0}getAlgorithmName(){return"http://www.w3.org/2001/10/xml-exc-c14n#WithComments"}},exclusiveCanonicalization}(),envelopedSignatures=function requireEnvelopedSignature(){if(hasRequiredEnvelopedSignature)return envelopedSignature;hasRequiredEnvelopedSignature=1,Object.defineProperty(envelopedSignature,"__esModule",{value:!0}),envelopedSignature.EnvelopedSignature=void 0;const xpath=requireXpath(),isDomNode=requireDist();return envelopedSignature.EnvelopedSignature=class EnvelopedSignature{constructor(){this.includeComments=!1,this.includeComments=!1}process(node,options){if(null==options.signatureNode){const signature=xpath.select1("./*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",node);return isDomNode.isNodeLike(signature)&&signature.parentNode&&signature.parentNode.removeChild(signature),node}const signatureNode=options.signatureNode,expectedSignatureValue=xpath.select1(".//*[local-name(.)='SignatureValue']/text()",signatureNode);if(isDomNode.isTextNode(expectedSignatureValue)){const expectedSignatureValueData=expectedSignatureValue.data,signatures=xpath.select(".//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",node);for(const nodeSignature of Array.isArray(signatures)?signatures:[]){const signatureValue=xpath.select1(".//*[local-name(.)='SignatureValue']/text()",nodeSignature);isDomNode.isTextNode(signatureValue)&&expectedSignatureValueData===signatureValue.data&&nodeSignature.parentNode&&nodeSignature.parentNode.removeChild(nodeSignature)}}return node}getAlgorithmName(){return"http://www.w3.org/2000/09/xmldsig#enveloped-signature"}},envelopedSignature}(),hashAlgorithms=requireHashAlgorithms(),signatureAlgorithms=requireSignatureAlgorithms(),isDomNode=requireDist();class SignedXml{constructor(options={}){this.signatureAlgorithm=void 0,this.canonicalizationAlgorithm=void 0,this.inclusiveNamespacesPrefixList=[],this.namespaceResolver={lookupNamespaceURI:function(){throw new Error("Not implemented")}},this.implicitTransforms=[],this.keyInfoAttributes={},this.getKeyInfoContent=SignedXml.getKeyInfoContent,this.getCertFromKeyInfo=SignedXml.getCertFromKeyInfo,this.id=0,this.signedXml="",this.signatureXml="",this.signatureNode=null,this.signatureValue="",this.originalXmlWithIds="",this.keyInfo=null,this.references=[],this.CanonicalizationAlgorithms={"http://www.w3.org/TR/2001/REC-xml-c14n-20010315":c14n.C14nCanonicalization,"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments":c14n.C14nCanonicalizationWithComments,"http://www.w3.org/2001/10/xml-exc-c14n#":execC14n.ExclusiveCanonicalization,"http://www.w3.org/2001/10/xml-exc-c14n#WithComments":execC14n.ExclusiveCanonicalizationWithComments,"http://www.w3.org/2000/09/xmldsig#enveloped-signature":envelopedSignatures.EnvelopedSignature},this.HashAlgorithms={"http://www.w3.org/2000/09/xmldsig#sha1":hashAlgorithms.Sha1,"http://www.w3.org/2001/04/xmlenc#sha256":hashAlgorithms.Sha256,"http://www.w3.org/2001/04/xmlenc#sha512":hashAlgorithms.Sha512},this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#rsa-sha1":signatureAlgorithms.RsaSha1,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256":signatureAlgorithms.RsaSha256,"http://www.w3.org/2001/04/xmldsig-more#rsa-sha512":signatureAlgorithms.RsaSha512};const{idMode:idMode,idAttribute:idAttribute,privateKey:privateKey,publicCert:publicCert,signatureAlgorithm:signatureAlgorithm,canonicalizationAlgorithm:canonicalizationAlgorithm,inclusiveNamespacesPrefixList:inclusiveNamespacesPrefixList,implicitTransforms:implicitTransforms,keyInfoAttributes:keyInfoAttributes,getKeyInfoContent:getKeyInfoContent,getCertFromKeyInfo:getCertFromKeyInfo}=options;this.idMode=idMode,this.idAttributes=["Id","ID","id"],idAttribute&&this.idAttributes.unshift(idAttribute),this.privateKey=privateKey,this.publicCert=publicCert,this.signatureAlgorithm=signatureAlgorithm??this.signatureAlgorithm,this.canonicalizationAlgorithm=canonicalizationAlgorithm,"string"==typeof inclusiveNamespacesPrefixList?this.inclusiveNamespacesPrefixList=inclusiveNamespacesPrefixList.split(" "):utils.isArrayHasLength(inclusiveNamespacesPrefixList)&&(this.inclusiveNamespacesPrefixList=inclusiveNamespacesPrefixList),this.implicitTransforms=implicitTransforms??this.implicitTransforms,this.keyInfoAttributes=keyInfoAttributes??this.keyInfoAttributes,this.getKeyInfoContent=getKeyInfoContent??this.getKeyInfoContent,this.getCertFromKeyInfo=getCertFromKeyInfo??SignedXml.noop,this.CanonicalizationAlgorithms,this.HashAlgorithms,this.SignatureAlgorithms}enableHMAC(){this.SignatureAlgorithms={"http://www.w3.org/2000/09/xmldsig#hmac-sha1":signatureAlgorithms.HmacSha1},this.getKeyInfoContent=SignedXml.noop}static getKeyInfoContent({publicCert:publicCert,prefix:prefix}){if(null==publicCert)return null;prefix=prefix?`${prefix}:`:"";let x509Certs="";Buffer.isBuffer(publicCert)&&(publicCert=publicCert.toString("latin1"));let publicCertMatches=[];return"string"==typeof publicCert&&(publicCertMatches=publicCert.match(utils.EXTRACT_X509_CERTS)||[]),publicCertMatches.length>0&&(x509Certs=publicCertMatches.map((c=>`<${prefix}X509Certificate>${utils.pemToDer(c).toString("base64")}</${prefix}X509Certificate>`)).join("")),`<${prefix}X509Data>${x509Certs}</${prefix}X509Data>`}static getCertFromKeyInfo(keyInfo){if(null!=keyInfo){const cert=xpath.select1(".//*[local-name(.)='X509Certificate']",keyInfo);if(isDomNode.isNodeLike(cert))return utils.derToPem(cert.textContent??"","CERTIFICATE")}return null}checkSignature(xml,callback){if(null!=callback&&"function"!=typeof callback)throw new Error("Last parameter must be a callback function");this.signedXml=xml;const doc=(new xmldom.DOMParser).parseFromString(xml);this.references=[];const unverifiedSignedInfoCanon=this.getCanonSignedInfoXml(doc);if(!unverifiedSignedInfoCanon){if(callback)return void callback(new Error("Canonical signed info cannot be empty"),!1);throw new Error("Canonical signed info cannot be empty")}const unverifiedSignedInfoDoc=(new xmldom.DOMParser).parseFromString(unverifiedSignedInfoCanon,"text/xml").documentElement;if(!unverifiedSignedInfoDoc){if(callback)return void callback(new Error("Could not parse unverifiedSignedInfoCanon into a document"),!1);throw new Error("Could not parse unverifiedSignedInfoCanon into a document")}const references=utils.findChildren(unverifiedSignedInfoDoc,"Reference");if(!utils.isArrayHasLength(references)){if(callback)return void callback(new Error("could not find any Reference elements"),!1);throw new Error("could not find any Reference elements")}for(const reference of references)this.loadReference(reference);if(!this.getReferences().every((ref=>this.validateReference(ref,doc))))return!!callback&&void callback(new Error("Could not validate all references"),!1);const signer=this.findSignatureAlgorithm(this.signatureAlgorithm),key=this.getCertFromKeyInfo(this.keyInfo)||this.publicCert||this.privateKey;if(null==key)throw new Error("KeyInfo or publicCert or privateKey is required to validate signature");if(!callback){if(!1===signer.verifySignature(unverifiedSignedInfoCanon,key,this.signatureValue))throw new Error(`invalid signature: the signature value ${this.signatureValue} is incorrect`);return!0}signer.verifySignature(unverifiedSignedInfoCanon,key,this.signatureValue,callback)}getCanonSignedInfoXml(doc){if(null==this.signatureNode)throw new Error("No signature found.");if("string"!=typeof this.canonicalizationAlgorithm)throw new Error("Missing canonicalizationAlgorithm when trying to get signed info for XML");const signedInfo=utils.findChildren(this.signatureNode,"SignedInfo");if(0===signedInfo.length)throw new Error("could not find SignedInfo element in the message");if(signedInfo.length>1)throw new Error("could not get canonicalized signed info for a signature that contains multiple SignedInfo nodes");if(!("http://www.w3.org/TR/2001/REC-xml-c14n-20010315"!==this.canonicalizationAlgorithm&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"!==this.canonicalizationAlgorithm||doc&&"object"==typeof doc))throw new Error("When canonicalization method is non-exclusive, whole xml dom must be provided as an argument");const c14nOptions={ancestorNamespaces:utils.findAncestorNs(doc,"//*[local-name()='SignedInfo']")};return this.getCanonXml([this.canonicalizationAlgorithm],signedInfo[0],c14nOptions)}getCanonReferenceXml(doc,ref,node){Array.isArray(ref.transforms)&&(ref.ancestorNamespaces=utils.findAncestorNs(doc,ref.xpath,this.namespaceResolver));const c14nOptions={inclusiveNamespacesPrefixList:ref.inclusiveNamespacesPrefixList,ancestorNamespaces:ref.ancestorNamespaces};return this.getCanonXml(ref.transforms,node,c14nOptions)}calculateSignatureValue(doc,callback){const signedInfoCanon=this.getCanonSignedInfoXml(doc),signer=this.findSignatureAlgorithm(this.signatureAlgorithm);if(null==this.privateKey)throw new Error("Private key is required to compute signature");"function"==typeof callback?signer.getSignature(signedInfoCanon,this.privateKey,callback):this.signatureValue=signer.getSignature(signedInfoCanon,this.privateKey)}findSignatureAlgorithm(name){if(null==name)throw new Error("signatureAlgorithm is required");const algo=this.SignatureAlgorithms[name];if(algo)return new algo;throw new Error(`signature algorithm '${name}' is not supported`)}findCanonicalizationAlgorithm(name){if(null!=name){const algo=this.CanonicalizationAlgorithms[name];if(algo)return new algo}throw new Error(`canonicalization algorithm '${name}' is not supported`)}findHashAlgorithm(name){const algo=this.HashAlgorithms[name];if(algo)return new algo;throw new Error(`hash algorithm '${name}' is not supported`)}validateElementAgainstReferences(elemOrXpath,doc){let elem;if("string"==typeof elemOrXpath){const firstElem=xpath.select1(elemOrXpath,doc);isDomNode.assertIsElementNode(firstElem),elem=firstElem}else elem=elemOrXpath;for(const ref of this.getReferences()){const uri="#"===ref.uri?.[0]?ref.uri.substring(1):ref.uri;for(const attr of this.idAttributes){if(uri===elem.getAttribute(attr)){ref.xpath=`//*[@*[local-name(.)='${attr}']='${uri}']`;break}}const canonXml=this.getCanonReferenceXml(doc,ref,elem),digest=this.findHashAlgorithm(ref.digestAlgorithm).getHash(canonXml);if(utils.validateDigestValue(digest,ref.digestValue))return ref}throw new Error("No references passed validation")}validateReference(ref,doc){const uri="#"===ref.uri?.[0]?ref.uri.substring(1):ref.uri;let elem=null;if(""===uri)elem=xpath.select1("//*",doc);else{if(-1!==uri?.indexOf("'"))throw new Error("Cannot validate a uri with quotes inside it");{let num_elements_for_id=0;for(const attr of this.idAttributes){const tmp_elemXpath=`//*[@*[local-name(.)='${attr}']='${uri}']`,tmp_elem=xpath.select(tmp_elemXpath,doc);if(utils.isArrayHasLength(tmp_elem)){if(num_elements_for_id+=tmp_elem.length,num_elements_for_id>1)throw new Error("Cannot validate a document which contains multiple elements with the same value for the ID / Id / Id attributes, in order to prevent signature wrapping attack.");elem=tmp_elem[0],ref.xpath=tmp_elemXpath}}}}if(ref.getValidatedNode=xpathSelector=>{if("string"!=typeof(xpathSelector=xpathSelector||ref.xpath)||null!=ref.validationError)return null;const selectedValue=xpath.select1(xpathSelector,doc);return isDomNode.isNodeLike(selectedValue)?selectedValue:null},!isDomNode.isNodeLike(elem)){const validationError=new Error(`invalid signature: the signature references an element with uri ${ref.uri} but could not find such element in the xml`);return ref.validationError=validationError,!1}const canonXml=this.getCanonReferenceXml(doc,ref,elem),digest=this.findHashAlgorithm(ref.digestAlgorithm).getHash(canonXml);if(!utils.validateDigestValue(digest,ref.digestValue)){const validationError=new Error(`invalid signature: for uri ${ref.uri} calculated digest is ${digest} but the xml to validate supplies digest ${ref.digestValue}`);return ref.validationError=validationError,!1}return!0}findSignatures(doc){const nodes=xpath.select("//*[local-name(.)='Signature' and namespace-uri(.)='http://www.w3.org/2000/09/xmldsig#']",doc);return isDomNode.isArrayOfNodes(nodes)?nodes:[]}loadSignature(signatureNode){this.signatureNode="string"==typeof signatureNode?signatureNode=(new xmldom.DOMParser).parseFromString(signatureNode):signatureNode,this.signatureXml=signatureNode.toString();const node=xpath.select1(".//*[local-name(.)='CanonicalizationMethod']/@Algorithm",signatureNode);if(!isDomNode.isNodeLike(node))throw new Error("could not find CanonicalizationMethod/@Algorithm element");isDomNode.isAttributeNode(node)&&(this.canonicalizationAlgorithm=node.value);const signatureAlgorithm=xpath.select1(".//*[local-name(.)='SignatureMethod']/@Algorithm",signatureNode);isDomNode.isAttributeNode(signatureAlgorithm)&&(this.signatureAlgorithm=signatureAlgorithm.value);const signedInfoNodes=utils.findChildren(this.signatureNode,"SignedInfo");if(!utils.isArrayHasLength(signedInfoNodes))throw new Error("no signed info node found");if(signedInfoNodes.length>1)throw new Error("could not load signature that contains multiple SignedInfo nodes");let canonicalizationAlgorithmForSignedInfo=this.canonicalizationAlgorithm;canonicalizationAlgorithmForSignedInfo&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315"!==canonicalizationAlgorithmForSignedInfo&&"http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"!==canonicalizationAlgorithmForSignedInfo||(canonicalizationAlgorithmForSignedInfo="http://www.w3.org/2001/10/xml-exc-c14n#");const temporaryCanonSignedInfo=this.getCanonXml([canonicalizationAlgorithmForSignedInfo],signedInfoNodes[0]),signedInfoDoc=(new xmldom.DOMParser).parseFromString(temporaryCanonSignedInfo,"text/xml").documentElement;this.references=[];const references=utils.findChildren(signedInfoDoc,"Reference");if(!utils.isArrayHasLength(references))throw new Error("could not find any Reference elements");for(const reference of references)this.loadReference(reference);const signatureValue=xpath.select1(".//*[local-name(.)='SignatureValue']/text()",signatureNode);isDomNode.isTextNode(signatureValue)&&(this.signatureValue=signatureValue.data.replace(/\r?\n/g,""));const keyInfo=xpath.select1(".//*[local-name(.)='KeyInfo']",signatureNode);isDomNode.isNodeLike(keyInfo)&&(this.keyInfo=keyInfo)}loadReference(refNode){let nodes=utils.findChildren(refNode,"DigestMethod");if(0===nodes.length)throw new Error(`could not find DigestMethod in reference ${refNode.toString()}`);const digestAlgoNode=nodes[0],attr=utils.findAttr(digestAlgoNode,"Algorithm");if(!attr)throw new Error(`could not find Algorithm attribute in node ${digestAlgoNode.toString()}`);const digestAlgo=attr.value;if(nodes=utils.findChildren(refNode,"DigestValue"),0===nodes.length)throw new Error(`could not find DigestValue node in reference ${refNode.toString()}`);if(nodes.length>1)throw new Error(`could not load reference for a node that contains multiple DigestValue nodes: ${refNode.toString()}`);const digestValue=nodes[0].textContent;if(!digestValue)throw new Error(`could not find the value of DigestValue in ${refNode.toString()}`);const transforms=[];let inclusiveNamespacesPrefixList=[];if(nodes=utils.findChildren(refNode,"Transforms"),0!==nodes.length){const transformsNode=nodes[0],transformsAll=utils.findChildren(transformsNode,"Transform");for(const transform of transformsAll){const transformAttr=utils.findAttr(transform,"Algorithm");transformAttr&&transforms.push(transformAttr.value)}const inclusiveNamespaces=utils.findChildren(transformsAll[transformsAll.length-1],"InclusiveNamespaces");utils.isArrayHasLength(inclusiveNamespaces)&&(inclusiveNamespacesPrefixList=inclusiveNamespaces.flatMap((namespace=>(namespace.getAttribute("PrefixList")??"").split(" "))).filter((value=>value.length>0)))}utils.isArrayHasLength(this.implicitTransforms)&&this.implicitTransforms.forEach((function(t){transforms.push(t)})),0!==transforms.length&&"http://www.w3.org/2000/09/xmldsig#enveloped-signature"!==transforms[transforms.length-1]||transforms.push("http://www.w3.org/TR/2001/REC-xml-c14n-20010315");const refUri=isDomNode.isElementNode(refNode)&&refNode.getAttribute("URI")||void 0;this.addReference({transforms:transforms,digestAlgorithm:digestAlgo,uri:refUri,digestValue:digestValue,inclusiveNamespacesPrefixList:inclusiveNamespacesPrefixList,isEmptyUri:!1})}addReference({xpath:xpath,transforms:transforms,digestAlgorithm:digestAlgorithm,uri:uri="",digestValue:digestValue,inclusiveNamespacesPrefixList:inclusiveNamespacesPrefixList=[],isEmptyUri:isEmptyUri=!1}){if(null==digestAlgorithm)throw new Error("digestAlgorithm is required");if(!utils.isArrayHasLength(transforms))throw new Error("transforms must contain at least one transform algorithm");this.references.push({xpath:xpath,transforms:transforms,digestAlgorithm:digestAlgorithm,uri:uri,digestValue:digestValue,inclusiveNamespacesPrefixList:inclusiveNamespacesPrefixList,isEmptyUri:isEmptyUri,getValidatedNode:()=>{throw new Error("Reference has not been validated yet; Did you call `sig.checkSignature()`?")}})}getReferences(){return this.references}computeSignature(xml,options,callbackParam){let callback;"function"==typeof options&&null==callbackParam?(callback=options,options={}):(callback=callbackParam,options=options??{});const doc=(new xmldom.DOMParser).parseFromString(xml);let xmlNsAttr="xmlns";const signatureAttrs=[];let currentPrefix;const validActions=["append","prepend","before","after"],prefix=options.prefix,attrs=options.attrs||{},location=options.location||{},existingPrefixes=options.existingPrefixes||{};if(this.namespaceResolver={lookupNamespaceURI:function(prefix){return prefix?existingPrefixes[prefix]:null}},location.reference=location.reference||"/*",location.action=location.action||"append",-1===validActions.indexOf(location.action)){const err=new Error(`location.action option has an invalid action: ${location.action}, must be any of the following values: ${validActions.join(", ")}`);if(callback)return void callback(err);throw err}prefix?(xmlNsAttr+=`:${prefix}`,currentPrefix=`${prefix}:`):currentPrefix="",Object.keys(attrs).forEach((function(name){"xmlns"!==name&&name!==xmlNsAttr&&signatureAttrs.push(`${name}="${attrs[name]}"`)})),signatureAttrs.push(`${xmlNsAttr}="http://www.w3.org/2000/09/xmldsig#"`);let signatureXml=`<${currentPrefix}Signature ${signatureAttrs.join(" ")}>`;signatureXml+=this.createSignedInfo(doc,prefix),signatureXml+=this.getKeyInfo(prefix),signatureXml+=`</${currentPrefix}Signature>`,this.originalXmlWithIds=doc.toString();let existingPrefixesString="";Object.keys(existingPrefixes).forEach((function(key){existingPrefixesString+=`xmlns:${key}="${existingPrefixes[key]}" `}));const dummySignatureWrapper=`<Dummy ${existingPrefixesString}>${signatureXml}</Dummy>`,signatureDoc=(new xmldom.DOMParser).parseFromString(dummySignatureWrapper).documentElement.firstChild,referenceNode=xpath.select1(location.reference,doc);if(!isDomNode.isNodeLike(referenceNode)){const err2=new Error(`the following xpath cannot be used because it was not found: ${location.reference}`);if(callback)return void callback(err2);throw err2}if("append"===location.action)referenceNode.appendChild(signatureDoc);else if("prepend"===location.action)referenceNode.insertBefore(signatureDoc,referenceNode.firstChild);else if("before"===location.action){if(null==referenceNode.parentNode)throw new Error("`location.reference` refers to the root node (by default), so we can't insert `before`");referenceNode.parentNode.insertBefore(signatureDoc,referenceNode)}else if("after"===location.action){if(null==referenceNode.parentNode)throw new Error("`location.reference` refers to the root node (by default), so we can't insert `after`");referenceNode.parentNode.insertBefore(signatureDoc,referenceNode.nextSibling)}this.signatureNode=signatureDoc;const signedInfoNodes=utils.findChildren(this.signatureNode,"SignedInfo");if(0===signedInfoNodes.length){const err3=new Error("could not find SignedInfo element in the message");if(callback)return void callback(err3);throw err3}const signedInfoNode=signedInfoNodes[0];"function"==typeof callback?this.calculateSignatureValue(doc,((err,signature)=>{err?callback(err):(this.signatureValue=signature||"",signatureDoc.insertBefore(this.createSignature(prefix),signedInfoNode.nextSibling),this.signatureXml=signatureDoc.toString(),this.signedXml=doc.toString(),callback(null,this))})):(this.calculateSignatureValue(doc),signatureDoc.insertBefore(this.createSignature(prefix),signedInfoNode.nextSibling),this.signatureXml=signatureDoc.toString(),this.signedXml=doc.toString())}getKeyInfo(prefix){const currentPrefix=prefix?`${prefix}:`:"";let keyInfoAttrs="";this.keyInfoAttributes&&Object.keys(this.keyInfoAttributes).forEach((name=>{keyInfoAttrs+=` ${name}="${this.keyInfoAttributes[name]}"`}));const keyInfoContent=this.getKeyInfoContent({publicCert:this.publicCert,prefix:prefix});return keyInfoAttrs||keyInfoContent?`<${currentPrefix}KeyInfo${keyInfoAttrs}>${keyInfoContent}</${currentPrefix}KeyInfo>`:""}createReferences(doc,prefix){let res="";prefix=(prefix=prefix||"")?`${prefix}:`:prefix;for(const ref of this.getReferences()){const nodes=xpath.selectWithResolver(ref.xpath??"",doc,this.namespaceResolver);if(!utils.isArrayHasLength(nodes))throw new Error(`the following xpath cannot be signed because it was not found: ${ref.xpath}`);for(const node of nodes){if(ref.isEmptyUri)res+=`<${prefix}Reference URI="">`;else{const id=this.ensureHasId(node);ref.uri=id,res+=`<${prefix}Reference URI="#${id}">`}res+=`<${prefix}Transforms>`;for(const trans of ref.transforms||[]){const transform=this.findCanonicalizationAlgorithm(trans);res+=`<${prefix}Transform Algorithm="${transform.getAlgorithmName()}"`,utils.isArrayHasLength(ref.inclusiveNamespacesPrefixList)?(res+=">",res+=`<InclusiveNamespaces PrefixList="${ref.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${transform.getAlgorithmName()}"/>`,res+=`</${prefix}Transform>`):res+=" />"}const canonXml=this.getCanonReferenceXml(doc,ref,node),digestAlgorithm=this.findHashAlgorithm(ref.digestAlgorithm);res+=`</${prefix}Transforms><${prefix}DigestMethod Algorithm="${digestAlgorithm.getAlgorithmName()}" /><${prefix}DigestValue>${digestAlgorithm.getHash(canonXml)}</${prefix}DigestValue></${prefix}Reference>`}}return res}getCanonXml(transforms,node,options={}){options.defaultNsForPrefix=options.defaultNsForPrefix??SignedXml.defaultNsForPrefix,options.signatureNode=this.signatureNode;let transformedXml=node.cloneNode(!0);return transforms.forEach((transformName=>{if(isDomNode.isNodeLike(transformedXml)){const transform=this.findCanonicalizationAlgorithm(transformName);transformedXml=transform.process(transformedXml,options)}})),transformedXml.toString()}ensureHasId(node){let attr;if("wssecurity"===this.idMode?attr=utils.findAttr(node,"Id","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"):this.idAttributes.some((idAttribute=>(attr=utils.findAttr(node,idAttribute),!!attr))),attr)return attr.value;const id="_"+this.id++;return"wssecurity"===this.idMode?(node.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:wsu","http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"),node.setAttributeNS("http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd","wsu:Id",id)):node.setAttribute("Id",id),id}createSignedInfo(doc,prefix){if("string"!=typeof this.canonicalizationAlgorithm)throw new Error("Missing canonicalizationAlgorithm when trying to create signed info for XML");const transform=this.findCanonicalizationAlgorithm(this.canonicalizationAlgorithm),algo=this.findSignatureAlgorithm(this.signatureAlgorithm);let currentPrefix;currentPrefix=prefix||"",currentPrefix=currentPrefix?`${currentPrefix}:`:currentPrefix;let res=`<${currentPrefix}SignedInfo>`;return res+=`<${currentPrefix}CanonicalizationMethod Algorithm="${transform.getAlgorithmName()}"`,utils.isArrayHasLength(this.inclusiveNamespacesPrefixList)?(res+=">",res+=`<InclusiveNamespaces PrefixList="${this.inclusiveNamespacesPrefixList.join(" ")}" xmlns="${transform.getAlgorithmName()}"/>`,res+=`</${currentPrefix}CanonicalizationMethod>`):res+=" />",res+=`<${currentPrefix}SignatureMethod Algorithm="${algo.getAlgorithmName()}" />`,res+=this.createReferences(doc,prefix),res+=`</${currentPrefix}SignedInfo>`,res}createSignature(prefix){let xmlNsAttr="xmlns";prefix?(xmlNsAttr+=`:${prefix}`,prefix+=":"):prefix="";const dummySignatureWrapper=`<${prefix}Signature ${xmlNsAttr}="http://www.w3.org/2000/09/xmldsig#">${`<${prefix}SignatureValue>${this.signatureValue}</${prefix}SignatureValue>`}</${prefix}Signature>`;return(new xmldom.DOMParser).parseFromString(dummySignatureWrapper).documentElement.firstChild}getSignatureXml(){return this.signatureXml}getOriginalXmlWithIds(){return this.originalXmlWithIds}getSignedXml(){return this.signedXml}}return signedXml.SignedXml=SignedXml,SignedXml.defaultNsForPrefix={ds:"http://www.w3.org/2000/09/xmldsig#"},SignedXml.noop=()=>null,signedXml}var libExports$3=function requireLib$3(){return hasRequiredLib$3||(hasRequiredLib$3=1,function(exports){var __createBinding=lib$4&&lib$4.__createBinding||(Object.create?function(o,m,k,k2){void 0===k2&&(k2=k);var desc=Object.getOwnPropertyDescriptor(m,k);desc&&!("get"in desc?!m.__esModule:desc.writable||desc.configurable)||(desc={enumerable:!0,get:function(){return m[k]}}),Object.defineProperty(o,k2,desc)}:function(o,m,k,k2){void 0===k2&&(k2=k),o[k2]=m[k]}),__exportStar=lib$4&&lib$4.__exportStar||function(m,exports){for(var p in m)"default"===p||Object.prototype.hasOwnProperty.call(exports,p)||__createBinding(exports,m,p)};Object.defineProperty(exports,"__esModule",{value:!0}),exports.SignedXml=void 0;var signed_xml_1=requireSignedXml();Object.defineProperty(exports,"SignedXml",{enumerable:!0,get:function(){return signed_xml_1.SignedXml}}),__exportStar(requireUtils$2(),exports),__exportStar(requireTypes(),exports)}(lib$4)),lib$4}();class XmlBuilder{environment;constructor(environment){this.environment=environment}assinarXML(xml,tagAssinar){const signedXmlObj=new libExports$3.SignedXml({publicCert:this.environment.getCert(),privateKey:this.environment.getCertKey(),canonicalizationAlgorithm:"http://www.w3.org/TR/2001/REC-xml-c14n-20010315",implicitTransforms:["http://www.w3.org/TR/2001/REC-xml-c14n-20010315"]});return signedXmlObj.addReference({xpath:`//*[local-name(.)='${tagAssinar}']`,digestAlgorithm:"http://www.w3.org/2000/09/xmldsig#sha1",transforms:["http://www.w3.org/2000/09/xmldsig#enveloped-signature","http://www.w3.org/TR/2001/REC-xml-c14n-20010315"]}),signedXmlObj.signatureAlgorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1",signedXmlObj.computeSignature(xml),signedXmlObj.getSignedXml()}serializeXml(obj,rootTag){return new xml2js$1.Builder({rootName:rootTag,headless:!0,renderOpts:{pretty:!1}}).buildObject(obj)}gerarXml(xmlObject,rootTag){return this.serializeXml(xmlObject,rootTag)}buildSoapEnvelope(xml,soapMethod,soapVersion="soap12",rootTagObj=null){const soapNamespaces={soap12:"http://www.w3.org/2003/05/soap-envelope",soap:"http://schemas.xmlsoap.org/soap/envelope/"},soapNamespace=soapNamespaces[soapVersion]||soapNamespaces.soap12;let soapEnvelopeObj={$:{[`xmlns:${soapVersion}`]:soapNamespace,"xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:xsd":"http://www.w3.org/2001/XMLSchema"},[`${soapVersion}:Body`]:{}};if(rootTagObj&&rootTagObj.tag){let bodyContent={nfeDadosMsg:{$:{xmlns:soapMethod},_:"[XML]"}};rootTagObj.namespace&&(bodyContent.$={xmlns:rootTagObj.namespace}),soapEnvelopeObj[`${soapVersion}:Body`][rootTagObj.tag]=bodyContent}else soapEnvelopeObj[`${soapVersion}:Body`]={nfeDadosMsg:{$:{xmlns:soapMethod},_:"[XML]"}};return this.serializeXml(soapEnvelopeObj,`${soapVersion}:Envelope`).replace("[XML]",xml)}}var NFeServicosUrl={NFe_AC_P:{Usar:"NFe_SVRS_P"},NFe_AC_H:{Usar:"NFe_SVRS_H"},NFe_AL_P:{Usar:"NFe_SVRS_P"},NFe_AL_H:{Usar:"NFe_SVRS_H"},NFe_AP_P:{Usar:"NFe_SVRS_P"},NFe_AP_H:{Usar:"NFe_SVRS_H"},NFe_AM_P:{"RecepcaoEvento_1.00":"https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento","NfeRecepcao_2.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2","NfeInutilizacao_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta2","NFEStatusServico_2.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico2","NFEStatusServico_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico2","NfeConsultaCadastro_2.00":"https://nfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2","NfeConsultaCadastro_3.10":"https://nfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2","NFEAutorizacao_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta4","NFEStatusServico_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico4","NFEInutilizacao_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4","NFEAutorizacao_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4","RecepcaoEvento_4.00":"https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4","NFERetAutorizacao_3.10":"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},NFe_AM_H:{"RecepcaoEvento_1.00":"https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento","NfeRecepcao_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2","NfeInutilizacao_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta2","NFEStatusServico_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico2","NFEStatusServico_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico2","NfeConsultaCadastro_2.00":"https://homnfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2","NfeConsultaCadastro_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/cadconsultacadastro2","NFEAutorizacao_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao","NFEConsultaProtocolo_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta4","NFEStatusServico_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico4","NFEInutilizacao_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4","NFEAutorizacao_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4","RecepcaoEvento_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4","NFERetAutorizacao_3.10":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},NFe_BA_P:{"NfeRecepcao_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/NfeRetRecepcao2.asmx","NfeInutilizacao_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/nfeconsulta2.asmx","NFEStatusServico_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/NfeStatusServico2.asmx","NfeConsultaCadastro_2.00":"https://nfe.sefaz.ba.gov.br/webservices/nfenw/CadConsultaCadastro2.asmx","RecepcaoEvento_1.00":"https://nfe.sefaz.ba.gov.br/webservices/sre/recepcaoevento.asmx","NfeInutilizacao_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeInutilizacao/NfeInutilizacao.asmx","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeConsulta/NfeConsulta.asmx","NFEStatusServico_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeStatusServico/NfeStatusServico.asmx","NFEAutorizacao_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFEInutilizacao_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEStatusServico_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx","NfeConsultaCadastro_4.00":"https://nfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx","RecepcaoEvento_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NFEAutorizacao_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx",SoapAction:"SOAP_V4_BA","NFERetAutorizacao_3.10":"https://nfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},NFe_BA_H:{"NfeRecepcao_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/NfeRetRecepcao2.asmx","NfeInutilizacao_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/nfeconsulta2.asmx","NFEStatusServico_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/NfeStatusServico2.asmx","NfeConsultaCadastro_2.00":"https://hnfe.sefaz.ba.gov.br/webservices/nfenw/CadConsultaCadastro2.asmx","RecepcaoEvento_1.00":"https://hnfe.sefaz.ba.gov.br/webservices/sre/recepcaoevento.asmx","NfeInutilizacao_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeInutilizacao/NfeInutilizacao.asmx","NFEConsultaProtocolo_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeConsulta/NfeConsulta.asmx","NFEStatusServico_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeStatusServico/NfeStatusServico.asmx","NFEAutorizacao_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFEAutorizacao_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx","NFEConsultaProtocolo_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEInutilizacao_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx","NFERetornoAutorizacao_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx","NFEStatusServico_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx","RecepcaoEvento_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NfeConsultaCadastro_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx",SoapAction:"SOAP_V4_BA","NFERetAutorizacao_3.10":"https://hnfe.sefaz.ba.gov.br/webservices/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},NFe_CE_P:{Usar:"NFe_SVRS_P"},NFe_CE_H:{Usar:"NFe_SVRS_H"},NFe_DF_P:{Usar:"NFe_SVRS_P"},NFe_DF_H:{Usar:"NFe_SVRS_H"},NFe_ES_P:{Usar:"NFe_SVRS_P"},NFe_ES_H:{Usar:"NFe_SVRS_H"},NFe_GO_P:{"RecepcaoEvento_1.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl","NfeRecepcao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NfeInutilizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NFEStatusServico_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NfeConsultaCadastro_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NfeConsultaCadastro_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","NFEInutilizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl","RecepcaoEvento_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl","NFEAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"},NFe_GO_H:{"RecepcaoEvento_1.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl","NfeRecepcao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NfeInutilizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEConsultaProtocolo_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NFEStatusServico_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NfeConsultaCadastro_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NfeConsultaCadastro_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","RecepcaoEvento_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl","NFEInutilizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl","NFEAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"},NFe_MA_P:{Usar:"NFe_SVAN_P","NfeConsultaCadastro_2.00":"https://sistemas.sefaz.ma.gov.br/wscadastro/CadConsultaCadastro2?wsdl"},NFe_MA_H:{Usar:"NFe_SVAN_H","NfeConsultaCadastro_2.0":"https://sistemas.sefaz.ma.gov.br/wscadastro/CadConsultaCadastro2?wsdl"},NFe_MG_P:{"NfeRecepcao_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2","NFEStatusServico_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeStatus2","NfeConsultaCadastro_2.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2","RecepcaoEvento_1.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento","NFEAutorizacao_3.10":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao","NFEInutilizacao_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4","NFEAutorizacao_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4","RecepcaoEvento_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4","NFERetAutorizacao_3.10":"https://nfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},NFe_MG_H:{"RecepcaoEvento_1.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/RecepcaoEvento","NfeRecepcao_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2","NfeInutilizacao_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeConsulta2","NFEStatusServico_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeStatusServico2","NFEStatusServico_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeStatusServico2","NfeConsultaCadastro_2.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2","NfeConsultaCadastro_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/cadconsultacadastro2","NFEAutorizacao_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao","NFEAutorizacao_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4","NFEConsultaProtocolo_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4","NFEInutilizacao_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4","NFERetornoAutorizacao_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4","NFEStatusServico_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4","RecepcaoEvento_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4","NFERetAutorizacao_3.10":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},NFe_MS_P:{"RecepcaoEvento_1.00":"https://nfe.fazenda.ms.gov.br/producao/services2/RecepcaoEvento","NfeRecepcao_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeRecepcao2","NfeRetRecepcao_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetRecepcao2","NfeConsultaCadastro_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/CadConsultaCadastro2","NfeInutilizacao_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2","NfeInutilizacao_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeConsulta2","NFEStatusServico_2.00":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeStatusServico2","NFEStatusServico_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeStatusServico2","NFEAutorizacao_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao","NFEInutilizacao_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeStatusServico4","NfeConsultaCadastro_4.00":"https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4","RecepcaoEvento_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4","NFEAutorizacao_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4","NFERetAutorizacao_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NFe_MS_H:{"RecepcaoEvento_1.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/RecepcaoEvento","NfeRecepcao_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRecepcao2","NfeRetRecepcao_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetRecepcao2","NfeConsultaCadastro_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/CadConsultaCadastro2","NfeInutilizacao_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeInutilizacao2","NfeInutilizacao_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeConsulta2","NFEStatusServico_2.00":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeStatusServico2","NFEStatusServico_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeStatusServico2","NFEAutorizacao_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetAutorizacao","NFEAutorizacao_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4","NFEConsultaProtocolo_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeStatusServico4","NFEInutilizacao_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4","RecepcaoEvento_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4","NFERetAutorizacao_3.10":"https://homologacao.nfe.ms.gov.br/homologacao/services2/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NFe_MT_P:{"NfeRecepcao_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2?wsdl","NfeInutilizacao_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2?wsdl","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2?wsdl","NFEStatusServico_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2?wsdl","NfeConsultaCadastro_2.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro2?wsdl","RecepcaoEvento_1.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento?wsdl","NFEAutorizacao_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl","NFEInutilizacao_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4?wsdl","NFEStatusServico_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4?wsdl","RecepcaoEvento_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4?wsdl","NFEAutorizacao_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4?wsdl"},NFe_MT_H:{"NfeRecepcao_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico2?wsdl","RecepcaoEvento_1.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento?wsdl","NfeConsultaCadastro_2.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl","NFERetornoAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4","RecepcaoEvento_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4","NFEConsultaProtocolo_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4","NFEAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4","NFEInutilizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4","NfeConsultaCadastro_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4","NFEStatusServico_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4","NFERetAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},NFe_PA_P:{Usar:"NFe_SVRS_P"},NFe_PA_H:{Usar:"NFe_SVRS_H"},NFe_PB_P:{Usar:"NFe_SVRS_P"},NFe_PB_H:{Usar:"NFe_SVRS_H"},NFe_PE_P:{"RecepcaoEvento_1.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/RecepcaoEvento","NfeRecepcao_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2","NfeInutilizacao_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2","NFEStatusServico_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2","NFEStatusServico_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2","NfeConsultaCadastro_2.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro2","NfeConsultaCadastro_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro2","NFEAutorizacao_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl","NFEInutilizacao_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4","RecepcaoEvento_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4","NFEAutorizacao_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4","NfeConsultaCadastro_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4","NFERetAutorizacao_3.10":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},NFe_PE_H:{"RecepcaoEvento_1.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/RecepcaoEvento","NfeRecepcao_2.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRecepcao2","NfeRetRecepcao_2.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetRecepcao2","NfeInutilizacao_2.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2","NfeInutilizacao_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeInutilizacao2","NFEConsultaProtocolo_2.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2","NFEConsultaProtocolo_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeConsulta2","NFEStatusServico_2.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2","NFEStatusServico_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeStatusServico2","NFEAutorizacao_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl","NFEInutilizacao_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4?wsdl","RecepcaoEvento_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4?wsdl","NFEAutorizacao_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4?wsdl"},NFe_PI_P:{Usar:"NFe_SVRS_P"},NFe_PI_H:{Usar:"NFe_SVRS_H"},NFe_PR_P:{"RecepcaoEvento_1.00":"https://nfe.fazenda.pr.gov.br/nfe/NFeRecepcaoEvento?wsdl","NfeInutilizacao_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeInutilizacao3?wsdl","NFEConsultaProtocolo_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeConsulta3?wsdl","NFEStatusServico_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeStatusServico3?wsdl","NfeConsultaCadastro_2.00":"https://nfe.fazenda.pr.gov.br/nfe/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeAutorizacao3?wsdl","NFERetornoAutorizacao_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl","NFEInutilizacao_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4?wsdl","RecepcaoEvento_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4?wsdl","NFEAutorizacao_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl","NFERetAutorizacao_4.00":"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl"},NFe_PR_H:{"RecepcaoEvento_1.00":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRecepcaoEvento?wsdl","NfeInutilizacao_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeInutilizacao3?wsdl","NFEConsultaProtocolo_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeConsulta3?wsdl","NFEStatusServico_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeStatusServico3?wsdl","NfeConsultaCadastro_2.00":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeAutorizacao3?wsdl","NFERetornoAutorizacao_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl","RecepcaoEvento_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4?wsdl","NFEInutilizacao_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4?wsdl","NFEAutorizacao_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl","NFERetAutorizacao_3.10":"https://homologacao.nfe.fazenda.pr.gov.br/nfe/NFeRetAutorizacao3?wsdl","NFERetAutorizacao_4.00":"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4?wsdl"},NFe_RJ_P:{Usar:"NFe_SVRS_P"},NFe_RJ_H:{Usar:"NFe_SVRS_H"},NFe_RN_P:{Usar:"NFe_SVRS_P"},NFe_RN_H:{Usar:"NFe_SVRS_H"},NFe_RO_P:{Usar:"NFe_SVRS_P"},NFe_RO_H:{Usar:"NFe_SVRS_H"},NFe_RS_P:{"NFEAutorizacao_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_2.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeInutilizacao/NfeInutilizacao2.asmx","NfeInutilizacao_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeInutilizacao/NfeInutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NfeConsultaCadastro_2.00":"https://cad.sefazrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx","NFEInutilizacao_4.00":"https://nfe.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NfeConsultaCadastro_4.00":"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx","NFERetAutorizacao_3.10":"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFe_RS_H:{"NFEAutorizacao_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_2.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NfeInutilizacao_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NfeConsultaCadastro_2.00":"https://cad.sefazrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx","NFEInutilizacao_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NfeConsultaCadastro_4.00":"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx","NFERetAutorizacao_3.10":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFe_RR_P:{Usar:"NFe_SVRS_P"},NFe_RR_H:{Usar:"NFe_SVRS_H"},NFe_SC_P:{Usar:"NFe_SVRS_P"},NFe_SC_H:{Usar:"NFe_SVRS_H"},NFe_SE_P:{Usar:"NFe_SVRS_P"},NFe_SE_H:{Usar:"NFe_SVRS_H"},NFe_SP_P:{"NfeRecepcao_2.00":"https://nfe.fazenda.sp.gov.br/nfeweb/services/nferecepcao2.asmx","NfeRetRecepcao_2.00":"https://nfe.fazenda.sp.gov.br/nfeweb/services/nferetrecepcao2.asmx","NfeInutilizacao_2.00":"https://nfe.fazenda.sp.gov.br/nfeweb/services/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx","NFEStatusServico_2.00":"https://nfe.fazenda.sp.gov.br/nfeweb/services/nfestatusservico2.asmx","NfeConsultaCadastro_2.00":"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx","RecepcaoEvento_1.00":"https://nfe.fazenda.sp.gov.br/ws/RecepcaoEvento.asmx","NfeInutilizacao_3.10":"https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfe.fazenda.sp.gov.br/ws/nfeconsulta2.asmx","NFEStatusServico_3.10":"https://nfe.fazenda.sp.gov.br/ws/nfestatusservico2.asmx","NFEAutorizacao_3.10":"https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFEInutilizacao_4.00":"https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx","NFEStatusServico_4.00":"https://nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx","NfeConsultaCadastro_4.00":"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx","RecepcaoEvento_4.00":"https://nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx","NFERetAutorizacao_3.10":"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},NFe_SP_H:{"NfeRecepcao_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/NfeRetRecepcao2.asmx","NfeInutilizacao_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfeconsulta2.asmx","NFEStatusServico_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/nfeweb/services/nfestatusservico2.asmx","NfeConsultaCadastro_2.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx","RecepcaoEvento_1.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/RecepcaoEvento.asmx","NfeInutilizacao_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsulta2.asmx","NFEStatusServico_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico2.asmx","NFEAutorizacao_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao.asmx","NFERetornoAutorizacao_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFEInutilizacao_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx","NFEStatusServico_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx","NFEAutorizacao_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx","NfeConsultaCadastro_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx","RecepcaoEvento_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx","NFERetAutorizacao_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFERetAutorizacao_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},NFe_TO_P:{Usar:"NFe_SVRS_P"},NFe_TO_H:{Usar:"NFe_SVRS_H"},NFe_SVAN_P:{"RecepcaoEvento_1.00":"https://www.sefazvirtual.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NfeRecepcao_2.00":"https://www.sefazvirtual.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://www.sefazvirtual.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx","NfeInutilizacao_2.00":"https://www.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx","NfeInutilizacao_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://www.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://www.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NfeDownloadNF_1.00":"https://www.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx","NFEAutorizacao_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","RecepcaoEvento_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NFEInutilizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEStatusServico_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx","NFEAutorizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://www.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},NFe_SVAN_H:{"RecepcaoEvento_1.00":"https://hom.sefazvirtual.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NfeRecepcao_2.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx","NfeInutilizacao_2.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx","NfeInutilizacao_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeInutilizacao2/NfeInutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NfeDownloadNF_1.00":"https://hom.sefazvirtual.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx","NFEAutorizacao_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFEInutilizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEStatusServico_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx","RecepcaoEvento_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NFEAutorizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://hom.sefazvirtual.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},NFe_SVRS_P:{"NFEAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_2.00":"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NfeInutilizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NfeConsultaCadastro_2.00":"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx","NFEAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NFEInutilizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NfeConsultaCadastro_4.00":"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx","NFERetAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFe_SVRS_H:{"NFEAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_2.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NfeInutilizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_2.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NfeConsultaCadastro_2.00":"https://cad-homologacao.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro2.asmx","NFEInutilizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NfeConsultaCadastro_4.00":"https://cad-homologacao.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx","NFERetAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},"NFe_SVC-AN_P":{"RecepcaoEvento_1.00":"https://www.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NfeRecepcao_2.00":"https://www.svc.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://www.svc.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx","NFEConsultaProtocolo_2.00":"https://www.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://www.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://www.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://www.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEAutorizacao_3.10":"https://www.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://www.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFEConsultaProtocolo_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEStatusServico_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx","RecepcaoEvento_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NFEAutorizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://www.svc.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://www.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NfeInutilizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx","NFERetAutorizacao_4.00":"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},"NFe_SVC-AN_H":{"RecepcaoEvento_1.00":"https://hom.svc.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NfeRecepcao_2.00":"https://hom.svc.fazenda.gov.br/NfeRecepcao2/NfeRecepcao2.asmx","NfeRetRecepcao_2.00":"https://hom.svc.fazenda.gov.br/NfeRetRecepcao2/NfeRetRecepcao2.asmx","NFEConsultaProtocolo_2.00":"https://hom.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEConsultaProtocolo_3.10":"https://hom.svc.fazenda.gov.br/NfeConsulta2/NfeConsulta2.asmx","NFEStatusServico_2.00":"https://hom.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEStatusServico_3.10":"https://hom.svc.fazenda.gov.br/NfeStatusServico2/NfeStatusServico2.asmx","NFEAutorizacao_3.10":"https://hom.svc.fazenda.gov.br/NfeAutorizacao/NfeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://hom.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NFEConsultaProtocolo_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx","NFEStatusServico_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx","RecepcaoEvento_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx","NFEAutorizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://hom.svc.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://hom.svc.fazenda.gov.br/NfeRetAutorizacao/NfeRetAutorizacao.asmx","NfeInutilizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx","NFERetAutorizacao_4.00":"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},"NFe_SVC-RS_P":{"NFEAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NFEInutilizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},"NFe_SVC-RS_H":{"NFEAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NFEConsultaProtocolo_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFe_AN_P:{"RecepcaoEvento_1.00":"https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NFeDistribuicaoDFe_1.01":"https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx","RecepcaoEvento_4.00":"https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NFe_AN_H:{"RecepcaoEvento_1.00":"https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx","NFeDistribuicaoDFe_1.01":"https://hom1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx","RecepcaoEvento_4.00":"https://hom1.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NFCe_AC_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.sefaznet.ac.gov.br/nfce/qrcode","URL-ConsultaNFCe":"http://www.sefaznet.ac.gov.br/nfce/","URL-ConsultaNFCe_2.00":"www.sefaznet.ac.gov.br/nfce/consulta"},NFCe_AC_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode","URL-ConsultaNFCe":"http://hml.sefaznet.ac.gov.br/nfce/","URL-ConsultaNFCe_2.00":"www.sefaznet.ac.gov.br/nfce/consulta"},NFCe_AL_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp","URL-ConsultaNFCe":"http://nfce.sefaz.al.gov.br/consultaNFCe.htm","URL-ConsultaNFCe_2.00":"www.sefaz.al.gov.br/nfce/consulta"},NFCe_AL_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp","URL-ConsultaNFCe":"http://nfce.sefaz.al.gov.br/consultaNFCe.htm","URL-ConsultaNFCe_2.00":"www.sefaz.al.gov.br/nfce/consulta"},NFCe_AP_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"https://www.sefaz.ap.gov.br/nfce/nfcep.php","URL-ConsultaNFCe":"https://www.sefaz.ap.gov.br/sate/seg/SEGf_AcessarFuncao.jsp?cdFuncao=FIS_1261","URL-ConsultaNFCe_2.00":"www.sefaz.ap.gov.br/nfce/consulta"},NFCe_AP_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"https://www.sefaz.ap.gov.br/nfcehml/nfce.php","URL-ConsultaNFCe":"https://www.sefaz.ap.gov.br/sate1/seg/SEGf_AcessarFuncao.jsp?cdFuncao=FIS_1261","URL-ConsultaNFCe_2.00":"www.sefaz.ap.gov.br/nfce/consulta"},NFCe_AM_P:{"NFEAutorizacao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao","NFEConsultaProtocolo_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta2","NfeRecepcao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRecepcao2","RecepcaoEvento_1.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento","NFEStatusServico_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico2","NfeRetRecepcao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetRecepcao2","NfeInutilizacao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao2","AdministrarCSCNFCe_1.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/CscNFCe","NFEConsultaProtocolo_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4","NFEStatusServico_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4","NFEInutilizacao_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4","NFEAutorizacao_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4","RecepcaoEvento_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4","URL-QRCode":"http://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp","URL-ConsultaNFCe":"http://sistemas.sefaz.am.gov.br/nfceweb/formConsulta.do","URL-ConsultaNFCe_2.00":"www.sefaz.am.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NFCe_AM_H:{"NFEAutorizacao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao","NFEConsultaProtocolo_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeConsulta2","NfeRecepcao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRecepcao2","RecepcaoEvento_1.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/RecepcaoEvento","NFEStatusServico_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeStatusServico2","NfeRetRecepcao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetRecepcao2","NfeInutilizacao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeInutilizacao2","AdministrarCSCNFCe_1.00":"https://homnfce.sefaz.am.gov.br/nfce-services/services/CscNFCe","NFEConsultaProtocolo_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeConsulta4","NFEStatusServico_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeStatusServico4","NFEInutilizacao_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeInutilizacao4","NFEAutorizacao_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao4","RecepcaoEvento_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/RecepcaoEvento4","URL-QRCode":"http://homnfce.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp","URL-ConsultaNFCe":"http://homnfce.sefaz.am.gov.br/nfceweb/formConsulta.do","URL-ConsultaNFCe_2.00":"www.sefaz.am.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://homnfce.sefaz.am.gov.br/nfce-services-nac/services/NfeRetAutorizacao4"},NFCe_BA_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://nfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx","URL-ConsultaNFCe":"http://nfe.sefaz.ba.gov.br/servicos/nfce/default.aspx","URL-ConsultaNFCe_2.00":"http://www.sefaz.ba.gov.br/nfce/consulta","URL-QRCode_1.00":"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx","URL-ConsultaNFCe_1.00":"www.sefaz.ba.gov.br/nfce/consulta"},NFCe_BA_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://hnfe.sefaz.ba.gov.br/servicos/nfce/modulos/geral/NFCEC_consulta_chave_acesso.aspx","URL-ConsultaNFCe":"http://nfe.sefaz.ba.gov.br/servicos/nfce/default.aspx","URL-ConsultaNFCe_2.00":"http://hinternet.sefaz.ba.gov.br/nfce/consulta","URL-QRCode_1.00":"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx","URL-ConsultaNFCe_1.00":"http://hinternet.sefaz.ba.gov.br/nfce/consulta"},NFCe_CE_P:{"NFEAutorizacao_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeAutorizacao?WSDL","NFERetornoAutorizacao_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeRetAutorizacao?WSDL","NFEConsultaProtocolo_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeConsulta2?WSDL","NfeInutilizacao_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeInutilizacao2?WSDL","NFEStatusServico_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeStatusServico2?WSDL","NfeConsultaCadastro_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/CadConsultaCadastro2?WSDL","RecepcaoEvento_1.00":"https://nfce.sefaz.ce.gov.br/nfce/services/RecepcaoEvento?WSDL","NFEAutorizacao_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeAutorizacao4?WSDL","NFERetornoAutorizacao_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL","NFEConsultaProtocolo_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeConsultaProtocolo4?WSDL","NFEInutilizacao_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeInutilizacao4?WSDL","NFEStatusServico_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeStatusServico4?WSDL","NfeConsultaCadastro_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/CadConsultaCadastro4?WSDL","RecepcaoEvento_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeRecepcaoEvento4?WSDL","URL-QRCode":"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html","URL-ConsultaNFCe":"http://nfce.sefaz.ce.gov.br/pages/consultaChaveAcesso.jsf","URL-ConsultaNFCe_2.00":"www.sefaz.ce.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfce.sefaz.ce.gov.br/nfce/services/NfeRetAutorizacao?WSDL","NFERetAutorizacao_4.00":"https://nfce.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL"},NFCe_CE_H:{"NFEAutorizacao_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeRetAutorizacao?wsdl","NFEConsultaProtocolo_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeConsulta2?wsdl","NfeInutilizacao_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeInutilizacao2?wsdl","NFEStatusServico_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeStatusServico2?wsdl","NfeConsultaCadastro_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/CadConsultaCadastro2?wsdl","RecepcaoEvento_1.00":"https://nfceh.sefaz.ce.gov.br/nfce/services/RecepcaoEvento?wsdl","NFEAutorizacao_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeAutorizacao4?WSDL","NFERetornoAutorizacao_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL","NFEConsultaProtocolo_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeConsultaProtocolo4?WSDL","NFEInutilizacao_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeInutilizacao4?WSDL","NFEStatusServico_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeStatusServico4?WSDL","NfeConsultaCadastro_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/CadConsultaCadastro4?WSDL","RecepcaoEvento_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeRecepcaoEvento4?WSDL","URL-QRCode":"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html","URL-ConsultaNFCe":"http://nfceh.sefaz.ce.gov.br/pages/consultaChaveAcesso.jsf","URL-ConsultaNFCe_2.00":"www.sefaz.ce.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfceh.sefaz.ce.gov.br/nfce/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfceh.sefaz.ce.gov.br/nfce4/services/NFeRetAutorizacao4?WSDL"},NFCe_DF_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.fazenda.df.gov.br/nfce/qrcode","URL-ConsultaNFCe":"http://dec.fazenda.df.gov.br/nfce","URL-ConsultaNFCe_2.00":"www.fazenda.df.gov.br/nfce/consulta"},NFCe_DF_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx","URL-ConsultaNFCe":"http://dec.fazenda.df.gov.br/nfce","URL-ConsultaNFCe_2.00":"www.fazenda.df.gov.br/nfce/consulta"},NFCe_ES_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx","URL-ConsultaNFCe":"http://app.sefaz.es.gov.br/ConsultaNFCe","URL-ConsultaNFCe_2.00":"www.sefaz.es.gov.br/nfce/consulta"},NFCe_ES_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx","URL-ConsultaNFCe":"http://app.sefaz.es.gov.br/ConsultaNFCe","URL-ConsultaNFCe_2.00":"www.sefaz.es.gov.br/nfce/consulta"},NFCe_GO_P:{"RecepcaoEvento_1.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl","NfeRecepcao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NfeInutilizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEConsultaProtocolo_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NFEStatusServico_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NfeConsultaCadastro_2.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NfeConsultaCadastro_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","AdministrarCSCNFCe_1.00":"https://nfe.sefaz.go.gov.br/nfe/services/v2/CscNFCe?wsdl","RecepcaoEvento_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl","NFEInutilizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl","NFEAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl","URL-QRCode":"http://nfe.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe","URL-ConsultaNFCe":"http://nfe.sefaz.go.gov.br/nfeweb/jsp/ConsultaDANFENFCe.jsf","URL-ConsultaNFCe_1.00":"http://www.nfce.go.gov.br/post/ver/214344/consulta-nfce","URL-ConsultaNFCe_2.00":"http://www.sefaz.go.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfe.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"},NFCe_GO_H:{"RecepcaoEvento_1.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/RecepcaoEvento?wsdl","NfeRecepcao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRecepcao2?wsdl","NfeRetRecepcao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetRecepcao2?wsdl","NfeInutilizacao_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NfeInutilizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeInutilizacao2?wsdl","NFEConsultaProtocolo_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEConsultaProtocolo_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeConsulta2?wsdl","NFEStatusServico_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NFEStatusServico_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeStatusServico2?wsdl","NfeConsultaCadastro_2.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NfeConsultaCadastro_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/CadConsultaCadastro2?wsdl","NFEAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","AdministrarCSCNFCe_1.00":"https://homolog.sefaz.go.gov.br/nfe/services/v2/CscNFCe?wsdl","RecepcaoEvento_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4?wsdl","NFEInutilizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4?wsdl","NFEConsultaProtocolo_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4?wsdl","NFEStatusServico_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4?wsdl","NfeConsultaCadastro_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4?wsdl","NFEAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4?wsdl","NFERetornoAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl","URL-QRCode":"http://homolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe","URL-ConsultaNFCe":"http://homolog.sefaz.go.gov.br/nfeweb/jsp/ConsultaDANFENFCe.jsf","URL-ConsultaNFCe_1.00":"http://www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao","URL-ConsultaNFCe_2.00":"http://www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao","NFERetAutorizacao_3.10":"https://homolog.sefaz.go.gov.br/nfe/services/v2/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4?wsdl"},NFCe_MA_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe":"http://www.nfce.sefaz.ma.gov.br/portal/consultaNFe.do","URL-ConsultaNFCe_2.00":"www.sefaz.ma.gov.br/nfce/consulta"},NFCe_MA_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe":"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultaNFe.do","URL-ConsultaNFCe_2.00":"www.sefaz.ma.gov.br/nfce/consulta"},NFCe_MG_P:{"NFEAutorizacao_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4","RecepcaoEvento_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4","NFEInutilizacao_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4","NfeConsultaCadastro_4.00":"","URL-QRCode_2.00":"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml","URL-ConsultaNFCe_2.00":"https://portalsped.fazenda.mg.gov.br/portalnfce","NFERetAutorizacao_4.00":"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NFCe_MG_H:{"NFEAutorizacao_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4","RecepcaoEvento_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4","NFEInutilizacao_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4","NfeConsultaCadastro_4.00":"","URL-QRCode_2.00":"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml","URL-ConsultaNFCe_2.00":"https://hportalsped.fazenda.mg.gov.br/portalnfce","NFERetAutorizacao_4.00":"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NFCe_MS_P:{"NFEAutorizacao_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao","RecepcaoEvento_1.00":"https://nfce.fazenda.ms.gov.br/producao/services2/RecepcaoEvento","NfeInutilizacao_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeInutilizacao2","NFEConsultaProtocolo_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeConsulta2","NFEStatusServico_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeStatusServico2","NfeConsultaCadastro_3.10":"https://nfe.fazenda.ms.gov.br/producao/services2/CadConsultaCadastro2","NFEAutorizacao_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4","RecepcaoEvento_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4","NFEInutilizacao_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4","NFEStatusServico_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeStatusServico4","NfeConsultaCadastro_4.00":"https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4","URL-QRCode":"http://www.dfe.ms.gov.br/nfce/qrcode","URL-ConsultaNFCe":"http://www.dfe.ms.gov.br/nfce","URL-ConsultaNFCe_2.00":"http://www.dfe.ms.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfce.fazenda.ms.gov.br/producao/services2/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NFCe_MS_H:{"NFEAutorizacao_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeAutorizacao","NFERetornoAutorizacao_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeRetAutorizacao","RecepcaoEvento_1.00":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/RecepcaoEvento","NfeInutilizacao_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeInutilizacao2","NFEConsultaProtocolo_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeConsulta2","NFEStatusServico_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeStatusServico2","NfeConsultaCadastro_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/CadConsultaCadastro2","NFEAutorizacao_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4","NFEConsultaProtocolo_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4","NFEInutilizacao_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4","NFEStatusServico_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeStatusServico4","RecepcaoEvento_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4","URL-QRCode":"http://www.dfe.ms.gov.br/nfce/qrcode","URL-ConsultaNFCe":"http://www.dfe.ms.gov.br/nfce","URL-ConsultaNFCe_2.00":"http://www.dfe.ms.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://homologacao.nfce.fazenda.ms.gov.br/homologacao/services2/NfeRetAutorizacao","NFERetAutorizacao_4.00":"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NFCe_MT_P:{"NFEAutorizacao_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl","NfeInutilizacao_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao2?wsdl","RecepcaoEvento_1.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento?wsdl","NFEStatusServico_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico2?wsdl","NFEConsultaProtocolo_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta2?wsdl","NFEAutorizacao_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4","NFEInutilizacao_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4","NFEConsultaProtocolo_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta4","NFEStatusServico_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4","RecepcaoEvento_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4","URL-QRCode":"http://www.sefaz.mt.gov.br/nfce/consultanfce","URL-ConsultaNFCe":"http://www.sefaz.mt.gov.br/nfce/consultanfce","URL-ConsultaNFCe_2.00":"http://www.sefaz.mt.gov.br/nfce/consultanfce","NFERetAutorizacao_3.10":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NFCe_MT_H:{"NFEAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao?wsdl","NFERetornoAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl","NfeInutilizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao2?wsdl","RecepcaoEvento_1.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento?wsdl","NFEStatusServico_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico2?wsdl","NFEConsultaProtocolo_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta2?wsdl","NFEAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4","NFERetornoAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4","NFEInutilizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4","NFEConsultaProtocolo_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta4","NFEStatusServico_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4","RecepcaoEvento_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4","URL-QRCode":"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce","URL-ConsultaNFCe":"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce","URL-ConsultaNFCe_2.00":"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce","NFERetAutorizacao_3.10":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao?wsdl","NFERetAutorizacao_4.00":"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NFCe_PA_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam","URL-ConsultaNFCe":"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/consultanfce.seam","URL-ConsultaNFCe_2.00":"www.sefa.pa.gov.br/nfce/consulta"},NFCe_PA_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam","URL-ConsultaNFCe":"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/consultanfce.seam","URL-ConsultaNFCe_2.00":"www.sefa.pa.gov.br/nfce/consulta"},NFCe_PB_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.sefaz.pb.gov.br/nfce","URL-ConsultaNFCe":"http://www.receita.pb.gov.br/nfce","URL-ConsultaNFCe_2.00":"www.sefaz.pb.gov.br/nfce/consulta"},NFCe_PB_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://www.sefaz.pb.gov.br/nfcehom","URL-ConsultaNFCe":"http://www.receita.pb.gov.br/nfcehom","URL-ConsultaNFCe_2.00":"www.receita.pb.gov.br/nfcehom"},NFCe_PE_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://nfce.sefaz.pe.gov.br/nfce-web/consultarNFCe","URL-ConsultaNFCe":"http://nfce.sefaz.pe.gov.br/nfce-web/consultarNFCe","URL-ConsultaNFCe_2.00":"nfce.sefaz.pe.gov.br/nfce/consulta"},NFCe_PE_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://nfcehomolog.sefaz.pe.gov.br/nfce-web/consultarNFCe","URL-ConsultaNFCe":"http://nfcehomolog.sefaz.pe.gov.br/nfce-web/consultarNFCe","URL-ConsultaNFCe_2.00":"nfce.sefaz.pe.gov.br/nfce/consulta"},NFCe_PI_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://webas.sefaz.pi.gov.br/nfceweb/consultarNFCe.jsf","URL-ConsultaNFCe":"http://webas.sefaz.pi.gov.br/nfceweb/consultarNFCe.jsf","URL-QRCode_2.00":"http://www.sefaz.pi.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"www.sefaz.pi.gov.br/nfce/consulta"},NFCe_PI_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://webas.sefaz.pi.gov.br/nfceweb-homologacao/consultarNFCe.jsf","URL-ConsultaNFCe":"http://webas.sefaz.pi.gov.br/nfceweb-homologacao/consultarNFCe.jsf","URL-QRCode_2.00":"http://www.sefaz.pi.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"www.sefaz.pi.gov.br/nfce/consulta"},NFCe_PR_P:{"NFEAutorizacao_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeAutorizacao3","NFERetornoAutorizacao_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3","NFEConsultaProtocolo_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeConsulta3","NfeInutilizacao_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeInutilizacao3","NFEStatusServico_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeStatusServico3","RecepcaoEvento_1.00":"https://nfce.fazenda.pr.gov.br/nfce/NFeRecepcaoEvento","NFEAutorizacao_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4","NFEConsultaProtocolo_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4","NFEInutilizacao_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4","NFEStatusServico_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeStatusServico4","RecepcaoEvento_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://nfce.sefa.pr.gov.br/nfce/CadConsultaCadastro4","URL-QRCode":"http://www.dfeportal.fazenda.pr.gov.br/dfe-portal/rest/servico/consultaNFCe","URL-ConsultaNFCe":"http://www.fazenda.pr.gov.br/","URL-QRCode_2.00":"http://www.fazenda.pr.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"http://www.fazenda.pr.gov.br/nfce/consulta","URL-QRCode_1.00":"http://www.fazenda.pr.gov.br/nfce/qrcode/","URL-ConsultaNFCe_1.00":"http://www.fazenda.pr.gov.br","NFERetAutorizacao_3.10":"https://nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3","NFERetAutorizacao_4.00":"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NFCe_PR_H:{"NFEAutorizacao_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeAutorizacao3","NFERetornoAutorizacao_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3","NFEConsultaProtocolo_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeConsulta3","NfeInutilizacao_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeInutilizacao3","NFEStatusServico_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeStatusServico3","RecepcaoEvento_1.00":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeRecepcaoEvento","NFEAutorizacao_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4","NFEConsultaProtocolo_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4","NFEInutilizacao_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4","NFEStatusServico_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeStatusServico4","RecepcaoEvento_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4","NfeConsultaCadastro_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/CadConsultaCadastro4","URL-QRCode":"http://www.dfeportal.fazenda.pr.gov.br/dfe-portal/rest/servico/consultaNFCe","URL-ConsultaNFCe":"http://www.fazenda.pr.gov.br/","URL-QRCode_2.00":"http://www.fazenda.pr.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"http://www.fazenda.pr.gov.br/nfce/consulta","URL-QRCode_1.00":"http://www.fazenda.pr.gov.br/nfce/qrcode/","URL-ConsultaNFCe_1.00":"http://www.fazenda.pr.gov.br","NFERetAutorizacao_3.10":"https://homologacao.nfce.fazenda.pr.gov.br/nfce/NFeRetAutorizacao3","NFERetAutorizacao_4.00":"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NFCe_RJ_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode","URL-ConsultaNFCe":"http://nfce.fazenda.rj.gov.br/consulta","URL-ConsultaNFCe_2.00":"www.fazenda.rj.gov.br/nfce/consulta"},NFCe_RJ_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode","URL-ConsultaNFCe":"http://nfce.fazenda.rj.gov.br/consulta","URL-ConsultaNFCe_2.00":"www.fazenda.rj.gov.br/nfce/consulta"},NFCe_RN_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://nfce.set.rn.gov.br/consultarNFCe.aspx","URL-ConsultaNFCe":"http://nfce.set.rn.gov.br/portalDFE/NFCe/ConsultaNFCe.aspx","URL-ConsultaNFCe_2.00":"www.set.rn.gov.br/nfce/consulta"},NFCe_RN_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx","URL-ConsultaNFCe":"http://hom.nfce.set.rn.gov.br/portalDFE/NFCe/ConsultaNFCe.aspx","URL-ConsultaNFCe_2.00":"www.set.rn.gov.br/nfce/consulta"},NFCe_RO_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp","URL-ConsultaNFCe":"http://www.nfce.sefin.ro.gov.br","URL-ConsultaNFCe_2.00":"www.sefin.ro.gov.br/nfce/consulta"},NFCe_RO_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp","URL-ConsultaNFCe":"http://www.nfce.sefin.ro.gov.br/consultaAmbHomologacao.jsp","URL-ConsultaNFCe_2.00":"www.sefin.ro.gov.br/nfce/consulta"},NFCe_RS_P:{"NFEAutorizacao_3.10":"https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFEConsultaProtocolo_3.10":"https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NfeInutilizacao_3.10":"https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEStatusServico_3.10":"https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","NFEInutilizacao_4.00":"https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","RecepcaoEvento_4.00":"https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEAutorizacao_4.00":"https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","URL-QRCode":"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx","URL-ConsultaNFCe":"https://www.sefaz.rs.gov.br/NFE/NFE-NFC.aspx","URL-ConsultaNFCe_2.00":"www.sefaz.rs.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFCe_RS_H:{"NFEAutorizacao_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFEConsultaProtocolo_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NfeInutilizacao_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEStatusServico_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","RecepcaoEvento_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEInutilizacao_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","NFEAutorizacao_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","URL-QRCode":"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx","URL-ConsultaNFCe":"https://www.sefaz.rs.gov.br/NFE/NFE-NFC.aspx","URL-ConsultaNFCe_2.00":"www.sefaz.rs.gov.br/nfce/consulta","NFERetAutorizacao_3.10":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFCe_RR_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"https://www.sefaz.rr.gov.br/nfce/servlet/qrcode","URL-ConsultaNFCe":"https://www.sefaz.rr.gov.br/nfce/servlet/wp_consulta_nfce","URL-ConsultaNFCe_2.00":"www.sefaz.rr.gov.br/nfce/consulta"},NFCe_RR_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://200.174.88.103:8080/nfce/servlet/qrcode","URL-ConsultaNFCe":"http://200.174.88.103:8080/nfce/servlet/wp_consulta_nfce","URL-ConsultaNFCe_2.00":"www.sefaz.rr.gov.br/nfce/consulta"},NFCe_SC_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"https://sat.sef.sc.gov.br/nfce/consulta","URL-ConsultaNFCe":"https://sat.sef.sc.gov.br/nfce/consulta","URL-ConsultaNFCe_2.00":"https://sat.sef.sc.gov.br/nfce/consulta"},NFCe_SC_H:{Usar:"NFCe_SVRS_H","URL-QRCode_2.00":"https://hom.sat.sef.sc.gov.br/nfce/consulta","URL-QRCode":"https://hom.sat.sef.sc.gov.br/nfce/consulta","URL-ConsultaNFCe":"https://hom.sat.sef.sc.gov.br/nfce/consulta","URL-QRCode_1.00":"https://hom.sat.sef.sc.gov.br/nfce/consulta","URL-ConsultaNFCe_1.00":"https://hom.sat.sef.sc.gov.br/nfce/consulta","URL-ConsultaNFCe_2.00":"https://hom.sat.sef.sc.gov.br/nfce/consulta"},NFCe_SE_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://www.nfce.se.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe":"http://www.nfce.se.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe_2.00":"http://www.nfce.se.gov.br/nfce/consulta"},NFCe_SE_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://www.hom.nfe.se.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe":"http://www.hom.nfe.se.gov.br/portal/consultarNFCe.jsp","URL-ConsultaNFCe_2.00":"http://www.hom.nfe.se.gov.br/nfce/consulta"},NFCe_SP_P:{"NfeInutilizacao_3.10":"https://nfce.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfce.fazenda.sp.gov.br/ws/nfeconsulta2.asmx","NFEStatusServico_3.10":"https://nfce.fazenda.sp.gov.br/ws/nfestatusservico2.asmx","NfeConsultaCadastro_3.10":"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx","RecepcaoEvento_1.00":"https://nfce.fazenda.sp.gov.br/ws/recepcaoevento.asmx","NFEAutorizacao_3.10":"https://nfce.fazenda.sp.gov.br/ws/nfeautorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","EventoEPEC_1.00":"https://nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx","NFEAutorizacao_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx","NFEInutilizacao_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx","RecepcaoEvento_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx","NFEStatusServico_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx","URL-QRCode":"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaQRCode.aspx","URL-ConsultaNFCe":"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaPublica.aspx","URL-QRCode_1.00":"https://www.nfce.fazenda.sp.gov.br/qrcode","URL-ConsultaNFCe_1.00":"https://www.nfce.fazenda.sp.gov.br/consulta","NFERetAutorizacao_3.10":"https://nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFERetAutorizacao_4.00":"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx","NfeConsultaCadastro_4.00":"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"},NFCe_SP_H:{"NfeInutilizacao_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nfeconsulta2.asmx","NFEStatusServico_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nfestatusservico2.asmx","NfeConsultaCadastro_3.10":"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro2.asmx","RecepcaoEvento_1.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/recepcaoevento.asmx","NFEAutorizacao_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nfeautorizacao.asmx","NFERetornoAutorizacao_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","EventoEPEC_1.00":"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx","NFEAutorizacao_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx","NFEInutilizacao_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx","RecepcaoEvento_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx","NFEStatusServico_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx","URL-QRCode":"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaQRCode.aspx","URL-ConsultaNFCe":"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica/Paginas/ConsultaPublica.aspx","URL-QRCode_1.00":"https://www.homologacao.nfce.fazenda.sp.gov.br/qrcode","URL-ConsultaNFCe_1.00":"https://www.homologacao.nfce.fazenda.sp.gov.br/consulta","NFERetAutorizacao_3.10":"https://homologacao.nfce.fazenda.sp.gov.br/ws/nferetautorizacao.asmx","NFERetAutorizacao_4.00":"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx","NfeConsultaCadastro_4.00":"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"},NFCe_TO_P:{Usar:"NFCe_SVRS_P","URL-QRCode":"http://apps.sefaz.to.gov.br/portal-nfce/qrcodeNFCe","URL-ConsultaNFCe":"http://apps.sefaz.to.gov.br/portal-nfce/consultarNFCe.jsf","URL-QRCode_2.00":"http://www.sefaz.to.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"www.sefaz.to.gov.br/nfce/consulta"},NFCe_TO_H:{Usar:"NFCe_SVRS_H","URL-QRCode":"http://apps.sefaz.to.gov.br/portal-nfce-homologacao/qrcodeNFCe","URL-ConsultaNFCe":"http://apps.sefaz.to.gov.br/portal-nfce-homologacao/consultarNFCe.jsf","URL-QRCode_2.00":"http://homologacao.sefaz.to.gov.br/nfce/qrcode","URL-ConsultaNFCe_2.00":"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},NFCe_SVAN_P:{},NFCe_SVAN_H:{},NFCe_SVRS_P:{"NFEAutorizacao_3.10":"https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_3.10":"https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_3.10":"https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","RecepcaoEvento_4.00":"https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEInutilizacao_4.00":"https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","NFEAutorizacao_4.00":"https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NFCe_SVRS_H:{"NFEAutorizacao_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao.asmx","NFERetornoAutorizacao_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NfeInutilizacao_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao2.asmx","NFEConsultaProtocolo_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta2.asmx","NFEStatusServico_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico2.asmx","RecepcaoEvento_1.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento.asmx","RecepcaoEvento_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx","NFEInutilizacao_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx","NFEConsultaProtocolo_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx","NFEStatusServico_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx","NFEAutorizacao_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx","NFERetornoAutorizacao_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx","NFERetAutorizacao_3.10":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao.asmx","NFERetAutorizacao_4.00":"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},WSDL_V4:{"NFEAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4","NFEInutilizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4","NFEStatusServico_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4","RecepcaoEvento_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4","CadConsultaCadastro_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4","NFeDistribuicaoDFe_1.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe","NFERetAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4"},SOAP_V4:{"NFEAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote","NFERetornoAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote","NFEInutilizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF","NFEConsultaProtocolo_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF","NFEStatusServico_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF","RecepcaoEvento_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEvento","CadConsultaCadastro_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro","NFeDistribuicaoDFe_1.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse","NFERetAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"},WSDL_V4_SP:{"NFEAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4","NFERetornoAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4","NFEInutilizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4","NFEConsultaProtocolo_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4","NFEStatusServico_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4","RecepcaoEvento_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4","CadConsultaCadastro_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4","NFeDistribuicaoDFe_1.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe","NFERetAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4"},SOAP_V4_SP:{"NFEAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote","NFERetornoAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote","NFEInutilizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF","NFEConsultaProtocolo_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF","NFEStatusServico_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF","RecepcaoEvento_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF","CadConsultaCadastro_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro","NFeDistribuicaoDFe_1.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse","NFERetAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"},SOAP_V4_BA:{"NFEAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote","NFERetornoAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote","NFEInutilizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF","NFEConsultaProtocolo_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsulta4/nfeConsultaNF","NFEStatusServico_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF","RecepcaoEvento_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF","CadConsultaCadastro_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro","NFeDistribuicaoDFe_1.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse","NFERetAutorizacao_4.00":"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"}},soapMethod={NFEStatusServico:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",action:""},NFeDistribuicaoDFe:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeDistribuicaoDFe/nfeDistDFeInteresse"},NFEAutorizacao:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeAutorizacao4/nfeAutorizacaoLote"},NFERetAutorizacao:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"},NFERetornoAutorizacao:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRetAutorizacao4/nfeRetAutorizacaoLote"},consultarStatusServico:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeStatusServico4/nfeStatusServicoNF"},NFEInutilizacao:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeInutilizacao4/nfeInutilizacaoNF"},NFEConsultaProtocolo:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeConsultaProtocolo4/nfeConsultaNF"},consultarCadastro:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/",action:"http://www.portalfiscal.inf.br/nfe/wsdl/CadConsultaCadastro4/consultaCadastro"},RecepcaoEvento:{method:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4",action:"http://www.portalfiscal.inf.br/nfe/wsdl/NFeRecepcaoEvento4/nfeRecepcaoEventoNF"}};const baseDir$3=path__default.default.dirname(require$$0$4.fileURLToPath("undefined"==typeof document?new(require("url").URL)("file:"+__filename).href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||new URL("index.cjs",document.baseURI).href)),getSchema=metodo=>{const pathSchemas=path__default.default.resolve(baseDir$3,"../resources/schemas"),schema={NFEStatusServico:`${pathSchemas}/consStatServ_v4.00.xsd`,NFEConsultaProtocolo:`${pathSchemas}/consSitNFe_v4.00.xsd`,RecepcaoEvento:`${pathSchemas}/envEvento_v1.00.xsd`,NFeDistribuicaoDFe:`${pathSchemas}/distDFeInt_v1.01.xsd`,NFEAutorizacao:`${pathSchemas}/enviNFe_v4.00.xsd`,NFEInutilizacao:`${pathSchemas}/inutNFe_v4.00.xsd`,NFERetAutorizacao:`${pathSchemas}/consReciNFe_v4.00.xsd`};try{return{basePath:pathSchemas,schemaPath:schema[metodo]}}catch(error){throw new Error(error.message)}};var arrayHelper,hasRequiredArrayHelper,optionsHelper,hasRequiredOptionsHelper,xml2js,hasRequiredXml2js,xml2json,hasRequiredXml2json,js2xml,hasRequiredJs2xml,json2xml,hasRequiredJson2xml,lib$2,hasRequiredLib$2;function requireArrayHelper(){return hasRequiredArrayHelper?arrayHelper:(hasRequiredArrayHelper=1,arrayHelper={isArray:function(value){return Array.isArray?Array.isArray(value):"[object Array]"===Object.prototype.toString.call(value)}})}function requireOptionsHelper(){if(hasRequiredOptionsHelper)return optionsHelper;hasRequiredOptionsHelper=1;var isArray=requireArrayHelper().isArray;return optionsHelper={copyOptions:function(options){var key,copy={};for(key in options)options.hasOwnProperty(key)&&(copy[key]=options[key]);return copy},ensureFlagExists:function(item,options){item in options&&"boolean"==typeof options[item]||(options[item]=!1)},ensureSpacesExists:function(options){(!("spaces"in options)||"number"!=typeof options.spaces&&"string"!=typeof options.spaces)&&(options.spaces=0)},ensureAlwaysArrayExists:function(options){"alwaysArray"in options&&("boolean"==typeof options.alwaysArray||isArray(options.alwaysArray))||(options.alwaysArray=!1)},ensureKeyExists:function(key,options){key+"Key"in options&&"string"==typeof options[key+"Key"]||(options[key+"Key"]=options.compact?"_"+key:key)},checkFnExists:function(key,options){return key+"Fn"in options}}}function requireXml2js(){if(hasRequiredXml2js)return xml2js;hasRequiredXml2js=1;var options,currentElement,sax=requireSax$1(),helper=requireOptionsHelper(),isArray=requireArrayHelper().isArray;function nativeType(value){var nValue=Number(value);if(!isNaN(nValue))return nValue;var bValue=value.toLowerCase();return"true"===bValue||"false"!==bValue&&value}function addField(type,value){var key;if(options.compact){if(!currentElement[options[type+"Key"]]&&(isArray(options.alwaysArray)?-1!==options.alwaysArray.indexOf(options[type+"Key"]):options.alwaysArray)&&(currentElement[options[type+"Key"]]=[]),currentElement[options[type+"Key"]]&&!isArray(currentElement[options[type+"Key"]])&&(currentElement[options[type+"Key"]]=[currentElement[options[type+"Key"]]]),type+"Fn"in options&&"string"==typeof value&&(value=options[type+"Fn"](value,currentElement)),"instruction"===type&&("instructionFn"in options||"instructionNameFn"in options))for(key in value)if(value.hasOwnProperty(key))if("instructionFn"in options)value[key]=options.instructionFn(value[key],key,currentElement);else{var temp=value[key];delete value[key],value[options.instructionNameFn(key,temp,currentElement)]=temp}isArray(currentElement[options[type+"Key"]])?currentElement[options[type+"Key"]].push(value):currentElement[options[type+"Key"]]=value}else{currentElement[options.elementsKey]||(currentElement[options.elementsKey]=[]);var element={};if(element[options.typeKey]=type,"instruction"===type){for(key in value)if(value.hasOwnProperty(key))break;element[options.nameKey]="instructionNameFn"in options?options.instructionNameFn(key,value,currentElement):key,options.instructionHasAttributes?(element[options.attributesKey]=value[key][options.attributesKey],"instructionFn"in options&&(element[options.attributesKey]=options.instructionFn(element[options.attributesKey],key,currentElement))):("instructionFn"in options&&(value[key]=options.instructionFn(value[key],key,currentElement)),element[options.instructionKey]=value[key])}else type+"Fn"in options&&(value=options[type+"Fn"](value,currentElement)),element[options[type+"Key"]]=value;options.addParent&&(element[options.parentKey]=currentElement),currentElement[options.elementsKey].push(element)}}function manipulateAttributes(attributes){var key;if("attributesFn"in options&&attributes&&(attributes=options.attributesFn(attributes,currentElement)),(options.trim||"attributeValueFn"in options||"attributeNameFn"in options||options.nativeTypeAttributes)&&attributes)for(key in attributes)if(attributes.hasOwnProperty(key)&&(options.trim&&(attributes[key]=attributes[key].trim()),options.nativeTypeAttributes&&(attributes[key]=nativeType(attributes[key])),"attributeValueFn"in options&&(attributes[key]=options.attributeValueFn(attributes[key],key,currentElement)),"attributeNameFn"in options)){var temp=attributes[key];delete attributes[key],attributes[options.attributeNameFn(key,attributes[key],currentElement)]=temp}return attributes}function onInstruction(instruction){var attributes={};if(instruction.body&&("xml"===instruction.name.toLowerCase()||options.instructionHasAttributes)){for(var match,attrsRegExp=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g;null!==(match=attrsRegExp.exec(instruction.body));)attributes[match[1]]=match[2]||match[3]||match[4];attributes=manipulateAttributes(attributes)}if("xml"===instruction.name.toLowerCase()){if(options.ignoreDeclaration)return;currentElement[options.declarationKey]={},Object.keys(attributes).length&&(currentElement[options.declarationKey][options.attributesKey]=attributes),options.addParent&&(currentElement[options.declarationKey][options.parentKey]=currentElement)}else{if(options.ignoreInstruction)return;options.trim&&(instruction.body=instruction.body.trim());var value={};options.instructionHasAttributes&&Object.keys(attributes).length?(value[instruction.name]={},value[instruction.name][options.attributesKey]=attributes):value[instruction.name]=instruction.body,addField("instruction",value)}}function onStartElement(name,attributes){var element;if("object"==typeof name&&(attributes=name.attributes,name=name.name),attributes=manipulateAttributes(attributes),"elementNameFn"in options&&(name=options.elementNameFn(name,currentElement)),options.compact){var key;if(element={},!options.ignoreAttributes&&attributes&&Object.keys(attributes).length)for(key in element[options.attributesKey]={},attributes)attributes.hasOwnProperty(key)&&(element[options.attributesKey][key]=attributes[key]);!(name in currentElement)&&(isArray(options.alwaysArray)?-1!==options.alwaysArray.indexOf(name):options.alwaysArray)&&(currentElement[name]=[]),currentElement[name]&&!isArray(currentElement[name])&&(currentElement[name]=[currentElement[name]]),isArray(currentElement[name])?currentElement[name].push(element):currentElement[name]=element}else currentElement[options.elementsKey]||(currentElement[options.elementsKey]=[]),(element={})[options.typeKey]="element",element[options.nameKey]=name,!options.ignoreAttributes&&attributes&&Object.keys(attributes).length&&(element[options.attributesKey]=attributes),options.alwaysChildren&&(element[options.elementsKey]=[]),currentElement[options.elementsKey].push(element);element[options.parentKey]=currentElement,currentElement=element}function onText(text){options.ignoreText||(text.trim()||options.captureSpacesBetweenElements)&&(options.trim&&(text=text.trim()),options.nativeType&&(text=nativeType(text)),options.sanitize&&(text=text.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),addField("text",text))}function onComment(comment){options.ignoreComment||(options.trim&&(comment=comment.trim()),addField("comment",comment))}function onEndElement(name){var parentElement=currentElement[options.parentKey];options.addParent||delete currentElement[options.parentKey],currentElement=parentElement}function onCdata(cdata){options.ignoreCdata||(options.trim&&(cdata=cdata.trim()),addField("cdata",cdata))}function onDoctype(doctype){options.ignoreDoctype||(doctype=doctype.replace(/^ /,""),options.trim&&(doctype=doctype.trim()),addField("doctype",doctype))}function onError(error){error.note=error}return xml2js=function(xml,userOptions){var parser=sax.parser(!0,{}),result={};if(currentElement=result,options=function validateOptions(userOptions){return options=helper.copyOptions(userOptions),helper.ensureFlagExists("ignoreDeclaration",options),helper.ensureFlagExists("ignoreInstruction",options),helper.ensureFlagExists("ignoreAttributes",options),helper.ensureFlagExists("ignoreText",options),helper.ensureFlagExists("ignoreComment",options),helper.ensureFlagExists("ignoreCdata",options),helper.ensureFlagExists("ignoreDoctype",options),helper.ensureFlagExists("compact",options),helper.ensureFlagExists("alwaysChildren",options),helper.ensureFlagExists("addParent",options),helper.ensureFlagExists("trim",options),helper.ensureFlagExists("nativeType",options),helper.ensureFlagExists("nativeTypeAttributes",options),helper.ensureFlagExists("sanitize",options),helper.ensureFlagExists("instructionHasAttributes",options),helper.ensureFlagExists("captureSpacesBetweenElements",options),helper.ensureAlwaysArrayExists(options),helper.ensureKeyExists("declaration",options),helper.ensureKeyExists("instruction",options),helper.ensureKeyExists("attributes",options),helper.ensureKeyExists("text",options),helper.ensureKeyExists("comment",options),helper.ensureKeyExists("cdata",options),helper.ensureKeyExists("doctype",options),helper.ensureKeyExists("type",options),helper.ensureKeyExists("name",options),helper.ensureKeyExists("elements",options),helper.ensureKeyExists("parent",options),helper.checkFnExists("doctype",options),helper.checkFnExists("instruction",options),helper.checkFnExists("cdata",options),helper.checkFnExists("comment",options),helper.checkFnExists("text",options),helper.checkFnExists("instructionName",options),helper.checkFnExists("elementName",options),helper.checkFnExists("attributeName",options),helper.checkFnExists("attributeValue",options),helper.checkFnExists("attributes",options),options}(userOptions),parser.opt={strictEntities:!0},parser.onopentag=onStartElement,parser.ontext=onText,parser.oncomment=onComment,parser.onclosetag=onEndElement,parser.onerror=onError,parser.oncdata=onCdata,parser.ondoctype=onDoctype,parser.onprocessinginstruction=onInstruction,parser.write(xml).close(),result[options.elementsKey]){var temp=result[options.elementsKey];delete result[options.elementsKey],result[options.elementsKey]=temp,delete result.text}return result},xml2js}function requireXml2json(){if(hasRequiredXml2json)return xml2json;hasRequiredXml2json=1;var helper=requireOptionsHelper(),xml2js=requireXml2js();return xml2json=function(xml,userOptions){var options,js,parentKey;return options=function validateOptions(userOptions){var options=helper.copyOptions(userOptions);return helper.ensureSpacesExists(options),options}(userOptions),js=xml2js(xml,options),parentKey="compact"in options&&options.compact?"_parent":"parent",("addParent"in options&&options.addParent?JSON.stringify(js,(function(k,v){return k===parentKey?"_":v}),options.spaces):JSON.stringify(js,null,options.spaces)).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}}function requireJs2xml(){if(hasRequiredJs2xml)return js2xml;hasRequiredJs2xml=1;var currentElement,currentElementName,helper=requireOptionsHelper(),isArray=requireArrayHelper().isArray;function writeIndentation(options,depth,firstLine){return(!firstLine&&options.spaces?"\n":"")+Array(depth+1).join(options.spaces)}function writeAttributes(attributes,options,depth){if(options.ignoreAttributes)return"";"attributesFn"in options&&(attributes=options.attributesFn(attributes,currentElementName,currentElement));var key,attr,attrName,quote,result=[];for(key in attributes)attributes.hasOwnProperty(key)&&null!==attributes[key]&&void 0!==attributes[key]&&(quote=options.noQuotesForNativeAttributes&&"string"!=typeof attributes[key]?"":'"',attr=(attr=""+attributes[key]).replace(/"/g,"&quot;"),attrName="attributeNameFn"in options?options.attributeNameFn(key,attr,currentElementName,currentElement):key,result.push(options.spaces&&options.indentAttributes?writeIndentation(options,depth+1,!1):" "),result.push(attrName+"="+quote+("attributeValueFn"in options?options.attributeValueFn(attr,key,currentElementName,currentElement):attr)+quote));return attributes&&Object.keys(attributes).length&&options.spaces&&options.indentAttributes&&result.push(writeIndentation(options,depth,!1)),result.join("")}function writeDeclaration(declaration,options,depth){return currentElement=declaration,currentElementName="xml",options.ignoreDeclaration?"":"<?xml"+writeAttributes(declaration[options.attributesKey],options,depth)+"?>"}function writeInstruction(instruction,options,depth){if(options.ignoreInstruction)return"";var key;for(key in instruction)if(instruction.hasOwnProperty(key))break;var instructionName="instructionNameFn"in options?options.instructionNameFn(key,instruction[key],currentElementName,currentElement):key;if("object"==typeof instruction[key])return currentElement=instruction,currentElementName=instructionName,"<?"+instructionName+writeAttributes(instruction[key][options.attributesKey],options,depth)+"?>";var instructionValue=instruction[key]?instruction[key]:"";return"instructionFn"in options&&(instructionValue=options.instructionFn(instructionValue,key,currentElementName,currentElement)),"<?"+instructionName+(instructionValue?" "+instructionValue:"")+"?>"}function writeComment(comment,options){return options.ignoreComment?"":"\x3c!--"+("commentFn"in options?options.commentFn(comment,currentElementName,currentElement):comment)+"--\x3e"}function writeCdata(cdata,options){return options.ignoreCdata?"":"<![CDATA["+("cdataFn"in options?options.cdataFn(cdata,currentElementName,currentElement):cdata.replace("]]>","]]]]><![CDATA[>"))+"]]>"}function writeDoctype(doctype,options){return options.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in options?options.doctypeFn(doctype,currentElementName,currentElement):doctype)+">"}function writeText(text,options){return options.ignoreText?"":(text=(text=(text=""+text).replace(/&amp;/g,"&")).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in options?options.textFn(text,currentElementName,currentElement):text)}function writeElements(elements,options,depth,firstLine){return elements.reduce((function(xml,element){var indent=writeIndentation(options,depth,firstLine&&!xml);switch(element.type){case"element":return xml+indent+function writeElement(element,options,depth){currentElement=element,currentElementName=element.name;var xml=[],elementName="elementNameFn"in options?options.elementNameFn(element.name,element):element.name;xml.push("<"+elementName),element[options.attributesKey]&&xml.push(writeAttributes(element[options.attributesKey],options,depth));var withClosingTag=element[options.elementsKey]&&element[options.elementsKey].length||element[options.attributesKey]&&"preserve"===element[options.attributesKey]["xml:space"];return withClosingTag||(withClosingTag="fullTagEmptyElementFn"in options?options.fullTagEmptyElementFn(element.name,element):options.fullTagEmptyElement),withClosingTag?(xml.push(">"),element[options.elementsKey]&&element[options.elementsKey].length&&(xml.push(writeElements(element[options.elementsKey],options,depth+1)),currentElement=element,currentElementName=element.name),xml.push(options.spaces&&function hasContent(element,options){var i;if(element.elements&&element.elements.length)for(i=0;i<element.elements.length;++i)switch(element.elements[i][options.typeKey]){case"text":if(options.indentText)return!0;break;case"cdata":if(options.indentCdata)return!0;break;case"instruction":if(options.indentInstruction)return!0;break;default:return!0}return!1}(element,options)?"\n"+Array(depth+1).join(options.spaces):""),xml.push("</"+elementName+">")):xml.push("/>"),xml.join("")}(element,options,depth);case"comment":return xml+indent+writeComment(element[options.commentKey],options);case"doctype":return xml+indent+writeDoctype(element[options.doctypeKey],options);case"cdata":return xml+(options.indentCdata?indent:"")+writeCdata(element[options.cdataKey],options);case"text":return xml+(options.indentText?indent:"")+writeText(element[options.textKey],options);case"instruction":var instruction={};return instruction[element[options.nameKey]]=element[options.attributesKey]?element:element[options.instructionKey],xml+(options.indentInstruction?indent:"")+writeInstruction(instruction,options,depth)}}),"")}function hasContentCompact(element,options,anyContent){var key;for(key in element)if(element.hasOwnProperty(key))switch(key){case options.parentKey:case options.attributesKey:break;case options.textKey:if(options.indentText||anyContent)return!0;break;case options.cdataKey:if(options.indentCdata||anyContent)return!0;break;case options.instructionKey:if(options.indentInstruction||anyContent)return!0;break;case options.doctypeKey:case options.commentKey:default:return!0}return!1}function writeElementCompact(element,name,options,depth,indent){currentElement=element,currentElementName=name;var elementName="elementNameFn"in options?options.elementNameFn(name,element):name;if(null==element||""===element)return"fullTagEmptyElementFn"in options&&options.fullTagEmptyElementFn(name,element)||options.fullTagEmptyElement?"<"+elementName+"></"+elementName+">":"<"+elementName+"/>";var xml=[];if(name){if(xml.push("<"+elementName),"object"!=typeof element)return xml.push(">"+writeText(element,options)+"</"+elementName+">"),xml.join("");element[options.attributesKey]&&xml.push(writeAttributes(element[options.attributesKey],options,depth));var withClosingTag=hasContentCompact(element,options,!0)||element[options.attributesKey]&&"preserve"===element[options.attributesKey]["xml:space"];if(withClosingTag||(withClosingTag="fullTagEmptyElementFn"in options?options.fullTagEmptyElementFn(name,element):options.fullTagEmptyElement),!withClosingTag)return xml.push("/>"),xml.join("");xml.push(">")}return xml.push(writeElementsCompact(element,options,depth+1,!1)),currentElement=element,currentElementName=name,name&&xml.push((indent?writeIndentation(options,depth,!1):"")+"</"+elementName+">"),xml.join("")}function writeElementsCompact(element,options,depth,firstLine){var i,key,nodes,xml=[];for(key in element)if(element.hasOwnProperty(key))for(nodes=isArray(element[key])?element[key]:[element[key]],i=0;i<nodes.length;++i){switch(key){case options.declarationKey:xml.push(writeDeclaration(nodes[i],options,depth));break;case options.instructionKey:xml.push((options.indentInstruction?writeIndentation(options,depth,firstLine):"")+writeInstruction(nodes[i],options,depth));break;case options.attributesKey:case options.parentKey:break;case options.textKey:xml.push((options.indentText?writeIndentation(options,depth,firstLine):"")+writeText(nodes[i],options));break;case options.cdataKey:xml.push((options.indentCdata?writeIndentation(options,depth,firstLine):"")+writeCdata(nodes[i],options));break;case options.doctypeKey:xml.push(writeIndentation(options,depth,firstLine)+writeDoctype(nodes[i],options));break;case options.commentKey:xml.push(writeIndentation(options,depth,firstLine)+writeComment(nodes[i],options));break;default:xml.push(writeIndentation(options,depth,firstLine)+writeElementCompact(nodes[i],key,options,depth,hasContentCompact(nodes[i],options)))}firstLine=firstLine&&!xml.length}return xml.join("")}return js2xml=function(js,options){options=function validateOptions(userOptions){var options=helper.copyOptions(userOptions);return helper.ensureFlagExists("ignoreDeclaration",options),helper.ensureFlagExists("ignoreInstruction",options),helper.ensureFlagExists("ignoreAttributes",options),helper.ensureFlagExists("ignoreText",options),helper.ensureFlagExists("ignoreComment",options),helper.ensureFlagExists("ignoreCdata",options),helper.ensureFlagExists("ignoreDoctype",options),helper.ensureFlagExists("compact",options),helper.ensureFlagExists("indentText",options),helper.ensureFlagExists("indentCdata",options),helper.ensureFlagExists("indentAttributes",options),helper.ensureFlagExists("indentInstruction",options),helper.ensureFlagExists("fullTagEmptyElement",options),helper.ensureFlagExists("noQuotesForNativeAttributes",options),helper.ensureSpacesExists(options),"number"==typeof options.spaces&&(options.spaces=Array(options.spaces+1).join(" ")),helper.ensureKeyExists("declaration",options),helper.ensureKeyExists("instruction",options),helper.ensureKeyExists("attributes",options),helper.ensureKeyExists("text",options),helper.ensureKeyExists("comment",options),helper.ensureKeyExists("cdata",options),helper.ensureKeyExists("doctype",options),helper.ensureKeyExists("type",options),helper.ensureKeyExists("name",options),helper.ensureKeyExists("elements",options),helper.checkFnExists("doctype",options),helper.checkFnExists("instruction",options),helper.checkFnExists("cdata",options),helper.checkFnExists("comment",options),helper.checkFnExists("text",options),helper.checkFnExists("instructionName",options),helper.checkFnExists("elementName",options),helper.checkFnExists("attributeName",options),helper.checkFnExists("attributeValue",options),helper.checkFnExists("attributes",options),helper.checkFnExists("fullTagEmptyElement",options),options}(options);var xml=[];return currentElement=js,currentElementName="_root_",options.compact?xml.push(writeElementsCompact(js,options,0,!0)):(js[options.declarationKey]&&xml.push(writeDeclaration(js[options.declarationKey],options,0)),js[options.elementsKey]&&js[options.elementsKey].length&&xml.push(writeElements(js[options.elementsKey],options,0,!xml.length))),xml.join("")}}function requireJson2xml(){if(hasRequiredJson2xml)return json2xml;hasRequiredJson2xml=1;var js2xml=requireJs2xml();return json2xml=function(json,options){json instanceof Buffer&&(json=json.toString());var js=null;if("string"==typeof json)try{js=JSON.parse(json)}catch(e){throw new Error("The JSON structure is invalid")}else js=json;return js2xml(js,options)}}var cjs,hasRequiredCjs,libExports$2=function requireLib$2(){if(hasRequiredLib$2)return lib$2;hasRequiredLib$2=1;var xml2js=requireXml2js(),xml2json=requireXml2json(),js2xml=requireJs2xml(),json2xml=requireJson2xml();return lib$2={xml2js:xml2js,xml2json:xml2json,js2xml:js2xml,json2xml:json2xml}}();class XmlParser{constructor(){}findInObj=(obj,chave)=>{if(obj.hasOwnProperty(chave))return obj[chave];for(let prop in obj)if("object"==typeof obj[prop]){const result=this.findInObj(obj[prop],chave);if(result)return result}return""};removeJsonTextAttribute(value,parentElement){const pOpKeys=Object.keys(parentElement._parent),keyName=pOpKeys[pOpKeys.length-1],arrOfKey=parentElement._parent[keyName];if(arrOfKey.length>0){arrOfKey[arrOfKey.length-1]=value}else parentElement._parent[keyName]=value}getStatusServicoBody(jsonData){return this.findInObj(jsonData,"retConsStatServ")}getConsultaProtocoloBody(jsonData){return this.findInObj(jsonData,"retConsSitNFe")}getRecepcaoEventoBody(jsonData){return this.findInObj(jsonData,"retEnvEvento")}getDistribuicaoDFe(jsonData){return this.findInObj(jsonData,"nfeDistDFeInteresseResult")}getDistribuicaoDFeProcBody(jsonData){return this.findInObj(jsonData,"NFe")}getDistribuicaoDFeResBody(jsonData){return this.findInObj(jsonData,"resNFe")}getDistribuicaoDFeEventBody(jsonData){return this.findInObj(jsonData,"evento")}getAutorizacaoEventBody(jsonData){return this.findInObj(jsonData,"retEnviNFe")}getAutorizacaoFinalEventBody(jsonData){return this.findInObj(jsonData,"nfeProc")}getAutorizacaoRetornoEventBody(jsonData){return this.findInObj(jsonData,"protNFe")}getInutilizacaoRetornoEventBody(jsonData){return this.findInObj(jsonData,"infInut")}convertXmlToJson(xml,metodo,nsu){try{const jsonAsString=libExports$2.xml2json(xml,{compact:!0,spaces:2,ignoreAttributes:!0,ignoreDeclaration:!0,trim:!0,ignoreInstruction:!0,ignoreComment:!0,ignoreCdata:!0,ignoreDoctype:!0,textFn:this.removeJsonTextAttribute}),jsonData=JSON.parse(jsonAsString);let jsonBody;switch(metodo){case"NFEStatusServico":jsonBody=this.getStatusServicoBody(jsonData);break;case"NFEConsultaProtocolo":jsonBody=this.getConsultaProtocoloBody(jsonData);break;case"RecepcaoEvento":jsonBody=this.getRecepcaoEventoBody(jsonData);break;case"NFeDistribuicaoDFe":jsonBody=this.getDistribuicaoDFe(jsonData);break;case"NFeDistribuicaoDFe_proc":jsonBody=jsonData;break;case"NFeDistribuicaoDFe_res":jsonBody=this.getDistribuicaoDFeResBody(jsonData);break;case"NFeDistribuicaoDFe_event":jsonBody=this.getDistribuicaoDFeEventBody(jsonData);break;case"NFEAutorizacao":jsonBody=this.getAutorizacaoEventBody(jsonData);break;case"NFEAutorizacaoFinal":case"NFCEAutorizacaoFinal":jsonBody=this.getAutorizacaoFinalEventBody(jsonData);break;case"NFERetAutorizacao":jsonBody=this.getAutorizacaoRetornoEventBody(jsonData);break;case"NFEInutilizacao":jsonBody=this.getInutilizacaoRetornoEventBody(jsonData);break;default:throw new Error("Formato de XML desconhecido")}return jsonBody&&(nsu&&(jsonBody.nsu=nsu),jsonBody.xml=xml),jsonBody}catch(error){throw new Error(`Erro ao converter XML para Json: ${error}`)}}}var xsdAssembler=getDefaultExportFromCjs(function requireCjs(){if(hasRequiredCjs)return cjs;hasRequiredCjs=1;var e=path__default.default,t=fs__default.default;class s{constructor(e,t,s){this.loader=e,this.resolver=t,this.merger=s}async assemble(t){const s=await this.resolver.resolveIncludes(t,!0,e.dirname(t)),r=this.normalizeRegexPatterns(s);return this.merger.mergeProperties(r)}normalizeRegexPatterns(e){return e.replace(/\\\\/g,"\\")}}class r{constructor(){this.schemaAttributes={}}extractSchemaAttributes(e){const t=e.match(/<xs:schema([^>]*)>/i);if(t){const e=t[1].trim().split(/\s+/);for(const t of e){const[e,s]=t.split("=");e&&s&&!this.schemaAttributes[e]&&(this.schemaAttributes[e]=s)}}}mergeSchemaAttributes(e){const t=e.match(/<xs:schema([^>]*)>/i);if(t){const e=t[1].trim().split(/\s+/);for(const t of e){const[e,s]=t.split("=");e&&s&&!this.schemaAttributes[e]&&(this.schemaAttributes[e]=s)}}}getSchemaAttributes(){return this.schemaAttributes}async load(e,s){return new Promise(((r,i)=>{t.readFile(e,"utf8",((e,t)=>{if(e)return i(e);s?this.extractSchemaAttributes(t):this.mergeSchemaAttributes(t),s||(t=t.replace(/<\?xml.*?\?>\s*/i,"")),s||(t=t.replace(/<xs:schema[^>]*>/i,"").replace(/<\/xs:schema>/i,"")),r(t)}))}))}}class i{constructor(e){this.loader=e}applySchemaAttributes(e){const t=this.loader.getSchemaAttributes(),s=e.match(/<xs:schema[^>]*>/i);if(s){const r=`<xs:schema ${Object.entries(t).map((([e,t])=>`${e}=${t}`)).join(" ")}>`;return e.replace(s[0],r)}return e}reorderSchemaDirectives(e){const t=/<xs:import[^>]*\/>/g,s=/<xs:include[^>]*\/>/g,r=[...e.match(t)||[]],i=[...e.match(s)||[]];let c=e.replace(t,"").replace(s,"");const a=c.match(/<xs:schema[^>]*>/i);if(!a)throw new Error("A tag <xs:schema> não foi encontrada no conteúdo do schema.");const n=a[0],o=c.indexOf(n)+n.length,h=c.slice(0,o),l=c.slice(o);return`${h}\n${r.join("\n")}\n${i.join("\n")}\n${l}`}async resolveIncludes(t,s=!0,r="."){let i=await this.loader.load(t,s);const c=/<xs:include\s+schemaLocation="([^"]+)"\s*\/?>/g;let a;for(;null!==(a=c.exec(i));){const t=e.resolve(r,a[1]),s=await this.resolveIncludes(t,!1,r);i=i.replace(a[0],s)}return s&&(i=this.applySchemaAttributes(i),i=this.reorderSchemaDirectives(i)),i}}class c{constructor(e){this.strategy=e}mergeProperties(e){return e}}class a{merge(e,t){return`${t}`}}const n=new class{constructor(){this.loader=new r,this.resolver=new i(this.loader),this.setMergeStrategy(new a)}setMergeStrategy(e){return this.merger=new c(e),this}assemble(e){if(!this.merger)throw new Error("Merge strategy must be set before building XSDAssembler.");return new s(this.loader,this.resolver,this.merger).assemble(e)}};return cjs=n}());class Utility{environment;xmlParser;constructor(environment){this.environment=environment,this.xmlParser=new XmlParser}createDir(path){fs__default.default.existsSync(path)||fs__default.default.mkdirSync(path,{recursive:!0})}createFile(path,fileName,file,extension){"json"===extension.toLowerCase()?fs__default.default.writeFileSync(`${path}/${fileName}.${extension}`,JSON.stringify(file)):fs__default.default.writeFileSync(`${path}/${fileName}.${extension}`,file)}findInObj=(obj,chave)=>{if(obj.hasOwnProperty(chave))return obj[chave];for(let prop in obj)if("object"==typeof obj[prop]){const result=this.findInObj(obj[prop],chave);if(result)return result}return""};salvaJSON(props){const{fileName:fileName,metodo:metodo,path:path,data:data}=props;try{let pathJson=path;pathJson&&""!==pathJson.trim()||(pathJson=`../tmp/${metodo}/`),this.createDir(pathJson),this.createFile(pathJson,fileName,data,"json")}catch(error){throw new Error(error.message)}}salvaXMLFromJson(config,xmlInJson,fileName="",metodo=""){try{let pathXml=config.dfe.pathXMLRetorno;pathXml&&""!==pathXml.trim()||(pathXml=`../tmp/${metodo}/`);const{xml:xml}=xmlInJson,chNFe=this.findInObj(xmlInJson,"chNFe");this.createDir(pathXml),this.createFile(pathXml,fileName||chNFe,xml,"xml")}catch(error){throw new Error(error.message)}}salvaXML(props){const{fileName:fileName,metodo:metodo,path:path,data:data}=props;try{let pathXml=path;pathXml&&""!==pathXml.trim()||(pathXml=`../tmp/${metodo}/`),this.createDir(pathXml),this.createFile(pathXml,fileName,data,"xml")}catch(error){throw new Error(error.message)}}getSoapInfo1(uf,metodo){const methodInfo=soapMethod[metodo];if(!methodInfo)throw new Error("Método não encontrado no arquivo de configuração SOAP.");return{method:methodInfo.method,action:methodInfo.action}}getSoapInfo(uf,method){const servicos=NFeServicosUrl;let chaveMethod="",chaveSoap="";switch(uf){case"SP":chaveSoap="SOAP_V4_SP";break;case"BA":chaveSoap="SOAP_V4_BA";break;default:chaveSoap="SOAP_V4"}if("SP"===uf)chaveMethod="WSDL_V4_SP";else chaveMethod="WSDL_V4";const methodServices=servicos[chaveMethod],methodUrl=this.getLatestURLConsulta(methodServices,method),soapServices=servicos[chaveSoap],soapUrl=this.getLatestURLConsulta(soapServices,method);if(!methodUrl||!soapUrl)throw new Error("Método não encontrado no arquivo de configuração SOAP.");return{method:methodUrl,action:soapUrl}}getLatestURLConsultaFix(chave){const temp_urls={...NFeServicosUrl[chave]};if("Usar"in temp_urls){const referencedUrls=NFeServicosUrl[temp_urls.Usar]||{};Object.keys(referencedUrls).forEach((key=>{key in temp_urls||(temp_urls[key]=referencedUrls[key])})),delete temp_urls.Usar}return temp_urls}getLatestURLConsulta(data,metodo){const keys=Object.keys(data),prefix=`${metodo}_`,versions=keys.map((key=>{const match=key.match(new RegExp(`^${prefix}(\\d+\\.\\d+)$`));return match?parseFloat(match[1]):null})).filter((version=>null!==version)).sort(((a,b)=>b-a));for(let version of versions){const key=`${prefix}${version.toFixed(2)}`;if(data[key])return data[key]}return data[metodo]||null}setAmbiente(metodo,ambienteNacional=!1,versao,mod){const config=this.environment.getConfig(),ambiente=2===config.nfe.ambiente?"H":"P",versaoDF=""!==versao?versao:config.nfe.versaoDF;if(ambienteNacional){return{chaveMae:`${mod}_AN_${ambiente}`,chaveFilha:`${metodo}_${versaoDF}`}}return{chaveMae:`${mod}_${config.dfe.UF}_${ambiente}`,chaveFilha:`${metodo}_${versaoDF}`}}getWebServiceUrl(metodo,ambienteNacional=!1,versao="",mod="NFe"){let{chaveMae:chaveMae,chaveFilha:chaveFilha}=this.setAmbiente(metodo,ambienteNacional,versao,mod);const urls=NFeServicosUrl;"Usar"in urls[chaveMae]&&(chaveMae=urls[chaveMae].Usar);const url=urls[chaveMae]&&urls[chaveMae][chaveFilha];if(!url)throw new Error(`Não foi possível recuperar a url para o webservice: ${chaveFilha}`);return url}getUrlNFCe(metodo,ambienteNacional=!1,versao=""){let{chaveMae:chaveMae}=this.setAmbiente(metodo,ambienteNacional,versao,"NFCe");const urls=NFeServicosUrl,url=urls[chaveMae]&&this.getLatestURLConsulta(urls[chaveMae],metodo);if(!url)throw new Error(`Não foi possível recuperar a url para consulta de NFCe: ${chaveMae}`);return url}formatErrorMessage(message){const match=message.match(/\[error\]\s(.+?)\:\s(.+?)\s\((\d+):(\d+)\)/);if(match){const[_,errorCode,errorDescription,line,column]=match;return`Erro na Validação do XML: ${errorCode} na linha ${line}, coluna ${column}. Descrição: ${errorDescription}`}return`Erro Não Identificado na Validação do XML: ${message}`}validateSchemaJsBased(xml,metodo){return new Promise((async(resolve,reject)=>{try{const{basePath:basePath,schemaPath:schemaPath}=getSchema(metodo),completeXSD=await xsdAssembler.assemble(schemaPath),xmlDoc=libxmljs__default.default.parseXml(xml),xsdDoc=libxmljs__default.default.parseXml(completeXSD,{baseUrl:`${basePath}/`});xmlDoc.validate(xsdDoc)?resolve({success:!0,message:"XML válido."}):reject({success:!1,message:this.formatErrorMessage(xmlDoc.validationErrors[0].message)})}catch(error){reject({success:!1,message:this.formatErrorMessage(error.message)})}}))}validateSchemaJavaBased(xml,metodo){return new Promise((async(resolve,reject)=>{try{const{schemaPath:schemaPath}=getSchema(metodo);xsdValidator__default.default.validateXML(xml,schemaPath,((err,validationResult)=>{err?reject({success:!1,message:this.formatErrorMessage(err.message)}):validationResult.valid?resolve({success:!0,message:"XML válido."}):reject({success:!1,message:this.formatErrorMessage(validationResult.messages[0])})}))}catch(error){reject({success:!1,message:this.formatErrorMessage(error.message)})}}))}verificaRejeicao(data,metodo,name){const responseInJson=this.xmlParser.convertXmlToJson(data,metodo),xMotivo=this.findInObj(responseInJson,"xMotivo"),infProt=this.findInObj(responseInJson,"infProt");if(this.salvaRetorno(data,responseInJson,metodo,name),xMotivo&&(xMotivo.includes("Rejeição")||xMotivo.includes("Rejeicao")))throw new Error(xMotivo);if(infProt&&(infProt?.xMotivo.includes("Rejeição")||infProt?.xMotivo.includes("Rejeicao")))throw new Error(infProt?.xMotivo);return responseInJson}getProtNFe(xmlRetorno){let protNFe,nRec="";return xml2js$1.parseString(xmlRetorno,((err,result)=>{if(err)console.error("Erro ao parsear o XML para captura do nRec e protNFe:",err);else{const nRecTag=this.findInObj(result,"nRec");nRec=nRecTag[0];const protNFeTag=this.findInObj(result,"protNFe");protNFe=protNFeTag}})),{protNFe:protNFe,nRec:nRec}}getRequestLogFileName(metodo,tipo){switch(metodo){case"NFEStatusServico":return`NFeStatusServico-${tipo}`;case"NFEConsultaProtocolo":return`NFeConsultaProtocolo-${tipo}`;case"NFeDistribuicaoDFe":return`NFeDistribuicaoDFe-${tipo}`;case"RecepcaoEvento":return`RecepcaoEvento-${tipo}`;case"NFECancelamento":return`NFECancelamento-${tipo}`;case"NFEInutilizacao":return`NFEInutilizacao-${tipo}`;case"NFEAutorizacao":return`NFEAutorizacao-${tipo}`;case"NFCEAutorizacao":return`NFCEAutorizacao-${tipo}`;case"NFERetAutorizacao":return`NFERetAutorizacao-${tipo}`;default:throw new Error("Erro: Requisição de nome para método não implementado.")}}salvaConsulta(xmlConsulta,xmlFormated,metodo,name){try{const fileName=name||this.getRequestLogFileName(metodo,"consulta"),{armazenarXMLConsulta:armazenarXMLConsulta,pathXMLConsulta:pathXMLConsulta,armazenarXMLConsultaComTagSoap:armazenarXMLConsultaComTagSoap}=this.environment.config.dfe,xmlConsultaASalvar=armazenarXMLConsultaComTagSoap?xmlFormated:xmlConsulta;armazenarXMLConsulta&&this.salvaXML({data:xmlConsultaASalvar,fileName:fileName,metodo:metodo,path:pathXMLConsulta})}catch(error){throw new Error(error.message)}}salvaRetorno(xmlRetorno,responseInJson,metodo,name){try{const fileName=name||this.getRequestLogFileName(metodo,"retorno"),{armazenarXMLRetorno:armazenarXMLRetorno,pathXMLRetorno:pathXMLRetorno,armazenarRetornoEmJSON:armazenarRetornoEmJSON}=this.environment.config.dfe;armazenarXMLRetorno&&xmlRetorno&&(this.salvaXML({data:xmlRetorno,fileName:fileName,metodo:metodo,path:pathXMLRetorno}),armazenarRetornoEmJSON&&responseInJson&&this.salvaJSON({data:responseInJson,fileName:fileName,metodo:metodo,path:pathXMLRetorno}))}catch(error){throw new Error(error.message)}}}class GerarConsulta{utility;environment;xmlBuilder;constructor(environment,utility,xmlBuilder){this.environment=environment,this.utility=utility,this.xmlBuilder=xmlBuilder}async gerarConsulta(xmlConsulta,metodo,ambienteNacional=!1,versao="",mod="NFe",rootTag=!1,tag=""){try{const config=this.environment.getConfig();"validateSchemaJsBased"!==config.lib?.useForSchemaValidation?await this.utility.validateSchemaJavaBased(xmlConsulta,metodo):await this.utility.validateSchemaJsBased(xmlConsulta,metodo);const{method:method,action:action}=this.utility.getSoapInfo(config.dfe.UF,metodo);let rootTagObj=null;rootTag&&(rootTagObj={tag:tag,namespace:method});const xmlFormated=this.xmlBuilder.buildSoapEnvelope(xmlConsulta,method,"soap12",rootTagObj),agent=this.environment.getHttpAgent();return{xmlFormated:xmlFormated,agent:agent,webServiceUrl:this.utility.getWebServiceUrl(metodo,ambienteNacional,versao,mod),action:action}}catch(error){throw new Error(error.message)}}}function _typeof(o){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},_typeof(o)}function toInteger(dirtyNumber){if(null===dirtyNumber||!0===dirtyNumber||!1===dirtyNumber)return NaN;var number=Number(dirtyNumber);return isNaN(number)?number:number<0?Math.ceil(number):Math.floor(number)}function requiredArgs(required,args){if(args.length<required)throw new TypeError(required+" argument"+(required>1?"s":"")+" required, but only "+args.length+" present")}function toDate(argument){requiredArgs(1,arguments);var argStr=Object.prototype.toString.call(argument);return argument instanceof Date||"object"===_typeof(argument)&&"[object Date]"===argStr?new Date(argument.getTime()):"number"==typeof argument||"[object Number]"===argStr?new Date(argument):("string"!=typeof argument&&"[object String]"!==argStr||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}var defaultOptions={};function getDefaultOptions(){return defaultOptions}function isValid(dirtyDate){if(requiredArgs(1,arguments),!function isDate$1(value){return requiredArgs(1,arguments),value instanceof Date||"object"===_typeof(value)&&"[object Date]"===Object.prototype.toString.call(value)}(dirtyDate)&&"number"!=typeof dirtyDate)return!1;var date=toDate(dirtyDate);return!isNaN(Number(date))}function subMilliseconds(dirtyDate,dirtyAmount){return requiredArgs(2,arguments),function addMilliseconds(dirtyDate,dirtyAmount){requiredArgs(2,arguments);var timestamp=toDate(dirtyDate).getTime(),amount=toInteger(dirtyAmount);return new Date(timestamp+amount)}(dirtyDate,-toInteger(dirtyAmount))}function startOfUTCISOWeek(dirtyDate){requiredArgs(1,arguments);var date=toDate(dirtyDate),day=date.getUTCDay(),diff=(day<1?7:0)+day-1;return date.setUTCDate(date.getUTCDate()-diff),date.setUTCHours(0,0,0,0),date}function getUTCISOWeekYear(dirtyDate){requiredArgs(1,arguments);var date=toDate(dirtyDate),year=date.getUTCFullYear(),fourthOfJanuaryOfNextYear=new Date(0);fourthOfJanuaryOfNextYear.setUTCFullYear(year+1,0,4),fourthOfJanuaryOfNextYear.setUTCHours(0,0,0,0);var startOfNextYear=startOfUTCISOWeek(fourthOfJanuaryOfNextYear),fourthOfJanuaryOfThisYear=new Date(0);fourthOfJanuaryOfThisYear.setUTCFullYear(year,0,4),fourthOfJanuaryOfThisYear.setUTCHours(0,0,0,0);var startOfThisYear=startOfUTCISOWeek(fourthOfJanuaryOfThisYear);return date.getTime()>=startOfNextYear.getTime()?year+1:date.getTime()>=startOfThisYear.getTime()?year:year-1}function getUTCISOWeek(dirtyDate){requiredArgs(1,arguments);var date=toDate(dirtyDate),diff=startOfUTCISOWeek(date).getTime()-function startOfUTCISOWeekYear(dirtyDate){requiredArgs(1,arguments);var year=getUTCISOWeekYear(dirtyDate),fourthOfJanuary=new Date(0);return fourthOfJanuary.setUTCFullYear(year,0,4),fourthOfJanuary.setUTCHours(0,0,0,0),startOfUTCISOWeek(fourthOfJanuary)}(date).getTime();return Math.round(diff/6048e5)+1}function startOfUTCWeek(dirtyDate,options){var _ref,_ref2,_ref3,_options$weekStartsOn,_options$locale,_options$locale$optio,_defaultOptions$local,_defaultOptions$local2;requiredArgs(1,arguments);var defaultOptions=getDefaultOptions(),weekStartsOn=toInteger(null!==(_ref=null!==(_ref2=null!==(_ref3=null!==(_options$weekStartsOn=null==options?void 0:options.weekStartsOn)&&void 0!==_options$weekStartsOn?_options$weekStartsOn:null==options||null===(_options$locale=options.locale)||void 0===_options$locale||null===(_options$locale$optio=_options$locale.options)||void 0===_options$locale$optio?void 0:_options$locale$optio.weekStartsOn)&&void 0!==_ref3?_ref3:defaultOptions.weekStartsOn)&&void 0!==_ref2?_ref2:null===(_defaultOptions$local=defaultOptions.locale)||void 0===_defaultOptions$local||null===(_defaultOptions$local2=_defaultOptions$local.options)||void 0===_defaultOptions$local2?void 0:_defaultOptions$local2.weekStartsOn)&&void 0!==_ref?_ref:0);if(!(weekStartsOn>=0&&weekStartsOn<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var date=toDate(dirtyDate),day=date.getUTCDay(),diff=(day<weekStartsOn?7:0)+day-weekStartsOn;return date.setUTCDate(date.getUTCDate()-diff),date.setUTCHours(0,0,0,0),date}function getUTCWeekYear(dirtyDate,options){var _ref,_ref2,_ref3,_options$firstWeekCon,_options$locale,_options$locale$optio,_defaultOptions$local,_defaultOptions$local2;requiredArgs(1,arguments);var date=toDate(dirtyDate),year=date.getUTCFullYear(),defaultOptions=getDefaultOptions(),firstWeekContainsDate=toInteger(null!==(_ref=null!==(_ref2=null!==(_ref3=null!==(_options$firstWeekCon=null==options?void 0:options.firstWeekContainsDate)&&void 0!==_options$firstWeekCon?_options$firstWeekCon:null==options||null===(_options$locale=options.locale)||void 0===_options$locale||null===(_options$locale$optio=_options$locale.options)||void 0===_options$locale$optio?void 0:_options$locale$optio.firstWeekContainsDate)&&void 0!==_ref3?_ref3:defaultOptions.firstWeekContainsDate)&&void 0!==_ref2?_ref2:null===(_defaultOptions$local=defaultOptions.locale)||void 0===_defaultOptions$local||null===(_defaultOptions$local2=_defaultOptions$local.options)||void 0===_defaultOptions$local2?void 0:_defaultOptions$local2.firstWeekContainsDate)&&void 0!==_ref?_ref:1);if(!(firstWeekContainsDate>=1&&firstWeekContainsDate<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var firstWeekOfNextYear=new Date(0);firstWeekOfNextYear.setUTCFullYear(year+1,0,firstWeekContainsDate),firstWeekOfNextYear.setUTCHours(0,0,0,0);var startOfNextYear=startOfUTCWeek(firstWeekOfNextYear,options),firstWeekOfThisYear=new Date(0);firstWeekOfThisYear.setUTCFullYear(year,0,firstWeekContainsDate),firstWeekOfThisYear.setUTCHours(0,0,0,0);var startOfThisYear=startOfUTCWeek(firstWeekOfThisYear,options);return date.getTime()>=startOfNextYear.getTime()?year+1:date.getTime()>=startOfThisYear.getTime()?year:year-1}function getUTCWeek(dirtyDate,options){requiredArgs(1,arguments);var date=toDate(dirtyDate),diff=startOfUTCWeek(date,options).getTime()-function startOfUTCWeekYear(dirtyDate,options){var _ref,_ref2,_ref3,_options$firstWeekCon,_options$locale,_options$locale$optio,_defaultOptions$local,_defaultOptions$local2;requiredArgs(1,arguments);var defaultOptions=getDefaultOptions(),firstWeekContainsDate=toInteger(null!==(_ref=null!==(_ref2=null!==(_ref3=null!==(_options$firstWeekCon=null==options?void 0:options.firstWeekContainsDate)&&void 0!==_options$firstWeekCon?_options$firstWeekCon:null==options||null===(_options$locale=options.locale)||void 0===_options$locale||null===(_options$locale$optio=_options$locale.options)||void 0===_options$locale$optio?void 0:_options$locale$optio.firstWeekContainsDate)&&void 0!==_ref3?_ref3:defaultOptions.firstWeekContainsDate)&&void 0!==_ref2?_ref2:null===(_defaultOptions$local=defaultOptions.locale)||void 0===_defaultOptions$local||null===(_defaultOptions$local2=_defaultOptions$local.options)||void 0===_defaultOptions$local2?void 0:_defaultOptions$local2.firstWeekContainsDate)&&void 0!==_ref?_ref:1),year=getUTCWeekYear(dirtyDate,options),firstWeek=new Date(0);return firstWeek.setUTCFullYear(year,0,firstWeekContainsDate),firstWeek.setUTCHours(0,0,0,0),startOfUTCWeek(firstWeek,options)}(date,options).getTime();return Math.round(diff/6048e5)+1}function addLeadingZeros(number,targetLength){for(var sign=number<0?"-":"",output=Math.abs(number).toString();output.length<targetLength;)output="0"+output;return sign+output}var formatters$2={y:function y(date,token){var signedYear=date.getUTCFullYear(),year=signedYear>0?signedYear:1-signedYear;return addLeadingZeros("yy"===token?year%100:year,token.length)},M:function M(date,token){var month=date.getUTCMonth();return"M"===token?String(month+1):addLeadingZeros(month+1,2)},d:function d(date,token){return addLeadingZeros(date.getUTCDate(),token.length)},a:function a(date,token){var dayPeriodEnumValue=date.getUTCHours()/12>=1?"pm":"am";switch(token){case"a":case"aa":return dayPeriodEnumValue.toUpperCase();case"aaa":return dayPeriodEnumValue;case"aaaaa":return dayPeriodEnumValue[0];default:return"am"===dayPeriodEnumValue?"a.m.":"p.m."}},h:function h(date,token){return addLeadingZeros(date.getUTCHours()%12||12,token.length)},H:function H(date,token){return addLeadingZeros(date.getUTCHours(),token.length)},m:function m(date,token){return addLeadingZeros(date.getUTCMinutes(),token.length)},s:function s(date,token){return addLeadingZeros(date.getUTCSeconds(),token.length)},S:function S(date,token){var numberOfDigits=token.length,milliseconds=date.getUTCMilliseconds();return addLeadingZeros(Math.floor(milliseconds*Math.pow(10,numberOfDigits-3)),token.length)}},formatters$3=formatters$2,dayPeriodEnum_midnight="midnight",dayPeriodEnum_noon="noon",dayPeriodEnum_morning="morning",dayPeriodEnum_afternoon="afternoon",dayPeriodEnum_evening="evening",dayPeriodEnum_night="night",formatters={G:function G(date,token,localize){var era=date.getUTCFullYear()>0?1:0;switch(token){case"G":case"GG":case"GGG":return localize.era(era,{width:"abbreviated"});case"GGGGG":return localize.era(era,{width:"narrow"});default:return localize.era(era,{width:"wide"})}},y:function y(date,token,localize){if("yo"===token){var signedYear=date.getUTCFullYear(),year=signedYear>0?signedYear:1-signedYear;return localize.ordinalNumber(year,{unit:"year"})}return formatters$3.y(date,token)},Y:function Y(date,token,localize,options){var signedWeekYear=getUTCWeekYear(date,options),weekYear=signedWeekYear>0?signedWeekYear:1-signedWeekYear;return"YY"===token?addLeadingZeros(weekYear%100,2):"Yo"===token?localize.ordinalNumber(weekYear,{unit:"year"}):addLeadingZeros(weekYear,token.length)},R:function R(date,token){return addLeadingZeros(getUTCISOWeekYear(date),token.length)},u:function u(date,token){return addLeadingZeros(date.getUTCFullYear(),token.length)},Q:function Q(date,token,localize){var quarter=Math.ceil((date.getUTCMonth()+1)/3);switch(token){case"Q":return String(quarter);case"QQ":return addLeadingZeros(quarter,2);case"Qo":return localize.ordinalNumber(quarter,{unit:"quarter"});case"QQQ":return localize.quarter(quarter,{width:"abbreviated",context:"formatting"});case"QQQQQ":return localize.quarter(quarter,{width:"narrow",context:"formatting"});default:return localize.quarter(quarter,{width:"wide",context:"formatting"})}},q:function q(date,token,localize){var quarter=Math.ceil((date.getUTCMonth()+1)/3);switch(token){case"q":return String(quarter);case"qq":return addLeadingZeros(quarter,2);case"qo":return localize.ordinalNumber(quarter,{unit:"quarter"});case"qqq":return localize.quarter(quarter,{width:"abbreviated",context:"standalone"});case"qqqqq":return localize.quarter(quarter,{width:"narrow",context:"standalone"});default:return localize.quarter(quarter,{width:"wide",context:"standalone"})}},M:function M(date,token,localize){var month=date.getUTCMonth();switch(token){case"M":case"MM":return formatters$3.M(date,token);case"Mo":return localize.ordinalNumber(month+1,{unit:"month"});case"MMM":return localize.month(month,{width:"abbreviated",context:"formatting"});case"MMMMM":return localize.month(month,{width:"narrow",context:"formatting"});default:return localize.month(month,{width:"wide",context:"formatting"})}},L:function L(date,token,localize){var month=date.getUTCMonth();switch(token){case"L":return String(month+1);case"LL":return addLeadingZeros(month+1,2);case"Lo":return localize.ordinalNumber(month+1,{unit:"month"});case"LLL":return localize.month(month,{width:"abbreviated",context:"standalone"});case"LLLLL":return localize.month(month,{width:"narrow",context:"standalone"});default:return localize.month(month,{width:"wide",context:"standalone"})}},w:function w(date,token,localize,options){var week=getUTCWeek(date,options);return"wo"===token?localize.ordinalNumber(week,{unit:"week"}):addLeadingZeros(week,token.length)},I:function I(date,token,localize){var isoWeek=getUTCISOWeek(date);return"Io"===token?localize.ordinalNumber(isoWeek,{unit:"week"}):addLeadingZeros(isoWeek,token.length)},d:function d(date,token,localize){return"do"===token?localize.ordinalNumber(date.getUTCDate(),{unit:"date"}):formatters$3.d(date,token)},D:function D(date,token,localize){var dayOfYear=function getUTCDayOfYear(dirtyDate){requiredArgs(1,arguments);var date=toDate(dirtyDate),timestamp=date.getTime();date.setUTCMonth(0,1),date.setUTCHours(0,0,0,0);var difference=timestamp-date.getTime();return Math.floor(difference/864e5)+1}(date);return"Do"===token?localize.ordinalNumber(dayOfYear,{unit:"dayOfYear"}):addLeadingZeros(dayOfYear,token.length)},E:function E(date,token,localize){var dayOfWeek=date.getUTCDay();switch(token){case"E":case"EE":case"EEE":return localize.day(dayOfWeek,{width:"abbreviated",context:"formatting"});case"EEEEE":return localize.day(dayOfWeek,{width:"narrow",context:"formatting"});case"EEEEEE":return localize.day(dayOfWeek,{width:"short",context:"formatting"});default:return localize.day(dayOfWeek,{width:"wide",context:"formatting"})}},e:function e(date,token,localize,options){var dayOfWeek=date.getUTCDay(),localDayOfWeek=(dayOfWeek-options.weekStartsOn+8)%7||7;switch(token){case"e":return String(localDayOfWeek);case"ee":return addLeadingZeros(localDayOfWeek,2);case"eo":return localize.ordinalNumber(localDayOfWeek,{unit:"day"});case"eee":return localize.day(dayOfWeek,{width:"abbreviated",context:"formatting"});case"eeeee":return localize.day(dayOfWeek,{width:"narrow",context:"formatting"});case"eeeeee":return localize.day(dayOfWeek,{width:"short",context:"formatting"});default:return localize.day(dayOfWeek,{width:"wide",context:"formatting"})}},c:function c(date,token,localize,options){var dayOfWeek=date.getUTCDay(),localDayOfWeek=(dayOfWeek-options.weekStartsOn+8)%7||7;switch(token){case"c":return String(localDayOfWeek);case"cc":return addLeadingZeros(localDayOfWeek,token.length);case"co":return localize.ordinalNumber(localDayOfWeek,{unit:"day"});case"ccc":return localize.day(dayOfWeek,{width:"abbreviated",context:"standalone"});case"ccccc":return localize.day(dayOfWeek,{width:"narrow",context:"standalone"});case"cccccc":return localize.day(dayOfWeek,{width:"short",context:"standalone"});default:return localize.day(dayOfWeek,{width:"wide",context:"standalone"})}},i:function i(date,token,localize){var dayOfWeek=date.getUTCDay(),isoDayOfWeek=0===dayOfWeek?7:dayOfWeek;switch(token){case"i":return String(isoDayOfWeek);case"ii":return addLeadingZeros(isoDayOfWeek,token.length);case"io":return localize.ordinalNumber(isoDayOfWeek,{unit:"day"});case"iii":return localize.day(dayOfWeek,{width:"abbreviated",context:"formatting"});case"iiiii":return localize.day(dayOfWeek,{width:"narrow",context:"formatting"});case"iiiiii":return localize.day(dayOfWeek,{width:"short",context:"formatting"});default:return localize.day(dayOfWeek,{width:"wide",context:"formatting"})}},a:function a(date,token,localize){var dayPeriodEnumValue=date.getUTCHours()/12>=1?"pm":"am";switch(token){case"a":case"aa":return localize.dayPeriod(dayPeriodEnumValue,{width:"abbreviated",context:"formatting"});case"aaa":return localize.dayPeriod(dayPeriodEnumValue,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return localize.dayPeriod(dayPeriodEnumValue,{width:"narrow",context:"formatting"});default:return localize.dayPeriod(dayPeriodEnumValue,{width:"wide",context:"formatting"})}},b:function b(date,token,localize){var dayPeriodEnumValue,hours=date.getUTCHours();switch(dayPeriodEnumValue=12===hours?dayPeriodEnum_noon:0===hours?dayPeriodEnum_midnight:hours/12>=1?"pm":"am",token){case"b":case"bb":return localize.dayPeriod(dayPeriodEnumValue,{width:"abbreviated",context:"formatting"});case"bbb":return localize.dayPeriod(dayPeriodEnumValue,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return localize.dayPeriod(dayPeriodEnumValue,{width:"narrow",context:"formatting"});default:return localize.dayPeriod(dayPeriodEnumValue,{width:"wide",context:"formatting"})}},B:function B(date,token,localize){var dayPeriodEnumValue,hours=date.getUTCHours();switch(dayPeriodEnumValue=hours>=17?dayPeriodEnum_evening:hours>=12?dayPeriodEnum_afternoon:hours>=4?dayPeriodEnum_morning:dayPeriodEnum_night,token){case"B":case"BB":case"BBB":return localize.dayPeriod(dayPeriodEnumValue,{width:"abbreviated",context:"formatting"});case"BBBBB":return localize.dayPeriod(dayPeriodEnumValue,{width:"narrow",context:"formatting"});default:return localize.dayPeriod(dayPeriodEnumValue,{width:"wide",context:"formatting"})}},h:function h(date,token,localize){if("ho"===token){var hours=date.getUTCHours()%12;return 0===hours&&(hours=12),localize.ordinalNumber(hours,{unit:"hour"})}return formatters$3.h(date,token)},H:function H(date,token,localize){return"Ho"===token?localize.ordinalNumber(date.getUTCHours(),{unit:"hour"}):formatters$3.H(date,token)},K:function K(date,token,localize){var hours=date.getUTCHours()%12;return"Ko"===token?localize.ordinalNumber(hours,{unit:"hour"}):addLeadingZeros(hours,token.length)},k:function k(date,token,localize){var hours=date.getUTCHours();return 0===hours&&(hours=24),"ko"===token?localize.ordinalNumber(hours,{unit:"hour"}):addLeadingZeros(hours,token.length)},m:function m(date,token,localize){return"mo"===token?localize.ordinalNumber(date.getUTCMinutes(),{unit:"minute"}):formatters$3.m(date,token)},s:function s(date,token,localize){return"so"===token?localize.ordinalNumber(date.getUTCSeconds(),{unit:"second"}):formatters$3.s(date,token)},S:function S(date,token){return formatters$3.S(date,token)},X:function X(date,token,_localize,options){var timezoneOffset=(options._originalDate||date).getTimezoneOffset();if(0===timezoneOffset)return"Z";switch(token){case"X":return formatTimezoneWithOptionalMinutes(timezoneOffset);case"XXXX":case"XX":return formatTimezone(timezoneOffset);default:return formatTimezone(timezoneOffset,":")}},x:function x(date,token,_localize,options){var timezoneOffset=(options._originalDate||date).getTimezoneOffset();switch(token){case"x":return formatTimezoneWithOptionalMinutes(timezoneOffset);case"xxxx":case"xx":return formatTimezone(timezoneOffset);default:return formatTimezone(timezoneOffset,":")}},O:function O(date,token,_localize,options){var timezoneOffset=(options._originalDate||date).getTimezoneOffset();switch(token){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(timezoneOffset,":");default:return"GMT"+formatTimezone(timezoneOffset,":")}},z:function z(date,token,_localize,options){var timezoneOffset=(options._originalDate||date).getTimezoneOffset();switch(token){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort(timezoneOffset,":");default:return"GMT"+formatTimezone(timezoneOffset,":")}},t:function t(date,token,_localize,options){var originalDate=options._originalDate||date;return addLeadingZeros(Math.floor(originalDate.getTime()/1e3),token.length)},T:function T(date,token,_localize,options){return addLeadingZeros((options._originalDate||date).getTime(),token.length)}};function formatTimezoneShort(offset,dirtyDelimiter){var sign=offset>0?"-":"+",absOffset=Math.abs(offset),hours=Math.floor(absOffset/60),minutes=absOffset%60;if(0===minutes)return sign+String(hours);var delimiter=dirtyDelimiter||"";return sign+String(hours)+delimiter+addLeadingZeros(minutes,2)}function formatTimezoneWithOptionalMinutes(offset,dirtyDelimiter){return offset%60==0?(offset>0?"-":"+")+addLeadingZeros(Math.abs(offset)/60,2):formatTimezone(offset,dirtyDelimiter)}function formatTimezone(offset,dirtyDelimiter){var delimiter=dirtyDelimiter||"",sign=offset>0?"-":"+",absOffset=Math.abs(offset);return sign+addLeadingZeros(Math.floor(absOffset/60),2)+delimiter+addLeadingZeros(absOffset%60,2)}var formatters$1=formatters,dateLongFormatter=function dateLongFormatter(pattern,formatLong){switch(pattern){case"P":return formatLong.date({width:"short"});case"PP":return formatLong.date({width:"medium"});case"PPP":return formatLong.date({width:"long"});default:return formatLong.date({width:"full"})}},timeLongFormatter=function timeLongFormatter(pattern,formatLong){switch(pattern){case"p":return formatLong.time({width:"short"});case"pp":return formatLong.time({width:"medium"});case"ppp":return formatLong.time({width:"long"});default:return formatLong.time({width:"full"})}},longFormatters={p:timeLongFormatter,P:function dateTimeLongFormatter(pattern,formatLong){var dateTimeFormat,matchResult=pattern.match(/(P+)(p+)?/)||[],datePattern=matchResult[1],timePattern=matchResult[2];if(!timePattern)return dateLongFormatter(pattern,formatLong);switch(datePattern){case"P":dateTimeFormat=formatLong.dateTime({width:"short"});break;case"PP":dateTimeFormat=formatLong.dateTime({width:"medium"});break;case"PPP":dateTimeFormat=formatLong.dateTime({width:"long"});break;default:dateTimeFormat=formatLong.dateTime({width:"full"})}return dateTimeFormat.replace("{{date}}",dateLongFormatter(datePattern,formatLong)).replace("{{time}}",timeLongFormatter(timePattern,formatLong))}},longFormatters$1=longFormatters,protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function throwProtectedError(token,format,input){if("YYYY"===token)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(format,"`) for formatting years to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===token)throw new RangeError("Use `yy` instead of `YY` (in `".concat(format,"`) for formatting years to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===token)throw new RangeError("Use `d` instead of `D` (in `".concat(format,"`) for formatting days of the month to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===token)throw new RangeError("Use `dd` instead of `DD` (in `".concat(format,"`) for formatting days of the month to the input `").concat(input,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formatDistanceLocale={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},formatDistance$1=function formatDistance(token,count,options){var result,tokenValue=formatDistanceLocale[token];return result="string"==typeof tokenValue?tokenValue:1===count?tokenValue.one:tokenValue.other.replace("{{count}}",count.toString()),null!=options&&options.addSuffix?options.comparison&&options.comparison>0?"in "+result:result+" ago":result};function buildFormatLongFn(args){return function(){var options=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},width=options.width?String(options.width):args.defaultWidth;return args.formats[width]||args.formats[args.defaultWidth]}}var formatLong={date:buildFormatLongFn({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:buildFormatLongFn({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:buildFormatLongFn({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative$1=function formatRelative(token,_date,_baseDate,_options){return formatRelativeLocale[token]};function buildLocalizeFn(args){return function(dirtyIndex,options){var valuesArray;if("formatting"===(null!=options&&options.context?String(options.context):"standalone")&&args.formattingValues){var defaultWidth=args.defaultFormattingWidth||args.defaultWidth,width=null!=options&&options.width?String(options.width):defaultWidth;valuesArray=args.formattingValues[width]||args.formattingValues[defaultWidth]}else{var _defaultWidth=args.defaultWidth,_width=null!=options&&options.width?String(options.width):args.defaultWidth;valuesArray=args.values[_width]||args.values[_defaultWidth]}return valuesArray[args.argumentCallback?args.argumentCallback(dirtyIndex):dirtyIndex]}}function buildMatchFn(args){return function(string){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},width=options.width,matchPattern=width&&args.matchPatterns[width]||args.matchPatterns[args.defaultMatchWidth],matchResult=string.match(matchPattern);if(!matchResult)return null;var value,matchedString=matchResult[0],parsePatterns=width&&args.parsePatterns[width]||args.parsePatterns[args.defaultParseWidth],key=Array.isArray(parsePatterns)?function findIndex(array,predicate){for(var key=0;key<array.length;key++)if(predicate(array[key]))return key;return}(parsePatterns,(function(pattern){return pattern.test(matchedString)})):function findKey$1(object,predicate){for(var key in object)if(object.hasOwnProperty(key)&&predicate(object[key]))return key;return}(parsePatterns,(function(pattern){return pattern.test(matchedString)}));return value=args.valueCallback?args.valueCallback(key):key,{value:value=options.valueCallback?options.valueCallback(value):value,rest:string.slice(matchedString.length)}}}var defaultLocale={code:"en-US",formatDistance:formatDistance$1,formatLong:formatLong,formatRelative:formatRelative$1,localize:{ordinalNumber:function ordinalNumber(dirtyNumber,_options){var number=Number(dirtyNumber),rem100=number%100;if(rem100>20||rem100<10)switch(rem100%10){case 1:return number+"st";case 2:return number+"nd";case 3:return number+"rd"}return number+"th"},era:buildLocalizeFn({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:buildLocalizeFn({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function argumentCallback(quarter){return quarter-1}}),month:buildLocalizeFn({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:buildLocalizeFn({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:buildLocalizeFn({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:function buildMatchPatternFn(args){return function(string){var options=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},matchResult=string.match(args.matchPattern);if(!matchResult)return null;var matchedString=matchResult[0],parseResult=string.match(args.parsePattern);if(!parseResult)return null;var value=args.valueCallback?args.valueCallback(parseResult[0]):parseResult[0];return{value:value=options.valueCallback?options.valueCallback(value):value,rest:string.slice(matchedString.length)}}}({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function valueCallback(value){return parseInt(value,10)}}),era:buildMatchFn({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:buildMatchFn({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function valueCallback(index){return index+1}}),month:buildMatchFn({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:buildMatchFn({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:buildMatchFn({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function format(dirtyDate,dirtyFormatStr,options){var _ref,_options$locale,_ref2,_ref3,_ref4,_options$firstWeekCon,_options$locale2,_options$locale2$opti,_defaultOptions$local,_defaultOptions$local2,_ref5,_ref6,_ref7,_options$weekStartsOn,_options$locale3,_options$locale3$opti,_defaultOptions$local3,_defaultOptions$local4;requiredArgs(2,arguments);var formatStr=String(dirtyFormatStr),defaultOptions=getDefaultOptions(),locale=null!==(_ref=null!==(_options$locale=null==options?void 0:options.locale)&&void 0!==_options$locale?_options$locale:defaultOptions.locale)&&void 0!==_ref?_ref:defaultLocale,firstWeekContainsDate=toInteger(null!==(_ref2=null!==(_ref3=null!==(_ref4=null!==(_options$firstWeekCon=null==options?void 0:options.firstWeekContainsDate)&&void 0!==_options$firstWeekCon?_options$firstWeekCon:null==options||null===(_options$locale2=options.locale)||void 0===_options$locale2||null===(_options$locale2$opti=_options$locale2.options)||void 0===_options$locale2$opti?void 0:_options$locale2$opti.firstWeekContainsDate)&&void 0!==_ref4?_ref4:defaultOptions.firstWeekContainsDate)&&void 0!==_ref3?_ref3:null===(_defaultOptions$local=defaultOptions.locale)||void 0===_defaultOptions$local||null===(_defaultOptions$local2=_defaultOptions$local.options)||void 0===_defaultOptions$local2?void 0:_defaultOptions$local2.firstWeekContainsDate)&&void 0!==_ref2?_ref2:1);if(!(firstWeekContainsDate>=1&&firstWeekContainsDate<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var weekStartsOn=toInteger(null!==(_ref5=null!==(_ref6=null!==(_ref7=null!==(_options$weekStartsOn=null==options?void 0:options.weekStartsOn)&&void 0!==_options$weekStartsOn?_options$weekStartsOn:null==options||null===(_options$locale3=options.locale)||void 0===_options$locale3||null===(_options$locale3$opti=_options$locale3.options)||void 0===_options$locale3$opti?void 0:_options$locale3$opti.weekStartsOn)&&void 0!==_ref7?_ref7:defaultOptions.weekStartsOn)&&void 0!==_ref6?_ref6:null===(_defaultOptions$local3=defaultOptions.locale)||void 0===_defaultOptions$local3||null===(_defaultOptions$local4=_defaultOptions$local3.options)||void 0===_defaultOptions$local4?void 0:_defaultOptions$local4.weekStartsOn)&&void 0!==_ref5?_ref5:0);if(!(weekStartsOn>=0&&weekStartsOn<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!locale.localize)throw new RangeError("locale must contain localize property");if(!locale.formatLong)throw new RangeError("locale must contain formatLong property");var originalDate=toDate(dirtyDate);if(!isValid(originalDate))throw new RangeError("Invalid time value");var timezoneOffset=function getTimezoneOffsetInMilliseconds(date){var utcDate=new Date(Date.UTC(date.getFullYear(),date.getMonth(),date.getDate(),date.getHours(),date.getMinutes(),date.getSeconds(),date.getMilliseconds()));return utcDate.setUTCFullYear(date.getFullYear()),date.getTime()-utcDate.getTime()}(originalDate),utcDate=subMilliseconds(originalDate,timezoneOffset),formatterOptions={firstWeekContainsDate:firstWeekContainsDate,weekStartsOn:weekStartsOn,locale:locale,_originalDate:originalDate};return formatStr.match(longFormattingTokensRegExp).map((function(substring){var firstCharacter=substring[0];return"p"===firstCharacter||"P"===firstCharacter?(0,longFormatters$1[firstCharacter])(substring,locale.formatLong):substring})).join("").match(formattingTokensRegExp).map((function(substring){if("''"===substring)return"'";var firstCharacter=substring[0];if("'"===firstCharacter)return function cleanEscapedString(input){var matched=input.match(escapedStringRegExp);if(!matched)return input;return matched[1].replace(doubleQuoteRegExp,"'")}(substring);var formatter=formatters$1[firstCharacter];if(formatter)return null!=options&&options.useAdditionalWeekYearTokens||!function isProtectedWeekYearToken(token){return-1!==protectedWeekYearTokens.indexOf(token)}(substring)||throwProtectedError(substring,dirtyFormatStr,String(dirtyDate)),null!=options&&options.useAdditionalDayOfYearTokens||!function isProtectedDayOfYearToken(token){return-1!==protectedDayOfYearTokens.indexOf(token)}(substring)||throwProtectedError(substring,dirtyFormatStr,String(dirtyDate)),formatter(utcDate,substring,locale.localize,formatterOptions);if(firstCharacter.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+firstCharacter+"`");return substring})).join("")}function parseISO(argument,options){var _options$additionalDi;requiredArgs(1,arguments);var additionalDigits=toInteger(null!==(_options$additionalDi=null==options?void 0:options.additionalDigits)&&void 0!==_options$additionalDi?_options$additionalDi:2);if(2!==additionalDigits&&1!==additionalDigits&&0!==additionalDigits)throw new RangeError("additionalDigits must be 0, 1 or 2");if("string"!=typeof argument&&"[object String]"!==Object.prototype.toString.call(argument))return new Date(NaN);var date,dateStrings=function splitDateString(dateString){var timeString,dateStrings={},array=dateString.split(patterns.dateTimeDelimiter);if(array.length>2)return dateStrings;/:/.test(array[0])?timeString=array[0]:(dateStrings.date=array[0],timeString=array[1],patterns.timeZoneDelimiter.test(dateStrings.date)&&(dateStrings.date=dateString.split(patterns.timeZoneDelimiter)[0],timeString=dateString.substr(dateStrings.date.length,dateString.length)));if(timeString){var token=patterns.timezone.exec(timeString);token?(dateStrings.time=timeString.replace(token[1],""),dateStrings.timezone=token[1]):dateStrings.time=timeString}return dateStrings}(argument);if(dateStrings.date){var parseYearResult=function parseYear(dateString,additionalDigits){var regex=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+additionalDigits)+"})|(\\d{2}|[+-]\\d{"+(2+additionalDigits)+"})$)"),captures=dateString.match(regex);if(!captures)return{year:NaN,restDateString:""};var year=captures[1]?parseInt(captures[1]):null,century=captures[2]?parseInt(captures[2]):null;return{year:null===century?year:100*century,restDateString:dateString.slice((captures[1]||captures[2]).length)}}(dateStrings.date,additionalDigits);date=function parseDate(dateString,year){if(null===year)return new Date(NaN);var captures=dateString.match(dateRegex);if(!captures)return new Date(NaN);var isWeekDate=!!captures[4],dayOfYear=parseDateUnit(captures[1]),month=parseDateUnit(captures[2])-1,day=parseDateUnit(captures[3]),week=parseDateUnit(captures[4]),dayOfWeek=parseDateUnit(captures[5])-1;if(isWeekDate)return function validateWeekDate(_year,week,day){return week>=1&&week<=53&&day>=0&&day<=6}(0,week,dayOfWeek)?function dayOfISOWeekYear(isoWeekYear,week,day){var date=new Date(0);date.setUTCFullYear(isoWeekYear,0,4);var fourthOfJanuaryDay=date.getUTCDay()||7,diff=7*(week-1)+day+1-fourthOfJanuaryDay;return date.setUTCDate(date.getUTCDate()+diff),date}(year,week,dayOfWeek):new Date(NaN);var date=new Date(0);return function validateDate(year,month,date){return month>=0&&month<=11&&date>=1&&date<=(daysInMonths[month]||(isLeapYearIndex(year)?29:28))}(year,month,day)&&function validateDayOfYearDate(year,dayOfYear){return dayOfYear>=1&&dayOfYear<=(isLeapYearIndex(year)?366:365)}(year,dayOfYear)?(date.setUTCFullYear(year,month,Math.max(dayOfYear,day)),date):new Date(NaN)}(parseYearResult.restDateString,parseYearResult.year)}if(!date||isNaN(date.getTime()))return new Date(NaN);var offset,timestamp=date.getTime(),time=0;if(dateStrings.time&&(time=function parseTime(timeString){var captures=timeString.match(timeRegex);if(!captures)return NaN;var hours=parseTimeUnit(captures[1]),minutes=parseTimeUnit(captures[2]),seconds=parseTimeUnit(captures[3]);if(!function validateTime(hours,minutes,seconds){if(24===hours)return 0===minutes&&0===seconds;return seconds>=0&&seconds<60&&minutes>=0&&minutes<60&&hours>=0&&hours<25}(hours,minutes,seconds))return NaN;return 36e5*hours+6e4*minutes+1e3*seconds}(dateStrings.time),isNaN(time)))return new Date(NaN);if(!dateStrings.timezone){var dirtyDate=new Date(timestamp+time),result=new Date(0);return result.setFullYear(dirtyDate.getUTCFullYear(),dirtyDate.getUTCMonth(),dirtyDate.getUTCDate()),result.setHours(dirtyDate.getUTCHours(),dirtyDate.getUTCMinutes(),dirtyDate.getUTCSeconds(),dirtyDate.getUTCMilliseconds()),result}return offset=function parseTimezone(timezoneString){if("Z"===timezoneString)return 0;var captures=timezoneString.match(timezoneRegex);if(!captures)return 0;var sign="+"===captures[1]?-1:1,hours=parseInt(captures[2]),minutes=captures[3]&&parseInt(captures[3])||0;if(!function validateTimezone(_hours,minutes){return minutes>=0&&minutes<=59}(0,minutes))return NaN;return sign*(36e5*hours+6e4*minutes)}(dateStrings.timezone),isNaN(offset)?new Date(NaN):new Date(timestamp+time+offset)}var patterns={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dateRegex=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,timeRegex=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,timezoneRegex=/^([+-])(\d{2})(?::?(\d{2}))?$/;function parseDateUnit(value){return value?parseInt(value):1}function parseTimeUnit(value){return value&&parseFloat(value.replace(",","."))||0}var daysInMonths=[31,null,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(year){return year%400==0||year%4==0&&year%100!=0}class SaveFiles{utility;environment;constructor(environment,utility){this.environment=environment,this.utility=utility}salvaArquivos(xmlConsulta,responseInJson,xmlRetorno,metodo,xmlFormated,options){const config=this.environment.getConfig();let dateAndTimeInFileName=config.dfe.incluirTimestampNoNomeDosArquivos;const{armazenarXMLConsultaComTagSoap:armazenarXMLConsultaComTagSoap}=this.environment.config.dfe,xmlConsultaASalvar=armazenarXMLConsultaComTagSoap?xmlFormated:xmlConsulta,salvarArquivo=(data,prefix,path,fileType)=>{const fileName=(prefix=>{const dtaTime=dateAndTimeInFileName?`-${format(new Date,"dd-MM-yyyy-HHmm")}`:"";return`${metodo}${prefix?`-${prefix}`:""}${responseInJson&&responseInJson.chNFe?`-${responseInJson.chNFe}`:""}${dtaTime}`})(prefix),method="xml"===fileType?"salvaXML":"salvaJSON";this.utility[method]({data:data||"",fileName:fileName,metodo:metodo,path:path})};config.dfe.armazenarXMLConsulta&&salvarArquivo(xmlConsultaASalvar,"consulta",config.dfe.pathXMLConsulta,"xml"),config.dfe.armazenarXMLRetorno&&salvarArquivo(xmlRetorno.data,"retorno",config.dfe.pathXMLRetorno,"xml"),config.dfe.armazenarRetornoEmJSON&&salvarArquivo(responseInJson,void 0,config.dfe.pathRetornoEmJSON,"json")}}function bind(fn,thisArg){return function wrap(){return fn.apply(thisArg,arguments)}}const{toString:toString$2}=Object.prototype,{getPrototypeOf:getPrototypeOf}=Object,kindOf=(cache=Object.create(null),thing=>{const str=toString$2.call(thing);return cache[str]||(cache[str]=str.slice(8,-1).toLowerCase())});var cache;const kindOfTest=type=>(type=type.toLowerCase(),thing=>kindOf(thing)===type),typeOfTest=type=>thing=>typeof thing===type,{isArray:isArray}=Array,isUndefined=typeOfTest("undefined");const isArrayBuffer=kindOfTest("ArrayBuffer");const isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=thing=>null!==thing&&"object"==typeof thing,isPlainObject=val=>{if("object"!==kindOf(val))return!1;const prototype=getPrototypeOf(val);return!(null!==prototype&&prototype!==Object.prototype&&null!==Object.getPrototypeOf(prototype)||Symbol.toStringTag in val||Symbol.iterator in val)},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest);function forEach(obj,fn,{allOwnKeys:allOwnKeys=!1}={}){if(null==obj)return;let i,l;if("object"!=typeof obj&&(obj=[obj]),isArray(obj))for(i=0,l=obj.length;i<l;i++)fn.call(null,obj[i],i,obj);else{const keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj),len=keys.length;let key;for(i=0;i<len;i++)key=keys[i],fn.call(null,obj[key],key,obj)}}function findKey(obj,key){key=key.toLowerCase();const keys=Object.keys(obj);let _key,i=keys.length;for(;i-- >0;)if(_key=keys[i],key===_key.toLowerCase())return _key;return null}const _global="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,isContextDefined=context=>!isUndefined(context)&&context!==_global;const isTypedArray=(TypedArray="undefined"!=typeof Uint8Array&&getPrototypeOf(Uint8Array),thing=>TypedArray&&thing instanceof TypedArray);var TypedArray;const isHTMLForm=kindOfTest("HTMLFormElement"),hasOwnProperty=(({hasOwnProperty:hasOwnProperty})=>(obj,prop)=>hasOwnProperty.call(obj,prop))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(obj,reducer)=>{const descriptors=Object.getOwnPropertyDescriptors(obj),reducedDescriptors={};forEach(descriptors,((descriptor,name)=>{let ret;!1!==(ret=reducer(descriptor,name,obj))&&(reducedDescriptors[name]=ret||descriptor)})),Object.defineProperties(obj,reducedDescriptors)};const isAsyncFn=kindOfTest("AsyncFunction"),_setImmediate=(setImmediateSupported="function"==typeof setImmediate,postMessageSupported=isFunction(_global.postMessage),setImmediateSupported?setImmediate:postMessageSupported?(token=`axios@${Math.random()}`,callbacks=[],_global.addEventListener("message",(({source:source,data:data})=>{source===_global&&data===token&&callbacks.length&&callbacks.shift()()}),!1),cb=>{callbacks.push(cb),_global.postMessage(token,"*")}):cb=>setTimeout(cb));var setImmediateSupported,postMessageSupported,token,callbacks;const asap="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_global):"undefined"!=typeof process&&process.nextTick||_setImmediate;var utils$3={isArray:isArray,isArrayBuffer:isArrayBuffer,isBuffer:function isBuffer(val){return null!==val&&!isUndefined(val)&&null!==val.constructor&&!isUndefined(val.constructor)&&isFunction(val.constructor.isBuffer)&&val.constructor.isBuffer(val)},isFormData:thing=>{let kind;return thing&&("function"==typeof FormData&&thing instanceof FormData||isFunction(thing.append)&&("formdata"===(kind=kindOf(thing))||"object"===kind&&isFunction(thing.toString)&&"[object FormData]"===thing.toString()))},isArrayBufferView:function isArrayBufferView(val){let result;return result="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(val):val&&val.buffer&&isArrayBuffer(val.buffer),result},isString:isString,isNumber:isNumber,isBoolean:thing=>!0===thing||!1===thing,isObject:isObject,isPlainObject:isPlainObject,isReadableStream:isReadableStream,isRequest:isRequest,isResponse:isResponse,isHeaders:isHeaders,isUndefined:isUndefined,isDate:isDate,isFile:isFile,isBlob:isBlob,isRegExp:isRegExp,isFunction:isFunction,isStream:val=>isObject(val)&&isFunction(val.pipe),isURLSearchParams:isURLSearchParams,isTypedArray:isTypedArray,isFileList:isFileList,forEach:forEach,merge:function merge(){const{caseless:caseless}=isContextDefined(this)&&this||{},result={},assignValue=(val,key)=>{const targetKey=caseless&&findKey(result,key)||key;isPlainObject(result[targetKey])&&isPlainObject(val)?result[targetKey]=merge(result[targetKey],val):isPlainObject(val)?result[targetKey]=merge({},val):isArray(val)?result[targetKey]=val.slice():result[targetKey]=val};for(let i=0,l=arguments.length;i<l;i++)arguments[i]&&forEach(arguments[i],assignValue);return result},extend:(a,b,thisArg,{allOwnKeys:allOwnKeys}={})=>(forEach(b,((val,key)=>{thisArg&&isFunction(val)?a[key]=bind(val,thisArg):a[key]=val}),{allOwnKeys:allOwnKeys}),a),trim:str=>str.trim?str.trim():str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:content=>(65279===content.charCodeAt(0)&&(content=content.slice(1)),content),inherits:(constructor,superConstructor,props,descriptors)=>{constructor.prototype=Object.create(superConstructor.prototype,descriptors),constructor.prototype.constructor=constructor,Object.defineProperty(constructor,"super",{value:superConstructor.prototype}),props&&Object.assign(constructor.prototype,props)},toFlatObject:(sourceObj,destObj,filter,propFilter)=>{let props,i,prop;const merged={};if(destObj=destObj||{},null==sourceObj)return destObj;do{for(props=Object.getOwnPropertyNames(sourceObj),i=props.length;i-- >0;)prop=props[i],propFilter&&!propFilter(prop,sourceObj,destObj)||merged[prop]||(destObj[prop]=sourceObj[prop],merged[prop]=!0);sourceObj=!1!==filter&&getPrototypeOf(sourceObj)}while(sourceObj&&(!filter||filter(sourceObj,destObj))&&sourceObj!==Object.prototype);return destObj},kindOf:kindOf,kindOfTest:kindOfTest,endsWith:(str,searchString,position)=>{str=String(str),(void 0===position||position>str.length)&&(position=str.length),position-=searchString.length;const lastIndex=str.indexOf(searchString,position);return-1!==lastIndex&&lastIndex===position},toArray:thing=>{if(!thing)return null;if(isArray(thing))return thing;let i=thing.length;if(!isNumber(i))return null;const arr=new Array(i);for(;i-- >0;)arr[i]=thing[i];return arr},forEachEntry:(obj,fn)=>{const iterator=(obj&&obj[Symbol.iterator]).call(obj);let result;for(;(result=iterator.next())&&!result.done;){const pair=result.value;fn.call(obj,pair[0],pair[1])}},matchAll:(regExp,str)=>{let matches;const arr=[];for(;null!==(matches=regExp.exec(str));)arr.push(matches);return arr},isHTMLForm:isHTMLForm,hasOwnProperty:hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors:reduceDescriptors,freezeMethods:obj=>{reduceDescriptors(obj,((descriptor,name)=>{if(isFunction(obj)&&-1!==["arguments","caller","callee"].indexOf(name))return!1;const value=obj[name];isFunction(value)&&(descriptor.enumerable=!1,"writable"in descriptor?descriptor.writable=!1:descriptor.set||(descriptor.set=()=>{throw Error("Can not rewrite read-only method '"+name+"'")}))}))},toObjectSet:(arrayOrString,delimiter)=>{const obj={},define=arr=>{arr.forEach((value=>{obj[value]=!0}))};return isArray(arrayOrString)?define(arrayOrString):define(String(arrayOrString).split(delimiter)),obj},toCamelCase:str=>str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function replacer(m,p1,p2){return p1.toUpperCase()+p2})),noop:()=>{},toFiniteNumber:(value,defaultValue)=>null!=value&&Number.isFinite(value=+value)?value:defaultValue,findKey:findKey,global:_global,isContextDefined:isContextDefined,isSpecCompliantForm:function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&"FormData"===thing[Symbol.toStringTag]&&thing[Symbol.iterator])},toJSONObject:obj=>{const stack=new Array(10),visit=(source,i)=>{if(isObject(source)){if(stack.indexOf(source)>=0)return;if(!("toJSON"in source)){stack[i]=source;const target=isArray(source)?[]:{};return forEach(source,((value,key)=>{const reducedValue=visit(value,i+1);!isUndefined(reducedValue)&&(target[key]=reducedValue)})),stack[i]=void 0,target}}return source};return visit(obj,0)},isAsyncFn:isAsyncFn,isThenable:thing=>thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing.catch),setImmediate:_setImmediate,asap:asap};function AxiosError(message,code,config,request,response){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=message,this.name="AxiosError",code&&(this.code=code),config&&(this.config=config),request&&(this.request=request),response&&(this.response=response,this.status=response.status?response.status:null)}utils$3.inherits(AxiosError,Error,{toJSON:function toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$3.toJSONObject(this.config),code:this.code,status:this.status}}});const prototype$1=AxiosError.prototype,descriptors={};var delayed_stream,hasRequiredDelayed_stream,combined_stream,hasRequiredCombined_stream;function requireCombined_stream(){if(hasRequiredCombined_stream)return combined_stream;hasRequiredCombined_stream=1;var util=require$$0__default$3.default,Stream=require$$0__default$2.default.Stream,DelayedStream=function requireDelayed_stream(){if(hasRequiredDelayed_stream)return delayed_stream;hasRequiredDelayed_stream=1;var Stream=require$$0__default$2.default.Stream,util=require$$0__default$3.default;function DelayedStream(){this.source=null,this.dataSize=0,this.maxDataSize=1048576,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}return delayed_stream=DelayedStream,util.inherits(DelayedStream,Stream),DelayedStream.create=function(source,options){var delayedStream=new this;for(var option in options=options||{})delayedStream[option]=options[option];delayedStream.source=source;var realEmit=source.emit;return source.emit=function(){return delayedStream._handleEmit(arguments),realEmit.apply(source,arguments)},source.on("error",(function(){})),delayedStream.pauseStream&&source.pause(),delayedStream},Object.defineProperty(DelayedStream.prototype,"readable",{configurable:!0,enumerable:!0,get:function(){return this.source.readable}}),DelayedStream.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)},DelayedStream.prototype.resume=function(){this._released||this.release(),this.source.resume()},DelayedStream.prototype.pause=function(){this.source.pause()},DelayedStream.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach(function(args){this.emit.apply(this,args)}.bind(this)),this._bufferedEvents=[]},DelayedStream.prototype.pipe=function(){var r=Stream.prototype.pipe.apply(this,arguments);return this.resume(),r},DelayedStream.prototype._handleEmit=function(args){this._released?this.emit.apply(this,args):("data"===args[0]&&(this.dataSize+=args[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(args))},DelayedStream.prototype._checkIfMaxDataSizeExceeded=function(){if(!(this._maxDataSizeExceeded||this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var message="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(message))}},delayed_stream}();function CombinedStream(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}return combined_stream=CombinedStream,util.inherits(CombinedStream,Stream),CombinedStream.create=function(options){var combinedStream=new this;for(var option in options=options||{})combinedStream[option]=options[option];return combinedStream},CombinedStream.isStreamLike=function(stream){return"function"!=typeof stream&&"string"!=typeof stream&&"boolean"!=typeof stream&&"number"!=typeof stream&&!Buffer.isBuffer(stream)},CombinedStream.prototype.append=function(stream){if(CombinedStream.isStreamLike(stream)){if(!(stream instanceof DelayedStream)){var newStream=DelayedStream.create(stream,{maxDataSize:1/0,pauseStream:this.pauseStreams});stream.on("data",this._checkDataSize.bind(this)),stream=newStream}this._handleErrors(stream),this.pauseStreams&&stream.pause()}return this._streams.push(stream),this},CombinedStream.prototype.pipe=function(dest,options){return Stream.prototype.pipe.call(this,dest,options),this.resume(),dest},CombinedStream.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},CombinedStream.prototype._realGetNext=function(){var stream=this._streams.shift();void 0!==stream?"function"==typeof stream?stream(function(stream){CombinedStream.isStreamLike(stream)&&(stream.on("data",this._checkDataSize.bind(this)),this._handleErrors(stream)),this._pipeNext(stream)}.bind(this)):this._pipeNext(stream):this.end()},CombinedStream.prototype._pipeNext=function(stream){if(this._currentStream=stream,CombinedStream.isStreamLike(stream))return stream.on("end",this._getNext.bind(this)),void stream.pipe(this,{end:!1});var value=stream;this.write(value),this._getNext()},CombinedStream.prototype._handleErrors=function(stream){var self=this;stream.on("error",(function(err){self._emitError(err)}))},CombinedStream.prototype.write=function(data){this.emit("data",data)},CombinedStream.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},CombinedStream.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},CombinedStream.prototype.end=function(){this._reset(),this.emit("end")},CombinedStream.prototype.destroy=function(){this._reset(),this.emit("close")},CombinedStream.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},CombinedStream.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var message="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(message))}},CombinedStream.prototype._updateDataSize=function(){this.dataSize=0;var self=this;this._streams.forEach((function(stream){stream.dataSize&&(self.dataSize+=stream.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},CombinedStream.prototype._emitError=function(err){this._reset(),this.emit("error",err)},combined_stream}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((code=>{descriptors[code]={value:code}})),Object.defineProperties(AxiosError,descriptors),Object.defineProperty(prototype$1,"isAxiosError",{value:!0}),AxiosError.from=(error,code,config,request,response,customProps)=>{const axiosError=Object.create(prototype$1);return utils$3.toFlatObject(error,axiosError,(function filter(obj){return obj!==Error.prototype}),(prop=>"isAxiosError"!==prop)),AxiosError.call(axiosError,error.message,code,config,request,response),axiosError.cause=error,axiosError.name=error.name,customProps&&Object.assign(axiosError,customProps),axiosError};var mimeDb,hasRequiredMimeDb,hasRequiredMimeTypes$1,defer_1,hasRequiredDefer,async_1,hasRequiredAsync,abort_1,hasRequiredAbort,iterate_1,hasRequiredIterate,state_1,hasRequiredState,terminator_1,hasRequiredTerminator,parallel_1,hasRequiredParallel,mimeTypes={},require$$0$1={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}};function requireMimeTypes$1(){return hasRequiredMimeTypes$1||(hasRequiredMimeTypes$1=1,function(exports){var db=function requireMimeDb(){return hasRequiredMimeDb?mimeDb:(hasRequiredMimeDb=1,mimeDb=require$$0$1)}
3
3
  /*!
4
4
  * mime-types
5
5
  * Copyright(c) 2014 Jonathan Ong