Files
StudyDiary/.obsidian/plugins/obsidian-raindrop-highlights/main.js
T
2026-07-23 20:36:13 +08:00

704 lines
1.6 MiB
Plaintext
Executable File

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __typeError=msg=>{throw TypeError(msg)};var __defNormalProp=(obj,key2,value)=>key2 in obj?__defProp(obj,key2,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key2]=value;var __commonJS=(cb,mod)=>function(){return mod||(0,cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all3)=>{for(var name in all3)__defProp(target,name,{get:all3[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key2 of __getOwnPropNames(from))!__hasOwnProp.call(to,key2)&&key2!==except&&__defProp(to,key2,{get:()=>from[key2],enumerable:!(desc=__getOwnPropDesc(from,key2))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var __publicField=(obj,key2,value)=>__defNormalProp(obj,typeof key2!="symbol"?key2+"":key2,value),__accessCheck=(obj,member,msg)=>member.has(obj)||__typeError("Cannot "+msg);var __privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)),__privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value),__privateSet=(obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value),__privateMethod=(obj,member,method)=>(__accessCheck(obj,member,"access private method"),method);var require_nunjucks=__commonJS({"node_modules/.pnpm/nunjucks@3.2.4/node_modules/nunjucks/browser/nunjucks.js"(exports,module2){(function(root2,factory2){typeof exports=="object"&&typeof module2=="object"?module2.exports=factory2():typeof define=="function"&&define.amd?define([],factory2):typeof exports=="object"?exports.nunjucks=factory2():root2.nunjucks=factory2()})(typeof self!="undefined"?self:exports,function(){return(function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module3=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module3.exports,module3,module3.exports,__webpack_require__),module3.l=!0,module3.exports}return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports2,name,getter){__webpack_require__.o(exports2,name)||Object.defineProperty(exports2,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module3){var getter=module3&&module3.__esModule?function(){return module3.default}:function(){return module3};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object2,property){return Object.prototype.hasOwnProperty.call(object2,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=11)})([(function(module3,exports2,__webpack_require__){"use strict";var ArrayProto=Array.prototype,ObjProto=Object.prototype,escapeMap={"&":"&amp;",'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","\\":"&#92;"},escapeRegex2=/[&"'<>\\]/g,exports2=module3.exports={};function hasOwnProp(obj,k){return ObjProto.hasOwnProperty.call(obj,k)}exports2.hasOwnProp=hasOwnProp;function lookupEscape(ch){return escapeMap[ch]}function _prettifyError(path,withInternals,err){if(err.Update||(err=new exports2.TemplateError(err)),err.Update(path),!withInternals){var old=err;err=new Error(old.message),err.name=old.name}return err}exports2._prettifyError=_prettifyError;function TemplateError(message,lineno,colno){var err,cause;message instanceof Error&&(cause=message,message=cause.name+": "+cause.message),Object.setPrototypeOf?(err=new Error(message),Object.setPrototypeOf(err,TemplateError.prototype)):(err=this,Object.defineProperty(err,"message",{enumerable:!1,writable:!0,value:message})),Object.defineProperty(err,"name",{value:"Template render error"}),Error.captureStackTrace&&Error.captureStackTrace(err,this.constructor);var getStack;if(cause){var stackDescriptor=Object.getOwnPropertyDescriptor(cause,"stack");getStack=stackDescriptor&&(stackDescriptor.get||function(){return stackDescriptor.value}),getStack||(getStack=function(){return cause.stack})}else{var stack2=new Error(message).stack;getStack=function(){return stack2}}return Object.defineProperty(err,"stack",{get:function(){return getStack.call(err)}}),Object.defineProperty(err,"cause",{value:cause}),err.lineno=lineno,err.colno=colno,err.firstUpdate=!0,err.Update=function(path){var msg="("+(path||"unknown path")+")";return this.firstUpdate&&(this.lineno&&this.colno?msg+=" [Line "+this.lineno+", Column "+this.colno+"]":this.lineno&&(msg+=" [Line "+this.lineno+"]")),msg+=`
`,this.firstUpdate&&(msg+=" "),this.message=msg+(this.message||""),this.firstUpdate=!1,this},err}Object.setPrototypeOf?Object.setPrototypeOf(TemplateError.prototype,Error.prototype):TemplateError.prototype=Object.create(Error.prototype,{constructor:{value:TemplateError}}),exports2.TemplateError=TemplateError;function escape(val){return val.replace(escapeRegex2,lookupEscape)}exports2.escape=escape;function isFunction3(obj){return ObjProto.toString.call(obj)==="[object Function]"}exports2.isFunction=isFunction3;function isArray2(obj){return ObjProto.toString.call(obj)==="[object Array]"}exports2.isArray=isArray2;function isString2(obj){return ObjProto.toString.call(obj)==="[object String]"}exports2.isString=isString2;function isObject3(obj){return ObjProto.toString.call(obj)==="[object Object]"}exports2.isObject=isObject3;function _prepareAttributeParts(attr2){return attr2?typeof attr2=="string"?attr2.split("."):[attr2]:[]}function getAttrGetter(attribute){var parts=_prepareAttributeParts(attribute);return function(item){for(var _item=item,i=0;i<parts.length;i++){var part=parts[i];if(hasOwnProp(_item,part))_item=_item[part];else return}return _item}}exports2.getAttrGetter=getAttrGetter;function groupBy(obj,val,throwOnUndefined){for(var result={},iterator2=isFunction3(val)?val:getAttrGetter(val),i=0;i<obj.length;i++){var value=obj[i],key2=iterator2(value,i);if(key2===void 0&&throwOnUndefined===!0)throw new TypeError('groupby: attribute "'+val+'" resolved to undefined');(result[key2]||(result[key2]=[])).push(value)}return result}exports2.groupBy=groupBy;function toArray2(obj){return Array.prototype.slice.call(obj)}exports2.toArray=toArray2;function without(array2){var result=[];if(!array2)return result;for(var length=array2.length,contains=toArray2(arguments).slice(1),index2=-1;++index2<length;)indexOf(contains,array2[index2])===-1&&result.push(array2[index2]);return result}exports2.without=without;function repeat(char_,n){for(var str="",i=0;i<n;i++)str+=char_;return str}exports2.repeat=repeat;function each2(obj,func,context){if(obj!=null){if(ArrayProto.forEach&&obj.forEach===ArrayProto.forEach)obj.forEach(func,context);else if(obj.length===+obj.length)for(var i=0,l=obj.length;i<l;i++)func.call(context,obj[i],i,obj)}}exports2.each=each2;function map2(obj,func){var results=[];if(obj==null)return results;if(ArrayProto.map&&obj.map===ArrayProto.map)return obj.map(func);for(var i=0;i<obj.length;i++)results[results.length]=func(obj[i],i);return obj.length===+obj.length&&(results.length=obj.length),results}exports2.map=map2;function asyncIter(arr,iter,cb){var i=-1;function next2(){i++,i<arr.length?iter(arr[i],i,next2,cb):cb()}next2()}exports2.asyncIter=asyncIter;function asyncFor(obj,iter,cb){var keys=keys_(obj||{}),len=keys.length,i=-1;function next2(){i++;var k=keys[i];i<len?iter(k,obj[k],i,len,next2):cb()}next2()}exports2.asyncFor=asyncFor;function indexOf(arr,searchElement,fromIndex){return Array.prototype.indexOf.call(arr||[],searchElement,fromIndex)}exports2.indexOf=indexOf;function keys_(obj){var arr=[];for(var k in obj)hasOwnProp(obj,k)&&arr.push(k);return arr}exports2.keys=keys_;function _entries(obj){return keys_(obj).map(function(k){return[k,obj[k]]})}exports2._entries=_entries;function _values(obj){return keys_(obj).map(function(k){return obj[k]})}exports2._values=_values;function extend3(obj1,obj2){return obj1=obj1||{},keys_(obj2).forEach(function(k){obj1[k]=obj2[k]}),obj1}exports2._assign=exports2.extend=extend3;function inOperator(key2,val){if(isArray2(val)||isString2(val))return val.indexOf(key2)!==-1;if(isObject3(val))return key2 in val;throw new Error('Cannot use "in" operator to search for "'+key2+'" in unexpected types.')}exports2.inOperator=inOperator}),(function(module3,exports2,__webpack_require__){"use strict";function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _toPropertyKey(arg){var key2=_toPrimitive(arg,"string");return typeof key2=="symbol"?key2:String(key2)}function _toPrimitive(input,hint){if(typeof input!="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input,hint||"default");if(typeof res!="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}var EventEmitter=__webpack_require__(16),lib=__webpack_require__(0);function parentWrap(parent,prop2){return typeof parent!="function"||typeof prop2!="function"?prop2:function(){var tmp=this.parent;this.parent=parent;var res=prop2.apply(this,arguments);return this.parent=tmp,res}}function extendClass(cls,name,props){props=props||{},lib.keys(props).forEach(function(k){props[k]=parentWrap(cls.prototype[k],props[k])});var subclass=(function(_cls){_inheritsLoose(subclass2,_cls);function subclass2(){return _cls.apply(this,arguments)||this}return _createClass(subclass2,[{key:"typename",get:function(){return name}}]),subclass2})(cls);return lib._assign(subclass.prototype,props),subclass}var Obj=(function(){function Obj2(){this.init.apply(this,arguments)}var _proto=Obj2.prototype;return _proto.init=function(){},Obj2.extend=function(name,props){return typeof name=="object"&&(props=name,name="anonymous"),extendClass(this,name,props)},_createClass(Obj2,[{key:"typename",get:function(){return this.constructor.name}}]),Obj2})(),EmitterObj=(function(_EventEmitter){_inheritsLoose(EmitterObj2,_EventEmitter);function EmitterObj2(){var _this2,_this;return _this=_EventEmitter.call(this)||this,(_this2=_this).init.apply(_this2,arguments),_this}var _proto2=EmitterObj2.prototype;return _proto2.init=function(){},EmitterObj2.extend=function(name,props){return typeof name=="object"&&(props=name,name="anonymous"),extendClass(this,name,props)},_createClass(EmitterObj2,[{key:"typename",get:function(){return this.constructor.name}}]),EmitterObj2})(EventEmitter);module3.exports={Obj,EmitterObj}}),(function(module3,exports2,__webpack_require__){"use strict";var lib=__webpack_require__(0),arrayFrom=Array.from,supportsIterators=typeof Symbol=="function"&&Symbol.iterator&&typeof arrayFrom=="function",Frame=(function(){function Frame2(parent,isolateWrites){this.variables=Object.create(null),this.parent=parent,this.topLevel=!1,this.isolateWrites=isolateWrites}var _proto=Frame2.prototype;return _proto.set=function(name,val,resolveUp){var parts=name.split("."),obj=this.variables,frame=this;if(resolveUp&&(frame=this.resolve(parts[0],!0))){frame.set(name,val);return}for(var i=0;i<parts.length-1;i++){var id=parts[i];obj[id]||(obj[id]={}),obj=obj[id]}obj[parts[parts.length-1]]=val},_proto.get=function(name){var val=this.variables[name];return val!==void 0?val:null},_proto.lookup=function(name){var p=this.parent,val=this.variables[name];return val!==void 0?val:p&&p.lookup(name)},_proto.resolve=function(name,forWrite){var p=forWrite&&this.isolateWrites?void 0:this.parent,val=this.variables[name];return val!==void 0?this:p&&p.resolve(name)},_proto.push=function(isolateWrites){return new Frame2(this,isolateWrites)},_proto.pop=function(){return this.parent},Frame2})();function makeMacro(argNames,kwargNames,func){return function(){for(var _len=arguments.length,macroArgs=new Array(_len),_key=0;_key<_len;_key++)macroArgs[_key]=arguments[_key];var argCount=numArgs(macroArgs),args,kwargs=getKeywordArgs(macroArgs);if(argCount>argNames.length)args=macroArgs.slice(0,argNames.length),macroArgs.slice(args.length,argCount).forEach(function(val,i2){i2<kwargNames.length&&(kwargs[kwargNames[i2]]=val)}),args.push(kwargs);else if(argCount<argNames.length){args=macroArgs.slice(0,argCount);for(var i=argCount;i<argNames.length;i++){var arg=argNames[i];args.push(kwargs[arg]),delete kwargs[arg]}args.push(kwargs)}else args=macroArgs;return func.apply(this,args)}}function makeKeywordArgs(obj){return obj.__keywords=!0,obj}function isKeywordArgs(obj){return obj&&Object.prototype.hasOwnProperty.call(obj,"__keywords")}function getKeywordArgs(args){var len=args.length;if(len){var lastArg=args[len-1];if(isKeywordArgs(lastArg))return lastArg}return{}}function numArgs(args){var len=args.length;if(len===0)return 0;var lastArg=args[len-1];return isKeywordArgs(lastArg)?len-1:len}function SafeString(val){if(typeof val!="string")return val;this.val=val,this.length=val.length}SafeString.prototype=Object.create(String.prototype,{length:{writable:!0,configurable:!0,value:0}}),SafeString.prototype.valueOf=function(){return this.val},SafeString.prototype.toString=function(){return this.val};function copySafeness(dest,target){return dest instanceof SafeString?new SafeString(target):target.toString()}function markSafe(val){var type=typeof val;return type==="string"?new SafeString(val):type!=="function"?val:function(args){var ret=val.apply(this,arguments);return typeof ret=="string"?new SafeString(ret):ret}}function suppressValue(val,autoescape){return val=val!=null?val:"",autoescape&&!(val instanceof SafeString)&&(val=lib.escape(val.toString())),val}function ensureDefined(val,lineno,colno){if(val==null)throw new lib.TemplateError("attempted to output null or undefined value",lineno+1,colno+1);return val}function memberLookup(obj,val){if(obj!=null)return typeof obj[val]=="function"?function(){for(var _len2=arguments.length,args=new Array(_len2),_key2=0;_key2<_len2;_key2++)args[_key2]=arguments[_key2];return obj[val].apply(obj,args)}:obj[val]}function callWrap(obj,name,context,args){if(obj){if(typeof obj!="function")throw new Error("Unable to call `"+name+"`, which is not a function")}else throw new Error("Unable to call `"+name+"`, which is undefined or falsey");return obj.apply(context,args)}function contextOrFrameLookup(context,frame,name){var val=frame.lookup(name);return val!==void 0?val:context.lookup(name)}function handleError(error51,lineno,colno){return error51.lineno?error51:new lib.TemplateError(error51,lineno,colno)}function asyncEach(arr,dimen,iter,cb){if(lib.isArray(arr)){var len=arr.length;lib.asyncIter(arr,function(item,i,next2){switch(dimen){case 1:iter(item,i,len,next2);break;case 2:iter(item[0],item[1],i,len,next2);break;case 3:iter(item[0],item[1],item[2],i,len,next2);break;default:item.push(i,len,next2),iter.apply(this,item)}},cb)}else lib.asyncFor(arr,function(key2,val,i,len2,next2){iter(key2,val,i,len2,next2)},cb)}function asyncAll(arr,dimen,func,cb){var finished=0,len,outputArr;function done(i2,output){finished++,outputArr[i2]=output,finished===len&&cb(null,outputArr.join(""))}if(lib.isArray(arr))if(len=arr.length,outputArr=new Array(len),len===0)cb(null,"");else for(var i=0;i<arr.length;i++){var item=arr[i];switch(dimen){case 1:func(item,i,len,done);break;case 2:func(item[0],item[1],i,len,done);break;case 3:func(item[0],item[1],item[2],i,len,done);break;default:item.push(i,len,done),func.apply(this,item)}}else{var keys=lib.keys(arr||{});if(len=keys.length,outputArr=new Array(len),len===0)cb(null,"");else for(var _i=0;_i<keys.length;_i++){var k=keys[_i];func(k,arr[k],_i,len,done)}}}function fromIterator(arr){return typeof arr!="object"||arr===null||lib.isArray(arr)?arr:supportsIterators&&Symbol.iterator in arr?arrayFrom(arr):arr}module3.exports={Frame,makeMacro,makeKeywordArgs,numArgs,suppressValue,ensureDefined,memberLookup,contextOrFrameLookup,callWrap,handleError,isArray:lib.isArray,keys:lib.keys,SafeString,copySafeness,markSafe,asyncEach,asyncAll,inOperator:lib.inOperator,fromIterator}}),(function(module3,exports2,__webpack_require__){"use strict";function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _toPropertyKey(arg){var key2=_toPrimitive(arg,"string");return typeof key2=="symbol"?key2:String(key2)}function _toPrimitive(input,hint){if(typeof input!="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==void 0){var res=prim.call(input,hint||"default");if(typeof res!="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.")}return(hint==="string"?String:Number)(input)}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}var _require=__webpack_require__(1),Obj=_require.Obj;function traverseAndCheck(obj,type,results){obj instanceof type&&results.push(obj),obj instanceof Node2&&obj.findAll(type,results)}var Node2=(function(_Obj){_inheritsLoose(Node3,_Obj);function Node3(){return _Obj.apply(this,arguments)||this}var _proto=Node3.prototype;return _proto.init=function(lineno,colno){for(var _arguments=arguments,_this=this,_len=arguments.length,args=new Array(_len>2?_len-2:0),_key=2;_key<_len;_key++)args[_key-2]=arguments[_key];this.lineno=lineno,this.colno=colno,this.fields.forEach(function(field,i){var val=_arguments[i+2];val===void 0&&(val=null),_this[field]=val})},_proto.findAll=function(type,results){var _this2=this;return results=results||[],this instanceof NodeList?this.children.forEach(function(child2){return traverseAndCheck(child2,type,results)}):this.fields.forEach(function(field){return traverseAndCheck(_this2[field],type,results)}),results},_proto.iterFields=function(func){var _this3=this;this.fields.forEach(function(field){func(_this3[field],field)})},Node3})(Obj),Value=(function(_Node){_inheritsLoose(Value2,_Node);function Value2(){return _Node.apply(this,arguments)||this}return _createClass(Value2,[{key:"typename",get:function(){return"Value"}},{key:"fields",get:function(){return["value"]}}]),Value2})(Node2),NodeList=(function(_Node2){_inheritsLoose(NodeList2,_Node2);function NodeList2(){return _Node2.apply(this,arguments)||this}var _proto2=NodeList2.prototype;return _proto2.init=function(lineno,colno,nodes){_Node2.prototype.init.call(this,lineno,colno,nodes||[])},_proto2.addChild=function(node){this.children.push(node)},_createClass(NodeList2,[{key:"typename",get:function(){return"NodeList"}},{key:"fields",get:function(){return["children"]}}]),NodeList2})(Node2),Root=NodeList.extend("Root"),Literal=Value.extend("Literal"),_Symbol=Value.extend("Symbol"),Group=NodeList.extend("Group"),ArrayNode=NodeList.extend("Array"),Pair=Node2.extend("Pair",{fields:["key","value"]}),Dict=NodeList.extend("Dict"),LookupVal=Node2.extend("LookupVal",{fields:["target","val"]}),If=Node2.extend("If",{fields:["cond","body","else_"]}),IfAsync=If.extend("IfAsync"),InlineIf=Node2.extend("InlineIf",{fields:["cond","body","else_"]}),For=Node2.extend("For",{fields:["arr","name","body","else_"]}),AsyncEach=For.extend("AsyncEach"),AsyncAll=For.extend("AsyncAll"),Macro=Node2.extend("Macro",{fields:["name","args","body"]}),Caller=Macro.extend("Caller"),Import=Node2.extend("Import",{fields:["template","target","withContext"]}),FromImport=(function(_Node3){_inheritsLoose(FromImport2,_Node3);function FromImport2(){return _Node3.apply(this,arguments)||this}var _proto3=FromImport2.prototype;return _proto3.init=function(lineno,colno,template,names,withContext){_Node3.prototype.init.call(this,lineno,colno,template,names||new NodeList,withContext)},_createClass(FromImport2,[{key:"typename",get:function(){return"FromImport"}},{key:"fields",get:function(){return["template","names","withContext"]}}]),FromImport2})(Node2),FunCall=Node2.extend("FunCall",{fields:["name","args"]}),Filter=FunCall.extend("Filter"),FilterAsync=Filter.extend("FilterAsync",{fields:["name","args","symbol"]}),KeywordArgs=Dict.extend("KeywordArgs"),Block=Node2.extend("Block",{fields:["name","body"]}),Super=Node2.extend("Super",{fields:["blockName","symbol"]}),TemplateRef=Node2.extend("TemplateRef",{fields:["template"]}),Extends=TemplateRef.extend("Extends"),Include=Node2.extend("Include",{fields:["template","ignoreMissing"]}),Set2=Node2.extend("Set",{fields:["targets","value"]}),Switch=Node2.extend("Switch",{fields:["expr","cases","default"]}),Case=Node2.extend("Case",{fields:["cond","body"]}),Output=NodeList.extend("Output"),Capture=Node2.extend("Capture",{fields:["body"]}),TemplateData=Literal.extend("TemplateData"),UnaryOp=Node2.extend("UnaryOp",{fields:["target"]}),BinOp=Node2.extend("BinOp",{fields:["left","right"]}),In=BinOp.extend("In"),Is=BinOp.extend("Is"),Or=BinOp.extend("Or"),And=BinOp.extend("And"),Not=UnaryOp.extend("Not"),Add=BinOp.extend("Add"),Concat=BinOp.extend("Concat"),Sub=BinOp.extend("Sub"),Mul=BinOp.extend("Mul"),Div=BinOp.extend("Div"),FloorDiv=BinOp.extend("FloorDiv"),Mod=BinOp.extend("Mod"),Pow=BinOp.extend("Pow"),Neg=UnaryOp.extend("Neg"),Pos=UnaryOp.extend("Pos"),Compare=Node2.extend("Compare",{fields:["expr","ops"]}),CompareOperand=Node2.extend("CompareOperand",{fields:["expr","type"]}),CallExtension=Node2.extend("CallExtension",{init:function(ext,prop2,args,contentArgs){this.parent(),this.extName=ext.__name||ext,this.prop=prop2,this.args=args||new NodeList,this.contentArgs=contentArgs||[],this.autoescape=ext.autoescape},fields:["extName","prop","args","contentArgs"]}),CallExtensionAsync=CallExtension.extend("CallExtensionAsync");function print(str,indent,inline){var lines=str.split(`
`);lines.forEach(function(line,i){line&&(inline&&i>0||!inline)&&process.stdout.write(" ".repeat(indent));var nl=i===lines.length-1?"":`
`;process.stdout.write(""+line+nl)})}function printNodes(node,indent){if(indent=indent||0,print(node.typename+": ",indent),node instanceof NodeList)print(`
`),node.children.forEach(function(n){printNodes(n,indent+2)});else if(node instanceof CallExtension)print(node.extName+"."+node.prop+`
`),node.args&&printNodes(node.args,indent+2),node.contentArgs&&node.contentArgs.forEach(function(n){printNodes(n,indent+2)});else{var nodes=[],props=null;node.iterFields(function(val,fieldName){val instanceof Node2?nodes.push([fieldName,val]):(props=props||{},props[fieldName]=val)}),props?print(JSON.stringify(props,null,2)+`
`,null,!0):print(`
`),nodes.forEach(function(_ref){var fieldName=_ref[0],n=_ref[1];print("["+fieldName+"] =>",indent+2),printNodes(n,indent+4)})}}module3.exports={Node:Node2,Root,NodeList,Value,Literal,Symbol:_Symbol,Group,Array:ArrayNode,Pair,Dict,Output,Capture,TemplateData,If,IfAsync,InlineIf,For,AsyncEach,AsyncAll,Macro,Caller,Import,FromImport,FunCall,Filter,FilterAsync,KeywordArgs,Block,Super,Extends,Include,Set:Set2,Switch,Case,LookupVal,BinOp,In,Is,Or,And,Not,Add,Concat,Sub,Mul,Div,FloorDiv,Mod,Pow,Neg,Pos,Compare,CompareOperand,CallExtension,CallExtensionAsync,printNodes}}),(function(module3,exports2){}),(function(module3,exports2,__webpack_require__){"use strict";function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}var parser=__webpack_require__(8),transformer=__webpack_require__(17),nodes=__webpack_require__(3),_require=__webpack_require__(0),TemplateError=_require.TemplateError,_require2=__webpack_require__(2),Frame=_require2.Frame,_require3=__webpack_require__(1),Obj=_require3.Obj,compareOps={"==":"==","===":"===","!=":"!=","!==":"!==","<":"<",">":">","<=":"<=",">=":">="},Compiler=(function(_Obj){_inheritsLoose(Compiler2,_Obj);function Compiler2(){return _Obj.apply(this,arguments)||this}var _proto=Compiler2.prototype;return _proto.init=function(templateName,throwOnUndefined){this.templateName=templateName,this.codebuf=[],this.lastId=0,this.buffer=null,this.bufferStack=[],this._scopeClosers="",this.inBlock=!1,this.throwOnUndefined=throwOnUndefined},_proto.fail=function(msg,lineno,colno){throw lineno!==void 0&&(lineno+=1),colno!==void 0&&(colno+=1),new TemplateError(msg,lineno,colno)},_proto._pushBuffer=function(){var id=this._tmpid();return this.bufferStack.push(this.buffer),this.buffer=id,this._emit("var "+this.buffer+' = "";'),id},_proto._popBuffer=function(){this.buffer=this.bufferStack.pop()},_proto._emit=function(code){this.codebuf.push(code)},_proto._emitLine=function(code){this._emit(code+`
`)},_proto._emitLines=function(){for(var _this=this,_len=arguments.length,lines=new Array(_len),_key=0;_key<_len;_key++)lines[_key]=arguments[_key];lines.forEach(function(line){return _this._emitLine(line)})},_proto._emitFuncBegin=function(node,name){this.buffer="output",this._scopeClosers="",this._emitLine("function "+name+"(env, context, frame, runtime, cb) {"),this._emitLine("var lineno = "+node.lineno+";"),this._emitLine("var colno = "+node.colno+";"),this._emitLine("var "+this.buffer+' = "";'),this._emitLine("try {")},_proto._emitFuncEnd=function(noReturn){noReturn||this._emitLine("cb(null, "+this.buffer+");"),this._closeScopeLevels(),this._emitLine("} catch (e) {"),this._emitLine(" cb(runtime.handleError(e, lineno, colno));"),this._emitLine("}"),this._emitLine("}"),this.buffer=null},_proto._addScopeLevel=function(){this._scopeClosers+="})"},_proto._closeScopeLevels=function(){this._emitLine(this._scopeClosers+";"),this._scopeClosers=""},_proto._withScopedSyntax=function(func){var _scopeClosers=this._scopeClosers;this._scopeClosers="",func.call(this),this._closeScopeLevels(),this._scopeClosers=_scopeClosers},_proto._makeCallback=function(res){var err=this._tmpid();return"function("+err+(res?","+res:"")+`) {
if(`+err+") { cb("+err+"); return; }"},_proto._tmpid=function(){return this.lastId++,"t_"+this.lastId},_proto._templateName=function(){return this.templateName==null?"undefined":JSON.stringify(this.templateName)},_proto._compileChildren=function(node,frame){var _this2=this;node.children.forEach(function(child2){_this2.compile(child2,frame)})},_proto._compileAggregate=function(node,frame,startChar,endChar){var _this3=this;startChar&&this._emit(startChar),node.children.forEach(function(child2,i){i>0&&_this3._emit(","),_this3.compile(child2,frame)}),endChar&&this._emit(endChar)},_proto._compileExpression=function(node,frame){this.assertType(node,nodes.Literal,nodes.Symbol,nodes.Group,nodes.Array,nodes.Dict,nodes.FunCall,nodes.Caller,nodes.Filter,nodes.LookupVal,nodes.Compare,nodes.InlineIf,nodes.In,nodes.Is,nodes.And,nodes.Or,nodes.Not,nodes.Add,nodes.Concat,nodes.Sub,nodes.Mul,nodes.Div,nodes.FloorDiv,nodes.Mod,nodes.Pow,nodes.Neg,nodes.Pos,nodes.Compare,nodes.NodeList),this.compile(node,frame)},_proto.assertType=function(node){for(var _len2=arguments.length,types3=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++)types3[_key2-1]=arguments[_key2];types3.some(function(t){return node instanceof t})||this.fail("assertType: invalid type: "+node.typename,node.lineno,node.colno)},_proto.compileCallExtension=function(node,frame,async2){var _this4=this,args=node.args,contentArgs=node.contentArgs,autoescape=typeof node.autoescape=="boolean"?node.autoescape:!0;if(async2||this._emit(this.buffer+" += runtime.suppressValue("),this._emit('env.getExtension("'+node.extName+'")["'+node.prop+'"]('),this._emit("context"),(args||contentArgs)&&this._emit(","),args&&(args instanceof nodes.NodeList||this.fail("compileCallExtension: arguments must be a NodeList, use `parser.parseSignature`"),args.children.forEach(function(arg,i){_this4._compileExpression(arg,frame),(i!==args.children.length-1||contentArgs.length)&&_this4._emit(",")})),contentArgs.length&&contentArgs.forEach(function(arg,i){if(i>0&&_this4._emit(","),arg){_this4._emitLine("function(cb) {"),_this4._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}");var id=_this4._pushBuffer();_this4._withScopedSyntax(function(){_this4.compile(arg,frame),_this4._emitLine("cb(null, "+id+");")}),_this4._popBuffer(),_this4._emitLine("return "+id+";"),_this4._emitLine("}")}else _this4._emit("null")}),async2){var res=this._tmpid();this._emitLine(", "+this._makeCallback(res)),this._emitLine(this.buffer+" += runtime.suppressValue("+res+", "+autoescape+" && env.opts.autoescape);"),this._addScopeLevel()}else this._emit(")"),this._emit(", "+autoescape+` && env.opts.autoescape);
`)},_proto.compileCallExtensionAsync=function(node,frame){this.compileCallExtension(node,frame,!0)},_proto.compileNodeList=function(node,frame){this._compileChildren(node,frame)},_proto.compileLiteral=function(node){if(typeof node.value=="string"){var val=node.value.replace(/\\/g,"\\\\");val=val.replace(/"/g,'\\"'),val=val.replace(/\n/g,"\\n"),val=val.replace(/\r/g,"\\r"),val=val.replace(/\t/g,"\\t"),val=val.replace(/\u2028/g,"\\u2028"),this._emit('"'+val+'"')}else node.value===null?this._emit("null"):this._emit(node.value.toString())},_proto.compileSymbol=function(node,frame){var name=node.value,v=frame.lookup(name);v?this._emit(v):this._emit('runtime.contextOrFrameLookup(context, frame, "'+name+'")')},_proto.compileGroup=function(node,frame){this._compileAggregate(node,frame,"(",")")},_proto.compileArray=function(node,frame){this._compileAggregate(node,frame,"[","]")},_proto.compileDict=function(node,frame){this._compileAggregate(node,frame,"{","}")},_proto.compilePair=function(node,frame){var key2=node.key,val=node.value;key2 instanceof nodes.Symbol?key2=new nodes.Literal(key2.lineno,key2.colno,key2.value):key2 instanceof nodes.Literal&&typeof key2.value=="string"||this.fail("compilePair: Dict keys must be strings or names",key2.lineno,key2.colno),this.compile(key2,frame),this._emit(": "),this._compileExpression(val,frame)},_proto.compileInlineIf=function(node,frame){this._emit("("),this.compile(node.cond,frame),this._emit("?"),this.compile(node.body,frame),this._emit(":"),node.else_!==null?this.compile(node.else_,frame):this._emit('""'),this._emit(")")},_proto.compileIn=function(node,frame){this._emit("runtime.inOperator("),this.compile(node.left,frame),this._emit(","),this.compile(node.right,frame),this._emit(")")},_proto.compileIs=function(node,frame){var right=node.right.name?node.right.name.value:node.right.value;this._emit('env.getTest("'+right+'").call(context, '),this.compile(node.left,frame),node.right.args&&(this._emit(","),this.compile(node.right.args,frame)),this._emit(") === true")},_proto._binOpEmitter=function(node,frame,str){this.compile(node.left,frame),this._emit(str),this.compile(node.right,frame)},_proto.compileOr=function(node,frame){return this._binOpEmitter(node,frame," || ")},_proto.compileAnd=function(node,frame){return this._binOpEmitter(node,frame," && ")},_proto.compileAdd=function(node,frame){return this._binOpEmitter(node,frame," + ")},_proto.compileConcat=function(node,frame){return this._binOpEmitter(node,frame,' + "" + ')},_proto.compileSub=function(node,frame){return this._binOpEmitter(node,frame," - ")},_proto.compileMul=function(node,frame){return this._binOpEmitter(node,frame," * ")},_proto.compileDiv=function(node,frame){return this._binOpEmitter(node,frame," / ")},_proto.compileMod=function(node,frame){return this._binOpEmitter(node,frame," % ")},_proto.compileNot=function(node,frame){this._emit("!"),this.compile(node.target,frame)},_proto.compileFloorDiv=function(node,frame){this._emit("Math.floor("),this.compile(node.left,frame),this._emit(" / "),this.compile(node.right,frame),this._emit(")")},_proto.compilePow=function(node,frame){this._emit("Math.pow("),this.compile(node.left,frame),this._emit(", "),this.compile(node.right,frame),this._emit(")")},_proto.compileNeg=function(node,frame){this._emit("-"),this.compile(node.target,frame)},_proto.compilePos=function(node,frame){this._emit("+"),this.compile(node.target,frame)},_proto.compileCompare=function(node,frame){var _this5=this;this.compile(node.expr,frame),node.ops.forEach(function(op){_this5._emit(" "+compareOps[op.type]+" "),_this5.compile(op.expr,frame)})},_proto.compileLookupVal=function(node,frame){this._emit("runtime.memberLookup(("),this._compileExpression(node.target,frame),this._emit("),"),this._compileExpression(node.val,frame),this._emit(")")},_proto._getNodeName=function(node){switch(node.typename){case"Symbol":return node.value;case"FunCall":return"the return value of ("+this._getNodeName(node.name)+")";case"LookupVal":return this._getNodeName(node.target)+'["'+this._getNodeName(node.val)+'"]';case"Literal":return node.value.toString();default:return"--expression--"}},_proto.compileFunCall=function(node,frame){this._emit("(lineno = "+node.lineno+", colno = "+node.colno+", "),this._emit("runtime.callWrap("),this._compileExpression(node.name,frame),this._emit(', "'+this._getNodeName(node.name).replace(/"/g,'\\"')+'", context, '),this._compileAggregate(node.args,frame,"[","])"),this._emit(")")},_proto.compileFilter=function(node,frame){var name=node.name;this.assertType(name,nodes.Symbol),this._emit('env.getFilter("'+name.value+'").call(context, '),this._compileAggregate(node.args,frame),this._emit(")")},_proto.compileFilterAsync=function(node,frame){var name=node.name,symbol2=node.symbol.value;this.assertType(name,nodes.Symbol),frame.set(symbol2,symbol2),this._emit('env.getFilter("'+name.value+'").call(context, '),this._compileAggregate(node.args,frame),this._emitLine(", "+this._makeCallback(symbol2)),this._addScopeLevel()},_proto.compileKeywordArgs=function(node,frame){this._emit("runtime.makeKeywordArgs("),this.compileDict(node,frame),this._emit(")")},_proto.compileSet=function(node,frame){var _this6=this,ids=[];node.targets.forEach(function(target){var name=target.value,id=frame.lookup(name);id==null&&(id=_this6._tmpid(),_this6._emitLine("var "+id+";")),ids.push(id)}),node.value?(this._emit(ids.join(" = ")+" = "),this._compileExpression(node.value,frame),this._emitLine(";")):(this._emit(ids.join(" = ")+" = "),this.compile(node.body,frame),this._emitLine(";")),node.targets.forEach(function(target,i){var id=ids[i],name=target.value;_this6._emitLine('frame.set("'+name+'", '+id+", true);"),_this6._emitLine("if(frame.topLevel) {"),_this6._emitLine('context.setVariable("'+name+'", '+id+");"),_this6._emitLine("}"),name.charAt(0)!=="_"&&(_this6._emitLine("if(frame.topLevel) {"),_this6._emitLine('context.addExport("'+name+'", '+id+");"),_this6._emitLine("}"))})},_proto.compileSwitch=function(node,frame){var _this7=this;this._emit("switch ("),this.compile(node.expr,frame),this._emit(") {"),node.cases.forEach(function(c2,i){_this7._emit("case "),_this7.compile(c2.cond,frame),_this7._emit(": "),_this7.compile(c2.body,frame),c2.body.children.length&&_this7._emitLine("break;")}),node.default&&(this._emit("default:"),this.compile(node.default,frame)),this._emit("}")},_proto.compileIf=function(node,frame,async2){var _this8=this;this._emit("if("),this._compileExpression(node.cond,frame),this._emitLine(") {"),this._withScopedSyntax(function(){_this8.compile(node.body,frame),async2&&_this8._emit("cb()")}),node.else_?(this._emitLine(`}
else {`),this._withScopedSyntax(function(){_this8.compile(node.else_,frame),async2&&_this8._emit("cb()")})):async2&&(this._emitLine(`}
else {`),this._emit("cb()")),this._emitLine("}")},_proto.compileIfAsync=function(node,frame){this._emit("(function(cb) {"),this.compileIf(node,frame,!0),this._emit("})("+this._makeCallback()),this._addScopeLevel()},_proto._emitLoopBindings=function(node,arr,i,len){var _this9=this,bindings=[{name:"index",val:i+" + 1"},{name:"index0",val:i},{name:"revindex",val:len+" - "+i},{name:"revindex0",val:len+" - "+i+" - 1"},{name:"first",val:i+" === 0"},{name:"last",val:i+" === "+len+" - 1"},{name:"length",val:len}];bindings.forEach(function(b){_this9._emitLine('frame.set("loop.'+b.name+'", '+b.val+");")})},_proto.compileFor=function(node,frame){var _this10=this,i=this._tmpid(),len=this._tmpid(),arr=this._tmpid();if(frame=frame.push(),this._emitLine("frame = frame.push();"),this._emit("var "+arr+" = "),this._compileExpression(node.arr,frame),this._emitLine(";"),this._emit("if("+arr+") {"),this._emitLine(arr+" = runtime.fromIterator("+arr+");"),node.name instanceof nodes.Array){this._emitLine("var "+i+";"),this._emitLine("if(runtime.isArray("+arr+")) {"),this._emitLine("var "+len+" = "+arr+".length;"),this._emitLine("for("+i+"=0; "+i+" < "+arr+".length; "+i+"++) {"),node.name.children.forEach(function(child2,u){var tid=_this10._tmpid();_this10._emitLine("var "+tid+" = "+arr+"["+i+"]["+u+"];"),_this10._emitLine('frame.set("'+child2+'", '+arr+"["+i+"]["+u+"]);"),frame.set(node.name.children[u].value,tid)}),this._emitLoopBindings(node,arr,i,len),this._withScopedSyntax(function(){_this10.compile(node.body,frame)}),this._emitLine("}"),this._emitLine("} else {");var _node$name$children=node.name.children,key2=_node$name$children[0],val=_node$name$children[1],k=this._tmpid(),v=this._tmpid();frame.set(key2.value,k),frame.set(val.value,v),this._emitLine(i+" = -1;"),this._emitLine("var "+len+" = runtime.keys("+arr+").length;"),this._emitLine("for(var "+k+" in "+arr+") {"),this._emitLine(i+"++;"),this._emitLine("var "+v+" = "+arr+"["+k+"];"),this._emitLine('frame.set("'+key2.value+'", '+k+");"),this._emitLine('frame.set("'+val.value+'", '+v+");"),this._emitLoopBindings(node,arr,i,len),this._withScopedSyntax(function(){_this10.compile(node.body,frame)}),this._emitLine("}"),this._emitLine("}")}else{var _v=this._tmpid();frame.set(node.name.value,_v),this._emitLine("var "+len+" = "+arr+".length;"),this._emitLine("for(var "+i+"=0; "+i+" < "+arr+".length; "+i+"++) {"),this._emitLine("var "+_v+" = "+arr+"["+i+"];"),this._emitLine('frame.set("'+node.name.value+'", '+_v+");"),this._emitLoopBindings(node,arr,i,len),this._withScopedSyntax(function(){_this10.compile(node.body,frame)}),this._emitLine("}")}this._emitLine("}"),node.else_&&(this._emitLine("if (!"+len+") {"),this.compile(node.else_,frame),this._emitLine("}")),this._emitLine("frame = frame.pop();")},_proto._compileAsyncLoop=function(node,frame,parallel){var _this11=this,i=this._tmpid(),len=this._tmpid(),arr=this._tmpid(),asyncMethod=parallel?"asyncAll":"asyncEach";if(frame=frame.push(),this._emitLine("frame = frame.push();"),this._emit("var "+arr+" = runtime.fromIterator("),this._compileExpression(node.arr,frame),this._emitLine(");"),node.name instanceof nodes.Array){var arrayLen=node.name.children.length;this._emit("runtime."+asyncMethod+"("+arr+", "+arrayLen+", function("),node.name.children.forEach(function(name){_this11._emit(name.value+",")}),this._emit(i+","+len+",next) {"),node.name.children.forEach(function(name){var id2=name.value;frame.set(id2,id2),_this11._emitLine('frame.set("'+id2+'", '+id2+");")})}else{var id=node.name.value;this._emitLine("runtime."+asyncMethod+"("+arr+", 1, function("+id+", "+i+", "+len+",next) {"),this._emitLine('frame.set("'+id+'", '+id+");"),frame.set(id,id)}this._emitLoopBindings(node,arr,i,len),this._withScopedSyntax(function(){var buf;parallel&&(buf=_this11._pushBuffer()),_this11.compile(node.body,frame),_this11._emitLine("next("+i+(buf?","+buf:"")+");"),parallel&&_this11._popBuffer()});var output=this._tmpid();this._emitLine("}, "+this._makeCallback(output)),this._addScopeLevel(),parallel&&this._emitLine(this.buffer+" += "+output+";"),node.else_&&(this._emitLine("if (!"+arr+".length) {"),this.compile(node.else_,frame),this._emitLine("}")),this._emitLine("frame = frame.pop();")},_proto.compileAsyncEach=function(node,frame){this._compileAsyncLoop(node,frame)},_proto.compileAsyncAll=function(node,frame){this._compileAsyncLoop(node,frame,!0)},_proto._compileMacro=function(node,frame){var _this12=this,args=[],kwargs=null,funcId="macro_"+this._tmpid(),keepFrame=frame!==void 0;node.args.children.forEach(function(arg,i){i===node.args.children.length-1&&arg instanceof nodes.Dict?kwargs=arg:(_this12.assertType(arg,nodes.Symbol),args.push(arg))});var realNames=[].concat(args.map(function(n){return"l_"+n.value}),["kwargs"]),argNames=args.map(function(n){return'"'+n.value+'"'}),kwargNames=(kwargs&&kwargs.children||[]).map(function(n){return'"'+n.key.value+'"'}),currFrame;keepFrame?currFrame=frame.push(!0):currFrame=new Frame,this._emitLines("var "+funcId+" = runtime.makeMacro(","["+argNames.join(", ")+"], ","["+kwargNames.join(", ")+"], ","function ("+realNames.join(", ")+") {","var callerFrame = frame;","frame = "+(keepFrame?"frame.push(true);":"new runtime.Frame();"),"kwargs = kwargs || {};",'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {','frame.set("caller", kwargs.caller); }'),args.forEach(function(arg){_this12._emitLine('frame.set("'+arg.value+'", l_'+arg.value+");"),currFrame.set(arg.value,"l_"+arg.value)}),kwargs&&kwargs.children.forEach(function(pair){var name=pair.key.value;_this12._emit('frame.set("'+name+'", '),_this12._emit('Object.prototype.hasOwnProperty.call(kwargs, "'+name+'")'),_this12._emit(' ? kwargs["'+name+'"] : '),_this12._compileExpression(pair.value,currFrame),_this12._emit(");")});var bufferId=this._pushBuffer();return this._withScopedSyntax(function(){_this12.compile(node.body,currFrame)}),this._emitLine("frame = "+(keepFrame?"frame.pop();":"callerFrame;")),this._emitLine("return new runtime.SafeString("+bufferId+");"),this._emitLine("});"),this._popBuffer(),funcId},_proto.compileMacro=function(node,frame){var funcId=this._compileMacro(node),name=node.name.value;frame.set(name,funcId),frame.parent?this._emitLine('frame.set("'+name+'", '+funcId+");"):(node.name.value.charAt(0)!=="_"&&this._emitLine('context.addExport("'+name+'");'),this._emitLine('context.setVariable("'+name+'", '+funcId+");"))},_proto.compileCaller=function(node,frame){this._emit("(function (){");var funcId=this._compileMacro(node,frame);this._emit("return "+funcId+";})()")},_proto._compileGetTemplate=function(node,frame,eagerCompile,ignoreMissing){var parentTemplateId=this._tmpid(),parentName=this._templateName(),cb=this._makeCallback(parentTemplateId),eagerCompileArg=eagerCompile?"true":"false",ignoreMissingArg=ignoreMissing?"true":"false";return this._emit("env.getTemplate("),this._compileExpression(node.template,frame),this._emitLine(", "+eagerCompileArg+", "+parentName+", "+ignoreMissingArg+", "+cb),parentTemplateId},_proto.compileImport=function(node,frame){var target=node.target.value,id=this._compileGetTemplate(node,frame,!1,!1);this._addScopeLevel(),this._emitLine(id+".getExported("+(node.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(id)),this._addScopeLevel(),frame.set(target,id),frame.parent?this._emitLine('frame.set("'+target+'", '+id+");"):this._emitLine('context.setVariable("'+target+'", '+id+");")},_proto.compileFromImport=function(node,frame){var _this13=this,importedId=this._compileGetTemplate(node,frame,!1,!1);this._addScopeLevel(),this._emitLine(importedId+".getExported("+(node.withContext?"context.getVariables(), frame, ":"")+this._makeCallback(importedId)),this._addScopeLevel(),node.names.children.forEach(function(nameNode){var name,alias,id=_this13._tmpid();nameNode instanceof nodes.Pair?(name=nameNode.key.value,alias=nameNode.value.value):(name=nameNode.value,alias=name),_this13._emitLine("if(Object.prototype.hasOwnProperty.call("+importedId+', "'+name+'")) {'),_this13._emitLine("var "+id+" = "+importedId+"."+name+";"),_this13._emitLine("} else {"),_this13._emitLine(`cb(new Error("cannot import '`+name+`'")); return;`),_this13._emitLine("}"),frame.set(alias,id),frame.parent?_this13._emitLine('frame.set("'+alias+'", '+id+");"):_this13._emitLine('context.setVariable("'+alias+'", '+id+");")})},_proto.compileBlock=function(node){var id=this._tmpid();this.inBlock||this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : '),this._emit('context.getBlock("'+node.name.value+'")'),this.inBlock||this._emit(")"),this._emitLine("(env, context, frame, runtime, "+this._makeCallback(id)),this._emitLine(this.buffer+" += "+id+";"),this._addScopeLevel()},_proto.compileSuper=function(node,frame){var name=node.blockName.value,id=node.symbol.value,cb=this._makeCallback(id);this._emitLine('context.getSuper(env, "'+name+'", b_'+name+", frame, runtime, "+cb),this._emitLine(id+" = runtime.markSafe("+id+");"),this._addScopeLevel(),frame.set(id,id)},_proto.compileExtends=function(node,frame){var k=this._tmpid(),parentTemplateId=this._compileGetTemplate(node,frame,!0,!1);this._emitLine("parentTemplate = "+parentTemplateId),this._emitLine("for(var "+k+" in parentTemplate.blocks) {"),this._emitLine("context.addBlock("+k+", parentTemplate.blocks["+k+"]);"),this._emitLine("}"),this._addScopeLevel()},_proto.compileInclude=function(node,frame){this._emitLine("var tasks = [];"),this._emitLine("tasks.push("),this._emitLine("function(callback) {");var id=this._compileGetTemplate(node,frame,!1,node.ignoreMissing);this._emitLine("callback(null,"+id+");});"),this._emitLine("});");var id2=this._tmpid();this._emitLine("tasks.push("),this._emitLine("function(template, callback){"),this._emitLine("template.render(context.getVariables(), frame, "+this._makeCallback(id2)),this._emitLine("callback(null,"+id2+");});"),this._emitLine("});"),this._emitLine("tasks.push("),this._emitLine("function(result, callback){"),this._emitLine(this.buffer+" += result;"),this._emitLine("callback(null);"),this._emitLine("});"),this._emitLine("env.waterfall(tasks, function(){"),this._addScopeLevel()},_proto.compileTemplateData=function(node,frame){this.compileLiteral(node,frame)},_proto.compileCapture=function(node,frame){var _this14=this,buffer=this.buffer;this.buffer="output",this._emitLine("(function() {"),this._emitLine('var output = "";'),this._withScopedSyntax(function(){_this14.compile(node.body,frame)}),this._emitLine("return output;"),this._emitLine("})()"),this.buffer=buffer},_proto.compileOutput=function(node,frame){var _this15=this,children=node.children;children.forEach(function(child2){child2 instanceof nodes.TemplateData?child2.value&&(_this15._emit(_this15.buffer+" += "),_this15.compileLiteral(child2,frame),_this15._emitLine(";")):(_this15._emit(_this15.buffer+" += runtime.suppressValue("),_this15.throwOnUndefined&&_this15._emit("runtime.ensureDefined("),_this15.compile(child2,frame),_this15.throwOnUndefined&&_this15._emit(","+node.lineno+","+node.colno+")"),_this15._emit(`, env.opts.autoescape);
`))})},_proto.compileRoot=function(node,frame){var _this16=this;frame&&this.fail("compileRoot: root node can't have frame"),frame=new Frame,this._emitFuncBegin(node,"root"),this._emitLine("var parentTemplate = null;"),this._compileChildren(node,frame),this._emitLine("if(parentTemplate) {"),this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"),this._emitLine("} else {"),this._emitLine("cb(null, "+this.buffer+");"),this._emitLine("}"),this._emitFuncEnd(!0),this.inBlock=!0;var blockNames=[],blocks=node.findAll(nodes.Block);blocks.forEach(function(block2,i){var name=block2.name.value;if(blockNames.indexOf(name)!==-1)throw new Error('Block "'+name+'" defined more than once.');blockNames.push(name),_this16._emitFuncBegin(block2,"b_"+name);var tmpFrame=new Frame;_this16._emitLine("var frame = frame.push(true);"),_this16.compile(block2.body,tmpFrame),_this16._emitFuncEnd()}),this._emitLine("return {"),blocks.forEach(function(block2,i){var blockName="b_"+block2.name.value;_this16._emitLine(blockName+": "+blockName+",")}),this._emitLine(`root: root
};`)},_proto.compile=function(node,frame){var _compile=this["compile"+node.typename];_compile?_compile.call(this,node,frame):this.fail("compile: Cannot compile node: "+node.typename,node.lineno,node.colno)},_proto.getCode=function(){return this.codebuf.join("")},Compiler2})(Obj);module3.exports={compile:function(src,asyncFilters,extensions,name,opts){opts===void 0&&(opts={});var c2=new Compiler(name,opts.throwOnUndefined),preprocessors=(extensions||[]).map(function(ext){return ext.preprocess}).filter(function(f){return!!f}),processedSrc=preprocessors.reduce(function(s,processor){return processor(s)},src);return c2.compile(transformer.transform(parser.parse(processedSrc,extensions,opts),asyncFilters,name)),c2.getCode()},Compiler}}),(function(module3,exports2,__webpack_require__){"use strict";function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}var path=__webpack_require__(4),_require=__webpack_require__(1),EmitterObj=_require.EmitterObj;module3.exports=(function(_EmitterObj){_inheritsLoose(Loader,_EmitterObj);function Loader(){return _EmitterObj.apply(this,arguments)||this}var _proto=Loader.prototype;return _proto.resolve=function(from,to){return path.resolve(path.dirname(from),to)},_proto.isRelative=function(filename){return filename.indexOf("./")===0||filename.indexOf("../")===0},Loader})(EmitterObj)}),(function(module3,exports2,__webpack_require__){"use strict";function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}var asap2=__webpack_require__(12),_waterfall=__webpack_require__(15),lib=__webpack_require__(0),compiler=__webpack_require__(5),filters=__webpack_require__(18),_require=__webpack_require__(10),FileSystemLoader=_require.FileSystemLoader,WebLoader=_require.WebLoader,PrecompiledLoader=_require.PrecompiledLoader,tests=__webpack_require__(20),globals=__webpack_require__(21),_require2=__webpack_require__(1),Obj=_require2.Obj,EmitterObj=_require2.EmitterObj,globalRuntime=__webpack_require__(2),handleError=globalRuntime.handleError,Frame=globalRuntime.Frame,expressApp=__webpack_require__(22);function callbackAsap(cb,err,res){asap2(function(){cb(err,res)})}var noopTmplSrc={type:"code",obj:{root:function(env,context,frame,runtime,cb){try{cb(null,"")}catch(e){cb(handleError(e,null,null))}}}},Environment=(function(_EmitterObj){_inheritsLoose(Environment2,_EmitterObj);function Environment2(){return _EmitterObj.apply(this,arguments)||this}var _proto=Environment2.prototype;return _proto.init=function(loaders,opts){var _this=this;opts=this.opts=opts||{},this.opts.dev=!!opts.dev,this.opts.autoescape=opts.autoescape!=null?opts.autoescape:!0,this.opts.throwOnUndefined=!!opts.throwOnUndefined,this.opts.trimBlocks=!!opts.trimBlocks,this.opts.lstripBlocks=!!opts.lstripBlocks,this.loaders=[],loaders?this.loaders=lib.isArray(loaders)?loaders:[loaders]:FileSystemLoader?this.loaders=[new FileSystemLoader("views")]:WebLoader&&(this.loaders=[new WebLoader("/views")]),typeof window!="undefined"&&window.nunjucksPrecompiled&&this.loaders.unshift(new PrecompiledLoader(window.nunjucksPrecompiled)),this._initLoaders(),this.globals=globals(),this.filters={},this.tests={},this.asyncFilters=[],this.extensions={},this.extensionsList=[],lib._entries(filters).forEach(function(_ref){var name=_ref[0],filter2=_ref[1];return _this.addFilter(name,filter2)}),lib._entries(tests).forEach(function(_ref2){var name=_ref2[0],test2=_ref2[1];return _this.addTest(name,test2)})},_proto._initLoaders=function(){var _this2=this;this.loaders.forEach(function(loader){loader.cache={},typeof loader.on=="function"&&(loader.on("update",function(name,fullname){loader.cache[name]=null,_this2.emit("update",name,fullname,loader)}),loader.on("load",function(name,source2){_this2.emit("load",name,source2,loader)}))})},_proto.invalidateCache=function(){this.loaders.forEach(function(loader){loader.cache={}})},_proto.addExtension=function(name,extension){return extension.__name=name,this.extensions[name]=extension,this.extensionsList.push(extension),this},_proto.removeExtension=function(name){var extension=this.getExtension(name);extension&&(this.extensionsList=lib.without(this.extensionsList,extension),delete this.extensions[name])},_proto.getExtension=function(name){return this.extensions[name]},_proto.hasExtension=function(name){return!!this.extensions[name]},_proto.addGlobal=function(name,value){return this.globals[name]=value,this},_proto.getGlobal=function(name){if(typeof this.globals[name]=="undefined")throw new Error("global not found: "+name);return this.globals[name]},_proto.addFilter=function(name,func,async2){var wrapped=func;return async2&&this.asyncFilters.push(name),this.filters[name]=wrapped,this},_proto.getFilter=function(name){if(!this.filters[name])throw new Error("filter not found: "+name);return this.filters[name]},_proto.addTest=function(name,func){return this.tests[name]=func,this},_proto.getTest=function(name){if(!this.tests[name])throw new Error("test not found: "+name);return this.tests[name]},_proto.resolveTemplate=function(loader,parentName,filename){var isRelative=loader.isRelative&&parentName?loader.isRelative(filename):!1;return isRelative&&loader.resolve?loader.resolve(parentName,filename):filename},_proto.getTemplate=function(name,eagerCompile,parentName,ignoreMissing,cb){var _this3=this,that=this,tmpl=null;if(name&&name.raw&&(name=name.raw),lib.isFunction(parentName)&&(cb=parentName,parentName=null,eagerCompile=eagerCompile||!1),lib.isFunction(eagerCompile)&&(cb=eagerCompile,eagerCompile=!1),name instanceof Template)tmpl=name;else{if(typeof name!="string")throw new Error("template names must be a string: "+name);for(var i=0;i<this.loaders.length;i++){var loader=this.loaders[i];if(tmpl=loader.cache[this.resolveTemplate(loader,parentName,name)],tmpl)break}}if(tmpl)if(eagerCompile&&tmpl.compile(),cb){cb(null,tmpl);return}else return tmpl;var syncResult,createTemplate=function(err,info){if(!info&&!err&&!ignoreMissing&&(err=new Error("template not found: "+name)),err)if(cb){cb(err);return}else throw err;var newTmpl;info?(newTmpl=new Template(info.src,_this3,info.path,eagerCompile),info.noCache||(info.loader.cache[name]=newTmpl)):newTmpl=new Template(noopTmplSrc,_this3,"",eagerCompile),cb?cb(null,newTmpl):syncResult=newTmpl};return lib.asyncIter(this.loaders,function(loader2,i2,next2,done){function handle(err,src){err?done(err):src?(src.loader=loader2,done(null,src)):next2()}name=that.resolveTemplate(loader2,parentName,name),loader2.async?loader2.getSource(name,handle):handle(null,loader2.getSource(name))},createTemplate),syncResult},_proto.express=function(app){return expressApp(this,app)},_proto.render=function(name,ctx,cb){lib.isFunction(ctx)&&(cb=ctx,ctx=null);var syncResult=null;return this.getTemplate(name,function(err,tmpl){if(err&&cb)callbackAsap(cb,err);else{if(err)throw err;syncResult=tmpl.render(ctx,cb)}}),syncResult},_proto.renderString=function(src,ctx,opts,cb){lib.isFunction(opts)&&(cb=opts,opts={}),opts=opts||{};var tmpl=new Template(src,this,opts.path);return tmpl.render(ctx,cb)},_proto.waterfall=function(tasks,callback,forceAsync){return _waterfall(tasks,callback,forceAsync)},Environment2})(EmitterObj),Context=(function(_Obj){_inheritsLoose(Context2,_Obj);function Context2(){return _Obj.apply(this,arguments)||this}var _proto2=Context2.prototype;return _proto2.init=function(ctx,blocks,env){var _this4=this;this.env=env||new Environment,this.ctx=lib.extend({},ctx),this.blocks={},this.exported=[],lib.keys(blocks).forEach(function(name){_this4.addBlock(name,blocks[name])})},_proto2.lookup=function(name){return name in this.env.globals&&!(name in this.ctx)?this.env.globals[name]:this.ctx[name]},_proto2.setVariable=function(name,val){this.ctx[name]=val},_proto2.getVariables=function(){return this.ctx},_proto2.addBlock=function(name,block2){return this.blocks[name]=this.blocks[name]||[],this.blocks[name].push(block2),this},_proto2.getBlock=function(name){if(!this.blocks[name])throw new Error('unknown block "'+name+'"');return this.blocks[name][0]},_proto2.getSuper=function(env,name,block2,frame,runtime,cb){var idx=lib.indexOf(this.blocks[name]||[],block2),blk=this.blocks[name][idx+1],context=this;if(idx===-1||!blk)throw new Error('no super block available for "'+name+'"');blk(env,context,frame,runtime,cb)},_proto2.addExport=function(name){this.exported.push(name)},_proto2.getExported=function(){var _this5=this,exported={};return this.exported.forEach(function(name){exported[name]=_this5.ctx[name]}),exported},Context2})(Obj),Template=(function(_Obj2){_inheritsLoose(Template2,_Obj2);function Template2(){return _Obj2.apply(this,arguments)||this}var _proto3=Template2.prototype;return _proto3.init=function(src,env,path,eagerCompile){if(this.env=env||new Environment,lib.isObject(src))switch(src.type){case"code":this.tmplProps=src.obj;break;case"string":this.tmplStr=src.obj;break;default:throw new Error("Unexpected template object type "+src.type+"; expected 'code', or 'string'")}else if(lib.isString(src))this.tmplStr=src;else throw new Error("src must be a string or an object describing the source");if(this.path=path,eagerCompile)try{this._compile()}catch(err){throw lib._prettifyError(this.path,this.env.opts.dev,err)}else this.compiled=!1},_proto3.render=function(ctx,parentFrame,cb){var _this6=this;typeof ctx=="function"?(cb=ctx,ctx={}):typeof parentFrame=="function"&&(cb=parentFrame,parentFrame=null);var forceAsync=!parentFrame;try{this.compile()}catch(e){var err=lib._prettifyError(this.path,this.env.opts.dev,e);if(cb)return callbackAsap(cb,err);throw err}var context=new Context(ctx||{},this.blocks,this.env),frame=parentFrame?parentFrame.push(!0):new Frame;frame.topLevel=!0;var syncResult=null,didError=!1;return this.rootRenderFunc(this.env,context,frame,globalRuntime,function(err2,res){if(!(didError&&cb&&typeof res!="undefined"))if(err2&&(err2=lib._prettifyError(_this6.path,_this6.env.opts.dev,err2),didError=!0),cb)forceAsync?callbackAsap(cb,err2,res):cb(err2,res);else{if(err2)throw err2;syncResult=res}}),syncResult},_proto3.getExported=function(ctx,parentFrame,cb){typeof ctx=="function"&&(cb=ctx,ctx={}),typeof parentFrame=="function"&&(cb=parentFrame,parentFrame=null);try{this.compile()}catch(e){if(cb)return cb(e);throw e}var frame=parentFrame?parentFrame.push():new Frame;frame.topLevel=!0;var context=new Context(ctx||{},this.blocks,this.env);this.rootRenderFunc(this.env,context,frame,globalRuntime,function(err){err?cb(err,null):cb(null,context.getExported())})},_proto3.compile=function(){this.compiled||this._compile()},_proto3._compile=function(){var props;if(this.tmplProps)props=this.tmplProps;else{var source2=compiler.compile(this.tmplStr,this.env.asyncFilters,this.env.extensionsList,this.path,this.env.opts),func=new Function(source2);props=func()}this.blocks=this._getBlocks(props),this.rootRenderFunc=props.root,this.compiled=!0},_proto3._getBlocks=function(props){var blocks={};return lib.keys(props).forEach(function(k){k.slice(0,2)==="b_"&&(blocks[k.slice(2)]=props[k])}),blocks},Template2})(Obj);module3.exports={Environment,Template}}),(function(module3,exports2,__webpack_require__){"use strict";function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}var lexer=__webpack_require__(9),nodes=__webpack_require__(3),Obj=__webpack_require__(1).Obj,lib=__webpack_require__(0),Parser=(function(_Obj){_inheritsLoose(Parser2,_Obj);function Parser2(){return _Obj.apply(this,arguments)||this}var _proto=Parser2.prototype;return _proto.init=function(tokens){this.tokens=tokens,this.peeked=null,this.breakOnBlocks=null,this.dropLeadingWhitespace=!1,this.extensions=[]},_proto.nextToken=function(withWhitespace){var tok;if(this.peeked)if(!withWhitespace&&this.peeked.type===lexer.TOKEN_WHITESPACE)this.peeked=null;else return tok=this.peeked,this.peeked=null,tok;if(tok=this.tokens.nextToken(),!withWhitespace)for(;tok&&tok.type===lexer.TOKEN_WHITESPACE;)tok=this.tokens.nextToken();return tok},_proto.peekToken=function(){return this.peeked=this.peeked||this.nextToken(),this.peeked},_proto.pushToken=function(tok){if(this.peeked)throw new Error("pushToken: can only push one token on between reads");this.peeked=tok},_proto.error=function(msg,lineno,colno){if(lineno===void 0||colno===void 0){var tok=this.peekToken()||{};lineno=tok.lineno,colno=tok.colno}return lineno!==void 0&&(lineno+=1),colno!==void 0&&(colno+=1),new lib.TemplateError(msg,lineno,colno)},_proto.fail=function(msg,lineno,colno){throw this.error(msg,lineno,colno)},_proto.skip=function(type){var tok=this.nextToken();return!tok||tok.type!==type?(this.pushToken(tok),!1):!0},_proto.expect=function(type){var tok=this.nextToken();return tok.type!==type&&this.fail("expected "+type+", got "+tok.type,tok.lineno,tok.colno),tok},_proto.skipValue=function(type,val){var tok=this.nextToken();return!tok||tok.type!==type||tok.value!==val?(this.pushToken(tok),!1):!0},_proto.skipSymbol=function(val){return this.skipValue(lexer.TOKEN_SYMBOL,val)},_proto.advanceAfterBlockEnd=function(name){var tok;return name||(tok=this.peekToken(),tok||this.fail("unexpected end of file"),tok.type!==lexer.TOKEN_SYMBOL&&this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"),name=this.nextToken().value),tok=this.nextToken(),tok&&tok.type===lexer.TOKEN_BLOCK_END?tok.value.charAt(0)==="-"&&(this.dropLeadingWhitespace=!0):this.fail("expected block end in "+name+" statement"),tok},_proto.advanceAfterVariableEnd=function(){var tok=this.nextToken();tok&&tok.type===lexer.TOKEN_VARIABLE_END?this.dropLeadingWhitespace=tok.value.charAt(tok.value.length-this.tokens.tags.VARIABLE_END.length-1)==="-":(this.pushToken(tok),this.fail("expected variable end"))},_proto.parseFor=function(){var forTok=this.peekToken(),node,endBlock;this.skipSymbol("for")?(node=new nodes.For(forTok.lineno,forTok.colno),endBlock="endfor"):this.skipSymbol("asyncEach")?(node=new nodes.AsyncEach(forTok.lineno,forTok.colno),endBlock="endeach"):this.skipSymbol("asyncAll")?(node=new nodes.AsyncAll(forTok.lineno,forTok.colno),endBlock="endall"):this.fail("parseFor: expected for{Async}",forTok.lineno,forTok.colno),node.name=this.parsePrimary(),node.name instanceof nodes.Symbol||this.fail("parseFor: variable name expected for loop");var type=this.peekToken().type;if(type===lexer.TOKEN_COMMA){var key2=node.name;for(node.name=new nodes.Array(key2.lineno,key2.colno),node.name.addChild(key2);this.skip(lexer.TOKEN_COMMA);){var prim=this.parsePrimary();node.name.addChild(prim)}}return this.skipSymbol("in")||this.fail('parseFor: expected "in" keyword for loop',forTok.lineno,forTok.colno),node.arr=this.parseExpression(),this.advanceAfterBlockEnd(forTok.value),node.body=this.parseUntilBlocks(endBlock,"else"),this.skipSymbol("else")&&(this.advanceAfterBlockEnd("else"),node.else_=this.parseUntilBlocks(endBlock)),this.advanceAfterBlockEnd(),node},_proto.parseMacro=function(){var macroTok=this.peekToken();this.skipSymbol("macro")||this.fail("expected macro");var name=this.parsePrimary(!0),args=this.parseSignature(),node=new nodes.Macro(macroTok.lineno,macroTok.colno,name,args);return this.advanceAfterBlockEnd(macroTok.value),node.body=this.parseUntilBlocks("endmacro"),this.advanceAfterBlockEnd(),node},_proto.parseCall=function(){var callTok=this.peekToken();this.skipSymbol("call")||this.fail("expected call");var callerArgs=this.parseSignature(!0)||new nodes.NodeList,macroCall=this.parsePrimary();this.advanceAfterBlockEnd(callTok.value);var body=this.parseUntilBlocks("endcall");this.advanceAfterBlockEnd();var callerName=new nodes.Symbol(callTok.lineno,callTok.colno,"caller"),callerNode=new nodes.Caller(callTok.lineno,callTok.colno,callerName,callerArgs,body),args=macroCall.args.children;args[args.length-1]instanceof nodes.KeywordArgs||args.push(new nodes.KeywordArgs);var kwargs=args[args.length-1];return kwargs.addChild(new nodes.Pair(callTok.lineno,callTok.colno,callerName,callerNode)),new nodes.Output(callTok.lineno,callTok.colno,[macroCall])},_proto.parseWithContext=function(){var tok=this.peekToken(),withContext=null;return this.skipSymbol("with")?withContext=!0:this.skipSymbol("without")&&(withContext=!1),withContext!==null&&(this.skipSymbol("context")||this.fail("parseFrom: expected context after with/without",tok.lineno,tok.colno)),withContext},_proto.parseImport=function(){var importTok=this.peekToken();this.skipSymbol("import")||this.fail("parseImport: expected import",importTok.lineno,importTok.colno);var template=this.parseExpression();this.skipSymbol("as")||this.fail('parseImport: expected "as" keyword',importTok.lineno,importTok.colno);var target=this.parseExpression(),withContext=this.parseWithContext(),node=new nodes.Import(importTok.lineno,importTok.colno,template,target,withContext);return this.advanceAfterBlockEnd(importTok.value),node},_proto.parseFrom=function(){var fromTok=this.peekToken();this.skipSymbol("from")||this.fail("parseFrom: expected from");var template=this.parseExpression();this.skipSymbol("import")||this.fail("parseFrom: expected import",fromTok.lineno,fromTok.colno);for(var names=new nodes.NodeList,withContext;;){var nextTok=this.peekToken();if(nextTok.type===lexer.TOKEN_BLOCK_END){names.children.length||this.fail("parseFrom: Expected at least one import name",fromTok.lineno,fromTok.colno),nextTok.value.charAt(0)==="-"&&(this.dropLeadingWhitespace=!0),this.nextToken();break}names.children.length>0&&!this.skip(lexer.TOKEN_COMMA)&&this.fail("parseFrom: expected comma",fromTok.lineno,fromTok.colno);var name=this.parsePrimary();if(name.value.charAt(0)==="_"&&this.fail("parseFrom: names starting with an underscore cannot be imported",name.lineno,name.colno),this.skipSymbol("as")){var alias=this.parsePrimary();names.addChild(new nodes.Pair(name.lineno,name.colno,name,alias))}else names.addChild(name);withContext=this.parseWithContext()}return new nodes.FromImport(fromTok.lineno,fromTok.colno,template,names,withContext)},_proto.parseBlock=function(){var tag2=this.peekToken();this.skipSymbol("block")||this.fail("parseBlock: expected block",tag2.lineno,tag2.colno);var node=new nodes.Block(tag2.lineno,tag2.colno);node.name=this.parsePrimary(),node.name instanceof nodes.Symbol||this.fail("parseBlock: variable name expected",tag2.lineno,tag2.colno),this.advanceAfterBlockEnd(tag2.value),node.body=this.parseUntilBlocks("endblock"),this.skipSymbol("endblock"),this.skipSymbol(node.name.value);var tok=this.peekToken();return tok||this.fail("parseBlock: expected endblock, got end of file"),this.advanceAfterBlockEnd(tok.value),node},_proto.parseExtends=function(){var tagName="extends",tag2=this.peekToken();this.skipSymbol(tagName)||this.fail("parseTemplateRef: expected "+tagName);var node=new nodes.Extends(tag2.lineno,tag2.colno);return node.template=this.parseExpression(),this.advanceAfterBlockEnd(tag2.value),node},_proto.parseInclude=function(){var tagName="include",tag2=this.peekToken();this.skipSymbol(tagName)||this.fail("parseInclude: expected "+tagName);var node=new nodes.Include(tag2.lineno,tag2.colno);return node.template=this.parseExpression(),this.skipSymbol("ignore")&&this.skipSymbol("missing")&&(node.ignoreMissing=!0),this.advanceAfterBlockEnd(tag2.value),node},_proto.parseIf=function(){var tag2=this.peekToken(),node;this.skipSymbol("if")||this.skipSymbol("elif")||this.skipSymbol("elseif")?node=new nodes.If(tag2.lineno,tag2.colno):this.skipSymbol("ifAsync")?node=new nodes.IfAsync(tag2.lineno,tag2.colno):this.fail("parseIf: expected if, elif, or elseif",tag2.lineno,tag2.colno),node.cond=this.parseExpression(),this.advanceAfterBlockEnd(tag2.value),node.body=this.parseUntilBlocks("elif","elseif","else","endif");var tok=this.peekToken();switch(tok&&tok.value){case"elseif":case"elif":node.else_=this.parseIf();break;case"else":this.advanceAfterBlockEnd(),node.else_=this.parseUntilBlocks("endif"),this.advanceAfterBlockEnd();break;case"endif":node.else_=null,this.advanceAfterBlockEnd();break;default:this.fail("parseIf: expected elif, else, or endif, got end of file")}return node},_proto.parseSet=function(){var tag2=this.peekToken();this.skipSymbol("set")||this.fail("parseSet: expected set",tag2.lineno,tag2.colno);for(var node=new nodes.Set(tag2.lineno,tag2.colno,[]),target;(target=this.parsePrimary())&&(node.targets.push(target),!!this.skip(lexer.TOKEN_COMMA)););return this.skipValue(lexer.TOKEN_OPERATOR,"=")?(node.value=this.parseExpression(),this.advanceAfterBlockEnd(tag2.value)):this.skip(lexer.TOKEN_BLOCK_END)?(node.body=new nodes.Capture(tag2.lineno,tag2.colno,this.parseUntilBlocks("endset")),node.value=null,this.advanceAfterBlockEnd()):this.fail("parseSet: expected = or block end in set tag",tag2.lineno,tag2.colno),node},_proto.parseSwitch=function(){var switchStart="switch",switchEnd="endswitch",caseStart="case",caseDefault="default",tag2=this.peekToken();!this.skipSymbol(switchStart)&&!this.skipSymbol(caseStart)&&!this.skipSymbol(caseDefault)&&this.fail('parseSwitch: expected "switch," "case" or "default"',tag2.lineno,tag2.colno);var expr=this.parseExpression();this.advanceAfterBlockEnd(switchStart),this.parseUntilBlocks(caseStart,caseDefault,switchEnd);var tok=this.peekToken(),cases=[],defaultCase;do{this.skipSymbol(caseStart);var cond=this.parseExpression();this.advanceAfterBlockEnd(switchStart);var body=this.parseUntilBlocks(caseStart,caseDefault,switchEnd);cases.push(new nodes.Case(tok.line,tok.col,cond,body)),tok=this.peekToken()}while(tok&&tok.value===caseStart);switch(tok.value){case caseDefault:this.advanceAfterBlockEnd(),defaultCase=this.parseUntilBlocks(switchEnd),this.advanceAfterBlockEnd();break;case switchEnd:this.advanceAfterBlockEnd();break;default:this.fail('parseSwitch: expected "case," "default" or "endswitch," got EOF.')}return new nodes.Switch(tag2.lineno,tag2.colno,expr,cases,defaultCase)},_proto.parseStatement=function(){var tok=this.peekToken(),node;if(tok.type!==lexer.TOKEN_SYMBOL&&this.fail("tag name expected",tok.lineno,tok.colno),this.breakOnBlocks&&lib.indexOf(this.breakOnBlocks,tok.value)!==-1)return null;switch(tok.value){case"raw":return this.parseRaw();case"verbatim":return this.parseRaw("verbatim");case"if":case"ifAsync":return this.parseIf();case"for":case"asyncEach":case"asyncAll":return this.parseFor();case"block":return this.parseBlock();case"extends":return this.parseExtends();case"include":return this.parseInclude();case"set":return this.parseSet();case"macro":return this.parseMacro();case"call":return this.parseCall();case"import":return this.parseImport();case"from":return this.parseFrom();case"filter":return this.parseFilterStatement();case"switch":return this.parseSwitch();default:if(this.extensions.length)for(var i=0;i<this.extensions.length;i++){var ext=this.extensions[i];if(lib.indexOf(ext.tags||[],tok.value)!==-1)return ext.parse(this,nodes,lexer)}this.fail("unknown block tag: "+tok.value,tok.lineno,tok.colno)}return node},_proto.parseRaw=function(tagName){tagName=tagName||"raw";for(var endTagName="end"+tagName,rawBlockRegex=new RegExp("([\\s\\S]*?){%\\s*("+tagName+"|"+endTagName+")\\s*(?=%})%}"),rawLevel=1,str="",matches=null,begun=this.advanceAfterBlockEnd();(matches=this.tokens._extractRegex(rawBlockRegex))&&rawLevel>0;){var all3=matches[0],pre=matches[1],blockName=matches[2];blockName===tagName?rawLevel+=1:blockName===endTagName&&(rawLevel-=1),rawLevel===0?(str+=pre,this.tokens.backN(all3.length-pre.length)):str+=all3}return new nodes.Output(begun.lineno,begun.colno,[new nodes.TemplateData(begun.lineno,begun.colno,str)])},_proto.parsePostfix=function(node){for(var lookup,tok=this.peekToken();tok;){if(tok.type===lexer.TOKEN_LEFT_PAREN)node=new nodes.FunCall(tok.lineno,tok.colno,node,this.parseSignature());else if(tok.type===lexer.TOKEN_LEFT_BRACKET)lookup=this.parseAggregate(),lookup.children.length>1&&this.fail("invalid index"),node=new nodes.LookupVal(tok.lineno,tok.colno,node,lookup.children[0]);else if(tok.type===lexer.TOKEN_OPERATOR&&tok.value==="."){this.nextToken();var val=this.nextToken();val.type!==lexer.TOKEN_SYMBOL&&this.fail("expected name as lookup value, got "+val.value,val.lineno,val.colno),lookup=new nodes.Literal(val.lineno,val.colno,val.value),node=new nodes.LookupVal(tok.lineno,tok.colno,node,lookup)}else break;tok=this.peekToken()}return node},_proto.parseExpression=function(){var node=this.parseInlineIf();return node},_proto.parseInlineIf=function(){var node=this.parseOr();if(this.skipSymbol("if")){var condNode=this.parseOr(),bodyNode=node;node=new nodes.InlineIf(node.lineno,node.colno),node.body=bodyNode,node.cond=condNode,this.skipSymbol("else")?node.else_=this.parseOr():node.else_=null}return node},_proto.parseOr=function(){for(var node=this.parseAnd();this.skipSymbol("or");){var node2=this.parseAnd();node=new nodes.Or(node.lineno,node.colno,node,node2)}return node},_proto.parseAnd=function(){for(var node=this.parseNot();this.skipSymbol("and");){var node2=this.parseNot();node=new nodes.And(node.lineno,node.colno,node,node2)}return node},_proto.parseNot=function(){var tok=this.peekToken();return this.skipSymbol("not")?new nodes.Not(tok.lineno,tok.colno,this.parseNot()):this.parseIn()},_proto.parseIn=function(){for(var node=this.parseIs();;){var tok=this.nextToken();if(!tok)break;var invert=tok.type===lexer.TOKEN_SYMBOL&&tok.value==="not";if(invert||this.pushToken(tok),this.skipSymbol("in")){var node2=this.parseIs();node=new nodes.In(node.lineno,node.colno,node,node2),invert&&(node=new nodes.Not(node.lineno,node.colno,node))}else{invert&&this.pushToken(tok);break}}return node},_proto.parseIs=function(){var node=this.parseCompare();if(this.skipSymbol("is")){var not=this.skipSymbol("not"),node2=this.parseCompare();node=new nodes.Is(node.lineno,node.colno,node,node2),not&&(node=new nodes.Not(node.lineno,node.colno,node))}return node},_proto.parseCompare=function(){for(var compareOps=["==","===","!=","!==","<",">","<=",">="],expr=this.parseConcat(),ops=[];;){var tok=this.nextToken();if(tok)if(compareOps.indexOf(tok.value)!==-1)ops.push(new nodes.CompareOperand(tok.lineno,tok.colno,this.parseConcat(),tok.value));else{this.pushToken(tok);break}else break}return ops.length?new nodes.Compare(ops[0].lineno,ops[0].colno,expr,ops):expr},_proto.parseConcat=function(){for(var node=this.parseAdd();this.skipValue(lexer.TOKEN_TILDE,"~");){var node2=this.parseAdd();node=new nodes.Concat(node.lineno,node.colno,node,node2)}return node},_proto.parseAdd=function(){for(var node=this.parseSub();this.skipValue(lexer.TOKEN_OPERATOR,"+");){var node2=this.parseSub();node=new nodes.Add(node.lineno,node.colno,node,node2)}return node},_proto.parseSub=function(){for(var node=this.parseMul();this.skipValue(lexer.TOKEN_OPERATOR,"-");){var node2=this.parseMul();node=new nodes.Sub(node.lineno,node.colno,node,node2)}return node},_proto.parseMul=function(){for(var node=this.parseDiv();this.skipValue(lexer.TOKEN_OPERATOR,"*");){var node2=this.parseDiv();node=new nodes.Mul(node.lineno,node.colno,node,node2)}return node},_proto.parseDiv=function(){for(var node=this.parseFloorDiv();this.skipValue(lexer.TOKEN_OPERATOR,"/");){var node2=this.parseFloorDiv();node=new nodes.Div(node.lineno,node.colno,node,node2)}return node},_proto.parseFloorDiv=function(){for(var node=this.parseMod();this.skipValue(lexer.TOKEN_OPERATOR,"//");){var node2=this.parseMod();node=new nodes.FloorDiv(node.lineno,node.colno,node,node2)}return node},_proto.parseMod=function(){for(var node=this.parsePow();this.skipValue(lexer.TOKEN_OPERATOR,"%");){var node2=this.parsePow();node=new nodes.Mod(node.lineno,node.colno,node,node2)}return node},_proto.parsePow=function(){for(var node=this.parseUnary();this.skipValue(lexer.TOKEN_OPERATOR,"**");){var node2=this.parseUnary();node=new nodes.Pow(node.lineno,node.colno,node,node2)}return node},_proto.parseUnary=function(noFilters){var tok=this.peekToken(),node;return this.skipValue(lexer.TOKEN_OPERATOR,"-")?node=new nodes.Neg(tok.lineno,tok.colno,this.parseUnary(!0)):this.skipValue(lexer.TOKEN_OPERATOR,"+")?node=new nodes.Pos(tok.lineno,tok.colno,this.parseUnary(!0)):node=this.parsePrimary(),noFilters||(node=this.parseFilter(node)),node},_proto.parsePrimary=function(noPostfix){var tok=this.nextToken(),val,node=null;if(tok?tok.type===lexer.TOKEN_STRING?val=tok.value:tok.type===lexer.TOKEN_INT?val=parseInt(tok.value,10):tok.type===lexer.TOKEN_FLOAT?val=parseFloat(tok.value):tok.type===lexer.TOKEN_BOOLEAN?tok.value==="true"?val=!0:tok.value==="false"?val=!1:this.fail("invalid boolean: "+tok.value,tok.lineno,tok.colno):tok.type===lexer.TOKEN_NONE?val=null:tok.type===lexer.TOKEN_REGEX&&(val=new RegExp(tok.value.body,tok.value.flags)):this.fail("expected expression, got end of file"),val!==void 0?node=new nodes.Literal(tok.lineno,tok.colno,val):tok.type===lexer.TOKEN_SYMBOL?node=new nodes.Symbol(tok.lineno,tok.colno,tok.value):(this.pushToken(tok),node=this.parseAggregate()),noPostfix||(node=this.parsePostfix(node)),node)return node;throw this.error("unexpected token: "+tok.value,tok.lineno,tok.colno)},_proto.parseFilterName=function(){for(var tok=this.expect(lexer.TOKEN_SYMBOL),name=tok.value;this.skipValue(lexer.TOKEN_OPERATOR,".");)name+="."+this.expect(lexer.TOKEN_SYMBOL).value;return new nodes.Symbol(tok.lineno,tok.colno,name)},_proto.parseFilterArgs=function(node){if(this.peekToken().type===lexer.TOKEN_LEFT_PAREN){var call=this.parsePostfix(node);return call.args.children}return[]},_proto.parseFilter=function(node){for(;this.skip(lexer.TOKEN_PIPE);){var name=this.parseFilterName();node=new nodes.Filter(name.lineno,name.colno,name,new nodes.NodeList(name.lineno,name.colno,[node].concat(this.parseFilterArgs(node))))}return node},_proto.parseFilterStatement=function(){var filterTok=this.peekToken();this.skipSymbol("filter")||this.fail("parseFilterStatement: expected filter");var name=this.parseFilterName(),args=this.parseFilterArgs(name);this.advanceAfterBlockEnd(filterTok.value);var body=new nodes.Capture(name.lineno,name.colno,this.parseUntilBlocks("endfilter"));this.advanceAfterBlockEnd();var node=new nodes.Filter(name.lineno,name.colno,name,new nodes.NodeList(name.lineno,name.colno,[body].concat(args)));return new nodes.Output(name.lineno,name.colno,[node])},_proto.parseAggregate=function(){var tok=this.nextToken(),node;switch(tok.type){case lexer.TOKEN_LEFT_PAREN:node=new nodes.Group(tok.lineno,tok.colno);break;case lexer.TOKEN_LEFT_BRACKET:node=new nodes.Array(tok.lineno,tok.colno);break;case lexer.TOKEN_LEFT_CURLY:node=new nodes.Dict(tok.lineno,tok.colno);break;default:return null}for(;;){var type=this.peekToken().type;if(type===lexer.TOKEN_RIGHT_PAREN||type===lexer.TOKEN_RIGHT_BRACKET||type===lexer.TOKEN_RIGHT_CURLY){this.nextToken();break}if(node.children.length>0&&(this.skip(lexer.TOKEN_COMMA)||this.fail("parseAggregate: expected comma after expression",tok.lineno,tok.colno)),node instanceof nodes.Dict){var key2=this.parsePrimary();this.skip(lexer.TOKEN_COLON)||this.fail("parseAggregate: expected colon after dict key",tok.lineno,tok.colno);var value=this.parseExpression();node.addChild(new nodes.Pair(key2.lineno,key2.colno,key2,value))}else{var expr=this.parseExpression();node.addChild(expr)}}return node},_proto.parseSignature=function(tolerant,noParens){var tok=this.peekToken();if(!noParens&&tok.type!==lexer.TOKEN_LEFT_PAREN){if(tolerant)return null;this.fail("expected arguments",tok.lineno,tok.colno)}tok.type===lexer.TOKEN_LEFT_PAREN&&(tok=this.nextToken());for(var args=new nodes.NodeList(tok.lineno,tok.colno),kwargs=new nodes.KeywordArgs(tok.lineno,tok.colno),checkComma=!1;;){if(tok=this.peekToken(),!noParens&&tok.type===lexer.TOKEN_RIGHT_PAREN){this.nextToken();break}else if(noParens&&tok.type===lexer.TOKEN_BLOCK_END)break;if(checkComma&&!this.skip(lexer.TOKEN_COMMA))this.fail("parseSignature: expected comma after expression",tok.lineno,tok.colno);else{var arg=this.parseExpression();this.skipValue(lexer.TOKEN_OPERATOR,"=")?kwargs.addChild(new nodes.Pair(arg.lineno,arg.colno,arg,this.parseExpression())):args.addChild(arg)}checkComma=!0}return kwargs.children.length&&args.addChild(kwargs),args},_proto.parseUntilBlocks=function(){for(var prev=this.breakOnBlocks,_len=arguments.length,blockNames=new Array(_len),_key=0;_key<_len;_key++)blockNames[_key]=arguments[_key];this.breakOnBlocks=blockNames;var ret=this.parse();return this.breakOnBlocks=prev,ret},_proto.parseNodes=function(){for(var tok,buf=[];tok=this.nextToken();)if(tok.type===lexer.TOKEN_DATA){var data=tok.value,nextToken=this.peekToken(),nextVal=nextToken&&nextToken.value;this.dropLeadingWhitespace&&(data=data.replace(/^\s*/,""),this.dropLeadingWhitespace=!1),nextToken&&(nextToken.type===lexer.TOKEN_BLOCK_START&&nextVal.charAt(nextVal.length-1)==="-"||nextToken.type===lexer.TOKEN_VARIABLE_START&&nextVal.charAt(this.tokens.tags.VARIABLE_START.length)==="-"||nextToken.type===lexer.TOKEN_COMMENT&&nextVal.charAt(this.tokens.tags.COMMENT_START.length)==="-")&&(data=data.replace(/\s*$/,"")),buf.push(new nodes.Output(tok.lineno,tok.colno,[new nodes.TemplateData(tok.lineno,tok.colno,data)]))}else if(tok.type===lexer.TOKEN_BLOCK_START){this.dropLeadingWhitespace=!1;var n=this.parseStatement();if(!n)break;buf.push(n)}else if(tok.type===lexer.TOKEN_VARIABLE_START){var e=this.parseExpression();this.dropLeadingWhitespace=!1,this.advanceAfterVariableEnd(),buf.push(new nodes.Output(tok.lineno,tok.colno,[e]))}else tok.type===lexer.TOKEN_COMMENT?this.dropLeadingWhitespace=tok.value.charAt(tok.value.length-this.tokens.tags.COMMENT_END.length-1)==="-":this.fail("Unexpected token at top-level: "+tok.type,tok.lineno,tok.colno);return buf},_proto.parse=function(){return new nodes.NodeList(0,0,this.parseNodes())},_proto.parseAsRoot=function(){return new nodes.Root(0,0,this.parseNodes())},Parser2})(Obj);module3.exports={parse:function(src,extensions,opts){var p=new Parser(lexer.lex(src,opts));return extensions!==void 0&&(p.extensions=extensions),p.parseAsRoot()},Parser}}),(function(module3,exports2,__webpack_require__){"use strict";var lib=__webpack_require__(0),whitespaceChars=`
\r\xA0`,delimChars="()[]{}%*-+~/#,:|.<>=!",intChars="0123456789",BLOCK_START="{%",BLOCK_END="%}",VARIABLE_START="{{",VARIABLE_END="}}",COMMENT_START="{#",COMMENT_END="#}",TOKEN_STRING="string",TOKEN_WHITESPACE="whitespace",TOKEN_DATA="data",TOKEN_BLOCK_START="block-start",TOKEN_BLOCK_END="block-end",TOKEN_VARIABLE_START="variable-start",TOKEN_VARIABLE_END="variable-end",TOKEN_COMMENT="comment",TOKEN_LEFT_PAREN="left-paren",TOKEN_RIGHT_PAREN="right-paren",TOKEN_LEFT_BRACKET="left-bracket",TOKEN_RIGHT_BRACKET="right-bracket",TOKEN_LEFT_CURLY="left-curly",TOKEN_RIGHT_CURLY="right-curly",TOKEN_OPERATOR="operator",TOKEN_COMMA="comma",TOKEN_COLON="colon",TOKEN_TILDE="tilde",TOKEN_PIPE="pipe",TOKEN_INT="int",TOKEN_FLOAT="float",TOKEN_BOOLEAN="boolean",TOKEN_NONE="none",TOKEN_SYMBOL="symbol",TOKEN_SPECIAL="special",TOKEN_REGEX="regex";function token(type,value,lineno,colno){return{type,value,lineno,colno}}var Tokenizer=(function(){function Tokenizer2(str,opts){this.str=str,this.index=0,this.len=str.length,this.lineno=0,this.colno=0,this.in_code=!1,opts=opts||{};var tags=opts.tags||{};this.tags={BLOCK_START:tags.blockStart||BLOCK_START,BLOCK_END:tags.blockEnd||BLOCK_END,VARIABLE_START:tags.variableStart||VARIABLE_START,VARIABLE_END:tags.variableEnd||VARIABLE_END,COMMENT_START:tags.commentStart||COMMENT_START,COMMENT_END:tags.commentEnd||COMMENT_END},this.trimBlocks=!!opts.trimBlocks,this.lstripBlocks=!!opts.lstripBlocks}var _proto=Tokenizer2.prototype;return _proto.nextToken=function(){var lineno=this.lineno,colno=this.colno,tok;if(this.in_code){var cur=this.current();if(this.isFinished())return null;if(cur==='"'||cur==="'")return token(TOKEN_STRING,this._parseString(cur),lineno,colno);if(tok=this._extract(whitespaceChars))return token(TOKEN_WHITESPACE,tok,lineno,colno);if((tok=this._extractString(this.tags.BLOCK_END))||(tok=this._extractString("-"+this.tags.BLOCK_END)))return this.in_code=!1,this.trimBlocks&&(cur=this.current(),cur===`
`?this.forward():cur==="\r"&&(this.forward(),cur=this.current(),cur===`
`?this.forward():this.back())),token(TOKEN_BLOCK_END,tok,lineno,colno);if((tok=this._extractString(this.tags.VARIABLE_END))||(tok=this._extractString("-"+this.tags.VARIABLE_END)))return this.in_code=!1,token(TOKEN_VARIABLE_END,tok,lineno,colno);if(cur==="r"&&this.str.charAt(this.index+1)==="/"){this.forwardN(2);for(var regexBody="";!this.isFinished();)if(this.current()==="/"&&this.previous()!=="\\"){this.forward();break}else regexBody+=this.current(),this.forward();for(var POSSIBLE_FLAGS=["g","i","m","y"],regexFlags="";!this.isFinished();){var isCurrentAFlag=POSSIBLE_FLAGS.indexOf(this.current())!==-1;if(isCurrentAFlag)regexFlags+=this.current(),this.forward();else break}return token(TOKEN_REGEX,{body:regexBody,flags:regexFlags},lineno,colno)}else if(delimChars.indexOf(cur)!==-1){this.forward();var complexOps=["==","===","!=","!==","<=",">=","//","**"],curComplex=cur+this.current(),type;switch(lib.indexOf(complexOps,curComplex)!==-1&&(this.forward(),cur=curComplex,lib.indexOf(complexOps,curComplex+this.current())!==-1&&(cur=curComplex+this.current(),this.forward())),cur){case"(":type=TOKEN_LEFT_PAREN;break;case")":type=TOKEN_RIGHT_PAREN;break;case"[":type=TOKEN_LEFT_BRACKET;break;case"]":type=TOKEN_RIGHT_BRACKET;break;case"{":type=TOKEN_LEFT_CURLY;break;case"}":type=TOKEN_RIGHT_CURLY;break;case",":type=TOKEN_COMMA;break;case":":type=TOKEN_COLON;break;case"~":type=TOKEN_TILDE;break;case"|":type=TOKEN_PIPE;break;default:type=TOKEN_OPERATOR}return token(type,cur,lineno,colno)}else if(tok=this._extractUntil(whitespaceChars+delimChars),tok.match(/^[-+]?[0-9]+$/))if(this.current()==="."){this.forward();var dec=this._extract(intChars);return token(TOKEN_FLOAT,tok+"."+dec,lineno,colno)}else return token(TOKEN_INT,tok,lineno,colno);else{if(tok.match(/^(true|false)$/))return token(TOKEN_BOOLEAN,tok,lineno,colno);if(tok==="none")return token(TOKEN_NONE,tok,lineno,colno);if(tok==="null")return token(TOKEN_NONE,tok,lineno,colno);if(tok)return token(TOKEN_SYMBOL,tok,lineno,colno);throw new Error("Unexpected value while parsing: "+tok)}}else{var beginChars=this.tags.BLOCK_START.charAt(0)+this.tags.VARIABLE_START.charAt(0)+this.tags.COMMENT_START.charAt(0)+this.tags.COMMENT_END.charAt(0);if(this.isFinished())return null;if((tok=this._extractString(this.tags.BLOCK_START+"-"))||(tok=this._extractString(this.tags.BLOCK_START)))return this.in_code=!0,token(TOKEN_BLOCK_START,tok,lineno,colno);if((tok=this._extractString(this.tags.VARIABLE_START+"-"))||(tok=this._extractString(this.tags.VARIABLE_START)))return this.in_code=!0,token(TOKEN_VARIABLE_START,tok,lineno,colno);tok="";var data,inComment=!1;for(this._matches(this.tags.COMMENT_START)&&(inComment=!0,tok=this._extractString(this.tags.COMMENT_START));(data=this._extractUntil(beginChars))!==null;)if(tok+=data,(this._matches(this.tags.BLOCK_START)||this._matches(this.tags.VARIABLE_START)||this._matches(this.tags.COMMENT_START))&&!inComment){if(this.lstripBlocks&&this._matches(this.tags.BLOCK_START)&&this.colno>0&&this.colno<=tok.length){var lastLine=tok.slice(-this.colno);if(/^\s+$/.test(lastLine)&&(tok=tok.slice(0,-this.colno),!tok.length))return this.nextToken()}break}else if(this._matches(this.tags.COMMENT_END)){if(!inComment)throw new Error("unexpected end of comment");tok+=this._extractString(this.tags.COMMENT_END);break}else tok+=this.current(),this.forward();if(data===null&&inComment)throw new Error("expected end of comment, got end of file");return token(inComment?TOKEN_COMMENT:TOKEN_DATA,tok,lineno,colno)}},_proto._parseString=function(delimiter){this.forward();for(var str="";!this.isFinished()&&this.current()!==delimiter;){var cur=this.current();if(cur==="\\"){switch(this.forward(),this.current()){case"n":str+=`
`;break;case"t":str+=" ";break;case"r":str+="\r";break;default:str+=this.current()}this.forward()}else str+=cur,this.forward()}return this.forward(),str},_proto._matches=function(str){if(this.index+str.length>this.len)return null;var m=this.str.slice(this.index,this.index+str.length);return m===str},_proto._extractString=function(str){return this._matches(str)?(this.forwardN(str.length),str):null},_proto._extractUntil=function(charString){return this._extractMatching(!0,charString||"")},_proto._extract=function(charString){return this._extractMatching(!1,charString)},_proto._extractMatching=function(breakOnMatch,charString){if(this.isFinished())return null;var first=charString.indexOf(this.current());if(breakOnMatch&&first===-1||!breakOnMatch&&first!==-1){var t=this.current();this.forward();for(var idx=charString.indexOf(this.current());(breakOnMatch&&idx===-1||!breakOnMatch&&idx!==-1)&&!this.isFinished();)t+=this.current(),this.forward(),idx=charString.indexOf(this.current());return t}return""},_proto._extractRegex=function(regex){var matches=this.currentStr().match(regex);return matches?(this.forwardN(matches[0].length),matches):null},_proto.isFinished=function(){return this.index>=this.len},_proto.forwardN=function(n){for(var i=0;i<n;i++)this.forward()},_proto.forward=function(){this.index++,this.previous()===`
`?(this.lineno++,this.colno=0):this.colno++},_proto.backN=function(n){for(var i=0;i<n;i++)this.back()},_proto.back=function(){if(this.index--,this.current()===`
`){this.lineno--;var idx=this.src.lastIndexOf(`
`,this.index-1);idx===-1?this.colno=this.index:this.colno=this.index-idx}else this.colno--},_proto.current=function(){return this.isFinished()?"":this.str.charAt(this.index)},_proto.currentStr=function(){return this.isFinished()?"":this.str.substr(this.index)},_proto.previous=function(){return this.str.charAt(this.index-1)},Tokenizer2})();module3.exports={lex:function(src,opts){return new Tokenizer(src,opts)},TOKEN_STRING,TOKEN_WHITESPACE,TOKEN_DATA,TOKEN_BLOCK_START,TOKEN_BLOCK_END,TOKEN_VARIABLE_START,TOKEN_VARIABLE_END,TOKEN_COMMENT,TOKEN_LEFT_PAREN,TOKEN_RIGHT_PAREN,TOKEN_LEFT_BRACKET,TOKEN_RIGHT_BRACKET,TOKEN_LEFT_CURLY,TOKEN_RIGHT_CURLY,TOKEN_OPERATOR,TOKEN_COMMA,TOKEN_COLON,TOKEN_TILDE,TOKEN_PIPE,TOKEN_INT,TOKEN_FLOAT,TOKEN_BOOLEAN,TOKEN_NONE,TOKEN_SYMBOL,TOKEN_SPECIAL,TOKEN_REGEX}}),(function(module3,exports2,__webpack_require__){"use strict";function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}var Loader=__webpack_require__(6),_require=__webpack_require__(19),PrecompiledLoader=_require.PrecompiledLoader,WebLoader=(function(_Loader){_inheritsLoose(WebLoader2,_Loader);function WebLoader2(baseURL,opts){var _this;return _this=_Loader.call(this)||this,_this.baseURL=baseURL||".",opts=opts||{},_this.useCache=!!opts.useCache,_this.async=!!opts.async,_this}var _proto=WebLoader2.prototype;return _proto.resolve=function(from,to){throw new Error("relative templates not support in the browser yet")},_proto.getSource=function(name,cb){var _this2=this,useCache=this.useCache,result;return this.fetch(this.baseURL+"/"+name,function(err,src){if(err)if(cb)cb(err.content);else if(err.status===404)result=null;else throw err.content;else result={src,path:name,noCache:!useCache},_this2.emit("load",name,result),cb&&cb(null,result)}),result},_proto.fetch=function(url2,cb){if(typeof window=="undefined")throw new Error("WebLoader can only by used in a browser");var ajax=new XMLHttpRequest,loading=!0;ajax.onreadystatechange=function(){ajax.readyState===4&&loading&&(loading=!1,ajax.status===0||ajax.status===200?cb(null,ajax.responseText):cb({status:ajax.status,content:ajax.responseText}))},url2+=(url2.indexOf("?")===-1?"?":"&")+"s="+new Date().getTime(),ajax.open("GET",url2,this.async),ajax.send()},WebLoader2})(Loader);module3.exports={WebLoader,PrecompiledLoader}}),(function(module3,exports2,__webpack_require__){"use strict";var lib=__webpack_require__(0),_require=__webpack_require__(7),Environment=_require.Environment,Template=_require.Template,Loader=__webpack_require__(6),loaders=__webpack_require__(10),precompile=__webpack_require__(23),compiler=__webpack_require__(5),parser=__webpack_require__(8),lexer=__webpack_require__(9),runtime=__webpack_require__(2),nodes=__webpack_require__(3),installJinjaCompat=__webpack_require__(25),e;function configure(templatesPath,opts){opts=opts||{},lib.isObject(templatesPath)&&(opts=templatesPath,templatesPath=null);var TemplateLoader;return loaders.FileSystemLoader?TemplateLoader=new loaders.FileSystemLoader(templatesPath,{watch:opts.watch,noCache:opts.noCache}):loaders.WebLoader&&(TemplateLoader=new loaders.WebLoader(templatesPath,{useCache:opts.web&&opts.web.useCache,async:opts.web&&opts.web.async})),e=new Environment(TemplateLoader,opts),opts&&opts.express&&e.express(opts.express),e}module3.exports={Environment,Template,Loader,FileSystemLoader:loaders.FileSystemLoader,NodeResolveLoader:loaders.NodeResolveLoader,PrecompiledLoader:loaders.PrecompiledLoader,WebLoader:loaders.WebLoader,compiler,parser,lexer,runtime,lib,nodes,installJinjaCompat,configure,reset:function(){e=void 0},compile:function(src,env,path,eagerCompile){return e||configure(),new Template(src,env,path,eagerCompile)},render:function(name,ctx,cb){return e||configure(),e.render(name,ctx,cb)},renderString:function(src,ctx,cb){return e||configure(),e.renderString(src,ctx,cb)},precompile:precompile?precompile.precompile:void 0,precompileString:precompile?precompile.precompileString:void 0}}),(function(module3,exports2,__webpack_require__){"use strict";var rawAsap=__webpack_require__(13),freeTasks=[],pendingErrors=[],requestErrorThrow=rawAsap.makeRequestCallFromTimer(throwFirstError);function throwFirstError(){if(pendingErrors.length)throw pendingErrors.shift()}module3.exports=asap2;function asap2(task){var rawTask;freeTasks.length?rawTask=freeTasks.pop():rawTask=new RawTask,rawTask.task=task,rawAsap(rawTask)}function RawTask(){this.task=null}RawTask.prototype.call=function(){try{this.task.call()}catch(error51){asap2.onerror?asap2.onerror(error51):(pendingErrors.push(error51),requestErrorThrow())}finally{this.task=null,freeTasks[freeTasks.length]=this}}}),(function(module3,exports2,__webpack_require__){"use strict";(function(global2){module3.exports=rawAsap;function rawAsap(task){queue.length||(requestFlush(),flushing=!0),queue[queue.length]=task}var queue=[],flushing=!1,requestFlush,index2=0,capacity=1024;function flush(){for(;index2<queue.length;){var currentIndex=index2;if(index2=index2+1,queue[currentIndex].call(),index2>capacity){for(var scan=0,newLength=queue.length-index2;scan<newLength;scan++)queue[scan]=queue[scan+index2];queue.length-=index2,index2=0}}queue.length=0,index2=0,flushing=!1}var scope=typeof global2!="undefined"?global2:self,BrowserMutationObserver=scope.MutationObserver||scope.WebKitMutationObserver;typeof BrowserMutationObserver=="function"?requestFlush=makeRequestCallFromMutationObserver(flush):requestFlush=makeRequestCallFromTimer(flush),rawAsap.requestFlush=requestFlush;function makeRequestCallFromMutationObserver(callback){var toggle=1,observer=new BrowserMutationObserver(callback),node=document.createTextNode("");return observer.observe(node,{characterData:!0}),function(){toggle=-toggle,node.data=toggle}}function makeRequestCallFromTimer(callback){return function(){var timeoutHandle=setTimeout(handleTimer,0),intervalHandle=setInterval(handleTimer,50);function handleTimer(){clearTimeout(timeoutHandle),clearInterval(intervalHandle),callback()}}}rawAsap.makeRequestCallFromTimer=makeRequestCallFromTimer}).call(exports2,__webpack_require__(14))}),(function(module3,exports2){var g;g=(function(){return this})();try{g=g||Function("return this")()||(0,eval)("this")}catch(e){typeof window=="object"&&(g=window)}module3.exports=g}),(function(module3,exports2,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(globals){"use strict";var executeSync=function(){var args=Array.prototype.slice.call(arguments);typeof args[0]=="function"&&args[0].apply(null,args.splice(1))},executeAsync=function(fn){typeof setImmediate=="function"?setImmediate(fn):typeof process!="undefined"&&process.nextTick?process.nextTick(fn):setTimeout(fn,0)},makeIterator=function(tasks){var makeCallback=function(index2){var fn=function(){return tasks.length&&tasks[index2].apply(null,arguments),fn.next()};return fn.next=function(){return index2<tasks.length-1?makeCallback(index2+1):null},fn};return makeCallback(0)},_isArray=Array.isArray||function(maybeArray){return Object.prototype.toString.call(maybeArray)==="[object Array]"},waterfall=function(tasks,callback,forceAsync){var nextTick=forceAsync?executeAsync:executeSync;if(callback=callback||function(){},!_isArray(tasks)){var err=new Error("First argument to waterfall must be an array of functions");return callback(err)}if(!tasks.length)return callback();var wrapIterator=function(iterator2){return function(err2){if(err2)callback.apply(null,arguments),callback=function(){};else{var args=Array.prototype.slice.call(arguments,1),next2=iterator2.next();next2?args.push(wrapIterator(next2)):args.push(callback),nextTick(function(){iterator2.apply(null,args)})}}};wrapIterator(makeIterator(tasks))()};__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=(function(){return waterfall}).apply(exports2,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module3.exports=__WEBPACK_AMD_DEFINE_RESULT__)})(this)}),(function(module3,exports2,__webpack_require__){"use strict";var R=typeof Reflect=="object"?Reflect:null,ReflectApply=R&&typeof R.apply=="function"?R.apply:function(target,receiver,args){return Function.prototype.apply.call(target,receiver,args)},ReflectOwnKeys;R&&typeof R.ownKeys=="function"?ReflectOwnKeys=R.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(target){return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target))}:ReflectOwnKeys=function(target){return Object.getOwnPropertyNames(target)};function ProcessEmitWarning(warning){console&&console.warn&&console.warn(warning)}var NumberIsNaN=Number.isNaN||function(value){return value!==value};function EventEmitter(){EventEmitter.init.call(this)}module3.exports=EventEmitter,module3.exports.once=once2,EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(listener){if(typeof listener!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof listener)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(arg){if(typeof arg!="number"||arg<0||NumberIsNaN(arg))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+arg+".");defaultMaxListeners=arg}}),EventEmitter.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(n){if(typeof n!="number"||n<0||NumberIsNaN(n))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n+".");return this._maxListeners=n,this};function _getMaxListeners(that){return that._maxListeners===void 0?EventEmitter.defaultMaxListeners:that._maxListeners}EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(type){for(var args=[],i=1;i<arguments.length;i++)args.push(arguments[i]);var doError=type==="error",events=this._events;if(events!==void 0)doError=doError&&events.error===void 0;else if(!doError)return!1;if(doError){var er;if(args.length>0&&(er=args[0]),er instanceof Error)throw er;var err=new Error("Unhandled error."+(er?" ("+er.message+")":""));throw err.context=er,err}var handler=events[type];if(handler===void 0)return!1;if(typeof handler=="function")ReflectApply(handler,this,args);else for(var len=handler.length,listeners2=arrayClone(handler,len),i=0;i<len;++i)ReflectApply(listeners2[i],this,args);return!0};function _addListener(target,type,listener,prepend){var m,events,existing;if(checkListener(listener),events=target._events,events===void 0?(events=target._events=Object.create(null),target._eventsCount=0):(events.newListener!==void 0&&(target.emit("newListener",type,listener.listener?listener.listener:listener),events=target._events),existing=events[type]),existing===void 0)existing=events[type]=listener,++target._eventsCount;else if(typeof existing=="function"?existing=events[type]=prepend?[listener,existing]:[existing,listener]:prepend?existing.unshift(listener):existing.push(listener),m=_getMaxListeners(target),m>0&&existing.length>m&&!existing.warned){existing.warned=!0;var w=new Error("Possible EventEmitter memory leak detected. "+existing.length+" "+String(type)+" listeners added. Use emitter.setMaxListeners() to increase limit");w.name="MaxListenersExceededWarning",w.emitter=target,w.type=type,w.count=existing.length,ProcessEmitWarning(w)}return target}EventEmitter.prototype.addListener=function(type,listener){return _addListener(this,type,listener,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(type,listener){return _addListener(this,type,listener,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(target,type,listener){var state2={fired:!1,wrapFn:void 0,target,type,listener},wrapped=onceWrapper.bind(state2);return wrapped.listener=listener,state2.wrapFn=wrapped,wrapped}EventEmitter.prototype.once=function(type,listener){return checkListener(listener),this.on(type,_onceWrap(this,type,listener)),this},EventEmitter.prototype.prependOnceListener=function(type,listener){return checkListener(listener),this.prependListener(type,_onceWrap(this,type,listener)),this},EventEmitter.prototype.removeListener=function(type,listener){var list,events,position,i,originalListener;if(checkListener(listener),events=this._events,events===void 0)return this;if(list=events[type],list===void 0)return this;if(list===listener||list.listener===listener)--this._eventsCount===0?this._events=Object.create(null):(delete events[type],events.removeListener&&this.emit("removeListener",type,list.listener||listener));else if(typeof list!="function"){for(position=-1,i=list.length-1;i>=0;i--)if(list[i]===listener||list[i].listener===listener){originalListener=list[i].listener,position=i;break}if(position<0)return this;position===0?list.shift():spliceOne(list,position),list.length===1&&(events[type]=list[0]),events.removeListener!==void 0&&this.emit("removeListener",type,originalListener||listener)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function(type){var listeners2,events,i;if(events=this._events,events===void 0)return this;if(events.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):events[type]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete events[type]),this;if(arguments.length===0){var keys=Object.keys(events),key2;for(i=0;i<keys.length;++i)key2=keys[i],key2!=="removeListener"&&this.removeAllListeners(key2);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(listeners2=events[type],typeof listeners2=="function")this.removeListener(type,listeners2);else if(listeners2!==void 0)for(i=listeners2.length-1;i>=0;i--)this.removeListener(type,listeners2[i]);return this};function _listeners(target,type,unwrap){var events=target._events;if(events===void 0)return[];var evlistener=events[type];return evlistener===void 0?[]:typeof evlistener=="function"?unwrap?[evlistener.listener||evlistener]:[evlistener]:unwrap?unwrapListeners(evlistener):arrayClone(evlistener,evlistener.length)}EventEmitter.prototype.listeners=function(type){return _listeners(this,type,!0)},EventEmitter.prototype.rawListeners=function(type){return _listeners(this,type,!1)},EventEmitter.listenerCount=function(emitter,type){return typeof emitter.listenerCount=="function"?emitter.listenerCount(type):listenerCount.call(emitter,type)},EventEmitter.prototype.listenerCount=listenerCount;function listenerCount(type){var events=this._events;if(events!==void 0){var evlistener=events[type];if(typeof evlistener=="function")return 1;if(evlistener!==void 0)return evlistener.length}return 0}EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(arr,n){for(var copy=new Array(n),i=0;i<n;++i)copy[i]=arr[i];return copy}function spliceOne(list,index2){for(;index2+1<list.length;index2++)list[index2]=list[index2+1];list.pop()}function unwrapListeners(arr){for(var ret=new Array(arr.length),i=0;i<ret.length;++i)ret[i]=arr[i].listener||arr[i];return ret}function once2(emitter,name){return new Promise(function(resolve,reject){function errorListener(err){emitter.removeListener(name,resolver),reject(err)}function resolver(){typeof emitter.removeListener=="function"&&emitter.removeListener("error",errorListener),resolve([].slice.call(arguments))}eventTargetAgnosticAddListener(emitter,name,resolver,{once:!0}),name!=="error"&&addErrorHandlerIfEventEmitter(emitter,errorListener,{once:!0})})}function addErrorHandlerIfEventEmitter(emitter,handler,flags2){typeof emitter.on=="function"&&eventTargetAgnosticAddListener(emitter,"error",handler,flags2)}function eventTargetAgnosticAddListener(emitter,name,listener,flags2){if(typeof emitter.on=="function")flags2.once?emitter.once(name,listener):emitter.on(name,listener);else if(typeof emitter.addEventListener=="function")emitter.addEventListener(name,function wrapListener(arg){flags2.once&&emitter.removeEventListener(name,wrapListener),listener(arg)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof emitter)}}),(function(module3,exports2,__webpack_require__){"use strict";var nodes=__webpack_require__(3),lib=__webpack_require__(0),sym=0;function gensym(){return"hole_"+sym++}function mapCOW(arr,func){for(var res=null,i=0;i<arr.length;i++){var item=func(arr[i]);item!==arr[i]&&(res||(res=arr.slice()),res[i]=item)}return res||arr}function walk(ast,func,depthFirst){if(!(ast instanceof nodes.Node))return ast;if(!depthFirst){var astT=func(ast);if(astT&&astT!==ast)return astT}if(ast instanceof nodes.NodeList){var children=mapCOW(ast.children,function(node){return walk(node,func,depthFirst)});children!==ast.children&&(ast=new nodes[ast.typename](ast.lineno,ast.colno,children))}else if(ast instanceof nodes.CallExtension){var args=walk(ast.args,func,depthFirst),contentArgs=mapCOW(ast.contentArgs,function(node){return walk(node,func,depthFirst)});(args!==ast.args||contentArgs!==ast.contentArgs)&&(ast=new nodes[ast.typename](ast.extName,ast.prop,args,contentArgs))}else{var props=ast.fields.map(function(field){return ast[field]}),propsT=mapCOW(props,function(prop2){return walk(prop2,func,depthFirst)});propsT!==props&&(ast=new nodes[ast.typename](ast.lineno,ast.colno),propsT.forEach(function(prop2,i){ast[ast.fields[i]]=prop2}))}return depthFirst&&func(ast)||ast}function depthWalk(ast,func){return walk(ast,func,!0)}function _liftFilters(node,asyncFilters,prop2){var children=[],walked=depthWalk(prop2?node[prop2]:node,function(descNode){var symbol2;return descNode instanceof nodes.Block?descNode:((descNode instanceof nodes.Filter&&lib.indexOf(asyncFilters,descNode.name.value)!==-1||descNode instanceof nodes.CallExtensionAsync)&&(symbol2=new nodes.Symbol(descNode.lineno,descNode.colno,gensym()),children.push(new nodes.FilterAsync(descNode.lineno,descNode.colno,descNode.name,descNode.args,symbol2))),symbol2)});return prop2?node[prop2]=walked:node=walked,children.length?(children.push(node),new nodes.NodeList(node.lineno,node.colno,children)):node}function liftFilters(ast,asyncFilters){return depthWalk(ast,function(node){return node instanceof nodes.Output?_liftFilters(node,asyncFilters):node instanceof nodes.Set?_liftFilters(node,asyncFilters,"value"):node instanceof nodes.For?_liftFilters(node,asyncFilters,"arr"):node instanceof nodes.If?_liftFilters(node,asyncFilters,"cond"):node instanceof nodes.CallExtension?_liftFilters(node,asyncFilters,"args"):void 0})}function liftSuper(ast){return walk(ast,function(blockNode){if(blockNode instanceof nodes.Block){var hasSuper=!1,symbol2=gensym();blockNode.body=walk(blockNode.body,function(node){if(node instanceof nodes.FunCall&&node.name.value==="super")return hasSuper=!0,new nodes.Symbol(node.lineno,node.colno,symbol2)}),hasSuper&&blockNode.body.children.unshift(new nodes.Super(0,0,blockNode.name,new nodes.Symbol(0,0,symbol2)))}})}function convertStatements(ast){return depthWalk(ast,function(node){if(!(!(node instanceof nodes.If)&&!(node instanceof nodes.For))){var async2=!1;if(walk(node,function(child2){if(child2 instanceof nodes.FilterAsync||child2 instanceof nodes.IfAsync||child2 instanceof nodes.AsyncEach||child2 instanceof nodes.AsyncAll||child2 instanceof nodes.CallExtensionAsync)return async2=!0,child2}),async2){if(node instanceof nodes.If)return new nodes.IfAsync(node.lineno,node.colno,node.cond,node.body,node.else_);if(node instanceof nodes.For&&!(node instanceof nodes.AsyncAll))return new nodes.AsyncEach(node.lineno,node.colno,node.arr,node.name,node.body,node.else_)}}})}function cps(ast,asyncFilters){return convertStatements(liftSuper(liftFilters(ast,asyncFilters)))}function transform2(ast,asyncFilters){return cps(ast,asyncFilters||[])}module3.exports={transform:transform2}}),(function(module3,exports2,__webpack_require__){"use strict";var lib=__webpack_require__(0),r=__webpack_require__(2),exports2=module3.exports={};function normalize(value,defaultValue){return value==null||value===!1?defaultValue:value}exports2.abs=Math.abs;function isNaN2(num){return num!==num}function batch(arr,linecount,fillWith){var i,res=[],tmp=[];for(i=0;i<arr.length;i++)i%linecount===0&&tmp.length&&(res.push(tmp),tmp=[]),tmp.push(arr[i]);if(tmp.length){if(fillWith)for(i=tmp.length;i<linecount;i++)tmp.push(fillWith);res.push(tmp)}return res}exports2.batch=batch;function capitalize(str){str=normalize(str,"");var ret=str.toLowerCase();return r.copySafeness(str,ret.charAt(0).toUpperCase()+ret.slice(1))}exports2.capitalize=capitalize;function center(str,width){if(str=normalize(str,""),width=width||80,str.length>=width)return str;var spaces=width-str.length,pre=lib.repeat(" ",spaces/2-spaces%2),post=lib.repeat(" ",spaces/2);return r.copySafeness(str,pre+str+post)}exports2.center=center;function default_(val,def,bool){return bool?val||def:val!==void 0?val:def}exports2.default=default_;function dictsort(val,caseSensitive,by){if(!lib.isObject(val))throw new lib.TemplateError("dictsort filter: val must be an object");var array2=[];for(var k in val)array2.push([k,val[k]]);var si;if(by===void 0||by==="key")si=0;else if(by==="value")si=1;else throw new lib.TemplateError("dictsort filter: You can only sort by either key or value");return array2.sort(function(t1,t2){var a=t1[si],b=t2[si];return caseSensitive||(lib.isString(a)&&(a=a.toUpperCase()),lib.isString(b)&&(b=b.toUpperCase())),a>b?1:a===b?0:-1}),array2}exports2.dictsort=dictsort;function dump(obj,spaces){return JSON.stringify(obj,null,spaces)}exports2.dump=dump;function escape(str){return str instanceof r.SafeString?str:(str=str==null?"":str,r.markSafe(lib.escape(str.toString())))}exports2.escape=escape;function safe(str){return str instanceof r.SafeString?str:(str=str==null?"":str,r.markSafe(str.toString()))}exports2.safe=safe;function first(arr){return arr[0]}exports2.first=first;function forceescape(str){return str=str==null?"":str,r.markSafe(lib.escape(str.toString()))}exports2.forceescape=forceescape;function groupby(arr,attr2){return lib.groupBy(arr,attr2,this.env.opts.throwOnUndefined)}exports2.groupby=groupby;function indent(str,width,indentfirst){if(str=normalize(str,""),str==="")return"";width=width||4;var lines=str.split(`
`),sp=lib.repeat(" ",width),res=lines.map(function(l,i){return i===0&&!indentfirst?l:""+sp+l}).join(`
`);return r.copySafeness(str,res)}exports2.indent=indent;function join(arr,del,attr2){return del=del||"",attr2&&(arr=lib.map(arr,function(v){return v[attr2]})),arr.join(del)}exports2.join=join;function last(arr){return arr[arr.length-1]}exports2.last=last;function lengthFilter(val){var value=normalize(val,"");return value!==void 0?typeof Map=="function"&&value instanceof Map||typeof Set=="function"&&value instanceof Set?value.size:lib.isObject(value)&&!(value instanceof r.SafeString)?lib.keys(value).length:value.length:0}exports2.length=lengthFilter;function list(val){if(lib.isString(val))return val.split("");if(lib.isObject(val))return lib._entries(val||{}).map(function(_ref){var key2=_ref[0],value=_ref[1];return{key:key2,value}});if(lib.isArray(val))return val;throw new lib.TemplateError("list filter: type not iterable")}exports2.list=list;function lower(str){return str=normalize(str,""),str.toLowerCase()}exports2.lower=lower;function nl2br(str){return str==null?"":r.copySafeness(str,str.replace(/\r\n|\n/g,`<br />
`))}exports2.nl2br=nl2br;function random(arr){return arr[Math.floor(Math.random()*arr.length)]}exports2.random=random;function getSelectOrReject(expectedTestResult){function filter2(arr,testName,secondArg){testName===void 0&&(testName="truthy");var context=this,test2=context.env.getTest(testName);return lib.toArray(arr).filter(function(item){return test2.call(context,item,secondArg)===expectedTestResult})}return filter2}exports2.reject=getSelectOrReject(!1);function rejectattr(arr,attr2){return arr.filter(function(item){return!item[attr2]})}exports2.rejectattr=rejectattr,exports2.select=getSelectOrReject(!0);function selectattr(arr,attr2){return arr.filter(function(item){return!!item[attr2]})}exports2.selectattr=selectattr;function replace(str,old,new_,maxCount){var originalStr=str;if(old instanceof RegExp)return str.replace(old,new_);typeof maxCount=="undefined"&&(maxCount=-1);var res="";if(typeof old=="number")old=""+old;else if(typeof old!="string")return str;if(typeof str=="number"&&(str=""+str),typeof str!="string"&&!(str instanceof r.SafeString))return str;if(old==="")return res=new_+str.split("").join(new_)+new_,r.copySafeness(str,res);var nextIndex=str.indexOf(old);if(maxCount===0||nextIndex===-1)return str;for(var pos=0,count=0;nextIndex>-1&&(maxCount===-1||count<maxCount);)res+=str.substring(pos,nextIndex)+new_,pos=nextIndex+old.length,count++,nextIndex=str.indexOf(old,pos);return pos<str.length&&(res+=str.substring(pos)),r.copySafeness(originalStr,res)}exports2.replace=replace;function reverse(val){var arr;return lib.isString(val)?arr=list(val):arr=lib.map(val,function(v){return v}),arr.reverse(),lib.isString(val)?r.copySafeness(val,arr.join("")):arr}exports2.reverse=reverse;function round(val,precision,method){precision=precision||0;var factor=Math.pow(10,precision),rounder;return method==="ceil"?rounder=Math.ceil:method==="floor"?rounder=Math.floor:rounder=Math.round,rounder(val*factor)/factor}exports2.round=round;function slice(arr,slices,fillWith){for(var sliceLength=Math.floor(arr.length/slices),extra=arr.length%slices,res=[],offset=0,i=0;i<slices;i++){var start=offset+i*sliceLength;i<extra&&offset++;var end=offset+(i+1)*sliceLength,currSlice=arr.slice(start,end);fillWith&&i>=extra&&currSlice.push(fillWith),res.push(currSlice)}return res}exports2.slice=slice;function sum(arr,attr2,start){return start===void 0&&(start=0),attr2&&(arr=lib.map(arr,function(v){return v[attr2]})),start+arr.reduce(function(a,b){return a+b},0)}exports2.sum=sum,exports2.sort=r.makeMacro(["value","reverse","case_sensitive","attribute"],[],function(arr,reversed,caseSens,attr2){var _this=this,array2=lib.map(arr,function(v){return v}),getAttribute=lib.getAttrGetter(attr2);return array2.sort(function(a,b){var x=attr2?getAttribute(a):a,y=attr2?getAttribute(b):b;if(_this.env.opts.throwOnUndefined&&attr2&&(x===void 0||y===void 0))throw new TypeError('sort: attribute "'+attr2+'" resolved to undefined');return!caseSens&&lib.isString(x)&&lib.isString(y)&&(x=x.toLowerCase(),y=y.toLowerCase()),x<y?reversed?1:-1:x>y?reversed?-1:1:0}),array2});function string4(obj){return r.copySafeness(obj,obj)}exports2.string=string4;function striptags(input,preserveLinebreaks){input=normalize(input,"");var tags=/<\/?([a-z][a-z0-9]*)\b[^>]*>|<!--[\s\S]*?-->/gi,trimmedInput=trim2(input.replace(tags,"")),res="";return preserveLinebreaks?res=trimmedInput.replace(/^ +| +$/gm,"").replace(/ +/g," ").replace(/(\r\n)/g,`
`).replace(/\n\n\n+/g,`
`):res=trimmedInput.replace(/\s+/gi," "),r.copySafeness(input,res)}exports2.striptags=striptags;function title(str){str=normalize(str,"");var words=str.split(" ").map(function(word){return capitalize(word)});return r.copySafeness(str,words.join(" "))}exports2.title=title;function trim2(str){return r.copySafeness(str,str.replace(/^\s*|\s*$/g,""))}exports2.trim=trim2;function truncate2(input,length,killwords,end){var orig=input;if(input=normalize(input,""),length=length||255,input.length<=length)return input;if(killwords)input=input.substring(0,length);else{var idx=input.lastIndexOf(" ",length);idx===-1&&(idx=length),input=input.substring(0,idx)}return input+=end!=null?end:"...",r.copySafeness(orig,input)}exports2.truncate=truncate2;function upper(str){return str=normalize(str,""),str.toUpperCase()}exports2.upper=upper;function urlencode(obj){var enc=encodeURIComponent;if(lib.isString(obj))return enc(obj);var keyvals=lib.isArray(obj)?obj:lib._entries(obj);return keyvals.map(function(_ref2){var k=_ref2[0],v=_ref2[1];return enc(k)+"="+enc(v)}).join("&")}exports2.urlencode=urlencode;var puncRe=/^(?:\(|<|&lt;)?(.*?)(?:\.|,|\)|\n|&gt;)?$/,emailRe=/^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,httpHttpsRe=/^https?:\/\/.*$/,wwwRe=/^www\./,tldRe=/\.(?:org|net|com)(?:\:|\/|$)/;function urlize(str,length,nofollow){isNaN2(length)&&(length=1/0);var noFollowAttr=nofollow===!0?' rel="nofollow"':"",words=str.split(/(\s+)/).filter(function(word){return word&&word.length}).map(function(word){var matches=word.match(puncRe),possibleUrl=matches?matches[1]:word,shortUrl=possibleUrl.substr(0,length);return httpHttpsRe.test(possibleUrl)?'<a href="'+possibleUrl+'"'+noFollowAttr+">"+shortUrl+"</a>":wwwRe.test(possibleUrl)?'<a href="http://'+possibleUrl+'"'+noFollowAttr+">"+shortUrl+"</a>":emailRe.test(possibleUrl)?'<a href="mailto:'+possibleUrl+'">'+possibleUrl+"</a>":tldRe.test(possibleUrl)?'<a href="http://'+possibleUrl+'"'+noFollowAttr+">"+shortUrl+"</a>":word});return words.join("")}exports2.urlize=urlize;function wordcount(str){str=normalize(str,"");var words=str?str.match(/\w+/g):null;return words?words.length:null}exports2.wordcount=wordcount;function float(val,def){var res=parseFloat(val);return isNaN2(res)?def:res}exports2.float=float;var intFilter=r.makeMacro(["value","default","base"],[],function(value,defaultValue,base){base===void 0&&(base=10);var res=parseInt(value,base);return isNaN2(res)?defaultValue:res});exports2.int=intFilter,exports2.d=exports2.default,exports2.e=exports2.escape}),(function(module3,exports2,__webpack_require__){"use strict";function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype),subClass.prototype.constructor=subClass,_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o2,p2){return o2.__proto__=p2,o2},_setPrototypeOf(o,p)}var Loader=__webpack_require__(6),PrecompiledLoader=(function(_Loader){_inheritsLoose(PrecompiledLoader2,_Loader);function PrecompiledLoader2(compiledTemplates){var _this;return _this=_Loader.call(this)||this,_this.precompiled=compiledTemplates||{},_this}var _proto=PrecompiledLoader2.prototype;return _proto.getSource=function(name){return this.precompiled[name]?{src:{type:"code",obj:this.precompiled[name]},path:name}:null},PrecompiledLoader2})(Loader);module3.exports={PrecompiledLoader}}),(function(module3,exports2,__webpack_require__){"use strict";var SafeString=__webpack_require__(2).SafeString;function callable(value){return typeof value=="function"}exports2.callable=callable;function defined(value){return value!==void 0}exports2.defined=defined;function divisibleby(one,two){return one%two===0}exports2.divisibleby=divisibleby;function escaped(value){return value instanceof SafeString}exports2.escaped=escaped;function equalto(one,two){return one===two}exports2.equalto=equalto,exports2.eq=exports2.equalto,exports2.sameas=exports2.equalto;function even(value){return value%2===0}exports2.even=even;function falsy(value){return!value}exports2.falsy=falsy;function ge(one,two){return one>=two}exports2.ge=ge;function greaterthan(one,two){return one>two}exports2.greaterthan=greaterthan,exports2.gt=exports2.greaterthan;function le(one,two){return one<=two}exports2.le=le;function lessthan(one,two){return one<two}exports2.lessthan=lessthan,exports2.lt=exports2.lessthan;function lower(value){return value.toLowerCase()===value}exports2.lower=lower;function ne(one,two){return one!==two}exports2.ne=ne;function nullTest(value){return value===null}exports2.null=nullTest;function number4(value){return typeof value=="number"}exports2.number=number4;function odd(value){return value%2===1}exports2.odd=odd;function string4(value){return typeof value=="string"}exports2.string=string4;function truthy(value){return!!value}exports2.truthy=truthy;function undefinedTest(value){return value===void 0}exports2.undefined=undefinedTest;function upper(value){return value.toUpperCase()===value}exports2.upper=upper;function iterable(value){return typeof Symbol!="undefined"?!!value[Symbol.iterator]:Array.isArray(value)||typeof value=="string"}exports2.iterable=iterable;function mapping(value){var bool=value!=null&&typeof value=="object"&&!Array.isArray(value);return Set?bool&&!(value instanceof Set):bool}exports2.mapping=mapping}),(function(module3,exports2,__webpack_require__){"use strict";function _cycler(items){var index2=-1;return{current:null,reset:function(){index2=-1,this.current=null},next:function(){return index2++,index2>=items.length&&(index2=0),this.current=items[index2],this.current}}}function _joiner(sep){sep=sep||",";var first=!0;return function(){var val=first?"":sep;return first=!1,val}}function globals(){return{range:function(start,stop,step){typeof stop=="undefined"?(stop=start,start=0,step=1):step||(step=1);var arr=[];if(step>0)for(var i=start;i<stop;i+=step)arr.push(i);else for(var _i=start;_i>stop;_i+=step)arr.push(_i);return arr},cycler:function(){return _cycler(Array.prototype.slice.call(arguments))},joiner:function(sep){return _joiner(sep)}}}module3.exports=globals}),(function(module3,exports2,__webpack_require__){var path=__webpack_require__(4);module3.exports=function(env,app){function NunjucksView(name,opts){if(this.name=name,this.path=name,this.defaultEngine=opts.defaultEngine,this.ext=path.extname(name),!this.ext&&!this.defaultEngine)throw new Error("No default engine was specified and no extension was provided.");this.ext||(this.name+=this.ext=(this.defaultEngine[0]!=="."?".":"")+this.defaultEngine)}return NunjucksView.prototype.render=function(opts,cb){env.render(this.name,opts,cb)},app.set("view",NunjucksView),app.set("nunjucksEnv",env),env}}),(function(module3,exports2,__webpack_require__){"use strict";var fs=__webpack_require__(4),path=__webpack_require__(4),_require=__webpack_require__(0),_prettifyError=_require._prettifyError,compiler=__webpack_require__(5),_require2=__webpack_require__(7),Environment=_require2.Environment,precompileGlobal=__webpack_require__(24);function match(filename,patterns){return Array.isArray(patterns)?patterns.some(function(pattern){return filename.match(pattern)}):!1}function precompileString(str,opts){opts=opts||{},opts.isString=!0;var env=opts.env||new Environment([]),wrapper=opts.wrapper||precompileGlobal;if(!opts.name)throw new Error('the "name" option is required when compiling a string');return wrapper([_precompile(str,opts.name,env)],opts)}function precompile(input,opts){opts=opts||{};var env=opts.env||new Environment([]),wrapper=opts.wrapper||precompileGlobal;if(opts.isString)return precompileString(input,opts);var pathStats=fs.existsSync(input)&&fs.statSync(input),precompiled=[],templates=[];function addTemplates(dir){fs.readdirSync(dir).forEach(function(file2){var filepath=path.join(dir,file2),subpath=filepath.substr(path.join(input,"/").length),stat=fs.statSync(filepath);stat&&stat.isDirectory()?(subpath+="/",match(subpath,opts.exclude)||addTemplates(filepath)):match(subpath,opts.include)&&templates.push(filepath)})}if(pathStats.isFile())precompiled.push(_precompile(fs.readFileSync(input,"utf-8"),opts.name||input,env));else if(pathStats.isDirectory()){addTemplates(input);for(var i=0;i<templates.length;i++){var name=templates[i].replace(path.join(input,"/"),"");try{precompiled.push(_precompile(fs.readFileSync(templates[i],"utf-8"),name,env))}catch(e){if(opts.force)console.error(e);else throw e}}}return wrapper(precompiled,opts)}function _precompile(str,name,env){env=env||new Environment([]);var asyncFilters=env.asyncFilters,extensions=env.extensionsList,template;name=name.replace(/\\/g,"/");try{template=compiler.compile(str,asyncFilters,extensions,name,env.opts)}catch(err){throw _prettifyError(name,!1,err)}return{name,template}}module3.exports={precompile,precompileString}}),(function(module3,exports2,__webpack_require__){"use strict";function precompileGlobal(templates,opts){var out="";opts=opts||{};for(var i=0;i<templates.length;i++){var name=JSON.stringify(templates[i].name),template=templates[i].template;out+="(function() {(window.nunjucksPrecompiled = window.nunjucksPrecompiled || {})["+name+`] = (function() {
`+template+`
})();
`,opts.asFunction&&(out+="return function(ctx, cb) { return nunjucks.render("+name+`, ctx, cb); }
`),out+=`})();
`}return out}module3.exports=precompileGlobal}),(function(module3,exports2,__webpack_require__){function installCompat(){"use strict";var runtime=this.runtime,lib=this.lib,Compiler=this.compiler.Compiler,Parser=this.parser.Parser,nodes=this.nodes,lexer=this.lexer,orig_contextOrFrameLookup=runtime.contextOrFrameLookup,orig_memberLookup=runtime.memberLookup,orig_Compiler_assertType,orig_Parser_parseAggregate;Compiler&&(orig_Compiler_assertType=Compiler.prototype.assertType),Parser&&(orig_Parser_parseAggregate=Parser.prototype.parseAggregate);function uninstall(){runtime.contextOrFrameLookup=orig_contextOrFrameLookup,runtime.memberLookup=orig_memberLookup,Compiler&&(Compiler.prototype.assertType=orig_Compiler_assertType),Parser&&(Parser.prototype.parseAggregate=orig_Parser_parseAggregate)}runtime.contextOrFrameLookup=function(context,frame,key2){var val=orig_contextOrFrameLookup.apply(this,arguments);if(val!==void 0)return val;switch(key2){case"True":return!0;case"False":return!1;case"None":return null;default:return}};function getTokensState(tokens){return{index:tokens.index,lineno:tokens.lineno,colno:tokens.colno}}if(nodes&&Compiler&&Parser){var Slice=nodes.Node.extend("Slice",{fields:["start","stop","step"],init:function(lineno,colno,start,stop,step){start=start||new nodes.Literal(lineno,colno,null),stop=stop||new nodes.Literal(lineno,colno,null),step=step||new nodes.Literal(lineno,colno,1),this.parent(lineno,colno,start,stop,step)}});Compiler.prototype.assertType=function(node){node instanceof Slice||orig_Compiler_assertType.apply(this,arguments)},Compiler.prototype.compileSlice=function(node,frame){this._emit("("),this._compileExpression(node.start,frame),this._emit("),("),this._compileExpression(node.stop,frame),this._emit("),("),this._compileExpression(node.step,frame),this._emit(")")},Parser.prototype.parseAggregate=function(){var _this=this,origState=getTokensState(this.tokens);origState.colno--,origState.index--;try{return orig_Parser_parseAggregate.apply(this)}catch(e){var errState=getTokensState(this.tokens),rethrow=function(){return lib._assign(_this.tokens,errState),e};lib._assign(this.tokens,origState),this.peeked=!1;var tok=this.peekToken();if(tok.type!==lexer.TOKEN_LEFT_BRACKET)throw rethrow();this.nextToken();for(var node=new Slice(tok.lineno,tok.colno),isSlice=!1,i=0;i<=node.fields.length&&!this.skip(lexer.TOKEN_RIGHT_BRACKET);i++){if(i===node.fields.length)if(isSlice)this.fail("parseSlice: too many slice components",tok.lineno,tok.colno);else break;if(this.skip(lexer.TOKEN_COLON))isSlice=!0;else{var field=node.fields[i];node[field]=this.parseExpression(),isSlice=this.skip(lexer.TOKEN_COLON)||isSlice}}if(!isSlice)throw rethrow();return new nodes.Array(tok.lineno,tok.colno,[node])}}}function sliceLookup(obj,start,stop,step){obj=obj||[],start===null&&(start=step<0?obj.length-1:0),stop===null?stop=step<0?-1:obj.length:stop<0&&(stop+=obj.length),start<0&&(start+=obj.length);for(var results=[],i=start;!(i<0||i>obj.length||step>0&&i>=stop||step<0&&i<=stop);i+=step)results.push(runtime.memberLookup(obj,i));return results}function hasOwnProp(obj,key2){return Object.prototype.hasOwnProperty.call(obj,key2)}var ARRAY_MEMBERS={pop:function(index2){if(index2===void 0)return this.pop();if(index2>=this.length||index2<0)throw new Error("KeyError");return this.splice(index2,1)},append:function(element2){return this.push(element2)},remove:function(element2){for(var i=0;i<this.length;i++)if(this[i]===element2)return this.splice(i,1);throw new Error("ValueError")},count:function(element2){for(var count2=0,i=0;i<this.length;i++)this[i]===element2&&count2++;return count2},index:function(element2){var i;if((i=this.indexOf(element2))===-1)throw new Error("ValueError");return i},find:function(element2){return this.indexOf(element2)},insert:function(index2,elem){return this.splice(index2,0,elem)}},OBJECT_MEMBERS={items:function(){return lib._entries(this)},values:function(){return lib._values(this)},keys:function(){return lib.keys(this)},get:function(key2,def){var output=this[key2];return output===void 0&&(output=def),output},has_key:function(key2){return hasOwnProp(this,key2)},pop:function(key2,def){var output=this[key2];if(output===void 0&&def!==void 0)output=def;else{if(output===void 0)throw new Error("KeyError");delete this[key2]}return output},popitem:function(){var keys=lib.keys(this);if(!keys.length)throw new Error("KeyError");var k=keys[0],val=this[k];return delete this[k],[k,val]},setdefault:function(key2,def){return def===void 0&&(def=null),key2 in this||(this[key2]=def),this[key2]},update:function(kwargs){return lib._assign(this,kwargs),null}};return OBJECT_MEMBERS.iteritems=OBJECT_MEMBERS.items,OBJECT_MEMBERS.itervalues=OBJECT_MEMBERS.values,OBJECT_MEMBERS.iterkeys=OBJECT_MEMBERS.keys,runtime.memberLookup=function(obj,val,autoescape){return arguments.length===4?sliceLookup.apply(this,arguments):(obj=obj||{},lib.isArray(obj)&&hasOwnProp(ARRAY_MEMBERS,val)?ARRAY_MEMBERS[val].bind(obj):lib.isObject(obj)&&hasOwnProp(OBJECT_MEMBERS,val)?OBJECT_MEMBERS[val].bind(obj):orig_memberLookup.apply(this,arguments))},uninstall}module3.exports=installCompat})])})}});var require_moment=__commonJS({"node_modules/.pnpm/moment@2.30.1/node_modules/moment/moment.js"(exports,module2){(function(global2,factory2){typeof exports=="object"&&typeof module2!="undefined"?module2.exports=factory2():typeof define=="function"&&define.amd?define(factory2):global2.moment=factory2()})(exports,(function(){"use strict";var hookCallback;function hooks(){return hookCallback.apply(null,arguments)}function setHookCallback(callback){hookCallback=callback}function isArray2(input){return input instanceof Array||Object.prototype.toString.call(input)==="[object Array]"}function isObject3(input){return input!=null&&Object.prototype.toString.call(input)==="[object Object]"}function hasOwnProp(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function isObjectEmpty(obj){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(obj).length===0;var k;for(k in obj)if(hasOwnProp(obj,k))return!1;return!0}function isUndefined2(input){return input===void 0}function isNumber2(input){return typeof input=="number"||Object.prototype.toString.call(input)==="[object Number]"}function isDate2(input){return input instanceof Date||Object.prototype.toString.call(input)==="[object Date]"}function map2(arr,fn){var res=[],i,arrLen=arr.length;for(i=0;i<arrLen;++i)res.push(fn(arr[i],i));return res}function extend3(a,b){for(var i in b)hasOwnProp(b,i)&&(a[i]=b[i]);return hasOwnProp(b,"toString")&&(a.toString=b.toString),hasOwnProp(b,"valueOf")&&(a.valueOf=b.valueOf),a}function createUTC(input,format2,locale2,strict){return createLocalOrUTC(input,format2,locale2,strict,!0).utc()}function defaultParsingFlags(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function getParsingFlags(m){return m._pf==null&&(m._pf=defaultParsingFlags()),m._pf}var some;Array.prototype.some?some=Array.prototype.some:some=function(fun){var t=Object(this),len=t.length>>>0,i;for(i=0;i<len;i++)if(i in t&&fun.call(this,t[i],i,t))return!0;return!1};function isValid(m){var flags2=null,parsedParts=!1,isNowValid=m._d&&!isNaN(m._d.getTime());if(isNowValid&&(flags2=getParsingFlags(m),parsedParts=some.call(flags2.parsedDateParts,function(i){return i!=null}),isNowValid=flags2.overflow<0&&!flags2.empty&&!flags2.invalidEra&&!flags2.invalidMonth&&!flags2.invalidWeekday&&!flags2.weekdayMismatch&&!flags2.nullInput&&!flags2.invalidFormat&&!flags2.userInvalidated&&(!flags2.meridiem||flags2.meridiem&&parsedParts),m._strict&&(isNowValid=isNowValid&&flags2.charsLeftOver===0&&flags2.unusedTokens.length===0&&flags2.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(m))m._isValid=isNowValid;else return isNowValid;return m._isValid}function createInvalid(flags2){var m=createUTC(NaN);return flags2!=null?extend3(getParsingFlags(m),flags2):getParsingFlags(m).userInvalidated=!0,m}var momentProperties=hooks.momentProperties=[],updateInProgress=!1;function copyConfig(to2,from2){var i,prop2,val,momentPropertiesLen=momentProperties.length;if(isUndefined2(from2._isAMomentObject)||(to2._isAMomentObject=from2._isAMomentObject),isUndefined2(from2._i)||(to2._i=from2._i),isUndefined2(from2._f)||(to2._f=from2._f),isUndefined2(from2._l)||(to2._l=from2._l),isUndefined2(from2._strict)||(to2._strict=from2._strict),isUndefined2(from2._tzm)||(to2._tzm=from2._tzm),isUndefined2(from2._isUTC)||(to2._isUTC=from2._isUTC),isUndefined2(from2._offset)||(to2._offset=from2._offset),isUndefined2(from2._pf)||(to2._pf=getParsingFlags(from2)),isUndefined2(from2._locale)||(to2._locale=from2._locale),momentPropertiesLen>0)for(i=0;i<momentPropertiesLen;i++)prop2=momentProperties[i],val=from2[prop2],isUndefined2(val)||(to2[prop2]=val);return to2}function Moment2(config2){copyConfig(this,config2),this._d=new Date(config2._d!=null?config2._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),updateInProgress===!1&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(obj){return obj instanceof Moment2||obj!=null&&obj._isAMomentObject!=null}function warn(msg){hooks.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+msg)}function deprecate(msg,fn){var firstTime=!0;return extend3(function(){if(hooks.deprecationHandler!=null&&hooks.deprecationHandler(null,msg),firstTime){var args=[],arg,i,key2,argLen=arguments.length;for(i=0;i<argLen;i++){if(arg="",typeof arguments[i]=="object"){arg+=`
[`+i+"] ";for(key2 in arguments[0])hasOwnProp(arguments[0],key2)&&(arg+=key2+": "+arguments[0][key2]+", ");arg=arg.slice(0,-2)}else arg=arguments[i];args.push(arg)}warn(msg+`
Arguments: `+Array.prototype.slice.call(args).join("")+`
`+new Error().stack),firstTime=!1}return fn.apply(this,arguments)},fn)}var deprecations={};function deprecateSimple(name,msg){hooks.deprecationHandler!=null&&hooks.deprecationHandler(name,msg),deprecations[name]||(warn(msg),deprecations[name]=!0)}hooks.suppressDeprecationWarnings=!1,hooks.deprecationHandler=null;function isFunction3(input){return typeof Function!="undefined"&&input instanceof Function||Object.prototype.toString.call(input)==="[object Function]"}function set3(config2){var prop2,i;for(i in config2)hasOwnProp(config2,i)&&(prop2=config2[i],isFunction3(prop2)?this[i]=prop2:this["_"+i]=prop2);this._config=config2,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function mergeConfigs(parentConfig,childConfig){var res=extend3({},parentConfig),prop2;for(prop2 in childConfig)hasOwnProp(childConfig,prop2)&&(isObject3(parentConfig[prop2])&&isObject3(childConfig[prop2])?(res[prop2]={},extend3(res[prop2],parentConfig[prop2]),extend3(res[prop2],childConfig[prop2])):childConfig[prop2]!=null?res[prop2]=childConfig[prop2]:delete res[prop2]);for(prop2 in parentConfig)hasOwnProp(parentConfig,prop2)&&!hasOwnProp(childConfig,prop2)&&isObject3(parentConfig[prop2])&&(res[prop2]=extend3({},res[prop2]));return res}function Locale(config2){config2!=null&&this.set(config2)}var keys;Object.keys?keys=Object.keys:keys=function(obj){var i,res=[];for(i in obj)hasOwnProp(obj,i)&&res.push(i);return res};var defaultCalendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function calendar(key2,mom,now2){var output=this._calendar[key2]||this._calendar.sameElse;return isFunction3(output)?output.call(mom,now2):output}function zeroFill(number4,targetLength,forceSign){var absNumber=""+Math.abs(number4),zerosToFill=targetLength-absNumber.length,sign2=number4>=0;return(sign2?forceSign?"+":"":"-")+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(token2,padded,ordinal2,callback){var func=callback;typeof callback=="string"&&(func=function(){return this[callback]()}),token2&&(formatTokenFunctions[token2]=func),padded&&(formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2])}),ordinal2&&(formatTokenFunctions[ordinal2]=function(){return this.localeData().ordinal(func.apply(this,arguments),token2)})}function removeFormattingTokens(input){return input.match(/\[[\s\S]/)?input.replace(/^\[|\]$/g,""):input.replace(/\\/g,"")}function makeFormatFunction(format2){var array2=format2.match(formattingTokens),i,length;for(i=0,length=array2.length;i<length;i++)formatTokenFunctions[array2[i]]?array2[i]=formatTokenFunctions[array2[i]]:array2[i]=removeFormattingTokens(array2[i]);return function(mom){var output="",i2;for(i2=0;i2<length;i2++)output+=isFunction3(array2[i2])?array2[i2].call(mom,format2):array2[i2];return output}}function formatMoment(m,format2){return m.isValid()?(format2=expandFormat(format2,m.localeData()),formatFunctions[format2]=formatFunctions[format2]||makeFormatFunction(format2),formatFunctions[format2](m)):m.localeData().invalidDate()}function expandFormat(format2,locale2){var i=5;function replaceLongDateFormatTokens(input){return locale2.longDateFormat(input)||input}for(localFormattingTokens.lastIndex=0;i>=0&&localFormattingTokens.test(format2);)format2=format2.replace(localFormattingTokens,replaceLongDateFormatTokens),localFormattingTokens.lastIndex=0,i-=1;return format2}var defaultLongDateFormat={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function longDateFormat(key2){var format2=this._longDateFormat[key2],formatUpper=this._longDateFormat[key2.toUpperCase()];return format2||!formatUpper?format2:(this._longDateFormat[key2]=formatUpper.match(formattingTokens).map(function(tok){return tok==="MMMM"||tok==="MM"||tok==="DD"||tok==="dddd"?tok.slice(1):tok}).join(""),this._longDateFormat[key2])}var defaultInvalidDate="Invalid date";function invalidDate(){return this._invalidDate}var defaultOrdinal="%d",defaultDayOfMonthOrdinalParse=/\d{1,2}/;function ordinal(number4){return this._ordinal.replace("%d",number4)}var defaultRelativeTime={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function relativeTime(number4,withoutSuffix,string4,isFuture){var output=this._relativeTime[string4];return isFunction3(output)?output(number4,withoutSuffix,string4,isFuture):output.replace(/%d/i,number4)}function pastFuture(diff2,output){var format2=this._relativeTime[diff2>0?"future":"past"];return isFunction3(format2)?format2(output):format2.replace(/%s/i,output)}var aliases={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function normalizeUnits(units){return typeof units=="string"?aliases[units]||aliases[units.toLowerCase()]:void 0}function normalizeObjectUnits(inputObject){var normalizedInput={},normalizedProp,prop2;for(prop2 in inputObject)hasOwnProp(inputObject,prop2)&&(normalizedProp=normalizeUnits(prop2),normalizedProp&&(normalizedInput[normalizedProp]=inputObject[prop2]));return normalizedInput}var priorities={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function getPrioritizedUnits(unitsObj){var units=[],u;for(u in unitsObj)hasOwnProp(unitsObj,u)&&units.push({unit:u,priority:priorities[u]});return units.sort(function(a,b){return a.priority-b.priority}),units}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchTimestamp=/[+-]?\d+(\.\d{1,3})?/,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,match1to2NoLeadingZero=/^[1-9]\d?/,match1to2HasZero=/^([1-9]\d|\d)/,regexes;regexes={};function addRegexToken(token2,regex,strictRegex){regexes[token2]=isFunction3(regex)?regex:function(isStrict,localeData2){return isStrict&&strictRegex?strictRegex:regex}}function getParseRegexForToken(token2,config2){return hasOwnProp(regexes,token2)?regexes[token2](config2._strict,config2._locale):new RegExp(unescapeFormat(token2))}function unescapeFormat(s){return regexEscape(s.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(matched,p1,p2,p3,p4){return p1||p2||p3||p4}))}function regexEscape(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function absFloor(number4){return number4<0?Math.ceil(number4)||0:Math.floor(number4)}function toInt(argumentForCoercion){var coercedNumber=+argumentForCoercion,value=0;return coercedNumber!==0&&isFinite(coercedNumber)&&(value=absFloor(coercedNumber)),value}var tokens={};function addParseToken(token2,callback){var i,func=callback,tokenLen;for(typeof token2=="string"&&(token2=[token2]),isNumber2(callback)&&(func=function(input,array2){array2[callback]=toInt(input)}),tokenLen=token2.length,i=0;i<tokenLen;i++)tokens[token2[i]]=func}function addWeekParseToken(token2,callback){addParseToken(token2,function(input,array2,config2,token3){config2._w=config2._w||{},callback(input,config2._w,config2,token3)})}function addTimeToArrayFromToken(token2,input,config2){input!=null&&hasOwnProp(tokens,token2)&&tokens[token2](input,config2._a,config2,token2)}function isLeapYear(year){return year%4===0&&year%100!==0||year%400===0}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;addFormatToken("Y",0,0,function(){var y=this.year();return y<=9999?zeroFill(y,4):"+"+y}),addFormatToken(0,["YY",2],0,function(){return this.year()%100}),addFormatToken(0,["YYYY",4],0,"year"),addFormatToken(0,["YYYYY",5],0,"year"),addFormatToken(0,["YYYYYY",6,!0],0,"year"),addRegexToken("Y",matchSigned),addRegexToken("YY",match1to2,match2),addRegexToken("YYYY",match1to4,match4),addRegexToken("YYYYY",match1to6,match6),addRegexToken("YYYYYY",match1to6,match6),addParseToken(["YYYYY","YYYYYY"],YEAR),addParseToken("YYYY",function(input,array2){array2[YEAR]=input.length===2?hooks.parseTwoDigitYear(input):toInt(input)}),addParseToken("YY",function(input,array2){array2[YEAR]=hooks.parseTwoDigitYear(input)}),addParseToken("Y",function(input,array2){array2[YEAR]=parseInt(input,10)});function daysInYear(year){return isLeapYear(year)?366:365}hooks.parseTwoDigitYear=function(input){return toInt(input)+(toInt(input)>68?1900:2e3)};var getSetYear=makeGetSet("FullYear",!0);function getIsLeapYear(){return isLeapYear(this.year())}function makeGetSet(unit,keepTime){return function(value){return value!=null?(set$1(this,unit,value),hooks.updateOffset(this,keepTime),this):get3(this,unit)}}function get3(mom,unit){if(!mom.isValid())return NaN;var d=mom._d,isUTC=mom._isUTC;switch(unit){case"Milliseconds":return isUTC?d.getUTCMilliseconds():d.getMilliseconds();case"Seconds":return isUTC?d.getUTCSeconds():d.getSeconds();case"Minutes":return isUTC?d.getUTCMinutes():d.getMinutes();case"Hours":return isUTC?d.getUTCHours():d.getHours();case"Date":return isUTC?d.getUTCDate():d.getDate();case"Day":return isUTC?d.getUTCDay():d.getDay();case"Month":return isUTC?d.getUTCMonth():d.getMonth();case"FullYear":return isUTC?d.getUTCFullYear():d.getFullYear();default:return NaN}}function set$1(mom,unit,value){var d,isUTC,year,month,date5;if(!(!mom.isValid()||isNaN(value))){switch(d=mom._d,isUTC=mom._isUTC,unit){case"Milliseconds":return void(isUTC?d.setUTCMilliseconds(value):d.setMilliseconds(value));case"Seconds":return void(isUTC?d.setUTCSeconds(value):d.setSeconds(value));case"Minutes":return void(isUTC?d.setUTCMinutes(value):d.setMinutes(value));case"Hours":return void(isUTC?d.setUTCHours(value):d.setHours(value));case"Date":return void(isUTC?d.setUTCDate(value):d.setDate(value));case"FullYear":break;default:return}year=value,month=mom.month(),date5=mom.date(),date5=date5===29&&month===1&&!isLeapYear(year)?28:date5,isUTC?d.setUTCFullYear(year,month,date5):d.setFullYear(year,month,date5)}}function stringGet(units){return units=normalizeUnits(units),isFunction3(this[units])?this[units]():this}function stringSet(units,value){if(typeof units=="object"){units=normalizeObjectUnits(units);var prioritized=getPrioritizedUnits(units),i,prioritizedLen=prioritized.length;for(i=0;i<prioritizedLen;i++)this[prioritized[i].unit](units[prioritized[i].unit])}else if(units=normalizeUnits(units),isFunction3(this[units]))return this[units](value);return this}function mod(n,x){return(n%x+x)%x}var indexOf;Array.prototype.indexOf?indexOf=Array.prototype.indexOf:indexOf=function(o){var i;for(i=0;i<this.length;++i)if(this[i]===o)return i;return-1};function daysInMonth(year,month){if(isNaN(year)||isNaN(month))return NaN;var modMonth=mod(month,12);return year+=(month-modMonth)/12,modMonth===1?isLeapYear(year)?29:28:31-modMonth%7%2}addFormatToken("M",["MM",2],"Mo",function(){return this.month()+1}),addFormatToken("MMM",0,0,function(format2){return this.localeData().monthsShort(this,format2)}),addFormatToken("MMMM",0,0,function(format2){return this.localeData().months(this,format2)}),addRegexToken("M",match1to2,match1to2NoLeadingZero),addRegexToken("MM",match1to2,match2),addRegexToken("MMM",function(isStrict,locale2){return locale2.monthsShortRegex(isStrict)}),addRegexToken("MMMM",function(isStrict,locale2){return locale2.monthsRegex(isStrict)}),addParseToken(["M","MM"],function(input,array2){array2[MONTH]=toInt(input)-1}),addParseToken(["MMM","MMMM"],function(input,array2,config2,token2){var month=config2._locale.monthsParse(input,token2,config2._strict);month!=null?array2[MONTH]=month:getParsingFlags(config2).invalidMonth=input});var defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function localeMonths(m,format2){return m?isArray2(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format2)?"format":"standalone"][m.month()]:isArray2(this._months)?this._months:this._months.standalone}function localeMonthsShort(m,format2){return m?isArray2(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(format2)?"format":"standalone"][m.month()]:isArray2(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function handleStrictParse(monthName,format2,strict){var i,ii,mom,llc=monthName.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)mom=createUTC([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(mom,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(mom,"").toLocaleLowerCase();return strict?format2==="MMM"?(ii=indexOf.call(this._shortMonthsParse,llc),ii!==-1?ii:null):(ii=indexOf.call(this._longMonthsParse,llc),ii!==-1?ii:null):format2==="MMM"?(ii=indexOf.call(this._shortMonthsParse,llc),ii!==-1?ii:(ii=indexOf.call(this._longMonthsParse,llc),ii!==-1?ii:null)):(ii=indexOf.call(this._longMonthsParse,llc),ii!==-1?ii:(ii=indexOf.call(this._shortMonthsParse,llc),ii!==-1?ii:null))}function localeMonthsParse(monthName,format2,strict){var i,mom,regex;if(this._monthsParseExact)return handleStrictParse.call(this,monthName,format2,strict);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(mom=createUTC([2e3,i]),strict&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(mom,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(mom,"").replace(".","")+"$","i")),!strict&&!this._monthsParse[i]&&(regex="^"+this.months(mom,"")+"|^"+this.monthsShort(mom,""),this._monthsParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&format2==="MMMM"&&this._longMonthsParse[i].test(monthName))return i;if(strict&&format2==="MMM"&&this._shortMonthsParse[i].test(monthName))return i;if(!strict&&this._monthsParse[i].test(monthName))return i}}function setMonth(mom,value){if(!mom.isValid())return mom;if(typeof value=="string"){if(/^\d+$/.test(value))value=toInt(value);else if(value=mom.localeData().monthsParse(value),!isNumber2(value))return mom}var month=value,date5=mom.date();return date5=date5<29?date5:Math.min(date5,daysInMonth(mom.year(),month)),mom._isUTC?mom._d.setUTCMonth(month,date5):mom._d.setMonth(month,date5),mom}function getSetMonth(value){return value!=null?(setMonth(this,value),hooks.updateOffset(this,!0),this):get3(this,"Month")}function getDaysInMonth(){return daysInMonth(this.year(),this.month())}function monthsShortRegex(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex)}function monthsRegex(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex)}function computeMonthsParse(){function cmpLenRev(a,b){return b.length-a.length}var shortPieces=[],longPieces=[],mixedPieces=[],i,mom,shortP,longP;for(i=0;i<12;i++)mom=createUTC([2e3,i]),shortP=regexEscape(this.monthsShort(mom,"")),longP=regexEscape(this.months(mom,"")),shortPieces.push(shortP),longPieces.push(longP),mixedPieces.push(longP),mixedPieces.push(shortP);shortPieces.sort(cmpLenRev),longPieces.sort(cmpLenRev),mixedPieces.sort(cmpLenRev),this._monthsRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+longPieces.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i")}function createDate(y,m,d,h2,M,s,ms){var date5;return y<100&&y>=0?(date5=new Date(y+400,m,d,h2,M,s,ms),isFinite(date5.getFullYear())&&date5.setFullYear(y)):date5=new Date(y,m,d,h2,M,s,ms),date5}function createUTCDate(y){var date5,args;return y<100&&y>=0?(args=Array.prototype.slice.call(arguments),args[0]=y+400,date5=new Date(Date.UTC.apply(null,args)),isFinite(date5.getUTCFullYear())&&date5.setUTCFullYear(y)):date5=new Date(Date.UTC.apply(null,arguments)),date5}function firstWeekOffset(year,dow,doy){var fwd=7+dow-doy,fwdlw=(7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7;return-fwdlw+fwd-1}function dayOfYearFromWeeks(year,week,weekday,dow,doy){var localWeekday=(7+weekday-dow)%7,weekOffset=firstWeekOffset(year,dow,doy),dayOfYear=1+7*(week-1)+localWeekday+weekOffset,resYear,resDayOfYear;return dayOfYear<=0?(resYear=year-1,resDayOfYear=daysInYear(resYear)+dayOfYear):dayOfYear>daysInYear(year)?(resYear=year+1,resDayOfYear=dayOfYear-daysInYear(year)):(resYear=year,resDayOfYear=dayOfYear),{year:resYear,dayOfYear:resDayOfYear}}function weekOfYear(mom,dow,doy){var weekOffset=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-weekOffset-1)/7)+1,resWeek,resYear;return week<1?(resYear=mom.year()-1,resWeek=week+weeksInYear(resYear,dow,doy)):week>weeksInYear(mom.year(),dow,doy)?(resWeek=week-weeksInYear(mom.year(),dow,doy),resYear=mom.year()+1):(resYear=mom.year(),resWeek=week),{week:resWeek,year:resYear}}function weeksInYear(year,dow,doy){var weekOffset=firstWeekOffset(year,dow,doy),weekOffsetNext=firstWeekOffset(year+1,dow,doy);return(daysInYear(year)-weekOffset+weekOffsetNext)/7}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addRegexToken("w",match1to2,match1to2NoLeadingZero),addRegexToken("ww",match1to2,match2),addRegexToken("W",match1to2,match1to2NoLeadingZero),addRegexToken("WW",match1to2,match2),addWeekParseToken(["w","ww","W","WW"],function(input,week,config2,token2){week[token2.substr(0,1)]=toInt(input)});function localeWeek(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week}var defaultLocaleWeek={dow:0,doy:6};function localeFirstDayOfWeek(){return this._week.dow}function localeFirstDayOfYear(){return this._week.doy}function getSetWeek(input){var week=this.localeData().week(this);return input==null?week:this.add((input-week)*7,"d")}function getSetISOWeek(input){var week=weekOfYear(this,1,4).week;return input==null?week:this.add((input-week)*7,"d")}addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,function(format2){return this.localeData().weekdaysMin(this,format2)}),addFormatToken("ddd",0,0,function(format2){return this.localeData().weekdaysShort(this,format2)}),addFormatToken("dddd",0,0,function(format2){return this.localeData().weekdays(this,format2)}),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addRegexToken("d",match1to2),addRegexToken("e",match1to2),addRegexToken("E",match1to2),addRegexToken("dd",function(isStrict,locale2){return locale2.weekdaysMinRegex(isStrict)}),addRegexToken("ddd",function(isStrict,locale2){return locale2.weekdaysShortRegex(isStrict)}),addRegexToken("dddd",function(isStrict,locale2){return locale2.weekdaysRegex(isStrict)}),addWeekParseToken(["dd","ddd","dddd"],function(input,week,config2,token2){var weekday=config2._locale.weekdaysParse(input,token2,config2._strict);weekday!=null?week.d=weekday:getParsingFlags(config2).invalidWeekday=input}),addWeekParseToken(["d","e","E"],function(input,week,config2,token2){week[token2]=toInt(input)});function parseWeekday(input,locale2){return typeof input!="string"?input:isNaN(input)?(input=locale2.weekdaysParse(input),typeof input=="number"?input:null):parseInt(input,10)}function parseIsoWeekday(input,locale2){return typeof input=="string"?locale2.weekdaysParse(input)%7||7:isNaN(input)?null:input}function shiftWeekdays(ws,n){return ws.slice(n,7).concat(ws.slice(0,n))}var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function localeWeekdays(m,format2){var weekdays=isArray2(this._weekdays)?this._weekdays:this._weekdays[m&&m!==!0&&this._weekdays.isFormat.test(format2)?"format":"standalone"];return m===!0?shiftWeekdays(weekdays,this._week.dow):m?weekdays[m.day()]:weekdays}function localeWeekdaysShort(m){return m===!0?shiftWeekdays(this._weekdaysShort,this._week.dow):m?this._weekdaysShort[m.day()]:this._weekdaysShort}function localeWeekdaysMin(m){return m===!0?shiftWeekdays(this._weekdaysMin,this._week.dow):m?this._weekdaysMin[m.day()]:this._weekdaysMin}function handleStrictParse$1(weekdayName,format2,strict){var i,ii,mom,llc=weekdayName.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)mom=createUTC([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(mom,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(mom,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(mom,"").toLocaleLowerCase();return strict?format2==="dddd"?(ii=indexOf.call(this._weekdaysParse,llc),ii!==-1?ii:null):format2==="ddd"?(ii=indexOf.call(this._shortWeekdaysParse,llc),ii!==-1?ii:null):(ii=indexOf.call(this._minWeekdaysParse,llc),ii!==-1?ii:null):format2==="dddd"?(ii=indexOf.call(this._weekdaysParse,llc),ii!==-1||(ii=indexOf.call(this._shortWeekdaysParse,llc),ii!==-1)?ii:(ii=indexOf.call(this._minWeekdaysParse,llc),ii!==-1?ii:null)):format2==="ddd"?(ii=indexOf.call(this._shortWeekdaysParse,llc),ii!==-1||(ii=indexOf.call(this._weekdaysParse,llc),ii!==-1)?ii:(ii=indexOf.call(this._minWeekdaysParse,llc),ii!==-1?ii:null)):(ii=indexOf.call(this._minWeekdaysParse,llc),ii!==-1||(ii=indexOf.call(this._weekdaysParse,llc),ii!==-1)?ii:(ii=indexOf.call(this._shortWeekdaysParse,llc),ii!==-1?ii:null))}function localeWeekdaysParse(weekdayName,format2,strict){var i,mom,regex;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,weekdayName,format2,strict);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(mom=createUTC([2e3,1]).day(i),strict&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(mom,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(mom,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(mom,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(regex="^"+this.weekdays(mom,"")+"|^"+this.weekdaysShort(mom,"")+"|^"+this.weekdaysMin(mom,""),this._weekdaysParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&format2==="dddd"&&this._fullWeekdaysParse[i].test(weekdayName))return i;if(strict&&format2==="ddd"&&this._shortWeekdaysParse[i].test(weekdayName))return i;if(strict&&format2==="dd"&&this._minWeekdaysParse[i].test(weekdayName))return i;if(!strict&&this._weekdaysParse[i].test(weekdayName))return i}}function getSetDayOfWeek(input){if(!this.isValid())return input!=null?this:NaN;var day=get3(this,"Day");return input!=null?(input=parseWeekday(input,this.localeData()),this.add(input-day,"d")):day}function getSetLocaleDayOfWeek(input){if(!this.isValid())return input!=null?this:NaN;var weekday=(this.day()+7-this.localeData()._week.dow)%7;return input==null?weekday:this.add(input-weekday,"d")}function getSetISODayOfWeek(input){if(!this.isValid())return input!=null?this:NaN;if(input!=null){var weekday=parseIsoWeekday(input,this.localeData());return this.day(this.day()%7?weekday:weekday-7)}else return this.day()||7}function weekdaysRegex(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&isStrict?this._weekdaysStrictRegex:this._weekdaysRegex)}function weekdaysShortRegex(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function weekdaysMinRegex(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function computeWeekdaysParse(){function cmpLenRev(a,b){return b.length-a.length}var minPieces=[],shortPieces=[],longPieces=[],mixedPieces=[],i,mom,minp,shortp,longp;for(i=0;i<7;i++)mom=createUTC([2e3,1]).day(i),minp=regexEscape(this.weekdaysMin(mom,"")),shortp=regexEscape(this.weekdaysShort(mom,"")),longp=regexEscape(this.weekdays(mom,"")),minPieces.push(minp),shortPieces.push(shortp),longPieces.push(longp),mixedPieces.push(minp),mixedPieces.push(shortp),mixedPieces.push(longp);minPieces.sort(cmpLenRev),shortPieces.sort(cmpLenRev),longPieces.sort(cmpLenRev),mixedPieces.sort(cmpLenRev),this._weekdaysRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+longPieces.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+minPieces.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function kFormat(){return this.hours()||24}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,kFormat),addFormatToken("hmm",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)}),addFormatToken("hmmss",0,0,function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)}),addFormatToken("Hmm",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)}),addFormatToken("Hmmss",0,0,function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)});function meridiem(token2,lowercase2){addFormatToken(token2,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase2)})}meridiem("a",!0),meridiem("A",!1);function matchMeridiem(isStrict,locale2){return locale2._meridiemParse}addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",match1to2,match1to2HasZero),addRegexToken("h",match1to2,match1to2NoLeadingZero),addRegexToken("k",match1to2,match1to2NoLeadingZero),addRegexToken("HH",match1to2,match2),addRegexToken("hh",match1to2,match2),addRegexToken("kk",match1to2,match2),addRegexToken("hmm",match3to4),addRegexToken("hmmss",match5to6),addRegexToken("Hmm",match3to4),addRegexToken("Hmmss",match5to6),addParseToken(["H","HH"],HOUR),addParseToken(["k","kk"],function(input,array2,config2){var kInput=toInt(input);array2[HOUR]=kInput===24?0:kInput}),addParseToken(["a","A"],function(input,array2,config2){config2._isPm=config2._locale.isPM(input),config2._meridiem=input}),addParseToken(["h","hh"],function(input,array2,config2){array2[HOUR]=toInt(input),getParsingFlags(config2).bigHour=!0}),addParseToken("hmm",function(input,array2,config2){var pos=input.length-2;array2[HOUR]=toInt(input.substr(0,pos)),array2[MINUTE]=toInt(input.substr(pos)),getParsingFlags(config2).bigHour=!0}),addParseToken("hmmss",function(input,array2,config2){var pos1=input.length-4,pos2=input.length-2;array2[HOUR]=toInt(input.substr(0,pos1)),array2[MINUTE]=toInt(input.substr(pos1,2)),array2[SECOND]=toInt(input.substr(pos2)),getParsingFlags(config2).bigHour=!0}),addParseToken("Hmm",function(input,array2,config2){var pos=input.length-2;array2[HOUR]=toInt(input.substr(0,pos)),array2[MINUTE]=toInt(input.substr(pos))}),addParseToken("Hmmss",function(input,array2,config2){var pos1=input.length-4,pos2=input.length-2;array2[HOUR]=toInt(input.substr(0,pos1)),array2[MINUTE]=toInt(input.substr(pos1,2)),array2[SECOND]=toInt(input.substr(pos2))});function localeIsPM(input){return(input+"").toLowerCase().charAt(0)==="p"}var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i,getSetHour=makeGetSet("Hours",!0);function localeMeridiem(hours2,minutes2,isLower){return hours2>11?isLower?"pm":"PM":isLower?"am":"AM"}var baseConfig={calendar:defaultCalendar,longDateFormat:defaultLongDateFormat,invalidDate:defaultInvalidDate,ordinal:defaultOrdinal,dayOfMonthOrdinalParse:defaultDayOfMonthOrdinalParse,relativeTime:defaultRelativeTime,months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:defaultLocaleWeek,weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:defaultLocaleMeridiemParse},locales={},localeFamilies={},globalLocale;function commonPrefix(arr1,arr2){var i,minl=Math.min(arr1.length,arr2.length);for(i=0;i<minl;i+=1)if(arr1[i]!==arr2[i])return i;return minl}function normalizeLocale(key2){return key2&&key2.toLowerCase().replace("_","-")}function chooseLocale(names){for(var i=0,j,next2,locale2,split;i<names.length;){for(split=normalizeLocale(names[i]).split("-"),j=split.length,next2=normalizeLocale(names[i+1]),next2=next2?next2.split("-"):null;j>0;){if(locale2=loadLocale(split.slice(0,j).join("-")),locale2)return locale2;if(next2&&next2.length>=j&&commonPrefix(split,next2)>=j-1)break;j--}i++}return globalLocale}function isLocaleNameSane(name){return!!(name&&name.match("^[^/\\\\]*$"))}function loadLocale(name){var oldLocale=null,aliasedRequire;if(locales[name]===void 0&&typeof module2!="undefined"&&module2&&module2.exports&&isLocaleNameSane(name))try{oldLocale=globalLocale._abbr,aliasedRequire=require,aliasedRequire("./locale/"+name),getSetGlobalLocale(oldLocale)}catch(e){locales[name]=null}return locales[name]}function getSetGlobalLocale(key2,values){var data;return key2&&(isUndefined2(values)?data=getLocale(key2):data=defineLocale(key2,values),data?globalLocale=data:typeof console!="undefined"&&console.warn&&console.warn("Locale "+key2+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(name,config2){if(config2!==null){var locale2,parentConfig=baseConfig;if(config2.abbr=name,locales[name]!=null)deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),parentConfig=locales[name]._config;else if(config2.parentLocale!=null)if(locales[config2.parentLocale]!=null)parentConfig=locales[config2.parentLocale]._config;else if(locale2=loadLocale(config2.parentLocale),locale2!=null)parentConfig=locale2._config;else return localeFamilies[config2.parentLocale]||(localeFamilies[config2.parentLocale]=[]),localeFamilies[config2.parentLocale].push({name,config:config2}),null;return locales[name]=new Locale(mergeConfigs(parentConfig,config2)),localeFamilies[name]&&localeFamilies[name].forEach(function(x){defineLocale(x.name,x.config)}),getSetGlobalLocale(name),locales[name]}else return delete locales[name],null}function updateLocale(name,config2){if(config2!=null){var locale2,tmpLocale,parentConfig=baseConfig;locales[name]!=null&&locales[name].parentLocale!=null?locales[name].set(mergeConfigs(locales[name]._config,config2)):(tmpLocale=loadLocale(name),tmpLocale!=null&&(parentConfig=tmpLocale._config),config2=mergeConfigs(parentConfig,config2),tmpLocale==null&&(config2.abbr=name),locale2=new Locale(config2),locale2.parentLocale=locales[name],locales[name]=locale2),getSetGlobalLocale(name)}else locales[name]!=null&&(locales[name].parentLocale!=null?(locales[name]=locales[name].parentLocale,name===getSetGlobalLocale()&&getSetGlobalLocale(name)):locales[name]!=null&&delete locales[name]);return locales[name]}function getLocale(key2){var locale2;if(key2&&key2._locale&&key2._locale._abbr&&(key2=key2._locale._abbr),!key2)return globalLocale;if(!isArray2(key2)){if(locale2=loadLocale(key2),locale2)return locale2;key2=[key2]}return chooseLocale(key2)}function listLocales(){return keys(locales)}function checkOverflow(m){var overflow,a=m._a;return a&&getParsingFlags(m).overflow===-2&&(overflow=a[MONTH]<0||a[MONTH]>11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||a[HOUR]===24&&(a[MINUTE]!==0||a[SECOND]!==0||a[MILLISECOND]!==0)?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(m)._overflowDayOfYear&&(overflow<YEAR||overflow>DATE)&&(overflow=DATE),getParsingFlags(m)._overflowWeeks&&overflow===-1&&(overflow=WEEK),getParsingFlags(m)._overflowWeekday&&overflow===-1&&(overflow=WEEKDAY),getParsingFlags(m).overflow=overflow),m}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((-?\d+)/i,rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,obsOffsets={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function configFromISO(config2){var i,l,string4=config2._i,match=extendedIsoRegex.exec(string4)||basicIsoRegex.exec(string4),allowTime,dateFormat,timeFormat,tzFormat,isoDatesLen=isoDates.length,isoTimesLen=isoTimes.length;if(match){for(getParsingFlags(config2).iso=!0,i=0,l=isoDatesLen;i<l;i++)if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0],allowTime=isoDates[i][2]!==!1;break}if(dateFormat==null){config2._isValid=!1;return}if(match[3]){for(i=0,l=isoTimesLen;i<l;i++)if(isoTimes[i][1].exec(match[3])){timeFormat=(match[2]||" ")+isoTimes[i][0];break}if(timeFormat==null){config2._isValid=!1;return}}if(!allowTime&&timeFormat!=null){config2._isValid=!1;return}if(match[4])if(tzRegex.exec(match[4]))tzFormat="Z";else{config2._isValid=!1;return}config2._f=dateFormat+(timeFormat||"")+(tzFormat||""),configFromStringAndFormat(config2)}else config2._isValid=!1}function extractFromRFC2822Strings(yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr){var result=[untruncateYear(yearStr),defaultLocaleMonthsShort.indexOf(monthStr),parseInt(dayStr,10),parseInt(hourStr,10),parseInt(minuteStr,10)];return secondStr&&result.push(parseInt(secondStr,10)),result}function untruncateYear(yearStr){var year=parseInt(yearStr,10);return year<=49?2e3+year:year<=999?1900+year:year}function preprocessRFC2822(s){return s.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function checkWeekday(weekdayStr,parsedInput,config2){if(weekdayStr){var weekdayProvided=defaultLocaleWeekdaysShort.indexOf(weekdayStr),weekdayActual=new Date(parsedInput[0],parsedInput[1],parsedInput[2]).getDay();if(weekdayProvided!==weekdayActual)return getParsingFlags(config2).weekdayMismatch=!0,config2._isValid=!1,!1}return!0}function calculateOffset(obsOffset,militaryOffset,numOffset){if(obsOffset)return obsOffsets[obsOffset];if(militaryOffset)return 0;var hm=parseInt(numOffset,10),m=hm%100,h2=(hm-m)/100;return h2*60+m}function configFromRFC2822(config2){var match=rfc2822.exec(preprocessRFC2822(config2._i)),parsedArray;if(match){if(parsedArray=extractFromRFC2822Strings(match[4],match[3],match[2],match[5],match[6],match[7]),!checkWeekday(match[1],parsedArray,config2))return;config2._a=parsedArray,config2._tzm=calculateOffset(match[8],match[9],match[10]),config2._d=createUTCDate.apply(null,config2._a),config2._d.setUTCMinutes(config2._d.getUTCMinutes()-config2._tzm),getParsingFlags(config2).rfc2822=!0}else config2._isValid=!1}function configFromString(config2){var matched=aspNetJsonRegex.exec(config2._i);if(matched!==null){config2._d=new Date(+matched[1]);return}if(configFromISO(config2),config2._isValid===!1)delete config2._isValid;else return;if(configFromRFC2822(config2),config2._isValid===!1)delete config2._isValid;else return;config2._strict?config2._isValid=!1:hooks.createFromInputFallback(config2)}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(config2){config2._d=new Date(config2._i+(config2._useUTC?" UTC":""))});function defaults2(a,b,c2){return a!=null?a:b!=null?b:c2}function currentDateArray(config2){var nowValue=new Date(hooks.now());return config2._useUTC?[nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()]:[nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()]}function configFromArray(config2){var i,date5,input=[],currentDate,expectedWeekday,yearToUse;if(!config2._d){for(currentDate=currentDateArray(config2),config2._w&&config2._a[DATE]==null&&config2._a[MONTH]==null&&dayOfYearFromWeekInfo(config2),config2._dayOfYear!=null&&(yearToUse=defaults2(config2._a[YEAR],currentDate[YEAR]),(config2._dayOfYear>daysInYear(yearToUse)||config2._dayOfYear===0)&&(getParsingFlags(config2)._overflowDayOfYear=!0),date5=createUTCDate(yearToUse,0,config2._dayOfYear),config2._a[MONTH]=date5.getUTCMonth(),config2._a[DATE]=date5.getUTCDate()),i=0;i<3&&config2._a[i]==null;++i)config2._a[i]=input[i]=currentDate[i];for(;i<7;i++)config2._a[i]=input[i]=config2._a[i]==null?i===2?1:0:config2._a[i];config2._a[HOUR]===24&&config2._a[MINUTE]===0&&config2._a[SECOND]===0&&config2._a[MILLISECOND]===0&&(config2._nextDay=!0,config2._a[HOUR]=0),config2._d=(config2._useUTC?createUTCDate:createDate).apply(null,input),expectedWeekday=config2._useUTC?config2._d.getUTCDay():config2._d.getDay(),config2._tzm!=null&&config2._d.setUTCMinutes(config2._d.getUTCMinutes()-config2._tzm),config2._nextDay&&(config2._a[HOUR]=24),config2._w&&typeof config2._w.d!="undefined"&&config2._w.d!==expectedWeekday&&(getParsingFlags(config2).weekdayMismatch=!0)}}function dayOfYearFromWeekInfo(config2){var w,weekYear,week,weekday,dow,doy,temp,weekdayOverflow,curWeek;w=config2._w,w.GG!=null||w.W!=null||w.E!=null?(dow=1,doy=4,weekYear=defaults2(w.GG,config2._a[YEAR],weekOfYear(createLocal(),1,4).year),week=defaults2(w.W,1),weekday=defaults2(w.E,1),(weekday<1||weekday>7)&&(weekdayOverflow=!0)):(dow=config2._locale._week.dow,doy=config2._locale._week.doy,curWeek=weekOfYear(createLocal(),dow,doy),weekYear=defaults2(w.gg,config2._a[YEAR],curWeek.year),week=defaults2(w.w,curWeek.week),w.d!=null?(weekday=w.d,(weekday<0||weekday>6)&&(weekdayOverflow=!0)):w.e!=null?(weekday=w.e+dow,(w.e<0||w.e>6)&&(weekdayOverflow=!0)):weekday=dow),week<1||week>weeksInYear(weekYear,dow,doy)?getParsingFlags(config2)._overflowWeeks=!0:weekdayOverflow!=null?getParsingFlags(config2)._overflowWeekday=!0:(temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),config2._a[YEAR]=temp.year,config2._dayOfYear=temp.dayOfYear)}hooks.ISO_8601=function(){},hooks.RFC_2822=function(){};function configFromStringAndFormat(config2){if(config2._f===hooks.ISO_8601){configFromISO(config2);return}if(config2._f===hooks.RFC_2822){configFromRFC2822(config2);return}config2._a=[],getParsingFlags(config2).empty=!0;var string4=""+config2._i,i,parsedInput,tokens2,token2,skipped,stringLength=string4.length,totalParsedInputLength=0,era,tokenLen;for(tokens2=expandFormat(config2._f,config2._locale).match(formattingTokens)||[],tokenLen=tokens2.length,i=0;i<tokenLen;i++)token2=tokens2[i],parsedInput=(string4.match(getParseRegexForToken(token2,config2))||[])[0],parsedInput&&(skipped=string4.substr(0,string4.indexOf(parsedInput)),skipped.length>0&&getParsingFlags(config2).unusedInput.push(skipped),string4=string4.slice(string4.indexOf(parsedInput)+parsedInput.length),totalParsedInputLength+=parsedInput.length),formatTokenFunctions[token2]?(parsedInput?getParsingFlags(config2).empty=!1:getParsingFlags(config2).unusedTokens.push(token2),addTimeToArrayFromToken(token2,parsedInput,config2)):config2._strict&&!parsedInput&&getParsingFlags(config2).unusedTokens.push(token2);getParsingFlags(config2).charsLeftOver=stringLength-totalParsedInputLength,string4.length>0&&getParsingFlags(config2).unusedInput.push(string4),config2._a[HOUR]<=12&&getParsingFlags(config2).bigHour===!0&&config2._a[HOUR]>0&&(getParsingFlags(config2).bigHour=void 0),getParsingFlags(config2).parsedDateParts=config2._a.slice(0),getParsingFlags(config2).meridiem=config2._meridiem,config2._a[HOUR]=meridiemFixWrap(config2._locale,config2._a[HOUR],config2._meridiem),era=getParsingFlags(config2).era,era!==null&&(config2._a[YEAR]=config2._locale.erasConvertYear(era,config2._a[YEAR])),configFromArray(config2),checkOverflow(config2)}function meridiemFixWrap(locale2,hour,meridiem2){var isPm;return meridiem2==null?hour:locale2.meridiemHour!=null?locale2.meridiemHour(hour,meridiem2):(locale2.isPM!=null&&(isPm=locale2.isPM(meridiem2),isPm&&hour<12&&(hour+=12),!isPm&&hour===12&&(hour=0)),hour)}function configFromStringAndArray(config2){var tempConfig,bestMoment,scoreToBeat,i,currentScore,validFormatFound,bestFormatIsValid=!1,configfLen=config2._f.length;if(configfLen===0){getParsingFlags(config2).invalidFormat=!0,config2._d=new Date(NaN);return}for(i=0;i<configfLen;i++)currentScore=0,validFormatFound=!1,tempConfig=copyConfig({},config2),config2._useUTC!=null&&(tempConfig._useUTC=config2._useUTC),tempConfig._f=config2._f[i],configFromStringAndFormat(tempConfig),isValid(tempConfig)&&(validFormatFound=!0),currentScore+=getParsingFlags(tempConfig).charsLeftOver,currentScore+=getParsingFlags(tempConfig).unusedTokens.length*10,getParsingFlags(tempConfig).score=currentScore,bestFormatIsValid?currentScore<scoreToBeat&&(scoreToBeat=currentScore,bestMoment=tempConfig):(scoreToBeat==null||currentScore<scoreToBeat||validFormatFound)&&(scoreToBeat=currentScore,bestMoment=tempConfig,validFormatFound&&(bestFormatIsValid=!0));extend3(config2,bestMoment||tempConfig)}function configFromObject(config2){if(!config2._d){var i=normalizeObjectUnits(config2._i),dayOrDate=i.day===void 0?i.date:i.day;config2._a=map2([i.year,i.month,dayOrDate,i.hour,i.minute,i.second,i.millisecond],function(obj){return obj&&parseInt(obj,10)}),configFromArray(config2)}}function createFromConfig(config2){var res=new Moment2(checkOverflow(prepareConfig(config2)));return res._nextDay&&(res.add(1,"d"),res._nextDay=void 0),res}function prepareConfig(config2){var input=config2._i,format2=config2._f;return config2._locale=config2._locale||getLocale(config2._l),input===null||format2===void 0&&input===""?createInvalid({nullInput:!0}):(typeof input=="string"&&(config2._i=input=config2._locale.preparse(input)),isMoment(input)?new Moment2(checkOverflow(input)):(isDate2(input)?config2._d=input:isArray2(format2)?configFromStringAndArray(config2):format2?configFromStringAndFormat(config2):configFromInput(config2),isValid(config2)||(config2._d=null),config2))}function configFromInput(config2){var input=config2._i;isUndefined2(input)?config2._d=new Date(hooks.now()):isDate2(input)?config2._d=new Date(input.valueOf()):typeof input=="string"?configFromString(config2):isArray2(input)?(config2._a=map2(input.slice(0),function(obj){return parseInt(obj,10)}),configFromArray(config2)):isObject3(input)?configFromObject(config2):isNumber2(input)?config2._d=new Date(input):hooks.createFromInputFallback(config2)}function createLocalOrUTC(input,format2,locale2,strict,isUTC){var c2={};return(format2===!0||format2===!1)&&(strict=format2,format2=void 0),(locale2===!0||locale2===!1)&&(strict=locale2,locale2=void 0),(isObject3(input)&&isObjectEmpty(input)||isArray2(input)&&input.length===0)&&(input=void 0),c2._isAMomentObject=!0,c2._useUTC=c2._isUTC=isUTC,c2._l=locale2,c2._i=input,c2._f=format2,c2._strict=strict,createFromConfig(c2)}function createLocal(input,format2,locale2,strict){return createLocalOrUTC(input,format2,locale2,strict,!1)}var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var other=createLocal.apply(null,arguments);return this.isValid()&&other.isValid()?other<this?this:other:createInvalid()}),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var other=createLocal.apply(null,arguments);return this.isValid()&&other.isValid()?other>this?this:other:createInvalid()});function pickBy(fn,moments){var res,i;if(moments.length===1&&isArray2(moments[0])&&(moments=moments[0]),!moments.length)return createLocal();for(res=moments[0],i=1;i<moments.length;++i)(!moments[i].isValid()||moments[i][fn](res))&&(res=moments[i]);return res}function min(){var args=[].slice.call(arguments,0);return pickBy("isBefore",args)}function max(){var args=[].slice.call(arguments,0);return pickBy("isAfter",args)}var now=function(){return Date.now?Date.now():+new Date},ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function isDurationValid(m){var key2,unitHasDecimal=!1,i,orderLen=ordering.length;for(key2 in m)if(hasOwnProp(m,key2)&&!(indexOf.call(ordering,key2)!==-1&&(m[key2]==null||!isNaN(m[key2]))))return!1;for(i=0;i<orderLen;++i)if(m[ordering[i]]){if(unitHasDecimal)return!1;parseFloat(m[ordering[i]])!==toInt(m[ordering[i]])&&(unitHasDecimal=!0)}return!0}function isValid$1(){return this._isValid}function createInvalid$1(){return createDuration(NaN)}function Duration(duration3){var normalizedInput=normalizeObjectUnits(duration3),years2=normalizedInput.year||0,quarters=normalizedInput.quarter||0,months2=normalizedInput.month||0,weeks2=normalizedInput.week||normalizedInput.isoWeek||0,days2=normalizedInput.day||0,hours2=normalizedInput.hour||0,minutes2=normalizedInput.minute||0,seconds2=normalizedInput.second||0,milliseconds2=normalizedInput.millisecond||0;this._isValid=isDurationValid(normalizedInput),this._milliseconds=+milliseconds2+seconds2*1e3+minutes2*6e4+hours2*1e3*60*60,this._days=+days2+weeks2*7,this._months=+months2+quarters*3+years2*12,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(obj){return obj instanceof Duration}function absRound(number4){return number4<0?Math.round(-1*number4)*-1:Math.round(number4)}function compareArrays(array1,array2,dontConvert){var len=Math.min(array1.length,array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0,i;for(i=0;i<len;i++)(dontConvert&&array1[i]!==array2[i]||!dontConvert&&toInt(array1[i])!==toInt(array2[i]))&&diffs++;return diffs+lengthDiff}function offset(token2,separator){addFormatToken(token2,0,0,function(){var offset2=this.utcOffset(),sign2="+";return offset2<0&&(offset2=-offset2,sign2="-"),sign2+zeroFill(~~(offset2/60),2)+separator+zeroFill(~~offset2%60,2)})}offset("Z",":"),offset("ZZ",""),addRegexToken("Z",matchShortOffset),addRegexToken("ZZ",matchShortOffset),addParseToken(["Z","ZZ"],function(input,array2,config2){config2._useUTC=!0,config2._tzm=offsetFromString(matchShortOffset,input)});var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(matcher,string4){var matches=(string4||"").match(matcher),chunk,parts,minutes2;return matches===null?null:(chunk=matches[matches.length-1]||[],parts=(chunk+"").match(chunkOffset)||["-",0,0],minutes2=+(parts[1]*60)+toInt(parts[2]),minutes2===0?0:parts[0]==="+"?minutes2:-minutes2)}function cloneWithOffset(input,model){var res,diff2;return model._isUTC?(res=model.clone(),diff2=(isMoment(input)||isDate2(input)?input.valueOf():createLocal(input).valueOf())-res.valueOf(),res._d.setTime(res._d.valueOf()+diff2),hooks.updateOffset(res,!1),res):createLocal(input).local()}function getDateOffset(m){return-Math.round(m._d.getTimezoneOffset())}hooks.updateOffset=function(){};function getSetOffset(input,keepLocalTime,keepMinutes){var offset2=this._offset||0,localAdjust;if(!this.isValid())return input!=null?this:NaN;if(input!=null){if(typeof input=="string"){if(input=offsetFromString(matchShortOffset,input),input===null)return this}else Math.abs(input)<16&&!keepMinutes&&(input=input*60);return!this._isUTC&&keepLocalTime&&(localAdjust=getDateOffset(this)),this._offset=input,this._isUTC=!0,localAdjust!=null&&this.add(localAdjust,"m"),offset2!==input&&(!keepLocalTime||this._changeInProgress?addSubtract(this,createDuration(input-offset2,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?offset2:getDateOffset(this)}function getSetZone(input,keepLocalTime){return input!=null?(typeof input!="string"&&(input=-input),this.utcOffset(input,keepLocalTime),this):-this.utcOffset()}function setOffsetToUTC(keepLocalTime){return this.utcOffset(0,keepLocalTime)}function setOffsetToLocal(keepLocalTime){return this._isUTC&&(this.utcOffset(0,keepLocalTime),this._isUTC=!1,keepLocalTime&&this.subtract(getDateOffset(this),"m")),this}function setOffsetToParsedOffset(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var tZone=offsetFromString(matchOffset,this._i);tZone!=null?this.utcOffset(tZone):this.utcOffset(0,!0)}return this}function hasAlignedHourOffset(input){return this.isValid()?(input=input?createLocal(input).utcOffset():0,(this.utcOffset()-input)%60===0):!1}function isDaylightSavingTime(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function isDaylightSavingTimeShifted(){if(!isUndefined2(this._isDSTShifted))return this._isDSTShifted;var c2={},other;return copyConfig(c2,this),c2=prepareConfig(c2),c2._a?(other=c2._isUTC?createUTC(c2._a):createLocal(c2._a),this._isDSTShifted=this.isValid()&&compareArrays(c2._a,other.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function isLocal(){return this.isValid()?!this._isUTC:!1}function isUtcOffset(){return this.isValid()?this._isUTC:!1}function isUtc(){return this.isValid()?this._isUTC&&this._offset===0:!1}var aspNetRegex=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(input,key2){var duration3=input,match=null,sign2,ret,diffRes;return isDuration(input)?duration3={ms:input._milliseconds,d:input._days,M:input._months}:isNumber2(input)||!isNaN(+input)?(duration3={},key2?duration3[key2]=+input:duration3.milliseconds=+input):(match=aspNetRegex.exec(input))?(sign2=match[1]==="-"?-1:1,duration3={y:0,d:toInt(match[DATE])*sign2,h:toInt(match[HOUR])*sign2,m:toInt(match[MINUTE])*sign2,s:toInt(match[SECOND])*sign2,ms:toInt(absRound(match[MILLISECOND]*1e3))*sign2}):(match=isoRegex.exec(input))?(sign2=match[1]==="-"?-1:1,duration3={y:parseIso(match[2],sign2),M:parseIso(match[3],sign2),w:parseIso(match[4],sign2),d:parseIso(match[5],sign2),h:parseIso(match[6],sign2),m:parseIso(match[7],sign2),s:parseIso(match[8],sign2)}):duration3==null?duration3={}:typeof duration3=="object"&&("from"in duration3||"to"in duration3)&&(diffRes=momentsDifference(createLocal(duration3.from),createLocal(duration3.to)),duration3={},duration3.ms=diffRes.milliseconds,duration3.M=diffRes.months),ret=new Duration(duration3),isDuration(input)&&hasOwnProp(input,"_locale")&&(ret._locale=input._locale),isDuration(input)&&hasOwnProp(input,"_isValid")&&(ret._isValid=input._isValid),ret}createDuration.fn=Duration.prototype,createDuration.invalid=createInvalid$1;function parseIso(inp,sign2){var res=inp&&parseFloat(inp.replace(",","."));return(isNaN(res)?0:res)*sign2}function positiveMomentsDifference(base,other){var res={};return res.months=other.month()-base.month()+(other.year()-base.year())*12,base.clone().add(res.months,"M").isAfter(other)&&--res.months,res.milliseconds=+other-+base.clone().add(res.months,"M"),res}function momentsDifference(base,other){var res;return base.isValid()&&other.isValid()?(other=cloneWithOffset(other,base),base.isBefore(other)?res=positiveMomentsDifference(base,other):(res=positiveMomentsDifference(other,base),res.milliseconds=-res.milliseconds,res.months=-res.months),res):{milliseconds:0,months:0}}function createAdder(direction,name){return function(val,period){var dur,tmp;return period!==null&&!isNaN(+period)&&(deprecateSimple(name,"moment()."+name+"(period, number) is deprecated. Please use moment()."+name+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),tmp=val,val=period,period=tmp),dur=createDuration(val,period),addSubtract(this,dur,direction),this}}function addSubtract(mom,duration3,isAdding,updateOffset){var milliseconds2=duration3._milliseconds,days2=absRound(duration3._days),months2=absRound(duration3._months);mom.isValid()&&(updateOffset=updateOffset==null?!0:updateOffset,months2&&setMonth(mom,get3(mom,"Month")+months2*isAdding),days2&&set$1(mom,"Date",get3(mom,"Date")+days2*isAdding),milliseconds2&&mom._d.setTime(mom._d.valueOf()+milliseconds2*isAdding),updateOffset&&hooks.updateOffset(mom,days2||months2))}var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function isString2(input){return typeof input=="string"||input instanceof String}function isMomentInput(input){return isMoment(input)||isDate2(input)||isString2(input)||isNumber2(input)||isNumberOrStringArray(input)||isMomentInputObject(input)||input===null||input===void 0}function isMomentInputObject(input){var objectTest=isObject3(input)&&!isObjectEmpty(input),propertyTest=!1,properties=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,property,propertyLen=properties.length;for(i=0;i<propertyLen;i+=1)property=properties[i],propertyTest=propertyTest||hasOwnProp(input,property);return objectTest&&propertyTest}function isNumberOrStringArray(input){var arrayTest=isArray2(input),dataTypeTest=!1;return arrayTest&&(dataTypeTest=input.filter(function(item){return!isNumber2(item)&&isString2(input)}).length===0),arrayTest&&dataTypeTest}function isCalendarSpec(input){var objectTest=isObject3(input)&&!isObjectEmpty(input),propertyTest=!1,properties=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,property;for(i=0;i<properties.length;i+=1)property=properties[i],propertyTest=propertyTest||hasOwnProp(input,property);return objectTest&&propertyTest}function getCalendarFormat(myMoment,now2){var diff2=myMoment.diff(now2,"days",!0);return diff2<-6?"sameElse":diff2<-1?"lastWeek":diff2<0?"lastDay":diff2<1?"sameDay":diff2<2?"nextDay":diff2<7?"nextWeek":"sameElse"}function calendar$1(time3,formats){arguments.length===1&&(arguments[0]?isMomentInput(arguments[0])?(time3=arguments[0],formats=void 0):isCalendarSpec(arguments[0])&&(formats=arguments[0],time3=void 0):(time3=void 0,formats=void 0));var now2=time3||createLocal(),sod=cloneWithOffset(now2,this).startOf("day"),format2=hooks.calendarFormat(this,sod)||"sameElse",output=formats&&(isFunction3(formats[format2])?formats[format2].call(this,now2):formats[format2]);return this.format(output||this.localeData().calendar(format2,this,createLocal(now2)))}function clone2(){return new Moment2(this)}function isAfter(input,units){var localInput=isMoment(input)?input:createLocal(input);return this.isValid()&&localInput.isValid()?(units=normalizeUnits(units)||"millisecond",units==="millisecond"?this.valueOf()>localInput.valueOf():localInput.valueOf()<this.clone().startOf(units).valueOf()):!1}function isBefore(input,units){var localInput=isMoment(input)?input:createLocal(input);return this.isValid()&&localInput.isValid()?(units=normalizeUnits(units)||"millisecond",units==="millisecond"?this.valueOf()<localInput.valueOf():this.clone().endOf(units).valueOf()<localInput.valueOf()):!1}function isBetween(from2,to2,units,inclusivity){var localFrom=isMoment(from2)?from2:createLocal(from2),localTo=isMoment(to2)?to2:createLocal(to2);return this.isValid()&&localFrom.isValid()&&localTo.isValid()?(inclusivity=inclusivity||"()",(inclusivity[0]==="("?this.isAfter(localFrom,units):!this.isBefore(localFrom,units))&&(inclusivity[1]===")"?this.isBefore(localTo,units):!this.isAfter(localTo,units))):!1}function isSame(input,units){var localInput=isMoment(input)?input:createLocal(input),inputMs;return this.isValid()&&localInput.isValid()?(units=normalizeUnits(units)||"millisecond",units==="millisecond"?this.valueOf()===localInput.valueOf():(inputMs=localInput.valueOf(),this.clone().startOf(units).valueOf()<=inputMs&&inputMs<=this.clone().endOf(units).valueOf())):!1}function isSameOrAfter(input,units){return this.isSame(input,units)||this.isAfter(input,units)}function isSameOrBefore(input,units){return this.isSame(input,units)||this.isBefore(input,units)}function diff(input,units,asFloat){var that,zoneDelta,output;if(!this.isValid())return NaN;if(that=cloneWithOffset(input,this),!that.isValid())return NaN;switch(zoneDelta=(that.utcOffset()-this.utcOffset())*6e4,units=normalizeUnits(units),units){case"year":output=monthDiff(this,that)/12;break;case"month":output=monthDiff(this,that);break;case"quarter":output=monthDiff(this,that)/3;break;case"second":output=(this-that)/1e3;break;case"minute":output=(this-that)/6e4;break;case"hour":output=(this-that)/36e5;break;case"day":output=(this-that-zoneDelta)/864e5;break;case"week":output=(this-that-zoneDelta)/6048e5;break;default:output=this-that}return asFloat?output:absFloor(output)}function monthDiff(a,b){if(a.date()<b.date())return-monthDiff(b,a);var wholeMonthDiff=(b.year()-a.year())*12+(b.month()-a.month()),anchor=a.clone().add(wholeMonthDiff,"months"),anchor2,adjust;return b-anchor<0?(anchor2=a.clone().add(wholeMonthDiff-1,"months"),adjust=(b-anchor)/(anchor-anchor2)):(anchor2=a.clone().add(wholeMonthDiff+1,"months"),adjust=(b-anchor)/(anchor2-anchor)),-(wholeMonthDiff+adjust)||0}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function toString3(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function toISOString(keepOffset){if(!this.isValid())return null;var utc=keepOffset!==!0,m=utc?this.clone().utc():this;return m.year()<0||m.year()>9999?formatMoment(m,utc?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction3(Date.prototype.toISOString)?utc?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",formatMoment(m,"Z")):formatMoment(m,utc?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function inspect2(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var func="moment",zone="",prefix,year,datetime3,suffix;return this.isLocal()||(func=this.utcOffset()===0?"moment.utc":"moment.parseZone",zone="Z"),prefix="["+func+'("]',year=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",datetime3="-MM-DD[T]HH:mm:ss.SSS",suffix=zone+'[")]',this.format(prefix+year+datetime3+suffix)}function format(inputString){inputString||(inputString=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var output=formatMoment(this,inputString);return this.localeData().postformat(output)}function from(time3,withoutSuffix){return this.isValid()&&(isMoment(time3)&&time3.isValid()||createLocal(time3).isValid())?createDuration({to:this,from:time3}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()}function fromNow(withoutSuffix){return this.from(createLocal(),withoutSuffix)}function to(time3,withoutSuffix){return this.isValid()&&(isMoment(time3)&&time3.isValid()||createLocal(time3).isValid())?createDuration({from:this,to:time3}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()}function toNow(withoutSuffix){return this.to(createLocal(),withoutSuffix)}function locale(key2){var newLocaleData;return key2===void 0?this._locale._abbr:(newLocaleData=getLocale(key2),newLocaleData!=null&&(this._locale=newLocaleData),this)}var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(key2){return key2===void 0?this.localeData():this.locale(key2)});function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=(365*400+97)*24*MS_PER_HOUR;function mod$1(dividend,divisor){return(dividend%divisor+divisor)%divisor}function localStartOfDate(y,m,d){return y<100&&y>=0?new Date(y+400,m,d)-MS_PER_400_YEARS:new Date(y,m,d).valueOf()}function utcStartOfDate(y,m,d){return y<100&&y>=0?Date.UTC(y+400,m,d)-MS_PER_400_YEARS:Date.UTC(y,m,d)}function startOf(units){var time3,startOfDate;if(units=normalizeUnits(units),units===void 0||units==="millisecond"||!this.isValid())return this;switch(startOfDate=this._isUTC?utcStartOfDate:localStartOfDate,units){case"year":time3=startOfDate(this.year(),0,1);break;case"quarter":time3=startOfDate(this.year(),this.month()-this.month()%3,1);break;case"month":time3=startOfDate(this.year(),this.month(),1);break;case"week":time3=startOfDate(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":time3=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":time3=startOfDate(this.year(),this.month(),this.date());break;case"hour":time3=this._d.valueOf(),time3-=mod$1(time3+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":time3=this._d.valueOf(),time3-=mod$1(time3,MS_PER_MINUTE);break;case"second":time3=this._d.valueOf(),time3-=mod$1(time3,MS_PER_SECOND);break}return this._d.setTime(time3),hooks.updateOffset(this,!0),this}function endOf(units){var time3,startOfDate;if(units=normalizeUnits(units),units===void 0||units==="millisecond"||!this.isValid())return this;switch(startOfDate=this._isUTC?utcStartOfDate:localStartOfDate,units){case"year":time3=startOfDate(this.year()+1,0,1)-1;break;case"quarter":time3=startOfDate(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":time3=startOfDate(this.year(),this.month()+1,1)-1;break;case"week":time3=startOfDate(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":time3=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":time3=startOfDate(this.year(),this.month(),this.date()+1)-1;break;case"hour":time3=this._d.valueOf(),time3+=MS_PER_HOUR-mod$1(time3+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":time3=this._d.valueOf(),time3+=MS_PER_MINUTE-mod$1(time3,MS_PER_MINUTE)-1;break;case"second":time3=this._d.valueOf(),time3+=MS_PER_SECOND-mod$1(time3,MS_PER_SECOND)-1;break}return this._d.setTime(time3),hooks.updateOffset(this,!0),this}function valueOf(){return this._d.valueOf()-(this._offset||0)*6e4}function unix(){return Math.floor(this.valueOf()/1e3)}function toDate(){return new Date(this.valueOf())}function toArray2(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]}function toObject(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()}}function toJSON(){return this.isValid()?this.toISOString():null}function isValid$2(){return isValid(this)}function parsingFlags(){return extend3({},getParsingFlags(this))}function invalidAt(){return getParsingFlags(this).overflow}function creationData(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}addFormatToken("N",0,0,"eraAbbr"),addFormatToken("NN",0,0,"eraAbbr"),addFormatToken("NNN",0,0,"eraAbbr"),addFormatToken("NNNN",0,0,"eraName"),addFormatToken("NNNNN",0,0,"eraNarrow"),addFormatToken("y",["y",1],"yo","eraYear"),addFormatToken("y",["yy",2],0,"eraYear"),addFormatToken("y",["yyy",3],0,"eraYear"),addFormatToken("y",["yyyy",4],0,"eraYear"),addRegexToken("N",matchEraAbbr),addRegexToken("NN",matchEraAbbr),addRegexToken("NNN",matchEraAbbr),addRegexToken("NNNN",matchEraName),addRegexToken("NNNNN",matchEraNarrow),addParseToken(["N","NN","NNN","NNNN","NNNNN"],function(input,array2,config2,token2){var era=config2._locale.erasParse(input,token2,config2._strict);era?getParsingFlags(config2).era=era:getParsingFlags(config2).invalidEra=input}),addRegexToken("y",matchUnsigned),addRegexToken("yy",matchUnsigned),addRegexToken("yyy",matchUnsigned),addRegexToken("yyyy",matchUnsigned),addRegexToken("yo",matchEraYearOrdinal),addParseToken(["y","yy","yyy","yyyy"],YEAR),addParseToken(["yo"],function(input,array2,config2,token2){var match;config2._locale._eraYearOrdinalRegex&&(match=input.match(config2._locale._eraYearOrdinalRegex)),config2._locale.eraYearOrdinalParse?array2[YEAR]=config2._locale.eraYearOrdinalParse(input,match):array2[YEAR]=parseInt(input,10)});function localeEras(m,format2){var i,l,date5,eras=this._eras||getLocale("en")._eras;for(i=0,l=eras.length;i<l;++i){switch(typeof eras[i].since){case"string":date5=hooks(eras[i].since).startOf("day"),eras[i].since=date5.valueOf();break}switch(typeof eras[i].until){case"undefined":eras[i].until=1/0;break;case"string":date5=hooks(eras[i].until).startOf("day").valueOf(),eras[i].until=date5.valueOf();break}}return eras}function localeErasParse(eraName,format2,strict){var i,l,eras=this.eras(),name,abbr,narrow;for(eraName=eraName.toUpperCase(),i=0,l=eras.length;i<l;++i)if(name=eras[i].name.toUpperCase(),abbr=eras[i].abbr.toUpperCase(),narrow=eras[i].narrow.toUpperCase(),strict)switch(format2){case"N":case"NN":case"NNN":if(abbr===eraName)return eras[i];break;case"NNNN":if(name===eraName)return eras[i];break;case"NNNNN":if(narrow===eraName)return eras[i];break}else if([name,abbr,narrow].indexOf(eraName)>=0)return eras[i]}function localeErasConvertYear(era,year){var dir=era.since<=era.until?1:-1;return year===void 0?hooks(era.since).year():hooks(era.since).year()+(year-era.offset)*dir}function getEraName(){var i,l,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i)if(val=this.clone().startOf("day").valueOf(),eras[i].since<=val&&val<=eras[i].until||eras[i].until<=val&&val<=eras[i].since)return eras[i].name;return""}function getEraNarrow(){var i,l,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i)if(val=this.clone().startOf("day").valueOf(),eras[i].since<=val&&val<=eras[i].until||eras[i].until<=val&&val<=eras[i].since)return eras[i].narrow;return""}function getEraAbbr(){var i,l,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i)if(val=this.clone().startOf("day").valueOf(),eras[i].since<=val&&val<=eras[i].until||eras[i].until<=val&&val<=eras[i].since)return eras[i].abbr;return""}function getEraYear(){var i,l,dir,val,eras=this.localeData().eras();for(i=0,l=eras.length;i<l;++i)if(dir=eras[i].since<=eras[i].until?1:-1,val=this.clone().startOf("day").valueOf(),eras[i].since<=val&&val<=eras[i].until||eras[i].until<=val&&val<=eras[i].since)return(this.year()-hooks(eras[i].since).year())*dir+eras[i].offset;return this.year()}function erasNameRegex(isStrict){return hasOwnProp(this,"_erasNameRegex")||computeErasParse.call(this),isStrict?this._erasNameRegex:this._erasRegex}function erasAbbrRegex(isStrict){return hasOwnProp(this,"_erasAbbrRegex")||computeErasParse.call(this),isStrict?this._erasAbbrRegex:this._erasRegex}function erasNarrowRegex(isStrict){return hasOwnProp(this,"_erasNarrowRegex")||computeErasParse.call(this),isStrict?this._erasNarrowRegex:this._erasRegex}function matchEraAbbr(isStrict,locale2){return locale2.erasAbbrRegex(isStrict)}function matchEraName(isStrict,locale2){return locale2.erasNameRegex(isStrict)}function matchEraNarrow(isStrict,locale2){return locale2.erasNarrowRegex(isStrict)}function matchEraYearOrdinal(isStrict,locale2){return locale2._eraYearOrdinalRegex||matchUnsigned}function computeErasParse(){var abbrPieces=[],namePieces=[],narrowPieces=[],mixedPieces=[],i,l,erasName,erasAbbr,erasNarrow,eras=this.eras();for(i=0,l=eras.length;i<l;++i)erasName=regexEscape(eras[i].name),erasAbbr=regexEscape(eras[i].abbr),erasNarrow=regexEscape(eras[i].narrow),namePieces.push(erasName),abbrPieces.push(erasAbbr),narrowPieces.push(erasNarrow),mixedPieces.push(erasName),mixedPieces.push(erasAbbr),mixedPieces.push(erasNarrow);this._erasRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+namePieces.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+abbrPieces.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+narrowPieces.join("|")+")","i")}addFormatToken(0,["gg",2],0,function(){return this.weekYear()%100}),addFormatToken(0,["GG",2],0,function(){return this.isoWeekYear()%100});function addWeekYearFormatToken(token2,getter){addFormatToken(0,[token2,token2.length],0,getter)}addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addRegexToken("G",matchSigned),addRegexToken("g",matchSigned),addRegexToken("GG",match1to2,match2),addRegexToken("gg",match1to2,match2),addRegexToken("GGGG",match1to4,match4),addRegexToken("gggg",match1to4,match4),addRegexToken("GGGGG",match1to6,match6),addRegexToken("ggggg",match1to6,match6),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],function(input,week,config2,token2){week[token2.substr(0,2)]=toInt(input)}),addWeekParseToken(["gg","GG"],function(input,week,config2,token2){week[token2]=hooks.parseTwoDigitYear(input)});function getSetWeekYear(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function getSetISOWeekYear(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)}function getISOWeeksInYear(){return weeksInYear(this.year(),1,4)}function getISOWeeksInISOWeekYear(){return weeksInYear(this.isoWeekYear(),1,4)}function getWeeksInYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy)}function getWeeksInWeekYear(){var weekInfo=this.localeData()._week;return weeksInYear(this.weekYear(),weekInfo.dow,weekInfo.doy)}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;return input==null?weekOfYear(this,dow,doy).year:(weeksTarget=weeksInYear(input,dow,doy),week>weeksTarget&&(week=weeksTarget),setWeekAll.call(this,input,week,weekday,dow,doy))}function setWeekAll(weekYear,week,weekday,dow,doy){var dayOfYearData=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),date5=createUTCDate(dayOfYearData.year,0,dayOfYearData.dayOfYear);return this.year(date5.getUTCFullYear()),this.month(date5.getUTCMonth()),this.date(date5.getUTCDate()),this}addFormatToken("Q",0,"Qo","quarter"),addRegexToken("Q",match1),addParseToken("Q",function(input,array2){array2[MONTH]=(toInt(input)-1)*3});function getSetQuarter(input){return input==null?Math.ceil((this.month()+1)/3):this.month((input-1)*3+this.month()%3)}addFormatToken("D",["DD",2],"Do","date"),addRegexToken("D",match1to2,match1to2NoLeadingZero),addRegexToken("DD",match1to2,match2),addRegexToken("Do",function(isStrict,locale2){return isStrict?locale2._dayOfMonthOrdinalParse||locale2._ordinalParse:locale2._dayOfMonthOrdinalParseLenient}),addParseToken(["D","DD"],DATE),addParseToken("Do",function(input,array2){array2[DATE]=toInt(input.match(match1to2)[0])});var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addRegexToken("DDD",match1to3),addRegexToken("DDDD",match3),addParseToken(["DDD","DDDD"],function(input,array2,config2){config2._dayOfYear=toInt(input)});function getSetDayOfYear(input){var dayOfYear=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return input==null?dayOfYear:this.add(input-dayOfYear,"d")}addFormatToken("m",["mm",2],0,"minute"),addRegexToken("m",match1to2,match1to2HasZero),addRegexToken("mm",match1to2,match2),addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addRegexToken("s",match1to2,match1to2HasZero),addRegexToken("ss",match1to2,match2),addParseToken(["s","ss"],SECOND);var getSetSecond=makeGetSet("Seconds",!1);addFormatToken("S",0,0,function(){return~~(this.millisecond()/100)}),addFormatToken(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,function(){return this.millisecond()*10}),addFormatToken(0,["SSSSS",5],0,function(){return this.millisecond()*100}),addFormatToken(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),addFormatToken(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),addFormatToken(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),addFormatToken(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),addRegexToken("S",match1to3,match1),addRegexToken("SS",match1to3,match2),addRegexToken("SSS",match1to3,match3);var token,getSetMillisecond;for(token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(input,array2){array2[MILLISECOND]=toInt(("0."+input)*1e3)}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);getSetMillisecond=makeGetSet("Milliseconds",!1),addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");function getZoneAbbr(){return this._isUTC?"UTC":""}function getZoneName(){return this._isUTC?"Coordinated Universal Time":""}var proto=Moment2.prototype;proto.add=add,proto.calendar=calendar$1,proto.clone=clone2,proto.diff=diff,proto.endOf=endOf,proto.format=format,proto.from=from,proto.fromNow=fromNow,proto.to=to,proto.toNow=toNow,proto.get=stringGet,proto.invalidAt=invalidAt,proto.isAfter=isAfter,proto.isBefore=isBefore,proto.isBetween=isBetween,proto.isSame=isSame,proto.isSameOrAfter=isSameOrAfter,proto.isSameOrBefore=isSameOrBefore,proto.isValid=isValid$2,proto.lang=lang,proto.locale=locale,proto.localeData=localeData,proto.max=prototypeMax,proto.min=prototypeMin,proto.parsingFlags=parsingFlags,proto.set=stringSet,proto.startOf=startOf,proto.subtract=subtract,proto.toArray=toArray2,proto.toObject=toObject,proto.toDate=toDate,proto.toISOString=toISOString,proto.inspect=inspect2,typeof Symbol!="undefined"&&Symbol.for!=null&&(proto[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),proto.toJSON=toJSON,proto.toString=toString3,proto.unix=unix,proto.valueOf=valueOf,proto.creationData=creationData,proto.eraName=getEraName,proto.eraNarrow=getEraNarrow,proto.eraAbbr=getEraAbbr,proto.eraYear=getEraYear,proto.year=getSetYear,proto.isLeapYear=getIsLeapYear,proto.weekYear=getSetWeekYear,proto.isoWeekYear=getSetISOWeekYear,proto.quarter=proto.quarters=getSetQuarter,proto.month=getSetMonth,proto.daysInMonth=getDaysInMonth,proto.week=proto.weeks=getSetWeek,proto.isoWeek=proto.isoWeeks=getSetISOWeek,proto.weeksInYear=getWeeksInYear,proto.weeksInWeekYear=getWeeksInWeekYear,proto.isoWeeksInYear=getISOWeeksInYear,proto.isoWeeksInISOWeekYear=getISOWeeksInISOWeekYear,proto.date=getSetDayOfMonth,proto.day=proto.days=getSetDayOfWeek,proto.weekday=getSetLocaleDayOfWeek,proto.isoWeekday=getSetISODayOfWeek,proto.dayOfYear=getSetDayOfYear,proto.hour=proto.hours=getSetHour,proto.minute=proto.minutes=getSetMinute,proto.second=proto.seconds=getSetSecond,proto.millisecond=proto.milliseconds=getSetMillisecond,proto.utcOffset=getSetOffset,proto.utc=setOffsetToUTC,proto.local=setOffsetToLocal,proto.parseZone=setOffsetToParsedOffset,proto.hasAlignedHourOffset=hasAlignedHourOffset,proto.isDST=isDaylightSavingTime,proto.isLocal=isLocal,proto.isUtcOffset=isUtcOffset,proto.isUtc=isUtc,proto.isUTC=isUtc,proto.zoneAbbr=getZoneAbbr,proto.zoneName=getZoneName,proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth),proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear),proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",getSetZone),proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",isDaylightSavingTimeShifted);function createUnix(input){return createLocal(input*1e3)}function createInZone(){return createLocal.apply(null,arguments).parseZone()}function preParsePostFormat(string4){return string4}var proto$1=Locale.prototype;proto$1.calendar=calendar,proto$1.longDateFormat=longDateFormat,proto$1.invalidDate=invalidDate,proto$1.ordinal=ordinal,proto$1.preparse=preParsePostFormat,proto$1.postformat=preParsePostFormat,proto$1.relativeTime=relativeTime,proto$1.pastFuture=pastFuture,proto$1.set=set3,proto$1.eras=localeEras,proto$1.erasParse=localeErasParse,proto$1.erasConvertYear=localeErasConvertYear,proto$1.erasAbbrRegex=erasAbbrRegex,proto$1.erasNameRegex=erasNameRegex,proto$1.erasNarrowRegex=erasNarrowRegex,proto$1.months=localeMonths,proto$1.monthsShort=localeMonthsShort,proto$1.monthsParse=localeMonthsParse,proto$1.monthsRegex=monthsRegex,proto$1.monthsShortRegex=monthsShortRegex,proto$1.week=localeWeek,proto$1.firstDayOfYear=localeFirstDayOfYear,proto$1.firstDayOfWeek=localeFirstDayOfWeek,proto$1.weekdays=localeWeekdays,proto$1.weekdaysMin=localeWeekdaysMin,proto$1.weekdaysShort=localeWeekdaysShort,proto$1.weekdaysParse=localeWeekdaysParse,proto$1.weekdaysRegex=weekdaysRegex,proto$1.weekdaysShortRegex=weekdaysShortRegex,proto$1.weekdaysMinRegex=weekdaysMinRegex,proto$1.isPM=localeIsPM,proto$1.meridiem=localeMeridiem;function get$1(format2,index2,field,setter){var locale2=getLocale(),utc=createUTC().set(setter,index2);return locale2[field](utc,format2)}function listMonthsImpl(format2,index2,field){if(isNumber2(format2)&&(index2=format2,format2=void 0),format2=format2||"",index2!=null)return get$1(format2,index2,field,"month");var i,out=[];for(i=0;i<12;i++)out[i]=get$1(format2,i,field,"month");return out}function listWeekdaysImpl(localeSorted,format2,index2,field){typeof localeSorted=="boolean"?(isNumber2(format2)&&(index2=format2,format2=void 0),format2=format2||""):(format2=localeSorted,index2=format2,localeSorted=!1,isNumber2(format2)&&(index2=format2,format2=void 0),format2=format2||"");var locale2=getLocale(),shift=localeSorted?locale2._week.dow:0,i,out=[];if(index2!=null)return get$1(format2,(index2+shift)%7,field,"day");for(i=0;i<7;i++)out[i]=get$1(format2,(i+shift)%7,field,"day");return out}function listMonths(format2,index2){return listMonthsImpl(format2,index2,"months")}function listMonthsShort(format2,index2){return listMonthsImpl(format2,index2,"monthsShort")}function listWeekdays(localeSorted,format2,index2){return listWeekdaysImpl(localeSorted,format2,index2,"weekdays")}function listWeekdaysShort(localeSorted,format2,index2){return listWeekdaysImpl(localeSorted,format2,index2,"weekdaysShort")}function listWeekdaysMin(localeSorted,format2,index2){return listWeekdaysImpl(localeSorted,format2,index2,"weekdaysMin")}getSetGlobalLocale("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(number4){var b=number4%10,output=toInt(number4%100/10)===1?"th":b===1?"st":b===2?"nd":b===3?"rd":"th";return number4+output}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function abs(){var data=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),data.milliseconds=mathAbs(data.milliseconds),data.seconds=mathAbs(data.seconds),data.minutes=mathAbs(data.minutes),data.hours=mathAbs(data.hours),data.months=mathAbs(data.months),data.years=mathAbs(data.years),this}function addSubtract$1(duration3,input,value,direction){var other=createDuration(input,value);return duration3._milliseconds+=direction*other._milliseconds,duration3._days+=direction*other._days,duration3._months+=direction*other._months,duration3._bubble()}function add$1(input,value){return addSubtract$1(this,input,value,1)}function subtract$1(input,value){return addSubtract$1(this,input,value,-1)}function absCeil(number4){return number4<0?Math.floor(number4):Math.ceil(number4)}function bubble(){var milliseconds2=this._milliseconds,days2=this._days,months2=this._months,data=this._data,seconds2,minutes2,hours2,years2,monthsFromDays;return milliseconds2>=0&&days2>=0&&months2>=0||milliseconds2<=0&&days2<=0&&months2<=0||(milliseconds2+=absCeil(monthsToDays(months2)+days2)*864e5,days2=0,months2=0),data.milliseconds=milliseconds2%1e3,seconds2=absFloor(milliseconds2/1e3),data.seconds=seconds2%60,minutes2=absFloor(seconds2/60),data.minutes=minutes2%60,hours2=absFloor(minutes2/60),data.hours=hours2%24,days2+=absFloor(hours2/24),monthsFromDays=absFloor(daysToMonths(days2)),months2+=monthsFromDays,days2-=absCeil(monthsToDays(monthsFromDays)),years2=absFloor(months2/12),months2%=12,data.days=days2,data.months=months2,data.years=years2,this}function daysToMonths(days2){return days2*4800/146097}function monthsToDays(months2){return months2*146097/4800}function as(units){if(!this.isValid())return NaN;var days2,months2,milliseconds2=this._milliseconds;if(units=normalizeUnits(units),units==="month"||units==="quarter"||units==="year")switch(days2=this._days+milliseconds2/864e5,months2=this._months+daysToMonths(days2),units){case"month":return months2;case"quarter":return months2/3;case"year":return months2/12}else switch(days2=this._days+Math.round(monthsToDays(this._months)),units){case"week":return days2/7+milliseconds2/6048e5;case"day":return days2+milliseconds2/864e5;case"hour":return days2*24+milliseconds2/36e5;case"minute":return days2*1440+milliseconds2/6e4;case"second":return days2*86400+milliseconds2/1e3;case"millisecond":return Math.floor(days2*864e5)+milliseconds2;default:throw new Error("Unknown unit "+units)}}function makeAs(alias){return function(){return this.as(alias)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y"),valueOf$1=asMilliseconds;function clone$1(){return createDuration(this)}function get$2(units){return units=normalizeUnits(units),this.isValid()?this[units+"s"]():NaN}function makeGetter(name){return function(){return this.isValid()?this._data[name]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years");function weeks(){return absFloor(this.days()/7)}var round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function substituteTimeAgo(string4,number4,withoutSuffix,isFuture,locale2){return locale2.relativeTime(number4||1,!!withoutSuffix,string4,isFuture)}function relativeTime$1(posNegDuration,withoutSuffix,thresholds2,locale2){var duration3=createDuration(posNegDuration).abs(),seconds2=round(duration3.as("s")),minutes2=round(duration3.as("m")),hours2=round(duration3.as("h")),days2=round(duration3.as("d")),months2=round(duration3.as("M")),weeks2=round(duration3.as("w")),years2=round(duration3.as("y")),a=seconds2<=thresholds2.ss&&["s",seconds2]||seconds2<thresholds2.s&&["ss",seconds2]||minutes2<=1&&["m"]||minutes2<thresholds2.m&&["mm",minutes2]||hours2<=1&&["h"]||hours2<thresholds2.h&&["hh",hours2]||days2<=1&&["d"]||days2<thresholds2.d&&["dd",days2];return thresholds2.w!=null&&(a=a||weeks2<=1&&["w"]||weeks2<thresholds2.w&&["ww",weeks2]),a=a||months2<=1&&["M"]||months2<thresholds2.M&&["MM",months2]||years2<=1&&["y"]||["yy",years2],a[2]=withoutSuffix,a[3]=+posNegDuration>0,a[4]=locale2,substituteTimeAgo.apply(null,a)}function getSetRelativeTimeRounding(roundingFunction){return roundingFunction===void 0?round:typeof roundingFunction=="function"?(round=roundingFunction,!0):!1}function getSetRelativeTimeThreshold(threshold,limit){return thresholds[threshold]===void 0?!1:limit===void 0?thresholds[threshold]:(thresholds[threshold]=limit,threshold==="s"&&(thresholds.ss=limit-1),!0)}function humanize(argWithSuffix,argThresholds){if(!this.isValid())return this.localeData().invalidDate();var withSuffix=!1,th=thresholds,locale2,output;return typeof argWithSuffix=="object"&&(argThresholds=argWithSuffix,argWithSuffix=!1),typeof argWithSuffix=="boolean"&&(withSuffix=argWithSuffix),typeof argThresholds=="object"&&(th=Object.assign({},thresholds,argThresholds),argThresholds.s!=null&&argThresholds.ss==null&&(th.ss=argThresholds.s-1)),locale2=this.localeData(),output=relativeTime$1(this,!withSuffix,th,locale2),withSuffix&&(output=locale2.pastFuture(+this,output)),locale2.postformat(output)}var abs$1=Math.abs;function sign(x){return(x>0)-(x<0)||+x}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var seconds2=abs$1(this._milliseconds)/1e3,days2=abs$1(this._days),months2=abs$1(this._months),minutes2,hours2,years2,s,total=this.asSeconds(),totalSign,ymSign,daysSign,hmsSign;return total?(minutes2=absFloor(seconds2/60),hours2=absFloor(minutes2/60),seconds2%=60,minutes2%=60,years2=absFloor(months2/12),months2%=12,s=seconds2?seconds2.toFixed(3).replace(/\.?0+$/,""):"",totalSign=total<0?"-":"",ymSign=sign(this._months)!==sign(total)?"-":"",daysSign=sign(this._days)!==sign(total)?"-":"",hmsSign=sign(this._milliseconds)!==sign(total)?"-":"",totalSign+"P"+(years2?ymSign+years2+"Y":"")+(months2?ymSign+months2+"M":"")+(days2?daysSign+days2+"D":"")+(hours2||minutes2||seconds2?"T":"")+(hours2?hmsSign+hours2+"H":"")+(minutes2?hmsSign+minutes2+"M":"")+(seconds2?hmsSign+s+"S":"")):"P0D"}var proto$2=Duration.prototype;proto$2.isValid=isValid$1,proto$2.abs=abs,proto$2.add=add$1,proto$2.subtract=subtract$1,proto$2.as=as,proto$2.asMilliseconds=asMilliseconds,proto$2.asSeconds=asSeconds,proto$2.asMinutes=asMinutes,proto$2.asHours=asHours,proto$2.asDays=asDays,proto$2.asWeeks=asWeeks,proto$2.asMonths=asMonths,proto$2.asQuarters=asQuarters,proto$2.asYears=asYears,proto$2.valueOf=valueOf$1,proto$2._bubble=bubble,proto$2.clone=clone$1,proto$2.get=get$2,proto$2.milliseconds=milliseconds,proto$2.seconds=seconds,proto$2.minutes=minutes,proto$2.hours=hours,proto$2.days=days,proto$2.weeks=weeks,proto$2.months=months,proto$2.years=years,proto$2.humanize=humanize,proto$2.toISOString=toISOString$1,proto$2.toString=toISOString$1,proto$2.toJSON=toISOString$1,proto$2.locale=locale,proto$2.localeData=localeData,proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),proto$2.lang=lang,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",matchSigned),addRegexToken("X",matchTimestamp),addParseToken("X",function(input,array2,config2){config2._d=new Date(parseFloat(input)*1e3)}),addParseToken("x",function(input,array2,config2){config2._d=new Date(toInt(input))});return hooks.version="2.30.1",setHookCallback(createLocal),hooks.fn=proto,hooks.min=min,hooks.max=max,hooks.now=now,hooks.utc=createUTC,hooks.unix=createUnix,hooks.months=listMonths,hooks.isDate=isDate2,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=listWeekdays,hooks.parseZone=createInZone,hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=listMonthsShort,hooks.weekdaysMin=listWeekdaysMin,hooks.defineLocale=defineLocale,hooks.updateLocale=updateLocale,hooks.locales=listLocales,hooks.weekdaysShort=listWeekdaysShort,hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=getSetRelativeTimeRounding,hooks.relativeTimeThreshold=getSetRelativeTimeThreshold,hooks.calendarFormat=getCalendarFormat,hooks.prototype=proto,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},hooks}))}});var require_truncate=__commonJS({"node_modules/.pnpm/truncate-utf8-bytes@1.0.2/node_modules/truncate-utf8-bytes/lib/truncate.js"(exports,module2){"use strict";function isHighSurrogate(codePoint){return codePoint>=55296&&codePoint<=56319}function isLowSurrogate(codePoint){return codePoint>=56320&&codePoint<=57343}module2.exports=function(getLength,string4,byteLength){if(typeof string4!="string")throw new Error("Input must be string");for(var charLength=string4.length,curByteLength=0,codePoint,segment,i=0;i<charLength;i+=1){if(codePoint=string4.charCodeAt(i),segment=string4[i],isHighSurrogate(codePoint)&&isLowSurrogate(string4.charCodeAt(i+1))&&(i+=1,segment+=string4[i]),curByteLength+=getLength(segment),curByteLength===byteLength)return string4.slice(0,i+1);if(curByteLength>byteLength)return string4.slice(0,i-segment.length+1)}return string4}}});var require_browser=__commonJS({"node_modules/.pnpm/utf8-byte-length@1.0.5/node_modules/utf8-byte-length/browser.js"(exports,module2){"use strict";function isHighSurrogate(codePoint){return codePoint>=55296&&codePoint<=56319}function isLowSurrogate(codePoint){return codePoint>=56320&&codePoint<=57343}module2.exports=function(string4){if(typeof string4!="string")throw new Error("Input must be string");for(var charLength=string4.length,byteLength=0,codePoint=null,prevCodePoint=null,i=0;i<charLength;i++)codePoint=string4.charCodeAt(i),isLowSurrogate(codePoint)?prevCodePoint!=null&&isHighSurrogate(prevCodePoint)?byteLength+=1:byteLength+=3:codePoint<=127?byteLength+=1:codePoint>=128&&codePoint<=2047?byteLength+=2:codePoint>=2048&&codePoint<=65535&&(byteLength+=3),prevCodePoint=codePoint;return byteLength}}});var require_browser2=__commonJS({"node_modules/.pnpm/truncate-utf8-bytes@1.0.2/node_modules/truncate-utf8-bytes/browser.js"(exports,module2){"use strict";var truncate2=require_truncate(),getLength=require_browser();module2.exports=truncate2.bind(null,getLength)}});var require_sanitize_filename=__commonJS({"node_modules/.pnpm/sanitize-filename@1.6.4/node_modules/sanitize-filename/index.js"(exports,module2){"use strict";var truncate2=require_browser2(),illegalRe=/[\/\?<>\\:\*\|"]/g,controlRe=/[\x00-\x1f\x80-\x9f]/g,reservedRe=/^\.+$/,windowsReservedRe=/^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;function replaceTrailingDotsAndSpaces(str,replacement){for(var end=str.length;end>0&&(str[end-1]==="."||str[end-1]===" ");)end--;return end<str.length?str.slice(0,end)+replacement:str}function sanitize2(input,replacement){if(typeof input!="string")throw new Error("Input must be string");var sanitized=input.replace(illegalRe,replacement).replace(controlRe,replacement).replace(reservedRe,replacement).replace(windowsReservedRe,replacement);return sanitized=replaceTrailingDotsAndSpaces(sanitized,replacement),truncate2(sanitized,255)}module2.exports=function(input,options){var replacement=options&&options.replacement||"",output=sanitize2(input,replacement);return replacement===""?output:sanitize2(output,"")}}});var require_index_full=__commonJS({"node_modules/.pnpm/defuddle@0.18.1/node_modules/defuddle/dist/index.full.js"(exports,module2){(function(e,t){typeof exports=="object"&&typeof module2=="object"?module2.exports=t():typeof define=="function"&&define.amd?define([],t):typeof exports=="object"?exports.Defuddle=t():e.Defuddle=t()})(Object(typeof self!="undefined"?self:exports),(()=>(()=>{var e={2354(e2){var t2;t2=()=>(()=>{var e3={4582:(e4,t4)=>{"use strict";function r3(e5,t5){return t5===void 0&&(t5=Object),t5&&typeof t5.freeze=="function"?t5.freeze(e5):e5}var n3=r3({HTML:"text/html",isHTML:function(e5){return e5===n3.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),o=r3({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e5){return e5===o.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t4.assign=function(e5,t5){if(e5===null||typeof e5!="object")throw new TypeError("target is not an object");for(var r4 in t5)Object.prototype.hasOwnProperty.call(t5,r4)&&(e5[r4]=t5[r4]);return e5},t4.find=function(e5,t5,r4){if(r4===void 0&&(r4=Array.prototype),e5&&typeof r4.find=="function")return r4.find.call(e5,t5);for(var n4=0;n4<e5.length;n4++)if(Object.prototype.hasOwnProperty.call(e5,n4)){var o2=e5[n4];if(t5.call(void 0,o2,n4,e5))return o2}},t4.freeze=r3,t4.MIME_TYPE=n3,t4.NAMESPACE=o},5752:(e4,t4,r3)=>{var n3=r3(4582),o=r3(4722),i=r3(6559),a=r3(4466),s=o.DOMImplementation,l=n3.NAMESPACE,c2=a.ParseError,u=a.XMLReader;function d(e5){return e5.replace(/\r[\n\u0085]/g,`
`).replace(/[\r\u0085\u2028]/g,`
`)}function h2(e5){this.options=e5||{locator:{}}}function m(){this.cdata=!1}function p(e5,t5){t5.lineNumber=e5.lineNumber,t5.columnNumber=e5.columnNumber}function f(e5){if(e5)return`
@`+(e5.systemId||"")+"#[line:"+e5.lineNumber+",col:"+e5.columnNumber+"]"}function g(e5,t5,r4){return typeof e5=="string"?e5.substr(t5,r4):e5.length>=t5+r4||t5?new java.lang.String(e5,t5,r4)+"":e5}function b(e5,t5){e5.currentElement?e5.currentElement.appendChild(t5):e5.doc.appendChild(t5)}h2.prototype.parseFromString=function(e5,t5){var r4=this.options,n4=new u,o2=r4.domBuilder||new m,a2=r4.errorHandler,s2=r4.locator,c3=r4.xmlns||{},h3=/\/x?html?$/.test(t5),p2=h3?i.HTML_ENTITIES:i.XML_ENTITIES;s2&&o2.setDocumentLocator(s2),n4.errorHandler=(function(e6,t6,r5){if(!e6){if(t6 instanceof m)return t6;e6=t6}var n5={},o3=e6 instanceof Function;function i2(t7){var i3=e6[t7];!i3&&o3&&(i3=e6.length==2?function(r6){e6(t7,r6)}:e6),n5[t7]=i3&&function(e7){i3("[xmldom "+t7+"] "+e7+f(r5))}||function(){}}return r5=r5||{},i2("warning"),i2("error"),i2("fatalError"),n5})(a2,o2,s2),n4.domBuilder=r4.domBuilder||o2,h3&&(c3[""]=l.HTML),c3.xml=c3.xml||l.XML;var g2=r4.normalizeLineEndings||d;return e5&&typeof e5=="string"?n4.parse(g2(e5),c3,p2):n4.errorHandler.error("invalid doc source"),o2.doc},m.prototype={startDocument:function(){this.doc=new s().createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e5,t5,r4,n4){var o2=this.doc,i2=o2.createElementNS(e5,r4||t5),a2=n4.length;b(this,i2),this.currentElement=i2,this.locator&&p(this.locator,i2);for(var s2=0;s2<a2;s2++){e5=n4.getURI(s2);var l2=n4.getValue(s2),c3=(r4=n4.getQName(s2),o2.createAttributeNS(e5,r4));this.locator&&p(n4.getLocator(s2),c3),c3.value=c3.nodeValue=l2,i2.setAttributeNode(c3)}},endElement:function(e5,t5,r4){var n4=this.currentElement;n4.tagName,this.currentElement=n4.parentNode},startPrefixMapping:function(e5,t5){},endPrefixMapping:function(e5){},processingInstruction:function(e5,t5){var r4=this.doc.createProcessingInstruction(e5,t5);this.locator&&p(this.locator,r4),b(this,r4)},ignorableWhitespace:function(e5,t5,r4){},characters:function(e5,t5,r4){if(e5=g.apply(this,arguments)){if(this.cdata)var n4=this.doc.createCDATASection(e5);else n4=this.doc.createTextNode(e5);this.currentElement?this.currentElement.appendChild(n4):/^\s*$/.test(e5)&&this.doc.appendChild(n4),this.locator&&p(this.locator,n4)}},skippedEntity:function(e5){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e5){(this.locator=e5)&&(e5.lineNumber=0)},comment:function(e5,t5,r4){e5=g.apply(this,arguments);var n4=this.doc.createComment(e5);this.locator&&p(this.locator,n4),b(this,n4)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e5,t5,r4){var n4=this.doc.implementation;if(n4&&n4.createDocumentType){var o2=n4.createDocumentType(e5,t5,r4);this.locator&&p(this.locator,o2),b(this,o2),this.doc.doctype=o2}},warning:function(e5){console.warn("[xmldom warning] "+e5,f(this.locator))},error:function(e5){console.error("[xmldom error] "+e5,f(this.locator))},fatalError:function(e5){throw new c2(e5,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e5){m.prototype[e5]=function(){return null}})),t4.DOMParser=h2},4722:(e4,t4,r3)=>{var n3=r3(4582),o=n3.find,i=n3.NAMESPACE;function a(e5){return e5!==""}function s(e5,t5){return e5.hasOwnProperty(t5)||(e5[t5]=!0),e5}function l(e5){if(!e5)return[];var t5=(function(e6){return e6?e6.split(/[\t\n\f\r ]+/).filter(a):[]})(e5);return Object.keys(t5.reduce(s,{}))}function c2(e5,t5){for(var r4 in e5)Object.prototype.hasOwnProperty.call(e5,r4)&&(t5[r4]=e5[r4])}function u(e5,t5){var r4=e5.prototype;if(!(r4 instanceof t5)){let n5=function(){};var n4=n5;n5.prototype=t5.prototype,c2(r4,n5=new n5),e5.prototype=r4=n5}r4.constructor!=e5&&(typeof e5!="function"&&console.error("unknown Class:"+e5),r4.constructor=e5)}var d={},h2=d.ELEMENT_NODE=1,m=d.ATTRIBUTE_NODE=2,p=d.TEXT_NODE=3,f=d.CDATA_SECTION_NODE=4,g=d.ENTITY_REFERENCE_NODE=5,b=d.ENTITY_NODE=6,x=d.PROCESSING_INSTRUCTION_NODE=7,v=d.COMMENT_NODE=8,y=d.DOCUMENT_NODE=9,w=d.DOCUMENT_TYPE_NODE=10,A=d.DOCUMENT_FRAGMENT_NODE=11,C=d.NOTATION_NODE=12,E={},S={},_=(E.INDEX_SIZE_ERR=(S[1]="Index size error",1),E.DOMSTRING_SIZE_ERR=(S[2]="DOMString size error",2),E.HIERARCHY_REQUEST_ERR=(S[3]="Hierarchy request error",3)),T=(E.WRONG_DOCUMENT_ERR=(S[4]="Wrong document",4),E.INVALID_CHARACTER_ERR=(S[5]="Invalid character",5),E.NO_DATA_ALLOWED_ERR=(S[6]="No data allowed",6),E.NO_MODIFICATION_ALLOWED_ERR=(S[7]="No modification allowed",7),E.NOT_FOUND_ERR=(S[8]="Not found",8)),q=(E.NOT_SUPPORTED_ERR=(S[9]="Not supported",9),E.INUSE_ATTRIBUTE_ERR=(S[10]="Attribute in use",10));function k(e5,t5){if(t5 instanceof Error)var r4=t5;else r4=this,Error.call(this,S[e5]),this.message=S[e5],Error.captureStackTrace&&Error.captureStackTrace(this,k);return r4.code=e5,t5&&(this.message=this.message+": "+t5),r4}function N(){}function L(e5,t5){this._node=e5,this._refresh=t5,O(this)}function O(e5){var t5=e5._node._inc||e5._node.ownerDocument._inc;if(e5._inc!==t5){var r4=e5._refresh(e5._node);if(xe(e5,"length",r4.length),!e5.$$length||r4.length<e5.$$length)for(var n4=r4.length;n4 in e5;n4++)Object.prototype.hasOwnProperty.call(e5,n4)&&delete e5[n4];c2(r4,e5),e5._inc=t5}}function D(){}function M(e5,t5){for(var r4=e5.length;r4--;)if(e5[r4]===t5)return r4}function $(e5,t5,r4,n4){if(n4?t5[M(t5,n4)]=r4:t5[t5.length++]=r4,e5){r4.ownerElement=e5;var o2=e5.ownerDocument;o2&&(n4&&H(o2,e5,n4),(function(e6,t6,r5){e6&&e6._inc++,r5.namespaceURI===i.XMLNS&&(t6._nsMap[r5.prefix?r5.localName:""]=r5.value)})(o2,e5,r4))}}function B(e5,t5,r4){var n4=M(t5,r4);if(!(n4>=0))throw new k(T,new Error(e5.tagName+"@"+r4));for(var o2=t5.length-1;n4<o2;)t5[n4]=t5[++n4];if(t5.length=o2,e5){var i2=e5.ownerDocument;i2&&(H(i2,e5,r4),r4.ownerElement=null)}}function P(){}function I(){}function R(e5){return(e5=="<"?"&lt;":e5==">"&&"&gt;")||e5=="&"&&"&amp;"||e5=='"'&&"&quot;"||"&#"+e5.charCodeAt()+";"}function F(e5,t5){if(t5(e5))return!0;if(e5=e5.firstChild)do if(F(e5,t5))return!0;while(e5=e5.nextSibling)}function j(){this.ownerDocument=this}function H(e5,t5,r4,n4){e5&&e5._inc++,r4.namespaceURI===i.XMLNS&&delete t5._nsMap[r4.prefix?r4.localName:""]}function z2(e5,t5,r4){if(e5&&e5._inc){e5._inc++;var n4=t5.childNodes;if(r4)n4[n4.length++]=r4;else{for(var o2=t5.firstChild,i2=0;o2;)n4[i2++]=o2,o2=o2.nextSibling;n4.length=i2,delete n4[n4.length]}}}function U(e5,t5){var r4=t5.previousSibling,n4=t5.nextSibling;return r4?r4.nextSibling=n4:e5.firstChild=n4,n4?n4.previousSibling=r4:e5.lastChild=r4,t5.parentNode=null,t5.previousSibling=null,t5.nextSibling=null,z2(e5.ownerDocument,e5),t5}function W(e5){return e5&&e5.nodeType===I.DOCUMENT_TYPE_NODE}function G2(e5){return e5&&e5.nodeType===I.ELEMENT_NODE}function V(e5){return e5&&e5.nodeType===I.TEXT_NODE}function X(e5,t5){var r4=e5.childNodes||[];if(o(r4,G2)||W(t5))return!1;var n4=o(r4,W);return!(t5&&n4&&r4.indexOf(n4)>r4.indexOf(t5))}function J(e5,t5){var r4=e5.childNodes||[];if(o(r4,(function(e6){return G2(e6)&&e6!==t5})))return!1;var n4=o(r4,W);return!(t5&&n4&&r4.indexOf(n4)>r4.indexOf(t5))}function Z(e5,t5,r4){var n4=e5.childNodes||[],i2=t5.childNodes||[];if(t5.nodeType===I.DOCUMENT_FRAGMENT_NODE){var a2=i2.filter(G2);if(a2.length>1||o(i2,V))throw new k(_,"More than one element or text in fragment");if(a2.length===1&&!X(e5,r4))throw new k(_,"Element in fragment can not be inserted before doctype")}if(G2(t5)&&!X(e5,r4))throw new k(_,"Only one element can be added and only after doctype");if(W(t5)){if(o(n4,W))throw new k(_,"Only one doctype is allowed");var s2=o(n4,G2);if(r4&&n4.indexOf(s2)<n4.indexOf(r4))throw new k(_,"Doctype can only be inserted before an element");if(!r4&&s2)throw new k(_,"Doctype can not be appended since element is present")}}function K(e5,t5,r4){var n4=e5.childNodes||[],i2=t5.childNodes||[];if(t5.nodeType===I.DOCUMENT_FRAGMENT_NODE){var a2=i2.filter(G2);if(a2.length>1||o(i2,V))throw new k(_,"More than one element or text in fragment");if(a2.length===1&&!J(e5,r4))throw new k(_,"Element in fragment can not be inserted before doctype")}if(G2(t5)&&!J(e5,r4))throw new k(_,"Only one element can be added and only after doctype");if(W(t5)){if(o(n4,(function(e6){return W(e6)&&e6!==r4})))throw new k(_,"Only one doctype is allowed");var s2=o(n4,G2);if(r4&&n4.indexOf(s2)<n4.indexOf(r4))throw new k(_,"Doctype can only be inserted before an element")}}function Y(e5,t5,r4,n4){(function(e6,t6,r5){if(!(function(e7){return e7&&(e7.nodeType===I.DOCUMENT_NODE||e7.nodeType===I.DOCUMENT_FRAGMENT_NODE||e7.nodeType===I.ELEMENT_NODE)})(e6))throw new k(_,"Unexpected parent node type "+e6.nodeType);if(r5&&r5.parentNode!==e6)throw new k(T,"child not in parent");if(!(function(e7){return e7&&(G2(e7)||V(e7)||W(e7)||e7.nodeType===I.DOCUMENT_FRAGMENT_NODE||e7.nodeType===I.COMMENT_NODE||e7.nodeType===I.PROCESSING_INSTRUCTION_NODE)})(t6)||W(t6)&&e6.nodeType!==I.DOCUMENT_NODE)throw new k(_,"Unexpected node type "+t6.nodeType+" for parent node type "+e6.nodeType)})(e5,t5,r4),e5.nodeType===I.DOCUMENT_NODE&&(n4||Z)(e5,t5,r4);var o2=t5.parentNode;if(o2&&o2.removeChild(t5),t5.nodeType===A){var i2=t5.firstChild;if(i2==null)return t5;var a2=t5.lastChild}else i2=a2=t5;var s2=r4?r4.previousSibling:e5.lastChild;i2.previousSibling=s2,a2.nextSibling=r4,s2?s2.nextSibling=i2:e5.firstChild=i2,r4==null?e5.lastChild=a2:r4.previousSibling=a2;do i2.parentNode=e5;while(i2!==a2&&(i2=i2.nextSibling));return z2(e5.ownerDocument||e5,e5),t5.nodeType==A&&(t5.firstChild=t5.lastChild=null),t5}function Q(){this._nsMap={}}function ee(){}function te(){}function re(){}function ne(){}function oe(){}function ie(){}function ae(){}function se(){}function le(){}function ce(){}function ue(){}function de(){}function he(e5,t5){var r4=[],n4=this.nodeType==9&&this.documentElement||this,o2=n4.prefix,i2=n4.namespaceURI;if(i2&&o2==null&&(o2=n4.lookupPrefix(i2))==null)var a2=[{namespace:i2,prefix:null}];return fe(this,r4,e5,t5,a2),r4.join("")}function me(e5,t5,r4){var n4=e5.prefix||"",o2=e5.namespaceURI;if(!o2||n4==="xml"&&o2===i.XML||o2===i.XMLNS)return!1;for(var a2=r4.length;a2--;){var s2=r4[a2];if(s2.prefix===n4)return s2.namespace!==o2}return!0}function pe(e5,t5,r4){e5.push(" ",t5,'="',r4.replace(/[<>&"\t\n\r]/g,R),'"')}function fe(e5,t5,r4,n4,o2){if(o2||(o2=[]),n4){if(!(e5=n4(e5)))return;if(typeof e5=="string")return void t5.push(e5)}switch(e5.nodeType){case h2:var a2=e5.attributes,s2=a2.length,l2=e5.firstChild,c3=e5.tagName,u2=c3;if(!(r4=i.isHTML(e5.namespaceURI)||r4)&&!e5.prefix&&e5.namespaceURI){for(var d2,b2=0;b2<a2.length;b2++)if(a2.item(b2).name==="xmlns"){d2=a2.item(b2).value;break}if(!d2){for(var C2=o2.length-1;C2>=0;C2--)if((E2=o2[C2]).prefix===""&&E2.namespace===e5.namespaceURI){d2=E2.namespace;break}}if(d2!==e5.namespaceURI)for(C2=o2.length-1;C2>=0;C2--){var E2;if((E2=o2[C2]).namespace===e5.namespaceURI){E2.prefix&&(u2=E2.prefix+":"+c3);break}}}t5.push("<",u2);for(var S2=0;S2<s2;S2++)(_2=a2.item(S2)).prefix=="xmlns"?o2.push({prefix:_2.localName,namespace:_2.value}):_2.nodeName=="xmlns"&&o2.push({prefix:"",namespace:_2.value});for(S2=0;S2<s2;S2++){var _2,T2,q2;me(_2=a2.item(S2),0,o2)&&(pe(t5,(T2=_2.prefix||"")?"xmlns:"+T2:"xmlns",q2=_2.namespaceURI),o2.push({prefix:T2,namespace:q2})),fe(_2,t5,r4,n4,o2)}if(c3===u2&&me(e5,0,o2)&&(pe(t5,(T2=e5.prefix||"")?"xmlns:"+T2:"xmlns",q2=e5.namespaceURI),o2.push({prefix:T2,namespace:q2})),l2||r4&&!/^(?:meta|link|img|br|hr|input)$/i.test(c3)){if(t5.push(">"),r4&&/^script$/i.test(c3))for(;l2;)l2.data?t5.push(l2.data):fe(l2,t5,r4,n4,o2.slice()),l2=l2.nextSibling;else for(;l2;)fe(l2,t5,r4,n4,o2.slice()),l2=l2.nextSibling;t5.push("</",u2,">")}else t5.push("/>");return;case y:case A:for(l2=e5.firstChild;l2;)fe(l2,t5,r4,n4,o2.slice()),l2=l2.nextSibling;return;case m:return pe(t5,e5.name,e5.value);case p:return t5.push(e5.data.replace(/[<&>]/g,R));case f:return t5.push("<![CDATA[",e5.data,"]]>");case v:return t5.push("<!--",e5.data,"-->");case w:var k2=e5.publicId,N2=e5.systemId;if(t5.push("<!DOCTYPE ",e5.name),k2)t5.push(" PUBLIC ",k2),N2&&N2!="."&&t5.push(" ",N2),t5.push(">");else if(N2&&N2!=".")t5.push(" SYSTEM ",N2,">");else{var L2=e5.internalSubset;L2&&t5.push(" [",L2,"]"),t5.push(">")}return;case x:return t5.push("<?",e5.target," ",e5.data,"?>");case g:return t5.push("&",e5.nodeName,";");default:t5.push("??",e5.nodeName)}}function ge(e5,t5,r4){var n4;switch(t5.nodeType){case h2:(n4=t5.cloneNode(!1)).ownerDocument=e5;case A:break;case m:r4=!0}if(n4||(n4=t5.cloneNode(!1)),n4.ownerDocument=e5,n4.parentNode=null,r4)for(var o2=t5.firstChild;o2;)n4.appendChild(ge(e5,o2,r4)),o2=o2.nextSibling;return n4}function be(e5,t5,r4){var n4=new t5.constructor;for(var o2 in t5)if(Object.prototype.hasOwnProperty.call(t5,o2)){var i2=t5[o2];typeof i2!="object"&&i2!=n4[o2]&&(n4[o2]=i2)}switch(t5.childNodes&&(n4.childNodes=new N),n4.ownerDocument=e5,n4.nodeType){case h2:var a2=t5.attributes,s2=n4.attributes=new D,l2=a2.length;s2._ownerElement=n4;for(var c3=0;c3<l2;c3++)n4.setAttributeNode(be(e5,a2.item(c3),!0));break;case m:r4=!0}if(r4)for(var u2=t5.firstChild;u2;)n4.appendChild(be(e5,u2,r4)),u2=u2.nextSibling;return n4}function xe(e5,t5,r4){e5[t5]=r4}E.INVALID_STATE_ERR=(S[11]="Invalid state",11),E.SYNTAX_ERR=(S[12]="Syntax error",12),E.INVALID_MODIFICATION_ERR=(S[13]="Invalid modification",13),E.NAMESPACE_ERR=(S[14]="Invalid namespace",14),E.INVALID_ACCESS_ERR=(S[15]="Invalid access",15),k.prototype=Error.prototype,c2(E,k),N.prototype={length:0,item:function(e5){return e5>=0&&e5<this.length?this[e5]:null},toString:function(e5,t5){for(var r4=[],n4=0;n4<this.length;n4++)fe(this[n4],r4,e5,t5);return r4.join("")},filter:function(e5){return Array.prototype.filter.call(this,e5)},indexOf:function(e5){return Array.prototype.indexOf.call(this,e5)}},L.prototype.item=function(e5){return O(this),this[e5]||null},u(L,N),D.prototype={length:0,item:N.prototype.item,getNamedItem:function(e5){for(var t5=this.length;t5--;){var r4=this[t5];if(r4.nodeName==e5)return r4}},setNamedItem:function(e5){var t5=e5.ownerElement;if(t5&&t5!=this._ownerElement)throw new k(q);var r4=this.getNamedItem(e5.nodeName);return $(this._ownerElement,this,e5,r4),r4},setNamedItemNS:function(e5){var t5,r4=e5.ownerElement;if(r4&&r4!=this._ownerElement)throw new k(q);return t5=this.getNamedItemNS(e5.namespaceURI,e5.localName),$(this._ownerElement,this,e5,t5),t5},removeNamedItem:function(e5){var t5=this.getNamedItem(e5);return B(this._ownerElement,this,t5),t5},removeNamedItemNS:function(e5,t5){var r4=this.getNamedItemNS(e5,t5);return B(this._ownerElement,this,r4),r4},getNamedItemNS:function(e5,t5){for(var r4=this.length;r4--;){var n4=this[r4];if(n4.localName==t5&&n4.namespaceURI==e5)return n4}return null}},P.prototype={hasFeature:function(e5,t5){return!0},createDocument:function(e5,t5,r4){var n4=new j;if(n4.implementation=this,n4.childNodes=new N,n4.doctype=r4||null,r4&&n4.appendChild(r4),t5){var o2=n4.createElementNS(e5,t5);n4.appendChild(o2)}return n4},createDocumentType:function(e5,t5,r4){var n4=new ie;return n4.name=e5,n4.nodeName=e5,n4.publicId=t5||"",n4.systemId=r4||"",n4}},I.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(e5,t5){return Y(this,e5,t5)},replaceChild:function(e5,t5){Y(this,e5,t5,K),t5&&this.removeChild(t5)},removeChild:function(e5){return U(this,e5)},appendChild:function(e5){return this.insertBefore(e5,null)},hasChildNodes:function(){return this.firstChild!=null},cloneNode:function(e5){return be(this.ownerDocument||this,this,e5)},normalize:function(){for(var e5=this.firstChild;e5;){var t5=e5.nextSibling;t5&&t5.nodeType==p&&e5.nodeType==p?(this.removeChild(t5),e5.appendData(t5.data)):(e5.normalize(),e5=t5)}},isSupported:function(e5,t5){return this.ownerDocument.implementation.hasFeature(e5,t5)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e5){for(var t5=this;t5;){var r4=t5._nsMap;if(r4){for(var n4 in r4)if(Object.prototype.hasOwnProperty.call(r4,n4)&&r4[n4]===e5)return n4}t5=t5.nodeType==m?t5.ownerDocument:t5.parentNode}return null},lookupNamespaceURI:function(e5){for(var t5=this;t5;){var r4=t5._nsMap;if(r4&&Object.prototype.hasOwnProperty.call(r4,e5))return r4[e5];t5=t5.nodeType==m?t5.ownerDocument:t5.parentNode}return null},isDefaultNamespace:function(e5){return this.lookupPrefix(e5)==null}},c2(d,I),c2(d,I.prototype),j.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(e5,t5){if(e5.nodeType==A){for(var r4=e5.firstChild;r4;){var n4=r4.nextSibling;this.insertBefore(r4,t5),r4=n4}return e5}return Y(this,e5,t5),e5.ownerDocument=this,this.documentElement===null&&e5.nodeType===h2&&(this.documentElement=e5),e5},removeChild:function(e5){return this.documentElement==e5&&(this.documentElement=null),U(this,e5)},replaceChild:function(e5,t5){Y(this,e5,t5,K),e5.ownerDocument=this,t5&&this.removeChild(t5),G2(e5)&&(this.documentElement=e5)},importNode:function(e5,t5){return ge(this,e5,t5)},getElementById:function(e5){var t5=null;return F(this.documentElement,(function(r4){if(r4.nodeType==h2&&r4.getAttribute("id")==e5)return t5=r4,!0})),t5},getElementsByClassName:function(e5){var t5=l(e5);return new L(this,(function(r4){var n4=[];return t5.length>0&&F(r4.documentElement,(function(o2){if(o2!==r4&&o2.nodeType===h2){var i2=o2.getAttribute("class");if(i2){var a2=e5===i2;if(!a2){var s2=l(i2);a2=t5.every((c3=s2,function(e6){return c3&&c3.indexOf(e6)!==-1}))}a2&&n4.push(o2)}}var c3})),n4}))},createElement:function(e5){var t5=new Q;return t5.ownerDocument=this,t5.nodeName=e5,t5.tagName=e5,t5.localName=e5,t5.childNodes=new N,(t5.attributes=new D)._ownerElement=t5,t5},createDocumentFragment:function(){var e5=new ce;return e5.ownerDocument=this,e5.childNodes=new N,e5},createTextNode:function(e5){var t5=new re;return t5.ownerDocument=this,t5.appendData(e5),t5},createComment:function(e5){var t5=new ne;return t5.ownerDocument=this,t5.appendData(e5),t5},createCDATASection:function(e5){var t5=new oe;return t5.ownerDocument=this,t5.appendData(e5),t5},createProcessingInstruction:function(e5,t5){var r4=new ue;return r4.ownerDocument=this,r4.tagName=r4.nodeName=r4.target=e5,r4.nodeValue=r4.data=t5,r4},createAttribute:function(e5){var t5=new ee;return t5.ownerDocument=this,t5.name=e5,t5.nodeName=e5,t5.localName=e5,t5.specified=!0,t5},createEntityReference:function(e5){var t5=new le;return t5.ownerDocument=this,t5.nodeName=e5,t5},createElementNS:function(e5,t5){var r4=new Q,n4=t5.split(":"),o2=r4.attributes=new D;return r4.childNodes=new N,r4.ownerDocument=this,r4.nodeName=t5,r4.tagName=t5,r4.namespaceURI=e5,n4.length==2?(r4.prefix=n4[0],r4.localName=n4[1]):r4.localName=t5,o2._ownerElement=r4,r4},createAttributeNS:function(e5,t5){var r4=new ee,n4=t5.split(":");return r4.ownerDocument=this,r4.nodeName=t5,r4.name=t5,r4.namespaceURI=e5,r4.specified=!0,n4.length==2?(r4.prefix=n4[0],r4.localName=n4[1]):r4.localName=t5,r4}},u(j,I),Q.prototype={nodeType:h2,hasAttribute:function(e5){return this.getAttributeNode(e5)!=null},getAttribute:function(e5){var t5=this.getAttributeNode(e5);return t5&&t5.value||""},getAttributeNode:function(e5){return this.attributes.getNamedItem(e5)},setAttribute:function(e5,t5){var r4=this.ownerDocument.createAttribute(e5);r4.value=r4.nodeValue=""+t5,this.setAttributeNode(r4)},removeAttribute:function(e5){var t5=this.getAttributeNode(e5);t5&&this.removeAttributeNode(t5)},appendChild:function(e5){return e5.nodeType===A?this.insertBefore(e5,null):(function(e6,t5){return t5.parentNode&&t5.parentNode.removeChild(t5),t5.parentNode=e6,t5.previousSibling=e6.lastChild,t5.nextSibling=null,t5.previousSibling?t5.previousSibling.nextSibling=t5:e6.firstChild=t5,e6.lastChild=t5,z2(e6.ownerDocument,e6,t5),t5})(this,e5)},setAttributeNode:function(e5){return this.attributes.setNamedItem(e5)},setAttributeNodeNS:function(e5){return this.attributes.setNamedItemNS(e5)},removeAttributeNode:function(e5){return this.attributes.removeNamedItem(e5.nodeName)},removeAttributeNS:function(e5,t5){var r4=this.getAttributeNodeNS(e5,t5);r4&&this.removeAttributeNode(r4)},hasAttributeNS:function(e5,t5){return this.getAttributeNodeNS(e5,t5)!=null},getAttributeNS:function(e5,t5){var r4=this.getAttributeNodeNS(e5,t5);return r4&&r4.value||""},setAttributeNS:function(e5,t5,r4){var n4=this.ownerDocument.createAttributeNS(e5,t5);n4.value=n4.nodeValue=""+r4,this.setAttributeNode(n4)},getAttributeNodeNS:function(e5,t5){return this.attributes.getNamedItemNS(e5,t5)},getElementsByTagName:function(e5){return new L(this,(function(t5){var r4=[];return F(t5,(function(n4){n4===t5||n4.nodeType!=h2||e5!=="*"&&n4.tagName!=e5||r4.push(n4)})),r4}))},getElementsByTagNameNS:function(e5,t5){return new L(this,(function(r4){var n4=[];return F(r4,(function(o2){o2===r4||o2.nodeType!==h2||e5!=="*"&&o2.namespaceURI!==e5||t5!=="*"&&o2.localName!=t5||n4.push(o2)})),n4}))}},j.prototype.getElementsByTagName=Q.prototype.getElementsByTagName,j.prototype.getElementsByTagNameNS=Q.prototype.getElementsByTagNameNS,u(Q,I),ee.prototype.nodeType=m,u(ee,I),te.prototype={data:"",substringData:function(e5,t5){return this.data.substring(e5,e5+t5)},appendData:function(e5){e5=this.data+e5,this.nodeValue=this.data=e5,this.length=e5.length},insertData:function(e5,t5){this.replaceData(e5,0,t5)},appendChild:function(e5){throw new Error(S[_])},deleteData:function(e5,t5){this.replaceData(e5,t5,"")},replaceData:function(e5,t5,r4){r4=this.data.substring(0,e5)+r4+this.data.substring(e5+t5),this.nodeValue=this.data=r4,this.length=r4.length}},u(te,I),re.prototype={nodeName:"#text",nodeType:p,splitText:function(e5){var t5=this.data,r4=t5.substring(e5);t5=t5.substring(0,e5),this.data=this.nodeValue=t5,this.length=t5.length;var n4=this.ownerDocument.createTextNode(r4);return this.parentNode&&this.parentNode.insertBefore(n4,this.nextSibling),n4}},u(re,te),ne.prototype={nodeName:"#comment",nodeType:v},u(ne,te),oe.prototype={nodeName:"#cdata-section",nodeType:f},u(oe,te),ie.prototype.nodeType=w,u(ie,I),ae.prototype.nodeType=C,u(ae,I),se.prototype.nodeType=b,u(se,I),le.prototype.nodeType=g,u(le,I),ce.prototype.nodeName="#document-fragment",ce.prototype.nodeType=A,u(ce,I),ue.prototype.nodeType=x,u(ue,I),de.prototype.serializeToString=function(e5,t5,r4){return he.call(e5,t5,r4)},I.prototype.toString=he;try{if(Object.defineProperty){let ve2=function(e5){switch(e5.nodeType){case h2:case A:var t5=[];for(e5=e5.firstChild;e5;)e5.nodeType!==7&&e5.nodeType!==8&&t5.push(ve2(e5)),e5=e5.nextSibling;return t5.join("");default:return e5.nodeValue}};var ve=ve2;Object.defineProperty(L.prototype,"length",{get:function(){return O(this),this.$$length}}),Object.defineProperty(I.prototype,"textContent",{get:function(){return ve2(this)},set:function(e5){switch(this.nodeType){case h2:case A:for(;this.firstChild;)this.removeChild(this.firstChild);(e5||String(e5))&&this.appendChild(this.ownerDocument.createTextNode(e5));break;default:this.data=e5,this.value=e5,this.nodeValue=e5}}}),xe=function(e5,t5,r4){e5["$$"+t5]=r4}}}catch(ye){}t4.DocumentType=ie,t4.DOMException=k,t4.DOMImplementation=P,t4.Element=Q,t4.Node=I,t4.NodeList=N,t4.XMLSerializer=de},6559:(e4,t4,r3)=>{"use strict";var n3=r3(4582).freeze;t4.XML_ENTITIES=n3({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t4.HTML_ENTITIES=n3({Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",AMP:"&",amp:"&",And:"\u2A53",and:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsd:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",ap:"\u2248",apacir:"\u2A6F",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",Barwed:"\u2306",barwed:"\u2305",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",Because:"\u2235",because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxDL:"\u2557",boxDl:"\u2556",boxdL:"\u2555",boxdl:"\u2510",boxDR:"\u2554",boxDr:"\u2553",boxdR:"\u2552",boxdr:"\u250C",boxH:"\u2550",boxh:"\u2500",boxHD:"\u2566",boxHd:"\u2564",boxhD:"\u2565",boxhd:"\u252C",boxHU:"\u2569",boxHu:"\u2567",boxhU:"\u2568",boxhu:"\u2534",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxUL:"\u255D",boxUl:"\u255C",boxuL:"\u255B",boxul:"\u2518",boxUR:"\u255A",boxUr:"\u2559",boxuR:"\u2558",boxur:"\u2514",boxV:"\u2551",boxv:"\u2502",boxVH:"\u256C",boxVh:"\u256B",boxvH:"\u256A",boxvh:"\u253C",boxVL:"\u2563",boxVl:"\u2562",boxvL:"\u2561",boxvl:"\u2524",boxVR:"\u2560",boxVr:"\u255F",boxvR:"\u255E",boxvr:"\u251C",bprime:"\u2035",Breve:"\u02D8",breve:"\u02D8",brvbar:"\xA6",Bscr:"\u212C",bscr:"\u{1D4B7}",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",Cap:"\u22D2",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",CenterDot:"\xB7",centerdot:"\xB7",Cfr:"\u212D",cfr:"\u{1D520}",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",cir:"\u25CB",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",Colon:"\u2237",colon:":",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",Conint:"\u222F",conint:"\u222E",ContourIntegral:"\u222E",Copf:"\u2102",copf:"\u{1D554}",coprod:"\u2210",Coproduct:"\u2210",COPY:"\xA9",copy:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",Cross:"\u2A2F",cross:"\u2717",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",Cup:"\u22D3",cup:"\u222A",cupbrcap:"\u2A48",CupCap:"\u224D",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",Dagger:"\u2021",dagger:"\u2020",daleth:"\u2138",Darr:"\u21A1",dArr:"\u21D3",darr:"\u2193",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",DD:"\u2145",dd:"\u2146",ddagger:"\u2021",ddarr:"\u21CA",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",Diamond:"\u22C4",diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrow:"\u2193",Downarrow:"\u21D3",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",DownTeeArrow:"\u21A7",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",ecir:"\u2256",Ecirc:"\xCA",ecirc:"\xEA",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",eDot:"\u2251",edot:"\u0117",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp:"\u2003",emsp13:"\u2004",emsp14:"\u2005",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",Escr:"\u2130",escr:"\u212F",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",ExponentialE:"\u2147",exponentiale:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",ForAll:"\u2200",forall:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",Fscr:"\u2131",fscr:"\u{1D4BB}",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",gE:"\u2267",ge:"\u2265",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",ges:"\u2A7E",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",Gg:"\u22D9",gg:"\u226B",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gl:"\u2277",gla:"\u2AA5",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gnE:"\u2269",gne:"\u2A88",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",Gt:"\u226B",GT:">",gt:">",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",hArr:"\u21D4",harr:"\u2194",harrcir:"\u2948",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",Hfr:"\u210C",hfr:"\u{1D525}",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",Hopf:"\u210D",hopf:"\u{1D559}",horbar:"\u2015",HorizontalLine:"\u2500",Hscr:"\u210B",hscr:"\u{1D4BD}",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",Ifr:"\u2111",ifr:"\u{1D526}",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Im:"\u2111",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",in:"\u2208",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",Int:"\u222C",int:"\u222B",intcal:"\u22BA",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",Iscr:"\u2110",iscr:"\u{1D4BE}",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",Lang:"\u27EA",lang:"\u27E8",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",Larr:"\u219E",lArr:"\u21D0",larr:"\u2190",larrb:"\u21E4",larrbfs:"\u291F",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",lat:"\u2AAB",lAtail:"\u291B",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lBarr:"\u290E",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",lE:"\u2266",le:"\u2264",LeftAngleBracket:"\u27E8",LeftArrow:"\u2190",Leftarrow:"\u21D0",leftarrow:"\u2190",LeftArrowBar:"\u21E4",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrow:"\u2194",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTee:"\u22A3",LeftTeeArrow:"\u21A4",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangle:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",LeftVectorBar:"\u2952",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",les:"\u2A7D",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",Ll:"\u22D8",ll:"\u226A",llarr:"\u21C7",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lnE:"\u2268",lne:"\u2A87",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftarrow:"\u27F5",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longleftrightarrow:"\u27F7",longmapsto:"\u27FC",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",longrightarrow:"\u27F6",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",Lscr:"\u2112",lscr:"\u{1D4C1}",Lsh:"\u21B0",lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",Lt:"\u226A",LT:"<",lt:"<",ltcc:"\u2AA6",ltcir:"\u2A79",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",mid:"\u2223",midast:"*",midcir:"\u2AF0",middot:"\xB7",minus:"\u2212",minusb:"\u229F",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",Mscr:"\u2133",mscr:"\u{1D4C2}",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natur:"\u266E",natural:"\u266E",naturals:"\u2115",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",ne:"\u2260",nearhk:"\u2924",neArr:"\u21D7",nearr:"\u2197",nearrow:"\u2197",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nhArr:"\u21CE",nharr:"\u21AE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlArr:"\u21CD",nlarr:"\u219A",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nLeftarrow:"\u21CD",nleftarrow:"\u219A",nLeftrightarrow:"\u21CE",nleftrightarrow:"\u21AE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",nopf:"\u{1D55F}",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrArr:"\u21CF",nrarr:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nRightarrow:"\u21CF",nrightarrow:"\u219B",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nVDash:"\u22AF",nVdash:"\u22AE",nvDash:"\u22AD",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwArr:"\u21D6",nwarr:"\u2196",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",ocir:"\u229A",Ocirc:"\xD4",ocirc:"\xF4",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",Or:"\u2A54",or:"\u2228",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",Otimes:"\u2A37",otimes:"\u2297",otimesas:"\u2A36",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",par:"\u2225",para:"\xB6",parallel:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plus:"+",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",Popf:"\u2119",popf:"\u{1D561}",pound:"\xA3",Pr:"\u2ABB",pr:"\u227A",prap:"\u2AB7",prcue:"\u227C",prE:"\u2AB3",pre:"\u2AAF",prec:"\u227A",precapprox:"\u2AB7",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",precsim:"\u227E",Prime:"\u2033",prime:"\u2032",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportion:"\u2237",Proportional:"\u221D",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",Qopf:"\u211A",qopf:"\u{1D562}",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",QUOT:'"',quot:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",Rang:"\u27EB",rang:"\u27E9",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",Rarr:"\u21A0",rArr:"\u21D2",rarr:"\u2192",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",rAtail:"\u291C",ratail:"\u291A",ratio:"\u2236",rationals:"\u211A",RBarr:"\u2910",rBarr:"\u290F",rbarr:"\u290D",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",Re:"\u211C",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",rect:"\u25AD",REG:"\xAE",reg:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",Rfr:"\u211C",rfr:"\u{1D52F}",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",Rightarrow:"\u21D2",rightarrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",Ropf:"\u211D",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",Rscr:"\u211B",rscr:"\u{1D4C7}",Rsh:"\u21B1",rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",Sc:"\u2ABC",sc:"\u227B",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",sccue:"\u227D",scE:"\u2AB4",sce:"\u2AB0",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdot:"\u22C5",sdotb:"\u22A1",sdote:"\u2A66",searhk:"\u2925",seArr:"\u21D8",searr:"\u2198",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",squ:"\u25A1",Square:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",Sub:"\u22D0",sub:"\u2282",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",Subset:"\u22D0",subset:"\u2282",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succ:"\u227B",succapprox:"\u2AB8",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",Sum:"\u2211",sum:"\u2211",sung:"\u266A",Sup:"\u22D1",sup:"\u2283",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",Supset:"\u22D1",supset:"\u2283",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swArr:"\u21D9",swarr:"\u2199",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",Therefore:"\u2234",therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",thinsp:"\u2009",ThinSpace:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",Tilde:"\u223C",tilde:"\u02DC",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",times:"\xD7",timesb:"\u22A0",timesbar:"\u2A31",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",top:"\u22A4",topbot:"\u2336",topcir:"\u2AF1",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",TRADE:"\u2122",trade:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",Uarr:"\u219F",uArr:"\u21D1",uarr:"\u2191",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrow:"\u2191",Uparrow:"\u21D1",uparrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",Updownarrow:"\u21D5",updownarrow:"\u2195",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",Upsi:"\u03D2",upsi:"\u03C5",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTee:"\u22A5",UpTeeArrow:"\u21A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",vArr:"\u21D5",varr:"\u2195",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",Vbar:"\u2AEB",vBar:"\u2AE8",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",VDash:"\u22AB",Vdash:"\u22A9",vDash:"\u22A8",vdash:"\u22A2",Vdashl:"\u2AE6",Vee:"\u22C1",vee:"\u2228",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",Verbar:"\u2016",verbar:"|",Vert:"\u2016",vert:"|",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",Wedge:"\u22C0",wedge:"\u2227",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xhArr:"\u27FA",xharr:"\u27F7",Xi:"\u039E",xi:"\u03BE",xlArr:"\u27F8",xlarr:"\u27F5",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrArr:"\u27F9",xrarr:"\u27F6",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",Yuml:"\u0178",yuml:"\xFF",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",Zfr:"\u2128",zfr:"\u{1D537}",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",Zopf:"\u2124",zopf:"\u{1D56B}",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}),t4.entityMap=t4.HTML_ENTITIES},8978:(e4,t4,r3)=>{var n3=r3(4722);t4.DOMImplementation=n3.DOMImplementation,t4.XMLSerializer=n3.XMLSerializer,t4.DOMParser=r3(5752).DOMParser},4466:(e4,t4,r3)=>{var n3=r3(4582).NAMESPACE,o=/[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]/,i=new RegExp("[\\-\\.0-9"+o.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp("^"+o.source+i.source+"*(?::"+o.source+i.source+"*)?$");function s(e5,t5){this.message=e5,this.locator=t5,Error.captureStackTrace&&Error.captureStackTrace(this,s)}function l(){}function c2(e5,t5){return t5.lineNumber=e5.lineNumber,t5.columnNumber=e5.columnNumber,t5}function u(e5,t5,r4,o2,i2,a2){function s2(e6,t6,n4){r4.attributeNames.hasOwnProperty(e6)&&a2.fatalError("Attribute "+e6+" redefined"),r4.addValue(e6,t6.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,i2),n4)}for(var l2,c3=++t5,u2=0;;){var d2=e5.charAt(c3);switch(d2){case"=":if(u2===1)l2=e5.slice(t5,c3),u2=3;else{if(u2!==2)throw new Error("attribute equal must after attrName");u2=3}break;case"'":case'"':if(u2===3||u2===1){if(u2===1&&(a2.warning('attribute value must after "="'),l2=e5.slice(t5,c3)),t5=c3+1,!((c3=e5.indexOf(d2,t5))>0))throw new Error("attribute value no end '"+d2+"' match");s2(l2,h3=e5.slice(t5,c3),t5-1),u2=5}else{if(u2!=4)throw new Error('attribute value must after "="');s2(l2,h3=e5.slice(t5,c3),t5),a2.warning('attribute "'+l2+'" missed start quot('+d2+")!!"),t5=c3+1,u2=5}break;case"/":switch(u2){case 0:r4.setTagName(e5.slice(t5,c3));case 5:case 6:case 7:u2=7,r4.closed=!0;case 4:case 1:break;case 2:r4.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a2.error("unexpected end of input"),u2==0&&r4.setTagName(e5.slice(t5,c3)),c3;case">":switch(u2){case 0:r4.setTagName(e5.slice(t5,c3));case 5:case 6:case 7:break;case 4:case 1:(h3=e5.slice(t5,c3)).slice(-1)==="/"&&(r4.closed=!0,h3=h3.slice(0,-1));case 2:u2===2&&(h3=l2),u2==4?(a2.warning('attribute "'+h3+'" missed quot(")!'),s2(l2,h3,t5)):(n3.isHTML(o2[""])&&h3.match(/^(?:disabled|checked|selected)$/i)||a2.warning('attribute "'+h3+'" missed value!! "'+h3+'" instead!!'),s2(h3,h3,t5));break;case 3:throw new Error("attribute value missed!!")}return c3;case"\x80":d2=" ";default:if(d2<=" ")switch(u2){case 0:r4.setTagName(e5.slice(t5,c3)),u2=6;break;case 1:l2=e5.slice(t5,c3),u2=2;break;case 4:var h3=e5.slice(t5,c3);a2.warning('attribute "'+h3+'" missed quot(")!!'),s2(l2,h3,t5);case 5:u2=6}else switch(u2){case 2:r4.tagName,n3.isHTML(o2[""])&&l2.match(/^(?:disabled|checked|selected)$/i)||a2.warning('attribute "'+l2+'" missed value!! "'+l2+'" instead2!!'),s2(l2,l2,t5),t5=c3,u2=1;break;case 5:a2.warning('attribute space is required"'+l2+'"!!');case 6:u2=1,t5=c3;break;case 3:u2=4,t5=c3;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c3++}}function d(e5,t5,r4){for(var o2=e5.tagName,i2=null,a2=e5.length;a2--;){var s2=e5[a2],l2=s2.qName,c3=s2.value;if((m2=l2.indexOf(":"))>0)var u2=s2.prefix=l2.slice(0,m2),d2=l2.slice(m2+1),h3=u2==="xmlns"&&d2;else d2=l2,u2=null,h3=l2==="xmlns"&&"";s2.localName=d2,h3!==!1&&(i2==null&&(i2={},p(r4,r4={})),r4[h3]=i2[h3]=c3,s2.uri=n3.XMLNS,t5.startPrefixMapping(h3,c3))}for(a2=e5.length;a2--;)(u2=(s2=e5[a2]).prefix)&&(u2==="xml"&&(s2.uri=n3.XML),u2!=="xmlns"&&(s2.uri=r4[u2||""]));var m2;(m2=o2.indexOf(":"))>0?(u2=e5.prefix=o2.slice(0,m2),d2=e5.localName=o2.slice(m2+1)):(u2=null,d2=e5.localName=o2);var f2=e5.uri=r4[u2||""];if(t5.startElement(f2,d2,o2,e5),!e5.closed)return e5.currentNSMap=r4,e5.localNSMap=i2,!0;if(t5.endElement(f2,d2,o2),i2)for(u2 in i2)Object.prototype.hasOwnProperty.call(i2,u2)&&t5.endPrefixMapping(u2)}function h2(e5,t5,r4,n4,o2){if(/^(?:script|textarea)$/i.test(r4)){var i2=e5.indexOf("</"+r4+">",t5),a2=e5.substring(t5+1,i2);if(/[&<]/.test(a2))return/^script$/i.test(r4)?(o2.characters(a2,0,a2.length),i2):(a2=a2.replace(/&#?\w+;/g,n4),o2.characters(a2,0,a2.length),i2)}return t5+1}function m(e5,t5,r4,n4){var o2=n4[r4];return o2==null&&((o2=e5.lastIndexOf("</"+r4+">"))<t5&&(o2=e5.lastIndexOf("</"+r4)),n4[r4]=o2),o2<t5}function p(e5,t5){for(var r4 in e5)Object.prototype.hasOwnProperty.call(e5,r4)&&(t5[r4]=e5[r4])}function f(e5,t5,r4,n4){if(e5.charAt(t5+2)==="-")return e5.charAt(t5+3)==="-"?(o2=e5.indexOf("-->",t5+4))>t5?(r4.comment(e5,t5+4,o2-t5-4),o2+3):(n4.error("Unclosed comment"),-1):-1;if(e5.substr(t5+3,6)=="CDATA["){var o2=e5.indexOf("]]>",t5+9);return r4.startCDATA(),r4.characters(e5,t5+9,o2-t5-9),r4.endCDATA(),o2+3}var i2=(function(e6,t6){var r5,n5=[],o3=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(o3.lastIndex=t6,o3.exec(e6);r5=o3.exec(e6);)if(n5.push(r5),r5[1])return n5})(e5,t5),a2=i2.length;if(a2>1&&/!doctype/i.test(i2[0][0])){var s2=i2[1][0],l2=!1,c3=!1;a2>3&&(/^public$/i.test(i2[2][0])?(l2=i2[3][0],c3=a2>4&&i2[4][0]):/^system$/i.test(i2[2][0])&&(c3=i2[3][0]));var u2=i2[a2-1];return r4.startDTD(s2,l2,c3),r4.endDTD(),u2.index+u2[0].length}return-1}function g(e5,t5,r4){var n4=e5.indexOf("?>",t5);if(n4){var o2=e5.substring(t5,n4).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return o2?(o2[0].length,r4.processingInstruction(o2[1],o2[2]),n4+2):-1}return-1}function b(){this.attributeNames={}}s.prototype=new Error,s.prototype.name=s.name,l.prototype={parse:function(e5,t5,r4){var o2=this.domBuilder;o2.startDocument(),p(t5,t5={}),(function(e6,t6,r5,o3,i2){function a2(e7){var t7=e7.slice(1,-1);return Object.hasOwnProperty.call(r5,t7)?r5[t7]:t7.charAt(0)==="#"?(function(e8){if(e8>65535){var t8=55296+((e8-=65536)>>10),r6=56320+(1023&e8);return String.fromCharCode(t8,r6)}return String.fromCharCode(e8)})(parseInt(t7.substr(1).replace("x","0x"))):(i2.error("entity not found:"+e7),e7)}function l2(t7){if(t7>E){var r6=e6.substring(E,t7).replace(/&#?\w+;/g,a2);w&&p2(E),o3.characters(r6,0,t7-E),E=t7}}function p2(t7,r6){for(;t7>=v&&(r6=y.exec(e6));)x=r6.index,v=x+r6[0].length,w.lineNumber++;w.columnNumber=t7-x+1}for(var x=0,v=0,y=/.*(?:\r\n?|\n)|.*$/g,w=o3.locator,A=[{currentNSMap:t6}],C={},E=0;;){try{var S=e6.indexOf("<",E);if(S<0){if(!e6.substr(E).match(/^\s*$/)){var _=o3.doc,T=_.createTextNode(e6.substr(E));_.appendChild(T),o3.currentElement=T}return}switch(S>E&&l2(S),e6.charAt(S+1)){case"/":var q=e6.indexOf(">",S+3),k=e6.substring(S+2,q).replace(/[ \t\n\r]+$/g,""),N=A.pop();q<0?(k=e6.substring(S+2).replace(/[\s<].*/,""),i2.error("end tag name: "+k+" is not complete:"+N.tagName),q=S+1+k.length):k.match(/\s</)&&(k=k.replace(/[\s<].*/,""),i2.error("end tag name: "+k+" maybe not complete"),q=S+1+k.length);var L=N.localNSMap,O=N.tagName==k;if(O||N.tagName&&N.tagName.toLowerCase()==k.toLowerCase()){if(o3.endElement(N.uri,N.localName,k),L)for(var D in L)Object.prototype.hasOwnProperty.call(L,D)&&o3.endPrefixMapping(D);O||i2.fatalError("end tag name: "+k+" is not match the current start tagName:"+N.tagName)}else A.push(N);q++;break;case"?":w&&p2(S),q=g(e6,S,o3);break;case"!":w&&p2(S),q=f(e6,S,o3,i2);break;default:w&&p2(S);var M=new b,$=A[A.length-1].currentNSMap,B=(q=u(e6,S,M,$,a2,i2),M.length);if(!M.closed&&m(e6,q,M.tagName,C)&&(M.closed=!0,r5.nbsp||i2.warning("unclosed xml attribute")),w&&B){for(var P=c2(w,{}),I=0;I<B;I++){var R=M[I];p2(R.offset),R.locator=c2(w,{})}o3.locator=P,d(M,o3,$)&&A.push(M),o3.locator=w}else d(M,o3,$)&&A.push(M);n3.isHTML(M.uri)&&!M.closed?q=h2(e6,q,M.tagName,a2,o3):q++}}catch(e7){if(e7 instanceof s)throw e7;i2.error("element parse error: "+e7),q=-1}q>E?E=q:l2(Math.max(S,E)+1)}})(e5,t5,r4,o2,this.errorHandler),o2.endDocument()}},b.prototype={setTagName:function(e5){if(!a.test(e5))throw new Error("invalid tagName:"+e5);this.tagName=e5},addValue:function(e5,t5,r4){if(!a.test(e5))throw new Error("invalid attribute:"+e5);this.attributeNames[e5]=this.length,this[this.length++]={qName:e5,value:t5,offset:r4}},length:0,getLocalName:function(e5){return this[e5].localName},getLocator:function(e5){return this[e5].locator},getQName:function(e5){return this[e5].qName},getURI:function(e5){return this[e5].uri},getValue:function(e5){return this[e5].value}},t4.XMLReader=l,t4.ParseError=s},8917:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.InvalidNumberOfChildrenError=void 0;var n3=r3(6200);Object.defineProperty(t4,"InvalidNumberOfChildrenError",{enumerable:!0,get:function(){return n3.InvalidNumberOfChildrenError}})},6200:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.InvalidNumberOfChildrenError=void 0;class r3 extends Error{constructor(e5,t5,r4,n3="exactly"){super(`${e5} tag must have ${n3} ${t5} children. It's actually ${r4}`),this.name="InvalidNumberOfChildrenError"}}t4.InvalidNumberOfChildrenError=r3},4279:function(e4,t4,r3){"use strict";var n3=this&&this.__createBinding||(Object.create?function(e5,t5,r4,n4){n4===void 0&&(n4=r4);var o2=Object.getOwnPropertyDescriptor(t5,r4);o2&&!("get"in o2?!t5.__esModule:o2.writable||o2.configurable)||(o2={enumerable:!0,get:function(){return t5[r4]}}),Object.defineProperty(e5,n4,o2)}:function(e5,t5,r4,n4){n4===void 0&&(n4=r4),e5[n4]=t5[r4]}),o=this&&this.__exportStar||function(e5,t5){for(var r4 in e5)r4==="default"||Object.prototype.hasOwnProperty.call(t5,r4)||n3(t5,e5,r4)};Object.defineProperty(t4,"__esModule",{value:!0}),o(r3(828),t4),o(r3(5975),t4),o(r3(799),t4),o(r3(2424),t4)},5975:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.JoinWithManySeparators=void 0;class r3{constructor(e5){this._separators=e5}static join(e5,t5,n3=""){let o=t5.length>0?t5:n3!==void 0?[n3]:[];return new r3(o)._join(e5)}_join(e5){return e5.reduce(((e6,t5,r4,n3)=>e6+t5+(r4===n3.length-1?"":this._get(r4))),"")}_get(e5){return this._separators[e5]?this._separators[e5]:this._separators[this._separators.length-1]}}t4.JoinWithManySeparators=r3},799:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.mathMLElementToLaTeXConverter=void 0;let n3=r3(5443);t4.mathMLElementToLaTeXConverter=e5=>new n3.MathMLElementToLatexConverterAdapter(e5).toLatexConverter()},2424:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.normalizeWhiteSpaces=void 0,t4.normalizeWhiteSpaces=e5=>e5.replace(/\s+/g," ")},7192:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.BracketWrapper=void 0;let n3=r3(1855);t4.BracketWrapper=class{constructor(){this._open="{",this._close="}"}wrap(e5){return new n3.Wrapper(this._open,this._close).wrap(e5)}}},5025:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.GenericWrapper=void 0;let n3=r3(1855);t4.GenericWrapper=class{constructor(e5,t5){this._open="\\left"+e5,this._close="\\right"+t5}wrap(e5){return new n3.Wrapper(this._open,this._close).wrap(e5)}}},828:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.GenericWrapper=t4.ParenthesisWrapper=t4.BracketWrapper=void 0;var n3=r3(7192);Object.defineProperty(t4,"BracketWrapper",{enumerable:!0,get:function(){return n3.BracketWrapper}});var o=r3(1168);Object.defineProperty(t4,"ParenthesisWrapper",{enumerable:!0,get:function(){return o.ParenthesisWrapper}});var i=r3(5025);Object.defineProperty(t4,"GenericWrapper",{enumerable:!0,get:function(){return i.GenericWrapper}})},1168:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.ParenthesisWrapper=void 0;let n3=r3(1855);t4.ParenthesisWrapper=class{constructor(){this._open="\\left(",this._close="\\right)"}wrap(e5){return new n3.Wrapper(this._open,this._close).wrap(e5)}wrapIfMoreThanOneChar(e5){return e5.length<=1?e5:this.wrap(e5)}}},1855:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.Wrapper=void 0,t4.Wrapper=class{constructor(e5,t5){this._open=e5,this._close=t5}wrap(e5){return this._open+e5+this._close}}},2697:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.VoidMathMLElement=void 0,t4.VoidMathMLElement=class{constructor(){this.name="void",this.value="",this.children=[],this.attributes={}}}},4760:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.GenericSpacingWrapper=void 0;let n3=r3(4279);t4.GenericSpacingWrapper=class{constructor(e5){this._mathmlElement=e5}convert(){return this._mathmlElement.children.map((e5=>(0,n3.mathMLElementToLaTeXConverter)(e5))).map((e5=>e5.convert())).join(" ")}}},9376:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.GenericUnderOver=void 0;let n3=r3(799),o=r3(8917),i=r3(472);t4.GenericUnderOver=class{constructor(e5){this._mathmlElement=e5}convert(){let{name:e5,children:t5}=this._mathmlElement,r4=t5.length;if(r4!==2)throw new o.InvalidNumberOfChildrenError(e5,2,r4);let i2=(0,n3.mathMLElementToLaTeXConverter)(t5[0]).convert(),a2=(0,n3.mathMLElementToLaTeXConverter)(t5[1]).convert();return this._applyCommand(i2,a2)}_applyCommand(e5,t5){let r4=this._mathmlElement.name.match(/under/)?s.Under:s.Over;return new a(r4).apply(e5,t5)}};class a{constructor(e5){this._type=e5}apply(e5,t5){return i.latexAccents.includes(t5)?`${t5}{${e5}}`:`${this._defaultCommand}{${t5}}{${e5}}`}get _defaultCommand(){return this._type===s.Under?"\\underset":"\\overset"}}var s;(function(e5){e5[e5.Under=0]="Under",e5[e5.Over=1]="Over"})(s||(s={}))},6959:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.Void=t4.MSpace=t4.MRow=t4.GenericUnderOver=t4.GenericSpacingWrapper=t4.MTr=t4.MTable=t4.MUnderover=t4.MText=t4.MMultiscripts=t4.MSubsup=t4.MSub=t4.MSup=t4.MPhantom=t4.MError=t4.MEnclose=t4.MAction=t4.MRoot=t4.MFrac=t4.MFenced=t4.MSqrt=t4.MN=t4.MO=t4.MI=t4.Math=void 0;var n3=r3(393);Object.defineProperty(t4,"Math",{enumerable:!0,get:function(){return n3.Math}});var o=r3(7037);Object.defineProperty(t4,"MI",{enumerable:!0,get:function(){return o.MI}});var i=r3(3487);Object.defineProperty(t4,"MO",{enumerable:!0,get:function(){return i.MO}});var a=r3(4464);Object.defineProperty(t4,"MN",{enumerable:!0,get:function(){return a.MN}});var s=r3(8686);Object.defineProperty(t4,"MSqrt",{enumerable:!0,get:function(){return s.MSqrt}});var l=r3(9511);Object.defineProperty(t4,"MFenced",{enumerable:!0,get:function(){return l.MFenced}});var c2=r3(6440);Object.defineProperty(t4,"MFrac",{enumerable:!0,get:function(){return c2.MFrac}});var u=r3(6052);Object.defineProperty(t4,"MRoot",{enumerable:!0,get:function(){return u.MRoot}});var d=r3(1678);Object.defineProperty(t4,"MAction",{enumerable:!0,get:function(){return d.MAction}});var h2=r3(2631);Object.defineProperty(t4,"MEnclose",{enumerable:!0,get:function(){return h2.MEnclose}});var m=r3(1840);Object.defineProperty(t4,"MError",{enumerable:!0,get:function(){return m.MError}});var p=r3(7443);Object.defineProperty(t4,"MPhantom",{enumerable:!0,get:function(){return p.MPhantom}});var f=r3(6926);Object.defineProperty(t4,"MSup",{enumerable:!0,get:function(){return f.MSup}});var g=r3(2564);Object.defineProperty(t4,"MSub",{enumerable:!0,get:function(){return g.MSub}});var b=r3(1358);Object.defineProperty(t4,"MSubsup",{enumerable:!0,get:function(){return b.MSubsup}});var x=r3(8303);Object.defineProperty(t4,"MMultiscripts",{enumerable:!0,get:function(){return x.MMultiscripts}});var v=r3(3951);Object.defineProperty(t4,"MText",{enumerable:!0,get:function(){return v.MText}});var y=r3(1222);Object.defineProperty(t4,"MUnderover",{enumerable:!0,get:function(){return y.MUnderover}});var w=r3(2350);Object.defineProperty(t4,"MTable",{enumerable:!0,get:function(){return w.MTable}});var A=r3(1586);Object.defineProperty(t4,"MTr",{enumerable:!0,get:function(){return A.MTr}});var C=r3(4760);Object.defineProperty(t4,"GenericSpacingWrapper",{enumerable:!0,get:function(){return C.GenericSpacingWrapper}});var E=r3(9376);Object.defineProperty(t4,"GenericUnderOver",{enumerable:!0,get:function(){return E.GenericUnderOver}});var S=r3(6346);Object.defineProperty(t4,"MRow",{enumerable:!0,get:function(){return S.MRow}});var _=r3(3700);Object.defineProperty(t4,"MSpace",{enumerable:!0,get:function(){return _.MSpace}});var T=r3(9165);Object.defineProperty(t4,"Void",{enumerable:!0,get:function(){return T.Void}})},1678:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MAction=void 0;let n3=r3(799);t4.MAction=class{constructor(e5){this._mathmlElement=e5}convert(){let{children:e5}=this._mathmlElement;return this._isToggle()?e5.map((e6=>(0,n3.mathMLElementToLaTeXConverter)(e6))).map((e6=>e6.convert())).join(" \\Longrightarrow "):(0,n3.mathMLElementToLaTeXConverter)(e5[0]).convert()}_isToggle(){let{actiontype:e5}=this._mathmlElement.attributes;return e5==="toggle"||!e5}}},393:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.Math=void 0;let n3=r3(799),o=r3(2424);t4.Math=class{constructor(e5){this._mathmlElement=e5}convert(){let e5=this._mathmlElement.children.map((e6=>(0,n3.mathMLElementToLaTeXConverter)(e6))).map((e6=>e6.convert())).join(" ");return(0,o.normalizeWhiteSpaces)(e5)}}},2631:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MEnclose=void 0;let n3=r3(799);t4.MEnclose=class{constructor(e5){this._mathmlElement=e5}convert(){let e5=this._mathmlElement.children.map((e6=>(0,n3.mathMLElementToLaTeXConverter)(e6))).map((e6=>e6.convert())).join(" ");return this._notation==="actuarial"?`\\overline{\\left.${e5}\\right|}`:this._notation==="radical"?`\\sqrt{${e5}}`:["box","roundedbox","circle"].includes(this._notation)?`\\boxed{${e5}}`:this._notation==="left"?`\\left|${e5}`:this._notation==="right"?`${e5}\\right|`:this._notation==="top"?`\\overline{${e5}}`:this._notation==="bottom"?`\\underline{${e5}}`:this._notation==="updiagonalstrike"?`\\cancel{${e5}}`:this._notation==="downdiagonalstrike"?`\\bcancel{${e5}}`:this._notation==="updiagonalarrow"?`\\cancelto{}{${e5}}`:["verticalstrike","horizontalstrike"].includes(this._notation)?`\\hcancel{${e5}}`:this._notation==="madruwb"?`\\underline{${e5}\\right|}`:this._notation==="phasorangle"?`{\\angle \\underline{${e5}}}`:`\\overline{\\left.\\right)${e5}}`}get _notation(){return this._mathmlElement.attributes.notation||"longdiv"}}},1840:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MError=void 0;let n3=r3(799);t4.MError=class{constructor(e5){this._mathmlElement=e5}convert(){return`\\color{red}{${this._mathmlElement.children.map((e5=>(0,n3.mathMLElementToLaTeXConverter)(e5))).map((e5=>e5.convert())).join(" ")}}`}}},9511:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MFenced=void 0;let n3=r3(799),o=r3(4279);t4.MFenced=class{constructor(e5){this._mathmlElement=e5,this.open=this._mathmlElement.attributes.open||"",this.close=this._mathmlElement.attributes.close||""}convert(){let e5=this._mathmlElement.children.map((e6=>(0,n3.mathMLElementToLaTeXConverter)(e6))).map((e6=>e6.convert()));if(this._isThereRelativeOfName(this._mathmlElement.children,"mtable"))return new a(this.open,this.close).apply(e5);let t5=this._mathmlElement.attributes.separators,r4=t5!==void 0,o2=t5?Array.from(t5):[],s2=r4?"":",";return new i(this.open,this.close,o2,s2).apply(e5)}_isThereRelativeOfName(e5,t5){return e5.some((e6=>e6.name===t5||this._isThereRelativeOfName(e6.children,t5)))}};class i{constructor(e5,t5,r4,n4){this.separators=r4,this.defaultSeparator=n4,this.open=e5||"(",this.close=t5||")"}apply(e5){let t5=o.JoinWithManySeparators.join(e5,this.separators,this.defaultSeparator);return new o.GenericWrapper(this.open,this.close).wrap(t5)}}class a{constructor(e5,t5){this._genericCommand="matrix",this.separators=new s(e5,t5)}apply(e5){let t5=this._command,r4=`\\begin{${t5}}
${e5.join("")}
\\end{${t5}}`;return t5===this._genericCommand?this.separators.wrap(r4):r4}get _command(){return this.separators.areParentheses()?"pmatrix":this.separators.areSquareBrackets()?"bmatrix":this.separators.areBrackets()?"Bmatrix":this.separators.areDivides()?"vmatrix":this.separators.areParallels()?"Vmatrix":this.separators.areNotEqual()?this._genericCommand:"bmatrix"}}class s{constructor(e5,t5){this.open=e5,this.close=t5}wrap(e5){return new o.GenericWrapper(this.open,this.close).wrap(e5)}areParentheses(){return this._compare("(",")")}areSquareBrackets(){return this._compare("[","]")}areBrackets(){return this._compare("{","}")}areDivides(){return this._compare("|","|")}areParallels(){return this._compare("||","||")}areNotEqual(){return this.open!==this.close}_compare(e5,t5){return this.open===e5&&this.close===t5}}},6440:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MFrac=void 0;let n3=r3(8917),o=r3(4279);t4.MFrac=class{constructor(e5){this._mathmlElement=e5}convert(){let{children:e5,name:t5}=this._mathmlElement,r4=e5.length;if(r4!==2)throw new n3.InvalidNumberOfChildrenError(t5,2,r4);let i=(0,o.mathMLElementToLaTeXConverter)(e5[0]).convert(),a=(0,o.mathMLElementToLaTeXConverter)(e5[1]).convert();return this._isBevelled()?`${this._wrapIfMoreThanOneChar(i)}/${this._wrapIfMoreThanOneChar(a)}`:`\\frac{${i}}{${a}}`}_wrapIfMoreThanOneChar(e5){return new o.ParenthesisWrapper().wrapIfMoreThanOneChar(e5)}_isBevelled(){return!!this._mathmlElement.attributes.bevelled}}},7037:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MI=void 0;let n3=r3(4279),o=r3(5406),i=r3(6122);t4.MI=class{constructor(e5){this.utf8Converter=new i.HashUTF8ToLtXConverter,this._mathmlElement=e5}convert(){let e5=(0,n3.normalizeWhiteSpaces)(this._mathmlElement.value);if(e5===" ")return a.apply(e5);let t5=e5.trim(),r4=a.apply(t5),o2=this.utf8Converter.convert(r4);return o2!==r4?o2:this.wrapInMathVariant(r4,this.getMathVariant(this._mathmlElement.attributes))}getMathVariant(e5){if(e5&&e5.mathvariant)return e5.mathvariant}wrapInMathVariant(e5,t5){switch(t5){case"bold":return`\\mathbf{${e5}}`;case"italic":return`\\mathit{${e5}}`;case"bold-italic":return`\\mathbf{\\mathit{${e5}}}`;case"double-struck":return`\\mathbb{${e5}}`;case"bold-fraktur":return`\\mathbf{\\mathfrak{${e5}}}`;case"script":return`\\mathcal{${e5}}`;case"bold-script":return`\\mathbf{\\mathcal{${e5}}}`;case"fraktur":return`\\mathfrak{${e5}}`;case"sans-serif":return`\\mathsf{${e5}}`;case"bold-sans-serif":return`\\mathbf{\\mathsf{${e5}}}`;case"sans-serif-italic":return`\\mathsf{\\mathit{${e5}}}`;case"sans-serif-bold-italic":return`\\mathbf{\\mathsf{\\mathit{${e5}}}}`;case"monospace":return`\\mathtt{${e5}}`;default:return e5}}};class a{constructor(e5){this._value=e5}static apply(e5){return new a(e5)._apply()}_apply(){return this._findByCharacter()||this._findByGlyph()||this._findByNumber()||new i.HashUTF8ToLtXConverter().convert(this._value)}_findByCharacter(){return o.allMathSymbolsByChar[this._value]}_findByGlyph(){return o.allMathSymbolsByGlyph[this._value]}_findByNumber(){return o.mathNumberByGlyph[this._value]}}},8303:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MMultiscripts=void 0;let n3=r3(4279),o=r3(8917);t4.MMultiscripts=class{constructor(e5){this._mathmlElement=e5}convert(){let{name:e5,children:t5}=this._mathmlElement,r4=t5.length;if(r4<3)throw new o.InvalidNumberOfChildrenError(e5,3,r4,"at least");let i=(0,n3.mathMLElementToLaTeXConverter)(t5[0]).convert();return this._prescriptLatex()+this._wrapInParenthesisIfThereIsSpace(i)+this._postscriptLatex()}_prescriptLatex(){let{children:e5}=this._mathmlElement,t5,r4;if(this._isPrescripts(e5[1]))t5=e5[2],r4=e5[3];else{if(!this._isPrescripts(e5[3]))return"";t5=e5[4],r4=e5[5]}return`\\_{${(0,n3.mathMLElementToLaTeXConverter)(t5).convert()}}^{${(0,n3.mathMLElementToLaTeXConverter)(r4).convert()}}`}_postscriptLatex(){let{children:e5}=this._mathmlElement;if(this._isPrescripts(e5[1]))return"";let t5=e5[1],r4=e5[2];return`_{${(0,n3.mathMLElementToLaTeXConverter)(t5).convert()}}^{${(0,n3.mathMLElementToLaTeXConverter)(r4).convert()}}`}_wrapInParenthesisIfThereIsSpace(e5){return e5.match(/\s+/g)?new n3.ParenthesisWrapper().wrap(e5):e5}_isPrescripts(e5){return(e5==null?void 0:e5.name)==="mprescripts"}}},4464:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MN=void 0;let n3=r3(4279),o=r3(5406);t4.MN=class{constructor(e5){this._mathmlElement=e5}convert(){let e5=(0,n3.normalizeWhiteSpaces)(this._mathmlElement.value).trim();return o.mathNumberByGlyph[e5]||e5}}},3487:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MO=void 0;let n3=r3(4279),o=r3(5406);t4.MO=class{constructor(e5){this._mathmlElement=e5}convert(){let e5=(0,n3.normalizeWhiteSpaces)(this._mathmlElement.value).trim();return i.operate(e5)}};class i{constructor(e5){this._value=e5}static operate(e5){return new i(e5)._operate()}_operate(){return this._findByCharacter()||this._findByGlyph()||this._findByNumber()||new o.HashUTF8ToLtXConverter().convert(this._value)}_findByCharacter(){return o.allMathOperatorsByChar[this._value]}_findByGlyph(){return o.allMathOperatorsByGlyph[this._value]}_findByNumber(){return o.mathNumberByGlyph[this._value]}}},7443:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MPhantom=void 0,t4.MPhantom=class{constructor(e5){this._mathmlElement=e5}convert(){return""}}},6052:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MRoot=void 0;let n3=r3(4279),o=r3(8917);t4.MRoot=class{constructor(e5){this._mathmlElement=e5}convert(){let{name:e5,children:t5}=this._mathmlElement,r4=t5.length;if(r4!==2)throw new o.InvalidNumberOfChildrenError(e5,2,r4);let i=(0,n3.mathMLElementToLaTeXConverter)(t5[0]).convert();return`\\sqrt[${(0,n3.mathMLElementToLaTeXConverter)(t5[1]).convert()}]{${i}}`}}},6346:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MRow=void 0;let n3=r3(4279);t4.MRow=class{constructor(e5){this._mathmlElement=e5}convert(){return this._isLinearSystemPattern()?this._convertAsLinearSystem():this._mathmlElement.children.map((e5=>(0,n3.mathMLElementToLaTeXConverter)(e5))).map((e5=>e5.convert())).join(" ")}_isLinearSystemPattern(){let{children:e5}=this._mathmlElement;if(e5.length!==3)return!1;let t5=e5[0],r4=t5.name==="mo"&&t5.value.trim()==="{",n4=e5[1].name==="mtable",o=e5[2],i=o.name==="mo"&&o.value.trim()==="";return r4&&n4&&i}_convertAsLinearSystem(){return`\\begin{cases} ${this._mathmlElement.children[1].children.map((e5=>(0,n3.mathMLElementToLaTeXConverter)(e5))).map((e5=>e5.convert())).join(" \\\\ ")} \\end{cases}`}}},3700:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MSpace=void 0,t4.MSpace=class{constructor(e5){this._mathmlElement=e5}convert(){let{linebreak:e5}=this._mathmlElement.attributes;return e5==="newline"?" \\\\ ":" "}}},8686:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MSqrt=void 0;let n3=r3(4279);t4.MSqrt=class{constructor(e5){this._mathmlElement=e5}convert(){return`\\sqrt{${this._mathmlElement.children.map((e5=>(0,n3.mathMLElementToLaTeXConverter)(e5))).map((e5=>e5.convert())).join(" ")}}`}}},2564:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MSub=void 0;let n3=r3(4279),o=r3(8917);t4.MSub=class{constructor(e5){this._mathmlElement=e5}convert(){let{name:e5,children:t5}=this._mathmlElement,r4=t5.length;if(r4!==2)throw new o.InvalidNumberOfChildrenError(e5,2,r4);let n4=t5[0],i=t5[1];return`${this._handleBaseChild(n4)}_${this._handleSubscriptChild(i)}`}_handleBaseChild(e5){let t5=e5.children,r4=(0,n3.mathMLElementToLaTeXConverter)(e5).convert();return t5.length<=1?r4:new n3.ParenthesisWrapper().wrapIfMoreThanOneChar(r4)}_handleSubscriptChild(e5){let t5=(0,n3.mathMLElementToLaTeXConverter)(e5).convert();return new n3.BracketWrapper().wrap(t5)}}},1358:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MSubsup=void 0;let n3=r3(4279),o=r3(8917);t4.MSubsup=class{constructor(e5){this._mathmlElement=e5}convert(){let{name:e5,children:t5}=this._mathmlElement,r4=t5.length;if(r4!==3)throw new o.InvalidNumberOfChildrenError(e5,3,r4);let n4=t5[0],i=t5[1],a=t5[2];return`${this._handleBaseChild(n4)}_${this._handleSubscriptChild(i)}^${this._handleSuperscriptChild(a)}`}_handleBaseChild(e5){let t5=e5.children,r4=(0,n3.mathMLElementToLaTeXConverter)(e5).convert();return t5.length<=1?r4:new n3.ParenthesisWrapper().wrapIfMoreThanOneChar(r4)}_handleSubscriptChild(e5){let t5=(0,n3.mathMLElementToLaTeXConverter)(e5).convert();return new n3.BracketWrapper().wrap(t5)}_handleSuperscriptChild(e5){let t5=(0,n3.mathMLElementToLaTeXConverter)(e5).convert();return new n3.BracketWrapper().wrap(t5)}}},6926:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MSup=void 0;let n3=r3(4279),o=r3(8917);t4.MSup=class{constructor(e5){this._mathmlElement=e5}convert(){let{name:e5,children:t5}=this._mathmlElement,r4=t5.length;if(r4!==2)throw new o.InvalidNumberOfChildrenError(e5,2,r4);let n4=t5[0],i=t5[1];return`${this._handleBaseChild(n4)}^${this._handleExponentChild(i)}`}_handleBaseChild(e5){let t5=e5.children,r4=(0,n3.mathMLElementToLaTeXConverter)(e5).convert();return t5.length<=1?r4:new n3.ParenthesisWrapper().wrapIfMoreThanOneChar(r4)}_handleExponentChild(e5){let t5=(0,n3.mathMLElementToLaTeXConverter)(e5).convert();return new n3.BracketWrapper().wrap(t5)}}},2350:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MTable=void 0;let n3=r3(4279);t4.MTable=class{constructor(e5){this._mathmlElement=e5,this._addFlagRecursiveIfName(this._mathmlElement.children,"mtable","innerTable")}convert(){let e5=this._mathmlElement.children.map((e6=>(0,n3.mathMLElementToLaTeXConverter)(e6))).map((e6=>e6.convert())).join(` \\\\
`);return this._hasFlag("innerTable")?this._wrap(e5):e5}_wrap(e5){return`\\begin{matrix}${e5}\\end{matrix}`}_addFlagRecursiveIfName(e5,t5,r4){e5.forEach((e6=>{e6.name===t5&&(e6.attributes[r4]=r4),this._addFlagRecursiveIfName(e6.children,t5,r4)}))}_hasFlag(e5){return!!this._mathmlElement.attributes[e5]}}},3951:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MText=void 0;let n3=r3(7037);t4.MText=class{constructor(e5){this._mathmlElement=e5}convert(){let{attributes:e5,value:t5}=this._mathmlElement;return[...t5].map((e6=>/^[a-zA-Z0-9]$/.test(e6)||e6===" "?{value:e6,isAlphanumeric:!0}:{value:e6,isAlphanumeric:!1})).reduce(((e6,t6)=>{if(t6.isAlphanumeric){let r4=e6[e6.length-1];if(r4&&r4.isAlphanumeric)return r4.value+=t6.value,e6}return[...e6,t6]}),[]).map((t6=>t6.isAlphanumeric?new o(e5.mathvariant).apply(t6.value):new n3.MI({name:"mi",attributes:{},children:[],value:t6.value}).convert())).join("")}};class o{constructor(e5){this._mathvariant=e5||"normal"}apply(e5){return this._commands.reduce(((t5,r4,n4)=>n4===0?`${r4}{${e5}}`:`${r4}{${t5}}`),"")}get _commands(){switch(this._mathvariant){case"bold":return["\\textbf"];case"italic":return["\\textit"];case"bold-italic":return["\\textit","\\textbf"];case"double-struck":return["\\mathbb"];case"monospace":return["\\mathtt"];case"bold-fraktur":case"fraktur":return["\\mathfrak"];default:return["\\text"]}}}},1586:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MTr=void 0;let n3=r3(4279);t4.MTr=class{constructor(e5){this._mathmlElement=e5}convert(){return this._mathmlElement.children.map((e5=>(0,n3.mathMLElementToLaTeXConverter)(e5))).map((e5=>e5.convert())).join(" & ")}}},1222:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MUnderover=void 0;let n3=r3(4279),o=r3(8917);t4.MUnderover=class{constructor(e5){this._mathmlElement=e5}convert(){let{name:e5,children:t5}=this._mathmlElement,r4=t5.length;if(r4!==3)throw new o.InvalidNumberOfChildrenError(e5,3,r4);return`${(0,n3.mathMLElementToLaTeXConverter)(t5[0]).convert()}_{${(0,n3.mathMLElementToLaTeXConverter)(t5[1]).convert()}}^{${(0,n3.mathMLElementToLaTeXConverter)(t5[2]).convert()}}`}}},9165:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.Void=void 0,t4.Void=class{constructor(e5){this._mathmlElement=e5}convert(){return""}}},5443:function(e4,t4,r3){"use strict";var n3=this&&this.__createBinding||(Object.create?function(e5,t5,r4,n4){n4===void 0&&(n4=r4);var o2=Object.getOwnPropertyDescriptor(t5,r4);o2&&!("get"in o2?!t5.__esModule:o2.writable||o2.configurable)||(o2={enumerable:!0,get:function(){return t5[r4]}}),Object.defineProperty(e5,n4,o2)}:function(e5,t5,r4,n4){n4===void 0&&(n4=r4),e5[n4]=t5[r4]}),o=this&&this.__setModuleDefault||(Object.create?function(e5,t5){Object.defineProperty(e5,"default",{enumerable:!0,value:t5})}:function(e5,t5){e5.default=t5}),i=this&&this.__importStar||function(e5){if(e5&&e5.__esModule)return e5;var t5={};if(e5!=null)for(var r4 in e5)r4!=="default"&&Object.prototype.hasOwnProperty.call(e5,r4)&&n3(t5,e5,r4);return o(t5,e5),t5};Object.defineProperty(t4,"__esModule",{value:!0}),t4.MathMLElementToLatexConverterAdapter=void 0;let a=i(r3(6959)),s=r3(2697);t4.MathMLElementToLatexConverterAdapter=class{constructor(e5){this._mathMLElement=e5!=null?e5:new s.VoidMathMLElement}toLatexConverter(){let{name:e5}=this._mathMLElement;return new(l[e5]||a.GenericSpacingWrapper)(this._mathMLElement)}};let l={math:a.Math,mi:a.MI,mo:a.MO,mn:a.MN,msqrt:a.MSqrt,mfenced:a.MFenced,mfrac:a.MFrac,mroot:a.MRoot,maction:a.MAction,menclose:a.MEnclose,merror:a.MError,mphantom:a.MPhantom,msup:a.MSup,msub:a.MSub,msubsup:a.MSubsup,mmultiscripts:a.MMultiscripts,mtext:a.MText,munderover:a.MUnderover,mtable:a.MTable,mtr:a.MTr,mover:a.GenericUnderOver,munder:a.GenericUnderOver,mrow:a.MRow,mspace:a.MSpace,mpadded:a.GenericSpacingWrapper,void:a.Void}},5243:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.ErrorHandler=void 0,t4.ErrorHandler=class{constructor(){this._errors=[],this.errorLocator={}}fixError(e5,t5){return this._isMissingAttributeValueError(t5)?(this._errors.push(t5),this._fixMissingAttribute(t5,e5)):e5}isThereAnyErrors(){return this._errors.length>0}cleanErrors(){this._errors=[]}_fixMissingAttribute(e5,t5){let r3=e5.split('"')[1];if(r3)return t5.replace(this._matchMissingValueForAttribute(r3),"");for(;this._mathGenericMissingValue().exec(t5);)t5=t5.replace(this._mathGenericMissingValue(),"$1$3");return t5}_matchMissingValueForAttribute(e5){return new RegExp(`(${e5}=(?!("|')))|(${e5}(?!("|')))`,"gm")}_mathGenericMissingValue(){return/(\<.* )(\w+=(?!\"|\'))(.*\>)/gm}_isMissingAttributeValueError(e5){return!!e5.includes("attribute")&&!!e5.includes("missed")||e5.includes("attribute value missed")}}},9208:function(e4,t4,r3){"use strict";var n3=this&&this.__createBinding||(Object.create?function(e5,t5,r4,n4){n4===void 0&&(n4=r4);var o2=Object.getOwnPropertyDescriptor(t5,r4);o2&&!("get"in o2?!t5.__esModule:o2.writable||o2.configurable)||(o2={enumerable:!0,get:function(){return t5[r4]}}),Object.defineProperty(e5,n4,o2)}:function(e5,t5,r4,n4){n4===void 0&&(n4=r4),e5[n4]=t5[r4]}),o=this&&this.__exportStar||function(e5,t5){for(var r4 in e5)r4==="default"||Object.prototype.hasOwnProperty.call(t5,r4)||n3(t5,e5,r4)};Object.defineProperty(t4,"__esModule",{value:!0}),o(r3(9548),t4),o(r3(5243),t4),o(r3(1101),t4)},1101:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.ElementsToMathMLAdapter=void 0,t4.ElementsToMathMLAdapter=class{convert(e5){return e5.filter((e6=>e6.tagName!==void 0)).map((e6=>this._convertElement(e6)))}_convertElement(e5){return{name:e5.tagName,attributes:this._convertElementAttributes(e5.attributes),value:this._hasElementChild(e5)?"":e5.textContent||"",children:this._hasElementChild(e5)?this.convert(Array.from(e5.childNodes)):[]}}_convertElementAttributes(e5){return Array.from(e5).reduce(((e6,t5)=>Object.assign({[t5.nodeName]:t5.nodeValue===t5.nodeName?"":t5.nodeValue},e6)),{})}_hasElementChild(e5){let t5=e5.childNodes;return!!t5&&t5.length!==0&&this._isThereAnyNoTextNode(t5)}_isThereAnyNoTextNode(e5){return Array.from(e5).some((e6=>e6.nodeName!=="#text"))}}},9548:function(e4,t4,r3){"use strict";var n3=this&&this.__importDefault||function(e5){return e5&&e5.__esModule?e5:{default:e5}};Object.defineProperty(t4,"__esModule",{value:!0}),t4.XmlToMathMLAdapter=void 0;let o=n3(r3(8978));t4.XmlToMathMLAdapter=class{constructor(e5,t5){this._xml="",this._elementsConvertor=e5,this._errorHandler=t5,this._xmlDOM=new o.default.DOMParser({locator:this._errorHandler.errorLocator,errorHandler:this._fixError.bind(this)})}convert(e5){return this._xml=this._removeLineBreaks(e5),this._xml=this._removeMsWordPrefixes(this._xml),this._elementsConvertor.convert(this._mathMLElements)}_fixError(e5){this._xml=this._errorHandler.fixError(this._xml,e5)}_removeLineBreaks(e5){return e5.replace(/\n|\r\n|\r/g,"")}_removeMsWordPrefixes(e5){return e5.replace(/mml:/g,"")}get _mathMLElements(){let e5=this._xmlDOM.parseFromString(this._xml).getElementsByTagName("math");return this._errorHandler.isThereAnyErrors()&&(this._errorHandler.cleanErrors(),e5=this._xmlDOM.parseFromString(this._xml).getElementsByTagName("math")),Array.from(e5)}}},7941:function(e4,t4,r3){"use strict";var n3=this&&this.__createBinding||(Object.create?function(e5,t5,r4,n4){n4===void 0&&(n4=r4);var o2=Object.getOwnPropertyDescriptor(t5,r4);o2&&!("get"in o2?!t5.__esModule:o2.writable||o2.configurable)||(o2={enumerable:!0,get:function(){return t5[r4]}}),Object.defineProperty(e5,n4,o2)}:function(e5,t5,r4,n4){n4===void 0&&(n4=r4),e5[n4]=t5[r4]}),o=this&&this.__exportStar||function(e5,t5){for(var r4 in e5)r4==="default"||Object.prototype.hasOwnProperty.call(t5,r4)||n3(t5,e5,r4)};Object.defineProperty(t4,"__esModule",{value:!0}),o(r3(8585),t4)},8585:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.makeToMathElementsConverter=void 0;let n3=r3(9208);t4.makeToMathElementsConverter=()=>{let e5=new n3.ElementsToMathMLAdapter,t5=new n3.ErrorHandler;return new n3.XmlToMathMLAdapter(e5,t5)}},8672:function(e4,t4,r3){"use strict";var n3=this&&this.__createBinding||(Object.create?function(e5,t5,r4,n4){n4===void 0&&(n4=r4);var o2=Object.getOwnPropertyDescriptor(t5,r4);o2&&!("get"in o2?!t5.__esModule:o2.writable||o2.configurable)||(o2={enumerable:!0,get:function(){return t5[r4]}}),Object.defineProperty(e5,n4,o2)}:function(e5,t5,r4,n4){n4===void 0&&(n4=r4),e5[n4]=t5[r4]}),o=this&&this.__exportStar||function(e5,t5){for(var r4 in e5)r4==="default"||Object.prototype.hasOwnProperty.call(t5,r4)||n3(t5,e5,r4)};Object.defineProperty(t4,"__esModule",{value:!0}),o(r3(3798),t4)},3798:(e4,t4,r3)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.MathMLToLaTeX=void 0;let n3=r3(5443),o=r3(7941);t4.MathMLToLaTeX=class{static convert(e5){return(0,o.makeToMathElementsConverter)().convert(e5).map((e6=>new n3.MathMLElementToLatexConverterAdapter(e6).toLatexConverter())).map((e6=>e6.convert())).join("").trim()}}},2965:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.allMathOperatorsByChar=void 0,t4.allMathOperatorsByChar={_:"\\underline","&#x23E1;":"\\underbrace","&#x23E0;":"\\overbrace","&#x23DF;":"\\underbrace","&#x23DE;":"\\overbrace","&#x23DD;":"\\underbrace","&#x23DC;":"\\overbrace","&#x23B5;":"\\underbrace","&#x23B4;":"\\overbrace","&#x20DC;":"\\square","&#x20DB;":"\\square","&#x2064;":"","&#x2057;":"''''","&#x203E;":"\\bar","&#x2037;":"```","&#x2036;":"``","&#x2035;":"`","&#x2034;":"'''","&#x2033;":"''","&#x201F;":"``","&#x201E;":",,","&#x201B;":"`","&#x201A;":",","&#x302;":"\\hat","&#x2F7;":"\\sim","&#x2DD;":"\\sim","&#x2DC;":"\\sim","&#x2DA;":"\\circ","&#x2D9;":"\\cdot","&#x2D8;":"","&#x2CD;":"\\_","&#x2CB;":"\u02CB","&#x2CA;":"\u02CA","&#x2C9;":"\u02C9","&#x2C7;":"","&#x2C6;":"\\hat","&#xBA;":"o","&#xB9;":"1","&#xB8;":"\xB8","&#xB4;":"\xB4","&#xB3;":"3","&#xB2;":"2","&#xB0;":"\\circ","&#xAF;":"\\bar","&#xAA;":"a","&#xA8;":"\\cdot\\cdot","~":"\\sim","`":"`","^":"\\hat","--":"--","++":"++","&amp;":"\\&","&#x2061;":"","&#x221C;":"\\sqrt[4]{}","&#x221B;":"\\sqrt[3]{}","&#x221A;":"\\sqrt{}","&#x2146;":"d","&#x2145;":"\\mathbb{D}","?":"?","@":"@","//":"//","!!":"!!","!":"!","&#x266F;":"\\#","&#x266E;":"","&#x266D;":"","&#x2032;":"'","&lt;>":"<>","**":"\\star\\star","&#x2207;":"\\nabla","&#x2202;":"\\partial","&#x2299;":"\\bigodot","&#xAC;":"\\neg","&#x2222;":"\\measuredangle","&#x2221;":"\\measuredangle","&#x2220;":"\\angle","&#xF7;":"\\div","/":"/","&#x2216;":"\\backslash","\\":"\\backslash","%":"\\%","&#x2297;":"\\bigotimes","&#xB7;":"\\cdot","&#x2A3F;":"\\coprod","&#x2A2F;":"\\times","&#x22C5;":"\\cdot","&#x22A1;":"\\boxdot","&#x22A0;":"\\boxtimes","&#x2062;":"","&#x2043;":"-","&#x2022;":"\\cdot","&#xD7;":"\\times",".":".","*":"\\star","&#x222A;":"\\cup","&#x2229;":"\\cap","&#x2210;":"\\coprod","&#x220F;":"\\prod","&#x2240;":"","&#x2AFF;":"","&#x2AFC;":"\\mid\\mid\\mid","&#x2A09;":"\\times","&#x2A08;":"","&#x2A07;":"","&#x2A06;":"\\sqcup","&#x2A05;":"\\sqcap","&#x2A02;":"\\otimes","&#x2A00;":"\\odot","&#x22C2;":"\\cap","&#x22C1;":"\\vee","&#x22C0;":"\\wedge","&#x2A04;":"\\uplus","&#x2A03;":"\\cup","&#x22C3;":"\\cup","&#x2A1C;":"\\underline{\\int}","&#x2A1B;":"\\overline{\\int}","&#x2A1A;":"\\int","&#x2A19;":"\\int","&#x2A18;":"\\int","&#x2A17;":"\\int","&#x2A16;":"\\oint","&#x2A15;":"\\oint","&#x2A14;":"\\int","&#x2A13;":"\\int","&#x2A12;":"\\int","&#x2A11;":"\\int","&#x2A10;":"\\int","&#x2A0F;":"\\bcancel{\\int}","&#x2A0E;":"","&#x2A0D;":"\\hcancel{\\int}","&#x2A0C;":"\\iiiint","&#x2233;":"\\oint","&#x2232;":"\\oint","&#x2231;":"\\int","&#x2230;":"\\oiint","&#x222F;":"\\oiint","&#x222E;":"\\oint","&#x222B;":"\\int","&#x2A01;":"\\oplus","&#x2298;":"\\oslash","&#x2296;":"\\ominus","&#x2295;":"\\oplus","&#x222D;":"\\iiint","&#x222C;":"\\iint","&#x2A0B;":"","&#x2A0A;":"","&#x2211;":"\\sum","&#x229F;":"\\boxminus","&#x229E;":"\\boxplus","&#x2214;":"\\dot{+}","&#x2213;":"+-","&#x2212;":"-","&#xB1;":"\\pm","-":"-","+":"+","&#x2B46;":"\\Rrightarrow","&#x2B45;":"\\Lleftarrow","&#x29F4;":":\\rightarrow","&#x29EF;":"","&#x29DF;":"\\bullet-\\bullet","&#x299F;":"\\angle","&#x299E;":"\\measuredangle","&#x299D;":"\\measuredangle","&#x299C;":"\\perp","&#x299B;":"\\measuredangle","&#x299A;":"","&#x2999;":"\\vdots","&#x297F;":"","&#x297E;":"","&#x297D;":"\\prec","&#x297C;":"\\succ","&#x297B;":"\\underset{\\rightarrow}{\\supset}","&#x297A;":"","&#x2979;":"\\underset{\\rightarrow}{\\subset}","&#x2978;":"\\underset{\\rightarrow}{>}","&#x2977;":"","&#x2976;":"\\underset{\\leftarrow}{<}","&#x2975;":"\\underset{\\approx}{\\rightarrow}","&#x2974;":"\\underset{\\sim}{\\rightarrow}","&#x2973;":"\\underset{\\sim}{\\leftarrow}","&#x2972;":"\\overset{\\sim}{\\rightarrow}","&#x2971;":"\\overset{=}{\\rightarrow}","&#x2970;":"","&#x296F;":"","&#x296E;":"","&#x296D;":"\\overline{\\rightharpoondown}","&#x296C;":"\\underline{\\rightharpoonup}","&#x296B;":"\\overline{\\leftharpoondown}","&#x296A;":"\\underline{\\leftharpoonup}","&#x2969;":"\\rightleftharpoons","&#x2968;":"\\rightleftharpoons","&#x2967;":"\\rightleftharpoons","&#x2966;":"\\rightleftharpoons","&#x2965;":"\\Downarrow","&#x2964;":"\\Rightarrow","&#x2963;":"\\Uparrow","&#x2962;":"\\Leftarrow","&#x2961;":"\\downarrow","&#x2960;":"\\uparrow","&#x295F;":"\\rightarrow","&#x295E;":"\\leftarrow","&#x295D;":"\\downarrow","&#x295C;":"\\uparrow","&#x295B;":"\\rightarrow","&#x295A;":"\\leftarrow","&#x2959;":"\\downarrow","&#x2958;":"\\uparrow","&#x2957;":"\\rightarrow","&#x2956;":"\\leftarrow","&#x2955;":"\\downarrow","&#x2954;":"\\uparrow","&#x2953;":"\\rightarrow","&#x2952;":"\\leftarrow","&#x2951;":"\\updownarrow","&#x2950;":"\\leftrightarrow","&#x294F;":"\\updownarrow","&#x294E;":"\\leftrightarrow","&#x294D;":"\\updownarrow","&#x294C;":"\\updownarrow","&#x294B;":"\\leftrightarrow","&#x294A;":"\\leftrightarrow","&#x2949;":"","&#x2948;":"\\leftrightarrow","&#x2947;":"\\nrightarrow","&#x2946;":"","&#x2945;":"","&#x2944;":"\\rightleftarrows","&#x2943;":"\\leftrightarrows","&#x2942;":"\\rightleftarrows","&#x2941;":"\\circlearrowright","&#x2940;":"\\circlearrowleft","&#x293F;":"\\rightarrow","&#x293E;":"\\leftarrow","&#x293D;":"","&#x293C;":"","&#x293B;":"","&#x293A;":"","&#x2939;":"","&#x2938;":"","&#x2937;":"\\Rsh","&#x2936;":"\\Lsh","&#x2935;":"\\downarrow","&#x2934;":"\\uparrow","&#x2933;":"\\leadsto","&#x2932;":"","&#x2931;":"","&#x2930;":"","&#x292F;":"","&#x292E;":"","&#x292D;":"","&#x292C;":"\\times","&#x292B;":"\\times","&#x292A;":"","&#x2929;":"","&#x2928;":"","&#x2927;":"","&#x2926;":"","&#x2925;":"","&#x2924;":"","&#x2923;":"","&#x2922;":"","&#x2921;":"","&#x2920;":"\\mapsto\\cdot","&#x291F;":"\\cdot\\leftarrow","&#x291E;":"\\rightarrow\\cdot","&#x291D;":"\\leftarrow","&#x291C;":"\\rightarrow","&#x291B;":"\\leftarrow","&#x291A;":"\\rightarrow","&#x2919;":"\\leftarrow","&#x2918;":"\\rightarrow","&#x2917;":"\\rightarrow","&#x2916;":"\\rightarrow","&#x2915;":"\\rightarrow","&#x2914;":"\\rightarrow","&#x2913;":"\\downarrow","&#x2912;":"\\uparrow","&#x2911;":"\\rightarrow","&#x2910;":"\\rightarrow","&#x290F;":"\\rightarrow","&#x290E;":"\\leftarrow","&#x290D;":"\\rightarrow","&#x290C;":"\\leftarrow","&#x290B;":"\\Downarrow","&#x290A;":"\\Uparrow","&#x2909;":"\\uparrow","&#x2908;":"\\downarrow","&#x2907;":"\\Rightarrow","&#x2906;":"\\Leftarrow","&#x2905;":"\\mapsto","&#x2904;":"\\nLeftrightarrow","&#x2903;":"\\nRightarrow","&#x2902;":"\\nLeftarrow","&#x2901;":"\\rightsquigarrow","&#x2900;":"\\rightsquigarrow","&#x27FF;":"\\rightsquigarrow","&#x27FE;":"\\Rightarrow","&#x27FD;":"\\Leftarrow","&#x27FC;":"\\mapsto","&#x27FB;":"\\leftarrow","&#x27FA;":"\\Longleftrightarrow","&#x27F9;":"\\Longrightarrow","&#x27F8;":"\\Longleftarrow","&#x27F7;":"\\leftrightarrow","&#x27F6;":"\\rightarrow","&#x27F5;":"\\leftarrow","&#x27F1;":"\\Downarrow","&#x27F0;":"\\Uparrow","&#x22B8;":"\\rightarrow","&#x21FF;":"\\leftrightarrow","&#x21FE;":"\\rightarrow","&#x21FD;":"\\leftarrow","&#x21FC;":"\\nleftrightarrow","&#x21FB;":"\\nrightarrow","&#x21FA;":"\\nleftarrow","&#x21F9;":"\\nleftrightarrow","&#x21F8;":"\\nrightarrow","&#x21F7;":"\\nleftarrow","&#x21F6;":"\\Rrightarrow","&#x21F5;":"","&#x21F4;":"\\rightarrow","&#x21F3;":"\\Updownarrow","&#x21F2;":"\\searrow","&#x21F1;":"\\nwarrow","&#x21F0;":"\\Leftarrow","&#x21EF;":"\\Uparrow","&#x21EE;":"\\Uparrow","&#x21ED;":"\\Uparrow","&#x21EC;":"\\Uparrow","&#x21EB;":"\\Uparrow","&#x21EA;":"\\Uparrow","&#x21E9;":"\\Downarrow","&#x21E8;":"\\Rightarrow","&#x21E7;":"\\Uparrow","&#x21E6;":"\\Leftarrow","&#x21E5;":"\\rightarrow","&#x21E4;":"\\leftarrow","&#x21E3;":"\\downarrow","&#x21E2;":"\\rightarrow","&#x21E1;":"\\uparrow","&#x21E0;":"\\leftarrow","&#x21DF;":"\\downarrow","&#x21DE;":"\\uparrow","&#x21DD;":"\\rightsquigarrow","&#x21DC;":"\\leftarrow","&#x21DB;":"\\Rrightarrow","&#x21DA;":"\\Lleftarrow","&#x21D9;":"\\swarrow","&#x21D8;":"\\searrow","&#x21D7;":"\\nearrow","&#x21D6;":"\\nwarrow","&#x21D5;":"\\Updownarrow","&#x21D4;":"\\Leftrightarrow","&#x21D3;":"\\Downarrow","&#x21D2;":"\\Rightarrow","&#x21D1;":"\\Uparrow","&#x21D0;":"\\Leftarrow","&#x21CF;":"\\nRightarrow","&#x21CE;":"\\nLeftrightarrow","&#x21CD;":"\\nLeftarrow","&#x21CC;":"\\rightleftharpoons","&#x21CB;":"\\leftrightharpoons","&#x21CA;":"\\downdownarrows","&#x21C9;":"\\rightrightarrows","&#x21C8;":"\\upuparrows","&#x21C7;":"\\leftleftarrows","&#x21C6;":"\\leftrightarrows","&#x21C5;":"","&#x21C4;":"\\rightleftarrows","&#x21C3;":"\\downharpoonleft","&#x21C2;":"\\downharpoonright","&#x21C1;":"\\rightharpoondown","&#x21C0;":"\\rightharpoonup","&#x21BF;":"\\upharpoonleft","&#x21BE;":"\\upharpoonright","&#x21BD;":"\\leftharpoondown","&#x21BC;":"\\leftharpoonup","&#x21BB;":"\\circlearrowright","&#x21BA;":"\\circlearrowleft","&#x21B9;":"\\leftrightarrows","&#x21B8;":"\\overline{\\nwarrow}","&#x21B7;":"\\curvearrowright","&#x21B6;":"\\curvearrowleft","&#x21B5;":"\\swarrow","&#x21B4;":"\\searrow","&#x21B3;":"\\Rsh","&#x21B2;":"\\Lsh","&#x21B1;":"\\Rsh","&#x21B0;":"\\Lsh","&#x21AF;":"\\swarrow","&#x21AE;":"","&#x21AD;":"\\leftrightsquigarrow","&#x21AC;":"\\looparrowright","&#x21AB;":"\\looparrowleft","&#x21AA;":"\\hookrightarrow","&#x21A9;":"\\hookleftarrow","&#x21A8;":"\\underline{\\updownarrow}","&#x21A7;":"\\downarrow","&#x21A6;":"\\rightarrowtail","&#x21A5;":"\\uparrow","&#x21A4;":"\\leftarrowtail","&#x21A3;":"\\rightarrowtail","&#x21A2;":"\\leftarrowtail","&#x21A1;":"\\downarrow","&#x21A0;":"\\twoheadrightarrow","&#x219F;":"\\uparrow","&#x219E;":"\\twoheadleftarrow","&#x219D;":"\\nearrow","&#x219C;":"\\nwarrow","&#x219B;":"","&#x219A;":"","&#x2199;":"\\swarrow","&#x2198;":"\\searrow","&#x2197;":"\\nearrow","&#x2196;":"\\nwarrow","&#x2195;":"\\updownarrow","&#x2194;":"\\leftrightarrow","&#x2193;":"\\downarrow","&#x2192;":"\\rightarrow","&#x2191;":"\\uparrow","&#x2190;":"\\leftarrow","|||":"\\left|||\\right.","||":"\\left||\\right.","|":"\\left|\\right.","&#x2AFE;":"","&#x2AFD;":"//","&#x2AFB;":"///","&#x2AFA;":"","&#x2AF9;":"","&#x2AF8;":"","&#x2AF7;":"","&#x2AF6;":"\\vdots","&#x2AF5;":"","&#x2AF4;":"","&#x2AF3;":"","&#x2AF2;":"\\nparallel","&#x2AF1;":"","&#x2AF0;":"","&#x2AEF;":"","&#x2AEE;":"\\bcancel{\\mid}","&#x2AED;":"","&#x2AEC;":"","&#x2AEB;":"","&#x2AEA;":"","&#x2AE9;":"","&#x2AE8;":"\\underline{\\perp}","&#x2AE7;":"\\overline{\\top}","&#x2AE6;":"","&#x2AE5;":"","&#x2AE4;":"","&#x2AE3;":"","&#x2AE2;":"","&#x2AE1;":"","&#x2AE0;":"\\perp","&#x2ADF;":"\\top","&#x2ADE;":"\\dashv","&#x2ADD;&#x338;":"","&#x2ADD;":"","&#x2ADB;":"\\pitchfork","&#x2ADA;":"","&#x2AD9;":"","&#x2AD8;":"","&#x2AD7;":"","&#x2AD6;":"","&#x2AD5;":"","&#x2AD4;":"","&#x2AD3;":"","&#x2AD2;":"","&#x2AD1;":"","&#x2AD0;":"","&#x2ACF;":"","&#x2ACE;":"","&#x2ACD;":"","&#x2ACC;":"\\underset{\\neq}{\\supset}","&#x2ACB;":"\\underset{\\neq}{\\subset}","&#x2ACA;":"\\underset{\\approx}{\\supset}","&#x2AC9;":"\\underset{\\approx}{\\subset}","&#x2AC8;":"\\underset{\\sim}{\\supset}","&#x2AC7;":"\\underset{\\sim}{\\subset}","&#x2AC6;":"\\supseteqq","&#x2AC5;":"\\subseteqq","&#x2AC4;":"\\dot{\\supseteq}","&#x2AC3;":"\\dot{\\subseteq}","&#x2AC2;":"\\underset{\\times}{\\supset}","&#x2AC1;":"\\underset{\\times}{\\subset}","&#x2AC0;":"\\underset{+}{\\supset}","&#x2ABF;":"\\underset{+}{\\subset}","&#x2ABE;":"","&#x2ABD;":"","&#x2ABC;":"\\gg ","&#x2ABB;":"\\ll","&#x2ABA;":"\\underset{\\cancel{\\approx}}{\\succ}","&#x2AB9;":"\\underset{\\cancel{\\approx}}{\\prec}","&#x2AB8;":"\\underset{\\approx}{\\succ}","&#x2AB7;":"\\underset{\\approx}{\\prec}","&#x2AB6;":"\\underset{\\cancel{=}}{\\succ}","&#x2AB5;":"\\underset{\\cancel{=}}{\\prec}","&#x2AB4;":"\\underset{=}{\\succ}","&#x2AB3;":"\\underset{=}{\\prec}","&#x2AB2;":"","&#x2AB1;":"","&#x2AAE;":"","&#x2AAD;":"\\underline{\\hcancel{>}}","&#x2AAC;":"\\underline{\\hcancel{>}}","&#x2AAB;":"\\hcancel{>}","&#x2AAA;":"\\hcancel{<}","&#x2AA9;":"","&#x2AA8;":"","&#x2AA7;":"\\vartriangleright","&#x2AA6;":"\\vartriangleleft","&#x2AA5;":"><","&#x2AA4;":"><","&#x2AA3;":"\\underline{\\ll}","&#x2AA2;&#x338;":"\\cancel{\\gg}","&#x2AA2;":"\\gg","&#x2AA1;&#x338;":"\\cancel{\\ll}","&#x2AA1;":"\\ll","&#x2AA0;":"\\overset{\\sim}{\\geqq}","&#x2A9F;":"\\overset{\\sim}{\\leqq}","&#x2A9E;":"\\overset{\\sim}{>}","&#x2A9D;":"\\overset{\\sim}{<}","&#x2A9C;":"","&#x2A9B;":"","&#x2A9A;":"\\overset{=}{>}","&#x2A99;":"\\overset{=}{<}","&#x2A98;":"","&#x2A97;":"","&#x2A96;":"","&#x2A95;":"","&#x2A94;":"","&#x2A93;":"","&#x2A92;":"\\underset{=}{\\gtrless}","&#x2A91;":"\\underset{=}{\\lessgtr}","&#x2A90;":"\\underset{<}{\\gtrsim}","&#x2A8F;":"\\underset{>}{\\lesssim}","&#x2A8E;":"\\underset{\\simeq}{>}","&#x2A8D;":"\\underset{\\simeq}{<}","&#x2A8C;":"\\gtreqqless","&#x2A8B;":"\\lesseqqgtr","&#x2A8A;":"\\underset{\\cancel{\\approx}}{>}","&#x2A89;":"\\underset{\\approx}{<}","&#x2A86;":"\\underset{\\approx}{>}","&#x2A85;":"\\underset{\\approx}{<}","&#x2A84;":"","&#x2A83;":"","&#x2A82;":"","&#x2A81;":"","&#x2A80;":"","&#x2A7F;":"","&#x2A7E;&#x338;":"\\bcancel{\\geq}","&#x2A7E;":"\\geq","&#x2A7D;&#x338;":"\\bcancel{\\leq}","&#x2A7D;":"\\leq","&#x2A7C;":"","&#x2A7B;":"","&#x2A7A;":"","&#x2A79;":"","&#x2A78;":"\\overset{\\dots}{\\equiv}","&#x2A77;":"","&#x2A76;":"===","&#x2A75;":"==","&#x2A74;":"::=","&#x2A73;":"","&#x2A72;":"\\underset{=}{+}","&#x2A71;":"\\overset{=}{+}","&#x2A70;":"\\overset{\\approx}{=}","&#x2A6F;":"\\overset{\\wedge}{=}","&#x2A6E;":"\\overset{*}{=}","&#x2A6D;":"\\dot{\\approx}","&#x2A6C;":"","&#x2A6B;":"","&#x2A6A;":"\\dot{\\sim}","&#x2A69;":"","&#x2A68;":"","&#x2A67;":"\\dot{\\equiv}","&#x2A66;":"\\underset{\\cdot}{=}","&#x2A65;":"","&#x2A64;":"","&#x2A63;":"\\underset{=}{\\vee}","&#x2A62;":"\\overset{=}{\\vee}","&#x2A61;":"ul(vv)","&#x2A60;":"\\underset{=}{\\wedge}","&#x2A5F;":"\\underline{\\wedge}","&#x2A5E;":"\\overset{=}{\\wedge}","&#x2A5D;":"\\hcancel{\\vee}","&#x2A5C;":"\\hcancel{\\wedge}","&#x2A5B;":"","&#x2A5A;":"","&#x2A59;":"","&#x2A58;":"\\vee","&#x2A57;":"\\wedge","&#x2A56;":"","&#x2A55;":"","&#x2A54;":"","&#x2A53;":"","&#x2A52;":"\\dot{\\vee}","&#x2A51;":"\\dot{\\wedge}","&#x2A50;":"","&#x2A4F;":"","&#x2A4E;":"","&#x2A4D;":"\\overline{\\cap}","&#x2A4C;":"\\overline{\\cup}","&#x2A4B;":"","&#x2A4A;":"","&#x2A49;":"","&#x2A48;":"","&#x2A47;":"","&#x2A46;":"","&#x2A45;":"","&#x2A44;":"","&#x2A43;":"\\overline{\\cap}","&#x2A42;":"\\overline{\\cup}","&#x2A41;":"","&#x2A40;":"","&#x2A3E;":"","&#x2A3D;":"\\llcorner","&#x2A3C;":"\\lrcorner","&#x2A3B;":"","&#x2A3A;":"","&#x2A39;":"","&#x2A38;":"","&#x2A37;":"","&#x2A36;":"\\hat{\\otimes}","&#x2A35;":"","&#x2A34;":"","&#x2A33;":"","&#x2A32;":"\\underline{\\times}","&#x2A31;":"\\underline{\\times}","&#x2A30;":"\\dot{\\times}","&#x2A2E;":"","&#x2A2D;":"","&#x2A2C;":"","&#x2A2B;":"","&#x2A2A;":"","&#x2A29;":"","&#x2A28;":"","&#x2A27;":"","&#x2A26;":"\\underset{\\sim}{+}","&#x2A25;":"\\underset{\\circ}{+}","&#x2A24;":"\\overset{\\sim}{+}","&#x2A23;":"\\hat{+}","&#x2A22;":"\\dot{+}","&#x2A21;":"\\upharpoonright","&#x2A20;":">>","&#x2A1F;":"","&#x2A1E;":"\\triangleleft","&#x2A1D;":"\\bowtie","&#x29FF;":"","&#x29FE;":"+","&#x29FB;":"\\hcancel{|||}","&#x29FA;":"\\hcancel{||}","&#x29F9;":"\\backslash","&#x29F8;":"/","&#x29F7;":"hcancel{\backslash}","&#x29F6;":"","&#x29F5;":"\\backslash","&#x29F2;":"\\Phi","&#x29F1;":"","&#x29F0;":"","&#x29EE;":"","&#x29ED;":"","&#x29EC;":"","&#x29EB;":"\\lozenge","&#x29EA;":"","&#x29E9;":"","&#x29E8;":"","&#x29E7;":"\\ddagger","&#x29E2;":"\\sqcup\\sqcup","&#x29E1;":"","&#x29E0;":"\\square","&#x29DE;":"","&#x29DD;":"","&#x29DC;":"","&#x29DB;":"\\{\\{","&#x29D9;":"\\{","&#x29D8;":"\\}","&#x29D7;":"","&#x29D6;":"","&#x29D5;":"\\bowtie","&#x29D4;":"\\bowtie","&#x29D3;":"\\bowtie","&#x29D2;":"\\bowtie","&#x29D1;":"\\bowtie","&#x29D0;&#x338;":"| \\not\\triangleright","&#x29D0;":"| \\triangleright","&#x29CF;&#x338;":"\\not\\triangleleft |","&#x29CF;":"\\triangleleft |","&#x29CE;":"","&#x29CD;":"\\triangle","&#x29CC;":"","&#x29CB;":"\\underline{\\triangle}","&#x29CA;":"\\dot{\\triangle}","&#x29C9;":"","&#x29C8;":"\\boxed{\\circ}","&#x29C7;":"\\boxed{\\circ}","&#x29C6;":"\\boxed{\\rightarrow}","&#x29C5;":"\\bcancel{\\square}","&#x29C4;":"\\cancel{\\square}","&#x29C3;":"\\odot","&#x29C2;":"\\odot","&#x29BF;":"\\odot","&#x29BE;":"\\odot","&#x29BD;":"\\varnothing","&#x29BC;":"\\oplus","&#x29BB;":"\\otimes","&#x29BA;":"","&#x29B9;":"\\varnothing","&#x29B8;":"\\varnothing","&#x29B7;":"\\ominus","&#x29B6;":"\\ominus","&#x29B5;":"\\ominus","&#x29B4;":"\\vec{\\varnothing}","&#x29B3;":"\\vec{\\varnothing}","&#x29B2;":"\\dot{\\varnothing}","&#x29B1;":"\\overline{\\varnothing}","&#x29B0;":"\\varnothing","&#x29AF;":"","&#x29AE;":"","&#x29AD;":"","&#x29AC;":"","&#x29AB;":"","&#x29AA;":"","&#x29A9;":"","&#x29A8;":"","&#x29A7;":"","&#x29A6;":"","&#x29A5;":"","&#x29A4;":"","&#x29A3;":"","&#x29A2;":"","&#x29A1;":"\\not\\lor","&#x29A0;":"\\bcancel{>}","&#x2982;":":","&#x2981;":"\\circ","&#x2758;":"|","&#x25B2;":"\\bigtriangleup","&#x22FF;":"\\Epsilon","&#x22FE;":"\\overline{\\ni}","&#x22FD;":"\\overline{\\ni}","&#x22FC;":"\\in","&#x22FB;":"\\in","&#x22FA;":"\\in","&#x22F9;":"\\underline{\\in}","&#x22F8;":"\\underline{\\in}","&#x22F7;":"\\overline{\\in}","&#x22F6;":"\\overline{\\in}","&#x22F5;":"\\dot{\\in}","&#x22F4;":"\\in","&#x22F3;":"\\in","&#x22F2;":"\\in","&#x22F0;":"\\ddots","&#x22E9;":"\\underset{\\sim}{\\succ}","&#x22E8;":"\\underset{\\sim}{\\prec}","&#x22E7;":"\\underset{\\not\\sim}{>}","&#x22E6;":"\\underset{\\not\\sim}{<}","&#x22E5;":"\\not\\sqsupseteq","&#x22E4;":"\\not\\sqsubseteq","&#x22E3;":"\\not\\sqsupseteq","&#x22E2;":"\\not\\sqsubseteq","&#x22E1;":"\\nsucc","&#x22E0;":"\\nprec","&#x22DF;":"\\succ","&#x22DE;":"\\prec","&#x22DD;":"\\overline{>}","&#x22DC;":"\\overline{<}","&#x22DB;":"\\underset{>}{\\leq}","&#x22DA;":"\\underset{<}{\\geq}","&#x22D5;":"\\#","&#x22D3;":"\\cup","&#x22D2;":"\\cap","&#x22D1;":"\\supset","&#x22D0;":"\\subset","&#x22CF;":"\\wedge","&#x22CE;":"\\vee","&#x22CD;":"\\simeq","&#x22C8;":"\\bowtie","&#x22C7;":"\\ast","&#x22C6;":"\\star","&#x22C4;":"\\diamond","&#x22BF;":"\\triangle","&#x22BE;":"\\measuredangle","&#x22BD;":"\\overline{\\lor}","&#x22BC;":"\\overline{\\land}","&#x22BB;":"\\underline{\\lor}","&#x22BA;":"\\top","&#x22B9;":"","&#x22B7;":"\\circ\\multimap","&#x22B6;":"\\circ\\multimap","&#x22B3;":"\\triangleright","&#x22B2;":"\\triangleleft","&#x22B1;":"\\succ","&#x22B0;":"\\prec","&#x22AB;":"|\\models","&#x22AA;":"|\\models","&#x22A7;":"\\models","&#x22A6;":"\\vdash","&#x229D;":"\\ominus","&#x229C;":"\\ominus","&#x229B;":"\\odot","&#x229A;":"\\odot","&#x2294;":"\\sqcup","&#x2293;":"\\sqcap","&#x2292;":"\\sqsupseteq","&#x2291;":"\\sqsubseteq","&#x2290;&#x338;":"\\not\\sqsupset","&#x2290;":"\\sqsupset","&#x228F;&#x338;":"\\not\\sqsubset","&#x228F;":"\\sqsubset","&#x228E;":"\\cup","&#x228D;":"\\cup","&#x228C;":"\\cup","&#x227F;&#x338;":"\\not\\succsim","&#x227F;":"\\succsim","&#x227E;":"\\precsim","&#x2279;":"\\not\\overset{>}{<}","&#x2278;":"\\not\\overset{>}{<}","&#x2277;":"\\overset{>}{<}","&#x2276;":"\\overset{<}{>}","&#x2275;":"\\not\\geg","&#x2274;":"\\not\\leq","&#x2273;":"\\geg","&#x2272;":"\\leq","&#x226C;":"","&#x2267;":"\\geg","&#x2266;&#x338;":"\\not\\leq","&#x2266;":"\\leq","&#x2263;":"\\overset{=}{=} ","&#x225E;":"\\overset{m}{=} ","&#x225D;":"\\overset{def}{=}","&#x2258;":"=","&#x2256;":"=","&#x2255;":"=:","&#x2253;":"\\doteq","&#x2252;":"\\doteq","&#x2251;":"\\doteq","&#x2250;":"\\doteq","&#x224F;&#x338;":"","&#x224F;":"","&#x224E;&#x338;":"","&#x224E;":"","&#x224C;":"\\approx","&#x224B;":"\\approx","&#x224A;":"\\approx","&#x2242;&#x338;":"\\neq","&#x2242;":"=","&#x223F;":"\\sim","&#x223E;":"\\infty","&#x223D;&#x331;":"\\sim","&#x223D;":"\\sim","&#x223B;":"\\sim","&#x223A;":":-:","&#x2239;":"-:","&#x2238;":"\\bot","&#x2237;":"::","&#x2236;":":","&#x2223;":"|","&#x221F;":"\\llcorner","&#x2219;":"\\cdot","&#x2218;":"\\circ","&#x2217;":"*","&#x2215;":"/","&#x220E;":"\\square","&#x220D;":"\\ni","&#x220A;":"\\in","&#x2206;":"\\Delta","&#x2044;":"/","&#x2AB0;&#x338;":"\\nsucceq","&#x2AB0;":"\\succeq","&#x2AAF;&#x338;":"\\npreceq","&#x2AAF;":"\\preceq","&#x2A88;":"\\ngeqslant","&#x2A87;":"\\nleqslant","&#x29F3;":"\\Phi","&#x29E6;":"\\models","&#x29E5;":"\\not\\equiv","&#x29E4;":"\\approx\\neq","&#x29E3;":"\\neq","&#x29C1;":"\\circle","&#x29C0;":"\\circle","&#x25E6;":"\\circle","&#x25D7;":"\\circle","&#x25D6;":"\\circle","&#x25CF;":"\\circle","&#x25CE;":"\\circledcirc","&#x25CD;":"\\circledcirc","&#x25CC;":"\\circledcirc","&#x25C9;":"\\circledcirc","&#x25C8;":"\\diamond","&#x25C7;":"\\diamond","&#x25C6;":"\\diamond","&#x25C5;":"\\triangleleft","&#x25C4;":"\\triangleleft","&#x25C3;":"\\triangleleft","&#x25C2;":"\\triangleleft","&#x25C1;":"\\triangleleft","&#x25C0;":"\\triangleleft","&#x25BF;":"\\triangledown","&#x25BE;":"\\triangledown","&#x25BD;":"\\triangledown","&#x25BC;":"\\triangledown","&#x25B9;":"\\triangleright","&#x25B8;":"\\triangleright","&#x25B7;":"\\triangleright","&#x25B6;":"\\triangleright","&#x25B5;":"\\triangle","&#x25B4;":"\\triangle","&#x25B3;":"\\triangle","&#x25B1;":"\\square","&#x25B0;":"\\square","&#x25AF;":"\\square","&#x25AE;":"\\square","&#x25AD;":"\\square","&#x25AB;":"\\square","&#x25AA;":"\\square","&#x25A1;":"\\square","&#x25A0;":"\\square","&#x22ED;":"\\not\\triangleright","&#x22EC;":"\\not\\triangleleft","&#x22EB;":"\\not\\triangleright","&#x22EA;":"\\not\\triangleleft","&#x22D9;":"\\ggg","&#x22D8;":"\\lll","&#x22D7;":"*>","&#x22D6;":"<*","&#x22D4;":"\\pitchfork","&#x22CC;":"","&#x22CB;":"","&#x22CA;":"\\rtimes","&#x22C9;":"\\ltimes","&#x22B5;":"\\triangleright","&#x22B4;":"","&#x22A5;":"\\bot","&#x2281;":"\\nsucc","&#x2280;":"\\preceq","&#x227D;":"\\succeq","&#x227C;":"\\preceq","&#x227B;":"\\succ","&#x227A;":"\\prec","&#x2271;":"\\geq/","&#x2270;":"\\leq/","&#x226D;":"\\neq","&#x226B;&#x338;":"\\not\\gg","&#x226B;":"\\gg","&#x226A;&#x338;":"\\not\\ll","&#x226A;":"\\ll","&#x2269;":"\\ngeqslant","&#x2268;":"\\nleqslant","&#x2261;":"\\equiv","&#x225F;":"\\doteq","&#x225C;":"\\triangleq","&#x225B;":"\\doteq","&#x225A;":"\\triangleq","&#x2259;":"\\triangleq","&#x2257;":"\\doteq","&#x2254;":":=","&#x224D;":"\\asymp","&#x2247;":"\\ncong","&#x2246;":"\\ncong","&#x2245;":"\\cong","&#x2244;":"\\not\\simeq","&#x2243;":"\\simeq","&#x2241;":"\\not\\sim","&#x2226;":"\\not\\parallel","&#x2225;":"\\parallel","&#x2224;":"\\not|","&#x221D;":"\\propto","==":"==","=":"=",":=":":=","/=":"=","-=":"-=","+=":"+=","*=":"*=","!=":"!=","&#x2260;":"\\neq","&#x2262;":"\\equiv /","&#x2249;":"\\approx /","&#x223C;":"sim","&#x2248;":"\\approx","&#x226E;":"</","&lt;":"<","&#x226F;":">/",">=":">=",">":">","&#x2265;":"\\geq","&#x2264;":"\\leq","&lt;=":"<=","&#x228B;":"\\supsetneq","&#x228A;":"\\subsetneq","&#x2289;":"\\nsupseteq","&#x2288;":"\\nsubseteq","&#x2287;":"\\supseteq","&#x2286;":"\\subseteq","&#x2285;":"\\not\\supset","&#x2284;":"\\not\\subset","&#x2283;&#x20D2;":"\\supset |","&#x2283;":"\\supset","&#x2282;&#x20D2;":"\\subset |","&#x2282;":"\\subset","&#x220C;":"\\not\\in","&#x2209;":"\\notin","&#x2208;":"\\in","&#x2201;":"C","&#x2204;":"\\nexists","&#x2203;":"\\exists","&#x2200;":"\\forall","&#x2227;":"\\land","&amp;&amp;":"\\&\\&","&#x2228;":"\\lor","&#x22AF;":"\\cancel{\\vDash}","&#x22AE;":"\\cancel{\\Vdash}","&#x22AD;":"\\nvDash","&#x22AC;":"\\nvDash","&#x22A9;":"\\Vdash","&#x22A8;":"\\vDash","&#x22A4;":"\\top","&#x22A3;":"\\dashv","&#x22A2;":"\\vdash","&#x220B;":"\\ni","&#x22F1;":"\\ddots","&#x22EF;":"\\hdots","&#x22EE;":"\\vdots","&#x2026;":"\\hdots","&#x3F6;":"\\ni",":":":","...":"\\cdots","..":"..","->":"->","&#x2235;":"\\because","&#x2234;":"\\therefore ","&#x2063;":"",",":",",";":";","&#x29FD;":"\\}","&#x29FC;":"\\{","&#x2998;":"\\]","&#x2997;":"\\[","&#x2996;":"\\ll","&#x2995;":"\\gg","&#x2994;":"\\gg","&#x2993;":"\\ll","&#x2992;":"\\gg","&#x2991;":"\\ll","&#x2990;":"\\]","&#x298F;":"\\]","&#x298E;":"\\]","&#x298D;":"\\[","&#x298C;":"\\[","&#x298B;":"\\]","&#x298A;":"\\triangleright","&#x2989;":"\\triangleleft","&#x2988;":"|\\)","&#x2987;":"\\(|","&#x2986;":"|\\)","&#x2985;":"\\(\\(","&#x2984;":"|\\}","&#x2983;":"\\{|","&#x2980;":"\\||","&#x27EF;":"\\left. \\right]","&#x27EE;":"\\left[ \\right.","&#x27ED;":"\\left. \\right]]","&#x27EC;":"\\left[[ \\right.","&#x27EB;":"\\gg","&#x27EA;":"\\ll","&#x27E9;":"\\rangle","&#x27E8;":"\\langle","&#x27E7;":"\\left. \\right]]","&#x27E6;":"\\left[[ \\right.","&#x2773;":"\\left.\\right)","&#x2772;":"\\left(\\right.","&#x232A;":"\\rangle","&#x2329;":"\\langle","&#x230B;":"\\rfloor","&#x230A;":"\\lfloor","&#x2309;":"\\rceil","&#x2308;":"\\lceil","&#x2016;":"\\parallel","}":"\\left.\\right}","{":"\\left{\\right.","]":"\\left]\\right.","[":"\\left[\\right.",")":"\\left.\\right)","(":"\\left(\\right.","&#x201D;":'"',"&#x201C;":"``","&#x2019;":"'","&#x2018;":"`","%CE%B1":"\\alpha","%CE%B2":"\\beta","%CE%B3":"\\gamma","%CE%93":"\\Gamma","%CE%B4":"\\delta","%CE%94":"\\Delta","%CF%B5":"\\epsilon","%CE%B6":"\\zeta","%CE%B7":"\\eta","%CE%B8":"\\theta","%CE%98":"\\Theta","%CE%B9":"\\iota","%CE%BA":"\\kappa","%CE%BB":"\\lambda","%CE%BC":"\\mu","%CE%BD":"\\nu","%CE%BF":"\\omicron","%CF%80":"\\pi","%CE%A0":"\\Pi","%CF%81":"\\pho","%CF%83":"\\sigma","%CE%A3":"\\Sigma","%CF%84":"\\tau","%CF%85":"\\upsilon","%CE%A5":"\\Upsilon","%CF%95":"\\phi","%CE%A6":"\\Phi","%CF%87":"\\chi","%CF%88":"\\psi","%CE%A8":"\\Psi","%CF%89":"\\omega","%CE%A9":"\\Omega"}},9039:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.allMathOperatorsByGlyph=void 0,t4.allMathOperatorsByGlyph={_:"\\underline","\u23E1":"\\underbrace","\u23E0":"\\overbrace","\u23DF":"\\underbrace","\u23DE":"\\overbrace","\u23DD":"\\underbrace","\u23DC":"\\overbrace","\u23B5":"\\underbrace","\u23B4":"\\overbrace","\u20DC":"\\square","\u20DB":"\\square","\u2064":"","\u2057":"''''","\u203E":"\\overline","\u2037":"```","\u2036":"``","\u2035":"`","\u2034":"'''","\u2033":"''","\u201F":"``","\u201E":",,","\u201B":"`","\u201A":",","^":"\\hat","\u02F7":"\\sim","\u02DD":"\\sim","\u02DC":"\\sim","\u02DA":"\\circ","\u02D9":"\\cdot","\u02D8":" ","\u02CD":"\\_","\u02CB":"\u02CB","\u02CA":"\u02CA","\u02C9":"\u02C9","\u02C7":"","\u02C6":"\\hat",\u00BA:"o","\xB9":"1","\xB8":",","\xB4":"\xB4","\xB3":"3","\xB2":"2","\xB0":"\\circ","\xAF":"\\bar",\u00AA:"a","\u219B":"\\nrightarrow","\xA8":"\\cdot\\cdot","~":"\\sim","`":"`","--":"--","++":"++","&":"\\&","\u221C":"\\sqrt[4]{}","\u221B":"\\sqrt[3]{}","\u221A":"\\sqrt{}","\u2146":"d","\u2145":"\\mathbb{D}","?":"?","@":"@","//":"//","!!":"!!","!":"!","\u266F":"\\#","\u266E":"","\u266D":"","\u2032":"'","<>":"<>","**":"\\star\\star","\u2207":"\\nabla","\u2202":"\\partial","\u2299":"\\bigodot","\xAC":"\\neg","\u2222":"\\measuredangle","\u2221":"\\measuredangle","\u2220":"\\angle","\xF7":"\\div","/":"/","\u2216":"\\backslash","\\":"\\backslash","%":"\\%","\u2297":"\\bigotimes","\xB7":"\\cdot","\u2A3F":"\\coprod","\u2A2F":"\\times","\u22C5":"\\cdot","\u22A1":"\\boxdot","\u22A0":"\\boxtimes","\u2062":"","\u2043":"-","\u2022":"\\cdot",".":".","*":"\\star","\u222A":"\\cup","\u2229":"\\cap","\u2210":"\\coprod","\u220F":"\\prod","\u2240":"","\u2AFF":"","\u2AFC":"\\mid\\mid\\mid","\u2A09":"\\times","\u2A08":"","\u2A07":"","\u2A06":"\\sqcup","\u2A05":"\\sqcap","\u2A02":"\\otimes","\u2A00":"\\odot","\u22C2":"\\cap","\u22C1":"\\vee","\u22C0":"\\wedge","\u2A04":"\\uplus","\u2A03":"\\cup","\u22C3":"\\cup","\u2A1C":"\\underline{\\int}","\u2A1B":"\\overline{\\int}","\u2A1A":"\\int","\u2A19":"\\int","\u2A18":"\\int","\u2A17":"\\int","\u2A16":"\\oint","\u2A15":"\\oint","\u2A14":"\\int","\u2A13":"\\int","\u2A12":"\\int","\u2A11":"\\int","\u2A10":"\\int","\u2A0F":"\\bcancel{\\int}","\u2A0E":"","\u2A0D":"\\hcancel{\\int}","\u2A0C":"\\iiiint","\u2233":"\\oint","\u2232":"\\oint","\u2231":"\\int","\u2230":"\\oiint","\u222F":"\\oiint","\u222E":"\\oint","\u222B":"\\int","\u2A01":"\\oplus","\u2298":"\\oslash","\u2296":"\\ominus","\u2295":"\\oplus","\u222D":"\\iiint","\u222C":"\\iint","\u2A0B":"","\u2A0A":"","\u2211":"\\sum","\u229F":"\\boxminus","\u229E":"\\boxplus","\u2214":"\\dot{+}","\u2213":"+-","\u2212":"-","\xB1":"\\pm","-":"-","+":"+","\u2B46":"\\Rrightarrow","\u2B45":"\\Lleftarrow","\u29F4":":\\rightarrow","\u29EF":"","\u29DF":"\\bullet-\\bullet","\u299F":"\\angle","\u299E":"\\measuredangle","\u299D":"\\measuredangle","\u299C":"\\perp","\u299B":"\\measuredangle","\u299A":"","\u2999":"\\vdots","\u297F":"","\u297E":"","\u297D":"\\prec","\u297C":"\\succ","\u297B":"\\underset{\\rightarrow}{\\supset}","\u297A":"","\u2979":"\\underset{\\rightarrow}{\\subset}","\u2978":"\\underset{\\rightarrow}{>}","\u2977":"","\u2976":"\\underset{\\leftarrow}{<}","\u2975":"\\underset{\\approx}{\\rightarrow}","\u2974":"\\underset{\\sim}{\\rightarrow}","\u2973":"\\underset{\\sim}{\\leftarrow}","\u2972":"\\overset{\\sim}{\\rightarrow}","\u2971":"\\overset{=}{\\rightarrow}","\u2970":"","\u296F":"","\u296E":"","\u296D":"\\overline{\\rightharpoondown}","\u296C":"\\underline{\\rightharpoonup}","\u296B":"\\overline{\\leftharpoondown}","\u296A":"\\underline{\\leftharpoonup}","\u2969":"\\rightleftharpoons","\u2968":"\\rightleftharpoons","\u2967":"\\rightleftharpoons","\u2966":"\\rightleftharpoons","\u2965":"\\Downarrow","\u2964":"\\Rightarrow","\u2963":"\\Uparrow","\u2962":"\\Leftarrow","\u2961":"\\downarrow","\u2960":"\\uparrow","\u295F":"\\rightarrow","\u295E":"\\leftarrow","\u295D":"\\downarrow","\u295C":"\\uparrow","\u295B":"\\rightarrow","\u295A":"\\leftarrow","\u2959":"\\downarrow","\u2958":"\\uparrow","\u2957":"\\rightarrow","\u2956":"\\leftarrow","\u2955":"\\downarrow","\u2954":"\\uparrow","\u2953":"\\rightarrow","\u2952":"\\leftarrow","\u2951":"\\updownarrow","\u2950":"\\leftrightarrow","\u294F":"\\updownarrow","\u294E":"\\leftrightarrow","\u294D":"\\updownarrow","\u294C":"\\updownarrow","\u294B":"\\leftrightarrow","\u294A":"\\leftrightarrow","\u2949":"","\u2948":"\\leftrightarrow","\u2947":"\\nrightarrow","\u2946":"","\u2945":"","\u2944":"\\rightleftarrows","\u2943":"\\leftrightarrows","\u2942":"\\rightleftarrows","\u2941":"\\circlearrowright","\u2940":"\\circlearrowleft","\u293F":"\\rightarrow","\u293E":"\\leftarrow","\u293D":"\\leftarrow","\u293C":"\\rightarrow","\u293B":"\\rightarrow","\u293A":"\\leftarrow","\u2939":"\\downarrow","\u2938":"\\downarrow","\u2937":"\\Rsh","\u2936":"\\Lsh","\u2935":"\\downarrow","\u2934":"\\uparrow","\u2933":"\\rightarrow","\u2932":"\\leftarrow","\u2931":" ","\u2930":" ","\u292F":" ","\u292E":" ","\u292D":" ","\u292C":"\\times","\u292B":"\\times","\u292A":" ","\u2929":" ","\u2928":" ","\u2927":" ","\u2926":" ","\u2925":" ","\u2924":" ","\u2923":" ","\u2922":" ","\u2921":" ","\u2920":"\\mapsto\\cdot","\u291F":"\\cdot\\leftarrow","\u291E":"\\rightarrow\\cdot","\u291D":"\\leftarrow","\u291C":"\\rightarrow","\u291B":"\\leftarrow","\u291A":"\\rightarrow","\u2919":"\\leftarrow","\u2918":"\\rightarrow","\u2917":"\\rightarrow","\u2916":"\\rightarrow","\u2915":"\\rightarrow","\u2914":"\\rightarrow","\u2913":"\\downarrow","\u2912":"\\uparrow","\u2911":"\\rightarrow","\u2910":"\\rightarrow","\u290F":"\\rightarrow","\u290E":"\\leftarrow","\u290D":"\\rightarrow","\u290C":"\\leftarrow","\u290B":"\\Downarrow","\u290A":"\\Uparrow","\u2909":"\\uparrow","\u2908":"\\downarrow","\u2907":"\\Rightarrow","\u2906":"\\Leftarrow","\u2905":"\\mapsto","\u2904":"\\nLeftrightarrow","\u2903":"\\nRightarrow","\u2902":"\\nLeftarrow","\u2901":"\\rightsquigarrow","\u2900":"\\rightsquigarrow","\u27FF":"\\rightsquigarrow","\u27FE":"\\Rightarrow","\u27FD":"\\Leftarrow","\u27FC":"\\mapsto","\u27FB":"\\leftarrow","\u27FA":"\\Longleftrightarrow","\u27F9":"\\Longrightarrow","\u27F8":"\\Longleftarrow","\u27F7":"\\leftrightarrow","\u27F6":"\\rightarrow","\u27F5":"\\leftarrow","\u27F1":"\\Downarrow","\u27F0":"\\Uparrow","\u22B8":"\\rightarrow","\u21FF":"\\leftrightarrow","\u21FE":"\\rightarrow","\u21FD":"\\leftarrow","\u21FC":"\\nleftrightarrow","\u21FB":"\\nrightarrow","\u21FA":"\\nleftarrow","\u21F9":"\\nleftrightarrow","\u21F8":"\\nrightarrow","\u21F7":"\\nleftarrow","\u21F6":"\\Rrightarrow","\u21F5":"","\u21F4":"\\rightarrow","\u21F3":"\\Updownarrow","\u21F2":"\\searrow","\u21F1":"\\nwarrow","\u21F0":"\\Leftarrow","\u21EF":"\\Uparrow","\u21EE":"\\Uparrow","\u21ED":"\\Uparrow","\u21EC":"\\Uparrow","\u21EB":"\\Uparrow","\u21EA":"\\Uparrow","\u21E9":"\\Downarrow","\u21E8":"\\Rightarrow","\u21E7":"\\Uparrow","\u21E6":"\\Leftarrow","\u21E5":"\\rightarrow","\u21E4":"\\leftarrow","\u21E3":"\\downarrow","\u21E2":"\\rightarrow","\u21E1":"\\uparrow","\u21E0":"\\leftarrow","\u21DF":"\\downarrow","\u21DE":"\\uparrow","\u21DD":"\\rightsquigarrow","\u21DC":"\\leftarrow","\u21DB":"\\Rrightarrow","\u21DA":"\\Lleftarrow","\u21D9":"\\swarrow","\u21D8":"\\searrow","\u21D7":"\\nearrow","\u21D6":"\\nwarrow","\u21D5":"\\Updownarrow","\u21D4":"\\Leftrightarrow","\u21D3":"\\Downarrow","\u21D2":"\\Rightarrow","\u21D1":"\\Uparrow","\u21D0":"\\Leftarrow","\u21CF":"\\nRightarrow","\u21CE":"\\nLeftrightarrow","\u21CD":"\\nLeftarrow","\u21CC":"\\rightleftharpoons","\u21CB":"\\leftrightharpoons","\u21CA":"\\downdownarrows","\u21C9":"\\rightrightarrows","\u21C8":"\\upuparrows","\u21C7":"\\leftleftarrows","\u21C6":"\\leftrightarrows","\u21C5":"","\u21C4":"\\rightleftarrows","\u21C3":"\\downharpoonleft","\u21C2":"\\downharpoonright","\u21C1":"\\rightharpoondown","\u21C0":"\\rightharpoonup","\u21BF":"\\upharpoonleft","\u21BE":"\\upharpoonright","\u21BD":"\\leftharpoondown","\u21BC":"\\leftharpoonup","\u21BB":"\\circlearrowright","\u21BA":"\\circlearrowleft","\u21B9":"\\leftrightarrows","\u21B8":"\\overline{\\nwarrow}","\u21B7":"\\curvearrowright","\u21B6":"\\curvearrowleft","\u21B5":"\\swarrow","\u21B4":"\\searrow","\u21B3":"\\Rsh","\u21B2":"\\Lsh","\u21B1":"\\Rsh","\u21B0":"\\Lsh","\u21AF":"\\swarrow","\u21AE":"","\u21AD":"\\leftrightsquigarrow","\u21AC":"\\looparrowright","\u21AB":"\\looparrowleft","\u21AA":"\\hookrightarrow","\u21A9":"\\hookleftarrow","\u21A8":"\\underline{\\updownarrow}","\u21A7":"\\downarrow","\u21A6":"\\rightarrowtail","\u21A5":"\\uparrow","\u21A4":"\\leftarrowtail","\u21A3":"\\rightarrowtail","\u21A2":"\\leftarrowtail","\u21A1":"\\downarrow","\u21A0":"\\twoheadrightarrow","\u219F":"\\uparrow","\u219E":"\\twoheadleftarrow","\u219D":"\\nearrow","\u219C":"\\nwarrow","\u219A":"","\u2199":"\\swarrow","\u2198":"\\searrow","\u2197":"\\nearrow","\u2196":"\\nwarrow","\u2195":"\\updownarrow","\u2194":"\\leftrightarrow","\u2193":"\\downarrow","\u2192":"\\rightarrow","\u2191":"\\uparrow","\u2190":"\\leftarrow","|||":"\\left|||\\right.","||":"\\left||\\right.","|":"\\mid","\u2AFE":"","\u2AFD":"//","\u2AFB":"///","\u2AFA":"","\u2AF9":"","\u2AF8":"","\u2AF7":"","\u2AF6":"\\vdots","\u2AF5":"","\u2AF4":"","\u2AF3":"","\u2AF2":"\\nparallel","\u2AF1":"","\u2AF0":"","\u2AEF":"","\u2AEE":"\\bcancel{\\mid}","\u2AED":"","\u2AEC":"","\u2AEB":"","\u2AEA":"","\u2AE9":"","\u2AE8":"\\underline{\\perp}","\u2AE7":"\\overline{\\top}","\u2AE6":"","\u2AE5":"","\u2AE4":"","\u2AE3":"","\u2AE2":"","\u2AE1":"","\u2AE0":"\\perp","\u2ADF":"\\top","\u2ADE":"\\dashv","\u2ADD\u0338":"","\u2ADD":"","\u2ADB":"\\pitchfork","\u2ADA":"","\u2AD9":"","\u2AD8":"","\u2AD7":"","\u2AD6":"","\u2AD5":"","\u2AD4":"","\u2AD3":"","\u2AD2":"","\u2AD1":"","\u2AD0":"","\u2ACF":"","\u2ACE":"","\u2ACD":"","\u2ACC":"\\underset{\\neq}{\\supset}","\u2ACB":"\\underset{\\neq}{\\subset}","\u2ACA":"\\underset{\\approx}{\\supset}","\u2AC9":"\\underset{\\approx}{\\subset}","\u2AC8":"\\underset{\\sim}{\\supset}","\u2AC7":"\\underset{\\sim}{\\subset}","\u2AC6":"\\supseteqq","\u2AC5":"\\subseteqq","\u2AC4":"\\dot{\\supseteq}","\u2AC3":"\\dot{\\subseteq}","\u2AC2":"\\underset{\\times}{\\supset}","\u2AC1":"\\underset{\\times}{\\subset}","\u2AC0":"\\underset{+}{\\supset}","\u2ABF":"\\underset{+}{\\subset}","\u2ABE":"","\u2ABD":"","\u2ABC":"\\gg ","\u2ABB":"\\ll","\u2ABA":"\\underset{\\cancel{\\approx}}{\\succ}","\u2AB9":"\\underset{\\cancel{\\approx}}{\\prec}","\u2AB8":"\\underset{\\approx}{\\succ}","\u2AB7":"\\underset{\\approx}{\\prec}","\u2AB6":"\\underset{\\cancel{=}}{\\succ}","\u2AB5":"\\underset{\\cancel{=}}{\\prec}","\u2AB4":"\\underset{=}{\\succ}","\u2AB3":"\\underset{=}{\\prec}","\u2AB2":"","\u2AB1":"","\u2AAE":"","\u2AAD":"\\underline{\\hcancel{>}}","\u2AAC":"\\underline{\\hcancel{>}}","\u2AAB":"\\hcancel{>}","\u2AAA":"\\hcancel{<}","\u2AA9":"","\u2AA8":"","\u2AA7":"\\vartriangleright","\u2AA6":"\\vartriangleleft","\u2AA5":"><","\u2AA4":"><","\u2AA3":"\\underline{\\ll}","\u2AA2\u0338":"\\cancel{\\gg}","\u2AA2":"\\gg","\u2AA1\u0338":"\\cancel{\\ll}","\u2AA1":"\\ll","\u2AA0":"\\overset{\\sim}{\\geqq}","\u2A9F":"\\overset{\\sim}{\\leqq}","\u2A9E":"\\overset{\\sim}{>}","\u2A9D":"\\overset{\\sim}{<}","\u2A9C":"","\u2A9B":"","\u2A9A":"\\overset{=}{>}","\u2A99":"\\overset{=}{<}","\u2A98":"","\u2A97":"","\u2A96":"","\u2A95":"","\u2A94":"","\u2A93":"","\u2A92":"\\underset{=}{\\gtrless}","\u2A91":"\\underset{=}{\\lessgtr}","\u2A90":"\\underset{<}{\\gtrsim}","\u2A8F":"\\underset{>}{\\lesssim}","\u2A8E":"\\underset{\\simeq}{>}","\u2A8D":"\\underset{\\simeq}{<}","\u2A8C":"\\gtreqqless","\u2A8B":"\\lesseqqgtr","\u2A8A":"\\underset{\\cancel{\\approx}}{>}","\u2A89":"\\underset{\\approx}{<}","\u2A86":"\\underset{\\approx}{>}","\u2A85":"\\underset{\\approx}{<}","\u2A84":"","\u2A83":"","\u2A82":"","\u2A81":"","\u2A80":"","\u2A7F":"","\u2A7E\u0338":"\\bcancel{\\geq}","\u2A7E":"\\geq","\u2A7D\u0338":"\\bcancel{\\leq}","\u2A7D":"\\leq","\u2A7C":"","\u2A7B":"","\u2A7A":"","\u2A79":"","\u2A78":"\\overset{\\dots}{\\equiv}","\u2A77":"","\u2A76":"===","\u2A75":"==","\u2A74":"::=","\u2A73":"","\u2A72":"\\underset{=}{+}","\u2A71":"\\overset{=}{+}","\u2A70":"\\overset{\\approx}{=}","\u2A6F":"\\overset{\\wedge}{=}","\u2A6E":"\\overset{*}{=}","\u2A6D":"\\dot{\\approx}","\u2A6C":"","\u2A6B":"","\u2A6A":"\\dot{\\sim}","\u2A69":"","\u2A68":"","\u2A67":"\\dot{\\equiv}","\u2A66":"\\underset{\\cdot}{=}","\u2A65":"","\u2A64":"","\u2A63":"\\underset{=}{\\vee}","\u2A62":"\\overset{=}{\\vee}","\u2A61":"ul(vv)","\u2A60":"\\underset{=}{\\wedge}","\u2A5F":"\\underline{\\wedge}","\u2A5E":"\\overset{=}{\\wedge}","\u2A5D":"\\hcancel{\\vee}","\u2A5C":"\\hcancel{\\wedge}","\u2A5B":"","\u2A5A":"","\u2A59":"","\u2A58":"\\vee","\u2A57":"\\wedge","\u2A56":"","\u2A55":"","\u2A54":"","\u2A53":"","\u2A52":"\\dot{\\vee}","\u2A51":"\\dot{\\wedge}","\u2A50":"","\u2A4F":"","\u2A4E":"","\u2A4D":"\\overline{\\cap}","\u2A4C":"\\overline{\\cup}","\u2A4B":"","\u2A4A":"","\u2A49":"","\u2A48":"","\u2A47":"","\u2A46":"","\u2A45":"","\u2A44":"","\u2A43":"\\overline{\\cap}","\u2A42":"\\overline{\\cup}","\u2A41":"","\u2A40":"","\u2A3E":"","\u2A3D":"\\llcorner","\u2A3C":"\\lrcorner","\u2A3B":"","\u2A3A":"","\u2A39":"","\u2A38":"","\u2A37":"","\u2A36":"\\hat{\\otimes}","\u2A35":"","\u2A34":"","\u2A33":"","\u2A32":"\\underline{\\times}","\u2A31":"\\underline{\\times}","\u2A30":"\\dot{\\times}","\u2A2E":"\\bigodot","\u2A2D":"\\bigodot","\u2A2C":"","\u2A2B":"","\u2A2A":"","\u2A29":"","\u2A28":"","\u2A27":"","\u25FB":"\\Box","\u2A26":"\\underset{\\sim}{+}","\u2A25":"\\underset{\\circ}{+}","\u2A24":"\\overset{\\sim}{+}","\u2A23":"\\hat{+}","\u2A22":"\\dot{+}","\u2A21":"\\upharpoonright","\u2A20":">>","\u2A1F":"","\u2A1E":"\\triangleleft","\u2A1D":"\\bowtie","\u29FF":"","\u29FE":"+","\u29FB":"\\hcancel{|||}","\u29FA":"\\hcancel{||}","\u29F9":"\\backslash","\u29F8":"/","\u29F7":"hcancel{\backslash}","\u29F6":"","\u29F5":"\\backslash","\u29F2":"\\Phi","\u29F1":"","\u29F0":"","\u29EE":"","\u29ED":"","\u29EC":"","\u29EB":"\\lozenge","\u29EA":"","\u29E9":"","\u29E8":"","\u29E7":"\\ddagger","\u29E2":"\\sqcup\\sqcup","\u29E1":"","\u29E0":"\\square","\u29DE":"","\u29DD":"","\u29DC":"","\u29DB":"\\{\\{","\u29D9":"\\{","\u29D8":"\\}","\u29D7":"","\u29D6":"","\u29D5":"\\bowtie","\u29D4":"\\bowtie","\u29D3":"\\bowtie","\u29D2":"\\bowtie","\u29D1":"\\bowtie","\u29D0\u0338":"| \\not\\triangleright","\u29D0":"| \\triangleright","\u29CF\u0338":"\\not\\triangleleft |","\u29CF":"\\triangleleft |","\u29CE":"","\u29CD":"\\triangle","\u29CC":"","\u29CB":"\\underline{\\triangle}","\u29CA":"\\dot{\\triangle}","\u29C9":"","\u29C8":"\\boxed{\\circ}","\u29C7":"\\boxed{\\circ}","\u29C6":"\\boxed{\\rightarrow}","\u29C5":"\\bcancel{\\square}","\u29C4":"\\cancel{\\square}","\u29C3":"\\odot","\u29C2":"\\odot","\u29BF":"\\odot","\u29BE":"\\odot","\u29BD":"\\varnothing","\u29BC":"\\oplus","\u29BB":"\\otimes","\u29BA":"","\u29B9":"\\varnothing","\u29B8":"\\varnothing","\u29B7":"\\ominus","\u29B6":"\\ominus","\u29B5":"\\ominus","\u29B4":"\\vec{\\varnothing}","\u29B3":"\\vec{\\varnothing}","\u29B2":"\\dot{\\varnothing}","\u29B1":"\\overline{\\varnothing}","\u29B0":"\\varnothing","\u29AF":"\\measuredangle","\u29AE":"\\measuredangle","\u29AD":"\\measuredangle","\u29AC":"\\measuredangle","\u29AB":"\\measuredangle","\u29AA":"\\measuredangle","\u29A9":"\\measuredangle","\u29A8":"\\measuredangle","\u29A7":"","\u29A6":"","\u29A5":"","\u29A4":"","\u29A3":"\\ulcorner","\u29A2":"\\measuredangle","\u29A1":"\\not\\lor","\u29A0":"\\bcancel{>}","\u2982":":","\u2981":"\\cdot","\u2758":"\\mid","\u25B2":"\\bigtriangleup","\u22FF":"\\Epsilon","\u22FE":"\\overline{\\ni}","\u22FD":"\\overline{\\ni}","\u22FC":"\\in","\u22FB":"\\in","\u22FA":"\\in","\u22F9":"\\underline{\\in}","\u22F8":"\\underline{\\in}","\u22F7":"\\overline{\\in}","\u22F6":"\\overline{\\in}","\u22F5":"\\dot{\\in}","\u22F4":"\\in","\u22F3":"\\in","\u22F2":"\\in","\u22F0":"\\ddots","\u0589":":","\u22E9":"\\underset{\\sim}{\\succ}","\u22E8":"\\underset{\\sim}{\\prec}","\u22E7":"\\underset{\\not\\sim}{>}","\u22E6":"\\underset{\\not\\sim}{<}","\u22E5":"\\not\\sqsupseteq","\u22E4":"\\not\\sqsubseteq","\u22E3":"\\not\\sqsupseteq","\u22E2":"\\not\\sqsubseteq","\u22E1":"\\nsucc","\u22E0":"\\nprec","\u22DF":"\\succ","\u22DE":"\\prec","\u22DD":"\\overline{>}","\u22DC":"\\overline{<}","\u22DB":"\\underset{>}{\\leq}","\u22DA":"\\underset{<}{\\geq}","\u22D5":"\\#","\u22D3":"\\cup","\u22D2":"\\cap","\u22D1":"\\supset","\u22D0":"\\subset","\u22CF":"\\wedge","\u22CE":"\\vee","\u22CD":"\\simeq","\u22C8":"\\Join","\u22C7":"\\ast","\u22C6":"\\star","\u22C4":"\\diamond","\u22BF":"\\triangle","\u22BE":"\\measuredangle","\u22BD":"\\overline{\\lor}","\u22BC":"\\overline{\\land}","\u22BB":"\\underline{\\lor}","\u22BA":"\\top",\u571F:"\\pm",\u5341:"+","\u22B9":"","\u22B7":"\\circ\\multimap","\u22B6":"\\circ\\multimap","\u22B3":"\\triangleright","\u22B2":"\\triangleleft","\u22B1":"\\succ","\u22B0":"\\prec","\u22AB":"|\\models","\u22AA":"|\\models","\u22A7":"\\models","\u22A6":"\\vdash","\u229D":"\\ominus","\u229C":"\\ominus","\u229B":"\\odot","\u229A":"\\odot","\u2294":"\\sqcup","\u2293":"\\sqcap","\u2292":"\\sqsupseteq","\u2291":"\\sqsubseteq","\u2290\u0338":"\\not\\sqsupset","\u2290":"\\sqsupset","\u228F\u0338":"\\not\\sqsubset","\u228F":"\\sqsubset","\u228E":"\\cup","\u228D":"\\cup","\u228C":"\\cup","\u227F\u0338":"\\not\\succsim","\u227F":"\\succsim","\u227E":"\\precsim","\u2279":"\\not\\overset{>}{<}","\u2278":"\\not\\overset{>}{<}","\u2277":"\\overset{>}{<}","\u2276":"\\overset{<}{>}","\u2275":"\\not\\geg","\u2274":"\\not\\leq","\u2273":"\\geg","\u2272":"\\leq","\u226C":"","\u2267":"\\geg","\u2266\u0338":"\\not\\leq","\u2266":"\\leq","\u2263":"\\overset{=}{=} ","\u225E":"\\overset{m}{=} ","\u225D":"\\overset{def}{=}","\u2258":"=","\u2256":"=","\u2255":"=:","\u2253":"\\doteq","\u2252":"\\doteq","\u2251":"\\doteq","\u2250":"\\doteq","\u224F\u0338":"","\u224F":"","\u224E\u0338":"","\u224E":"","\u224C":"\\approx","\u224B":"\\approx","\u224A":"\\approx","\u2242\u0338":"\\neq","\u2242":"=","\u223F":"\\sim","\u223E":"\\infty","\u223D\u0331":"\\sim","\u223D":"\\sim","\u223B":"\\sim","\u223A":":-:","\u2239":"-:","\u2238":"\\bot","\u2237":"::","\u2236":":","\u2223":"\\mid","\u221F":"\\llcorner","\u2218":"\\circ","\u2217":"*","\u2215":"/","\u220E":"\\square","\u220D":"\\ni","\u220A":"\\in","\u2206":"\\Delta","\u2044":"/","\u2AB0\u0338":"\\nsucceq","\u2AB0":"\\succeq","\u2AAF\u0338":"\\npreceq","\u2AAF":"\\preceq","\u2A88":"\\ngeqslant","\u2A87":"\\nleqslant","\u29F3":"\\Phi","\u29E6":"\\models","\u29E5":"\\not\\equiv","\u29E4":"\\approx\\neq","\u29E3":"\\neq","\u29C1":"\\circle","\u29C0":"\\circle","\u25E6":"\\circle","\u25D7":"\\circle","\u25D6":"\\circle","\u25CF":"\\circle","\u25CE":"\\circledcirc","\u25CD":"\\circledcirc","\u25CC":"\\circledcirc","\u25C9":"\\circledcirc","\u25C8":"\\diamond","\u25C7":"\\diamond","\u25C6":"\\diamond","\u25C5":"\\triangleleft","\u25C4":"\\triangleleft","\u25C3":"\\triangleleft","\u25C2":"\\triangleleft","\u25C1":"\\triangleleft","\u25C0":"\\triangleleft","\u25BF":"\\triangledown","\u25BE":"\\triangledown","\u25BD":"\\triangledown","\u25BC":"\\triangledown","\u25B9":"\\triangleright","\u25B8":"\\triangleright","\u25B7":"\\triangleright","\u25B6":"\\triangleright","\u25B5":"\\triangle","\u25B4":"\\triangle","\u25B3":"\\triangle","\u25B1":"\\square","\u25B0":"\\blacksquare","\u25AF":"\\square","\u25AE":"\\blacksquare","\u25AD":"\\square","\u25AB":"\\square","\u25AA":"\\square","\u25A1":"\\square","\u25A0":"\\blacksquare","\u22ED":"\\not\\triangleright","\u22EC":"\\not\\triangleleft","\u22EB":"\\not\\triangleright","\u22EA":"\\not\\triangleleft","\u22D9":"\\ggg","\u22D8":"\\lll","\u22D7":"*>","\u22D6":"<*","\u22D4":"\\pitchfork","\u22CC":"","\u22CB":"\\bowtie","\u22CA":"\\ltimes","\u22C9":"\\rtimes","\u22B5":"\\triangleright","\\triangleleft":"","\u22A5":"\\bot","\u2281":"\\nsucc","\u2280":"\\preceq","\u227D":"\\succeq","\u227C":"\\preceq","\u227B":"\\succ","\u227A":"\\prec","\u2271":"\\geq/","\u2270":"\\leq/","\u226D":"\\neq","\u226B\u0338":"\\not\\gg","\u226B":"\\gg","\u226A\u0338":"\\not\\ll","\u226A":"\\ll","\u2269":"\\ngeqslant","\u2268":"\\nleqslant","\u2261":"\\equiv","\u225F":"\\doteq","\u225C":"\\triangleq","\u225B":"\\doteq","\u225A":"\\triangleq","\u2259":"\\triangleq","\u2257":"\\doteq","\u2254":":=","\u224D":"\\asymp","\u2247":"\\ncong","\u2246":"\\ncong","\u2245":"\\cong","\u2244":"\\not\\simeq","\u2243":"\\simeq","\u2241":"\\not\\sim","\u2226":"\\not\\parallel","\u2225":"\\parallel","\u2224":"\\not|","\u221D":"\\propto","==":"==","=":"=",":=":":=","/=":"=","-=":"-=","+=":"+=","*=":"*=","!=":"!=","\u2260":"\\neq","\u2262":"\\equiv /","\u2249":"\\approx /","\u223C":"sim","\u2248":"\\approx","\u226E":"</","<":"<","\u226F":">/",">=":">=",">":">","\u2265":"\\geq","\u2264":"\\leq","<=":"<=","\u228B":"\\supsetneq","\u228A":"\\subsetneq","\u2289":"\\nsupseteq","\u2288":"\\nsubseteq","\u2287":"\\supseteq","\u2286":"\\subseteq","\u2285":"\\not\\supset","\u2284":"\\not\\subset","\u2283\u20D2":"\\supset |","\u2283":"\\supset","\u2282\u20D2":"\\subset |","\u2282":"\\subset","\u220C":"\\not\\in","\u2209":"\\notin","\u2208":"\\in","\u2201":"C","\u2204":"\\nexists","\u2203":"\\exists","\u2200":"\\forall","\u2227":"\\land","&&":"\\&\\&","\u2228":"\\lor","\u22AF":"\\cancel{\\vDash}","\u22AE":"\\cancel{\\Vdash}","\u22AD":"\\nvDash","\u22AC":"\\nvDash","\u22A9":"\\Vdash","\u22A8":"\\vDash","\u22A4":"\\top","\u22A3":"\\dashv","\u22A2":"\\vdash","\u220B":"\\ni","\u22F1":"\\ddots","\u22EF":"\\hdots","\u22EE":"\\vdots","\u03F6":"\\ni",":":":","...":"\\cdots","..":"..","->":"->","\u2235":"\\because","\u2234":"\\therefore ","\u2063":"\\llbracket",",":",",";":";","\u29FD":"\\}","\u29FC":"\\{","\u2998":"\\]","\u2997":"\\[","\u2996":"\\ll","\u2995":"\\gg","\u2994":"\\gg","\u2993":"\\ll","\u2992":"\\gg","\u2991":"\\ll","\u2990":"\\]","\u298F":"\\]","\u298E":"\\]","\u298D":"\\[","\u298C":"\\[","\u298B":"\\]","\u298A":"\\triangleright","\u2989":"\\triangleleft","\u2988":"|\\)","\u2987":"\\(|","\u2986":"|\\)","\u2985":"\\(\\(","\u2984":"|\\}","\u2983":"\\{|","\u2980":"\\||","\u27EF":"\\left. \\right]","\u27EE":"\\left[ \\right.","\u27ED":"\\left. \\right]]","\u27EC":"\\left[[ \\right.","\u27EB":"\\gg","\u27EA":"\\ll","\u27E7":"\\)|","\u27E6":"\\(|","\u2773":"\\left.\\right)","\u2772":"\\left(\\right.","\u232A":"\\rangle","\u2329":"\\langle","\u230B":"\\rfloor","\u230A":"\\lfloor","\u2309":"\\rceil","\u2308":"\\lceil","\u2016":"\\parallel","}":"\\left.\\right}","{":"\\left{\\right.","]":"\\left]\\right.","[":"\\left[\\right.",")":"\\left.\\right)","(":"\\left(\\right.","\u201D":'\\"',"\u201C":"\\text{``}","\u2019":"'","\u2018":"`",\u03B1:"\\alpha",\u03B2:"\\beta",\u03B3:"\\gamma",\u0393:"\\Gamma",\u03B4:"\\delta",\u0394:"\\Delta","\u03F5":"\\epsilon",\u03B6:"\\zeta",\u03B7:"\\eta",\u03B8:"\\theta",\u0398:"\\Theta",\u03B9:"\\iota",\u03BA:"\\kappa",\u03BB:"\\lambda",\u03BD:"\\nu",\u03BF:"\\omicron",\u03C0:"\\pi",\u03A0:"\\Pi",\u03C1:"\\rho",\u03C3:"\\sigma",\u03A3:"\\Sigma",\u03C4:"\\tau",\u03C5:"\\upsilon",\u03A5:"\\Upsilon",\u03D5:"\\phi",\u03A6:"\\Phi",\u03C7:"\\chi",\u03C8:"\\psi",\u03A8:"\\Psi",\u03C9:"\\omega",\u03A9:"\\Omega",\u2126:"\\Omega","\u2205":"\\emptyset","\u27F2":"\\circlearrowleft","\u27F3":"\\circlearrowright","\xD7":"\\times","\xBD":"\\dfrac{1}{2}",\u03BC:"\\mu",\u04E8:"\\theta","\u2713":"\\checkmark","\u27E9":"\\rangle","\u27E8":"\\langle","\xBC":"\\dfrac{1}{4}","\u2026":"\\ldots",\u210F:"\\hbar",\u211C:"\\mathfrak{R}",\u0472:"\\theta",\u00D8:"\\emptyset",\u03F1:"\\varrho",\u0444:"\\phi",\u2107:"\\varepsilon",T:"T","\u2219":"\\cdot",\u03A1:"P","\u221E":"\\infty",\u1401:"\\nabla",\u019E:"\\eta","\u207A":"^{+}","\u207B":"^{-}","\u207C":"^{=}","\u207D":"^{(}","\u207E":"^{)}","\u3017":"\\)|","\u3016":"\\langle","\u037E":";","\u0D66":"\\circ","\u2534":"\\perp","\u2715":"\\times","\u23BB":"-","\xBB":"\\gg","\u2B06":"\\uparrow","\u2B07":"\\downarrow","\u2B05":"\\leftarrow","\u27A1":"\\rightarrow","\u23BC":"-","\u239C":"\\mid","\u23A5":"\\mid",\u0127:"\\hbar","\u2B95":"\\rightarrow","\u30FB":"\\cdot","\xA6":"\\mid","\xA3":"\\pounds","\xA5":"\\yen","\u2717":"\\times","\u2714":"\\checkmark",\u207F:"^{n}","\xAB":"\\ll",\u0E40:"\\prime","\u2020":"\\dagger","\u2502":"\\mid",$:"\\$","#":"\\#","\u2103":"\\text{\\textdegree C}","\u2109":"\\text{\\textdegree F}","\u2588":"\\blacksquare","\u2127":"\\mho","\u2147":"\\text{e}",\u027C:"r","\u2021":"\\ddagger",\u1F31:"i",\u03D2:"\\Upsilon","\u{1D6FF}":"\\delta","\u02F3":"\\cdot",\u0473:"\\theta","\u{1D719}":"\\phi",\u041F:"\\prod",\u043E:"o",\u0452:"\\hbar","\u0245":"\\Lambda","\u0964":"\\mid","\u20AC":"\\euro",\u1FE1:"\\bar{u}",\u03C6:"\\varphi","\u023C":"c","\u{1D7AE}":"\\epsilon",\u03A7:"\\mathsf{X}","\u2099":"_{n}"}},8249:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.allMathSymbolsByChar=void 0,t4.allMathSymbolsByChar={"&#xA0;":"\\textrm{ }","&#x2203;":"\\exists","&#x2200;":"\\forall","&#x21D4;":"\\iff","&#x21D2;":"=>","&#xAC;":"\\neg","&#x2124;":"\\mathbb{Z}","&#x211D;":"\\mathbb{R}","&#x211A;":"\\mathbb{Q}","&#x2115;":"\\mathbb{N}","&#x2102;":"CC","&#x25A1;":"\\square","&#x22C4;":"\\diamond","&#x25B3;":"\\triangle","&#x2322;":"\\frown","&#x2220;":"\\angle","&#x22F1;":"\\ddots","&#x22EE;":"\\vdots","&#x2235;":"\\because","&#x2234;":"\\therefore","&#x2135;":"\\aleph","&#x2205;":"\\oslash","&#xB1;":"\\pm","&#x2207;":"\\nabla","&#x2202;":"\\partial","&#x222E;":"\\oint","&#x222B;":"\\int","&#x22C3;":"\\cup","&#x222A;":"\\cup","&#x22C2;":"\\cap","&#x2229;":"\\cap","&#x22C1;":"\\vee","&#x2228;":"\\vee","&#x22C0;":"\\wedge","&#x2227;":"\\wedge","&#x220F;":"\\prod","&#x2211;":"\\sum","&#x2299;":"\\bigodot","&#x2297;":"\\bigoplus","&#x2295;":"o+","&#x2218;":"@","&#x22C8;":"\\bowtie","&#x22CA;":"\\rtimes","&#x22C9;":"\\ltimes","&#xF7;":"\\div","&#xD7;":"\\times","\\":"\\backslash","&#x22C6;":"\\star","&#x2217;":"\\star","&#x22C5;":"\\cdot","&#x3A9;":"\\Omega","&#x3C9;":"\\omega","&#x3A8;":"\\Psi","&#x3C8;":"\\psi","&#x3C7;":"\\chi","&#x3C6;":"\\varphi","&#x3A6;":"\\Phi","&#x3D5;":"\\phi","&#x3C5;":"\\upsilon","&#x3C4;":"\\tau","&#x3A3;":"\\Sigma","&#x3C3;":"\\sigma","&#x3C1;":"\\rho","&#x3A0;":"\\Pi","&#x3C0;":"\\pi","&#x39E;":"\\Xi","&#x3BE;":"\\xi","&#x3BD;":"\\nu","&#x3BC;":"\\mu","&#x39B;":"\\Lambda","&#x3BB;":"\\lambda","&#x3BA;":"\\kappa","&#x3B9;":"\\iota","&#x3D1;":"\\vartheta","&#x398;":"\\Theta","&#x3B8;":"\\theta","&#x3B7;":"\\eta","&#x3B6;":"\\zeta","&#x25B;":"\\varepsilon","&#x3B5;":"\\epsilon","&#x394;":"\\Delta","&#x3B4;":"\\delta","&#x393;":"\\Gamma","&#x3B3;":"\\gamma","&#x3B2;":"\\beta","&#x3B1;":"\\alpha","&#x221E;":"\\infty","\u202C":"\\text{\\textdir TRT}","\u200E":"\\text{\\textdir LTR}"}},8171:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.allMathSymbolsByGlyph=void 0,t4.allMathSymbolsByGlyph={" ":"\\textrm{ }","\u2203":"\\exists","\u2200":"\\forall","\u21D4":"\\iff","\u21D2":"\\Rightarrow","\xAC":"\\neg","\u25A1":"\\square","\u22C4":"\\diamond","\u25B3":"\\triangle","\u2322":"\\frown","\u2220":"\\angle","\u22F1":"\\ddots","\u22EE":"\\vdots","\u2235":"\\because","\u2234":"\\therefore",\u2135:"\\aleph","\u2205":"\\emptyset","\xB1":"\\pm","\u2207":"\\nabla","\u2202":"\\partial","\u222E":"\\oint","\u222B":"\\int","\u22C3":"\\cup","\u222A":"\\cup","\u22C2":"\\cap","\u2229":"\\cap","\u22C1":"\\vee","\u2228":"\\vee","\u22C0":"\\wedge","\u2227":"\\wedge","\u220F":"\\prod","\u2211":"\\sum","\u2299":"\\bigodot","\u2297":"\\bigoplus","\u2295":"o+","\u2218":"@","\u22C8":"\\bowtie","\u22CA":"\\rtimes","\u22C9":"\\ltimes","\xF7":"\\div","\xD7":"\\times","\\":"\\backslash","\u22C6":"\\star","\u2217":"\\star","\u22C5":"\\cdot",\u03A9:"\\Omega",\u03C9:"\\omega",\u03A8:"\\Psi",\u03C8:"\\psi",\u03C7:"\\chi",\u03C6:"\\varphi",\u03A6:"\\Phi",\u03D5:"\\phi",\u03C5:"\\upsilon",\u03C4:"\\tau",\u03A3:"\\Sigma",\u03C3:"\\sigma",\u03C1:"\\rho",\u03A0:"\\Pi",\u03C0:"\\pi",\u039E:"\\Xi",\u03BE:"\\xi",\u03BD:"\\nu",\u03BC:"\\mu",\u039B:"\\Lambda",\u03BB:"\\lambda",\u03BA:"\\kappa",\u03B9:"\\iota",\u03D1:"\\vartheta",\u0398:"\\Theta",\u03B8:"\\theta",\u03B7:"\\eta",\u03B6:"\\zeta",\u025B:"\\varepsilon",\u03B5:"\\epsilon",\u0394:"\\Delta",\u03B4:"\\delta",\u0393:"\\Gamma",\u03B3:"\\gamma",\u03B2:"\\beta",\u03B1:"\\alpha","\u221E":"\\infty","\u03F5":"\\epsilon",\u00B5:"\\mu","\xB2":"^{2}",\u0131:"\\imath","\u220E":"\\blacksquare",\u0E21:"\\mathbf{m}",\u2126:"\\Omega","\u27F2":"\\circlearrowleft","\u27F3":"\\circlearrowright",\u0924:" ","\xA5":"\\yen","\u207D":"^{(}","\u207E":"^{)}",\u00DF:"\\ss",\u040B:"\\hbar","\u29B5":"\\ominus","\u22BF":"\\bigtriangleup","\u219B'":"\\nrightarrow","\u2020":"\\dagger",\u0E40:"\\prime",\u767D:" ","\u2FF1":" ",\u2138:"\\wp",\uD4F0:" ",\u207F:"^{n}","\u2714":"\\checkmark","\u2717":"\\times","\xBD":"\\dfrac{1}{2}",\u04E8:"\\theta","\u2713":"\\checkmark","\u27E9":"\\rangle","\u27E8":"\\langle","\u2329":"\\langle","\xBC":"\\dfrac{1}{4}","\u2026":"\\ldots",\u210F:"\\hbar",\u211C:"\\mathfrak{R}",\u0472:"\\theta",\u00D8:"\\emptyset",\u03F1:"\\varrho",\u0444:"\\phi",T:"T","\u2219":"\\cdot",\u03A1:"P",\u1401:"\\nabla",\u019E:"\\eta",\u0263:"\\gamma",\u045B:"\\hbar",\u0190:"\\varepsilon","\u2145":"\\_{D}","\u{1D706}":"\\lambda","\u3017":"\\rangle","\u3016":"\\langle","\u037E":";","\u{1D465}":"x","\u{1D466}":"y","\u{1D467}":"z","\u{1D456}":"i","\u{1D457}":"j","\u{1D458}":"k","\u{1D45A}":"m","\u{1D452}":"e","\u{1D45F}":"r",\u0273:"\\eta","\u{1D6FD}":"\\beta","\u2375":"\\omega","\u2118":"\\wp","\u{1D70B}":"\\pi",\u0404:"\\epsilon",\u0454:"\\epsilon","\u{1D700}":"\\epsilon",\u043F:"\\pi",\u039D:"\\nu",\u0275:"\\theta","\u{1D713}":"\\psi","\u03F4":"\\theta",\u0278:"\\phi","\u04F6":"\\Gamma",\u026D:"\\ell",\u028B:"\\upsilon","\u{1D6DF}":"\\varphi","\u236C":"\\theta",\u0424:"\\Phi","\u{1D711}":"\\varphi","\u2148":"i",\u03BF:"o",\u01A1:"o",\u0192:"f","\u2374":"\\rho","\u{1F1FD}":"x","\u{1D45D}":"p","\u{1D45E}":"q","\u{1D460}":"s","\u{1D461}":"t","\u{1D462}":"u","\u{1D463}":"v","\u{1D464}":"w","\u{1D44E}":"a","\u{1D44F}":"b","\u{1D450}":"c","\u{1D451}":"d","\u{1D453}":"f","\u{1D454}":"g","\u{1D459}":"l","\u{1D45B}":"n","\u{1D45C}":"o","\u{1D500}":"w","\u{1D69F}":"v",\u1E41:"m","\u0D66":"\\circ","\u2534":"\\perp","\u2715":"\\times","\u2223":"\\mid",\u0553:"\\Phi","\u239C":"\\mid",\u0127:"\\hbar",\u1348:" ","\u29A8":"\\llbracket",\u1EBF:"\\hat{e}","\xA2":"\\cent","\u2939":"\\downarrow","\u2938":"\\downarrow","\u2937":"\\Rsh","\u2936":"\\Lsh","\u2935":"\\downarrow","\u2934":"\\uparrow","\u2933":"\\rightarrow","|":"\\mid","\u23A5":"\\mid","\u2665":"\\heartsuit",\u041E:"0",\u03A5:"Y",\u0445:"x","\u{1D4CF}":"z","\u{1D4CE}":"y","\u{1D4CD}":"x",\u0440:"p",\u0430:"a","\xA3":"\\pounds",m:"m","\u{1D6B5}":"\\Xi","\u24EA":"\\textcircled{0}","\u2460":"\\textcircled{1}","\u2461":"\\textcircled{2}","\u2462":"\\textcircled{3}","\u2463":"\\textcircled{4}","\u2464":"\\textcircled{5}","\u2465":"\\textcircled{6}","\u2466":"\\textcircled{7}","\u2467":"\\textcircled{8}","\u2468":"\\textcircled{9}","\u2469":"\\textcircled{10}","\u246A":"\\textcircled{11}","\u246B":"\\textcircled{12}","\u246C":"\\textcircled{13}","\u246D":"\\textcircled{14}","\u246E":"\\textcircled{15}","\u246F":"\\textcircled{16}","\u2470":"\\textcircled{17}","\u2471":"\\textcircled{18}","\u2472":"\\textcircled{19}","\u2473":"\\textcircled{20}","\u3251":"\\textcircled{21}","\u3252":"\\textcircled{22}","\u3253":"\\textcircled{23}","\u3254":"\\textcircled{24}","\u3255":"\\textcircled{25}","\u3256":"\\textcircled{26}","\u3257":"\\textcircled{27}","\u3258":"\\textcircled{28}","\u3259":"\\textcircled{29}","\u325A":"\\textcircled{30}","\u325B":"\\textcircled{31}","\u325C":"\\textcircled{32}","\u325D":"\\textcircled{33}","\u325E":"\\textcircled{34}","\u325F":"\\textcircled{35}","\u32B1":"\\textcircled{36}","\u32B2":"\\textcircled{37}","\u32B3":"\\textcircled{38}","\u32B4":"\\textcircled{39}","\u32B5":"\\textcircled{40}","\u32B6":"\\textcircled{41}","\u32B7":"\\textcircled{42}","\u32B8":"\\textcircled{43}","\u32B9":"\\textcircled{44}","\u32BA":"\\textcircled{45}","\u32BB":"\\textcircled{46}","\u32BC":"\\textcircled{47}","\u32BD":"\\textcircled{48}","\u32BE":"\\textcircled{49}","\u32BF":"\\textcircled{50}","&":"\\&","\u2016":"\\parallel","%":"\\%","\u201C":"\\text{``}",$:"\\$","#":"\\#","\u2103":"\\text{\\textdegree C}","\u2109":"\\text{\\textdegree F}","\u2588":"\\blacksquare","\u2127":"\\mho","\u230B":"\\rfloor","\u230A":"\\lfloor","\u2309":"\\rceil","\u2308":"\\lceil",\u2107:"\\varepsilon","\u2147":"\\text{e}",\u027C:"r","\u219B":"\\nrightarrow","\u02C6":"\\hat{}","\u203E":"\\overline","\u2192":"\\rightarrow","\u2021":"\\ddagger","\u30FB":"\\cdot","\u25B1":"\\square","\u2206":"\\Delta",\u1F31:"i","\u2221":"\\angle",\u03D2:"\\Upsilon","\u2193":"\\downarrow","\u2191":"\\uparrow","\xBB":"\\gg","\u22A4":"\\top","\u29F8":"/","\u{1D6FF}":"\\delta","\u02F3":"\\cdot","\u0589":":","\u29AA":"\\measuredangle","\u29A9":"\\measuredangle","\u29AB":"\\measuredangle","\u2981":"\\cdot",\u0473:"\\theta","\u29A2":"\\measuredangle","\xB8":",","\u23BB":"\\overline","\u27E6":"\\llbracket","\u{1D719}":"\\phi",\u041F:"\\prod",\u043E:"o","\u2248":"\\approx","\u2264":"\\leq",\u0452:"\\hbar","\u0245":"\\Lambda",\u571F:"\\pm","\u23BC":"-",\u5341:"+","\u2260":"\\neq","\u2190":"\\leftarrow","\u0964":"\\mid","\u20AC":"\\euro","\u02D8":" ",\u1FE1:"\\bar{u}","\u2225":"\\parallel","\u2194":"\\leftrightarrow","\u221A":"\\sqrt{}","\u023C":"c","\u{1D7AE}":"\\epsilon","\xB7":"\\cdot","\u29AC":"\\measuredangle","\u29AE":"\\measuredangle","\u29AD":"\\measuredangle","\xAB":"\\ll",\u03A7:"\\mathsf{X}","\u2502":"\\mid","\u232A":"\\rangle","\u2099":"_{n}","\u25AB":"\\square","\u25CF":"\\circle","\u201D":'\\"'}},5406:function(e4,t4,r3){"use strict";var n3=this&&this.__createBinding||(Object.create?function(e5,t5,r4,n4){n4===void 0&&(n4=r4);var o2=Object.getOwnPropertyDescriptor(t5,r4);o2&&!("get"in o2?!t5.__esModule:o2.writable||o2.configurable)||(o2={enumerable:!0,get:function(){return t5[r4]}}),Object.defineProperty(e5,n4,o2)}:function(e5,t5,r4,n4){n4===void 0&&(n4=r4),e5[n4]=t5[r4]}),o=this&&this.__exportStar||function(e5,t5){for(var r4 in e5)r4==="default"||Object.prototype.hasOwnProperty.call(t5,r4)||n3(t5,e5,r4)};Object.defineProperty(t4,"__esModule",{value:!0}),o(r3(2965),t4),o(r3(9039),t4),o(r3(8249),t4),o(r3(8171),t4),o(r3(472),t4),o(r3(4320),t4),o(r3(6122),t4)},472:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.latexAccents=void 0,t4.latexAccents=["\\hat","\\bar","\\underbrace","\\overbrace"]},4320:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.mathNumberByGlyph=void 0,t4.mathNumberByGlyph={"\u2080":"_{0}","\u2081":"_{1}","\u2082":"_{2}","\u2083":"_{3}","\u2084":"_{4}","\u2085":"_{5}","\u2086":"_{6}","\u2087":"_{7}","\u2088":"_{8}","\u2089":"_{9}","\u2070":"^{0}","\xB9":"^{1}","\xB2":"^{2}","\xB3":"^{3}","\u2074":"^{4}","\u2075":"^{5}","\u2076":"^{6}","\u2077":"^{7}","\u2078":"^{8}","\u2079":"^{9}",\u207F:"^{n}","\u2099":"_{n}","\u24EA":"\\textcircled{0}","\u2460":"\\textcircled{1}","\u2461":"\\textcircled{2}","\u2462":"\\textcircled{3}","\u2463":"\\textcircled{4}","\u2464":"\\textcircled{5}","\u2465":"\\textcircled{6}","\u2466":"\\textcircled{7}","\u2467":"\\textcircled{8}","\u2468":"\\textcircled{9}","\u2469":"\\textcircled{10}","\u246A":"\\textcircled{11}","\u246B":"\\textcircled{12}","\u246C":"\\textcircled{13}","\u246D":"\\textcircled{14}","\u246E":"\\textcircled{15}","\u246F":"\\textcircled{16}","\u2470":"\\textcircled{17}","\u2471":"\\textcircled{18}","\u2472":"\\textcircled{19}","\u2473":"\\textcircled{20}","\u3251":"\\textcircled{21}","\u3252":"\\textcircled{22}","\u3253":"\\textcircled{23}","\u3254":"\\textcircled{24}","\u3255":"\\textcircled{25}","\u3256":"\\textcircled{26}","\u3257":"\\textcircled{27}","\u3258":"\\textcircled{28}","\u3259":"\\textcircled{29}","\u325A":"\\textcircled{30}","\u325B":"\\textcircled{31}","\u325C":"\\textcircled{32}","\u325D":"\\textcircled{33}","\u325E":"\\textcircled{34}","\u325F":"\\textcircled{35}","\u32B1":"\\textcircled{36}","\u32B2":"\\textcircled{37}","\u32B3":"\\textcircled{38}","\u32B4":"\\textcircled{39}","\u32B5":"\\textcircled{40}","\u32B6":"\\textcircled{41}","\u32B7":"\\textcircled{42}","\u32B8":"\\textcircled{43}","\u32B9":"\\textcircled{44}","\u32BA":"\\textcircled{45}","\u32BB":"\\textcircled{46}","\u32BC":"\\textcircled{47}","\u32BD":"\\textcircled{48}","\u32BE":"\\textcircled{49}","\u32BF":"\\textcircled{50}","\xBD":"\\dfrac{1}{2}","\u2153":"\\dfrac{1}{3}","\u2154":"\\dfrac{2}{3}","\xBC":"\\dfrac{1}{4}","\xBE":"\\dfrac{3}{4}","\u2155":"\\dfrac{1}{5}","\u2156":"\\dfrac{2}{5}","\u2157":"\\dfrac{3}{5}","\u2158":"\\dfrac{4}{5}","\u2159":"\\dfrac{1}{6}","\u215A":"\\dfrac{5}{6}","\u2150":"\\dfrac{1}{7}","\u215B":"\\dfrac{1}{8}","\u215C":"\\dfrac{3}{8}","\u215D":"\\dfrac{5}{8}","\u215E":"\\dfrac{7}{8}","\u2151":"\\dfrac{1}{9}","\u2152":"\\dfrac{1}{10}"}},6122:(e4,t4)=>{"use strict";Object.defineProperty(t4,"__esModule",{value:!0}),t4.HashUTF8ToLtXConverter=void 0,t4.HashUTF8ToLtXConverter=class{convert(e5){if(e5.match(/[a-z0-9]/i))return e5;let t5=r3[e5];return t5?this.convertAccentCharToLtX(t5)||e5:this.convertSpecialCharToLtX(e5)||e5}convertAccentCharToLtX(e5){let{char:t5,accent:r4}=e5,o2=n3[r4];return o2?`\\${o2}{${t5}}`:null}convertSpecialCharToLtX(e5){let t5=o[e5];if(!t5)return null;let{letter:r4,fontCmd:n4}=t5;return`\\${n4}{${r4}}`}};let r3={\u00E1:{char:"a",accent:"\xB4"},\u00E0:{char:"a",accent:"`"},\u00E2:{char:"a",accent:"^"},\u00E3:{char:"a",accent:"~"},\u00E4:{char:"a",accent:"\xA8"},\u00E5:{char:"a",accent:"\u02DA"},\u0105:{char:"a",accent:"\u02D9"},\u0103:{char:"a",accent:"\u02D8"},\u01CE:{char:"a",accent:"\u02C7"},\u01DF:{char:"a",accent:"\u02C6"},\u01FB:{char:"a",accent:"\u02D9"},\u01E1:{char:"a",accent:"-"},\u0101:{char:"a",accent:"-"},\u00E9:{char:"e",accent:"\xB4"},\u00E8:{char:"e",accent:"`"},\u00EA:{char:"e",accent:"^"},\u00EB:{char:"e",accent:"\xA8"},\u0119:{char:"e",accent:"\u02D9"},\u011B:{char:"e",accent:"\u02C7"},\u0207:{char:"i",accent:"^"},\u0451:{char:"e",accent:"\xA8"},\u0113:{char:"e",accent:"-"},\u00ED:{char:"i",accent:"\xB4"},\u00EC:{char:"i",accent:"`"},\u00EE:{char:"i",accent:"^"},\u00EF:{char:"i",accent:"\xA8"},\u012F:{char:"i",accent:"\u02D9"},\u01D0:{char:"i",accent:"\u02C7"},\u0209:{char:"i",accent:"`"},\u020B:{char:"i",accent:"\xA8"},\u012B:{char:"i",accent:"-"},\u00F3:{char:"o",accent:"\xB4"},\u00F2:{char:"o",accent:"`"},\u00F4:{char:"o",accent:"^"},\u00F5:{char:"o",accent:"~"},\u00F6:{char:"o",accent:"\xA8"},\u0151:{char:"o",accent:"\u02DD"},\u01D2:{char:"o",accent:"\u02C7"},\u020D:{char:"o",accent:"`"},\u020F:{char:"o",accent:"\xA8"},\u022B:{char:"o",accent:"\u02D8"},\u022D:{char:"o",accent:"\u02DD"},\u022F:{char:"o",accent:"\u02D9"},\u014D:{char:"o",accent:"-"},\u00FA:{char:"u",accent:"\xB4"},\u00F9:{char:"u",accent:"`"},\u00FB:{char:"u",accent:"^"},\u00FC:{char:"u",accent:"\xA8"},\u0171:{char:"u",accent:"\u02DD"},\u01D4:{char:"u",accent:"\u02C7"},\u01D6:{char:"u",accent:"\xA8"},\u01D8:{char:"u",accent:"\xA8"},\u01DA:{char:"u",accent:"\xA8"},\u01DC:{char:"u",accent:"\xA8"},\u0215:{char:"u",accent:"`"},\u0217:{char:"u",accent:"\xA8"},\u016B:{char:"u",accent:"-"},\u00FD:{char:"y",accent:"\xB4"},\u1EF3:{char:"y",accent:"`"},\u0177:{char:"y",accent:"^"},\u00FF:{char:"y",accent:"\xA8"},\u0233:{char:"y",accent:"-"},\u00C1:{char:"A",accent:"\xB4"},\u00C0:{char:"A",accent:"`"},\u00C2:{char:"A",accent:"^"},\u00C3:{char:"A",accent:"~"},\u00C4:{char:"A",accent:"\xA8"},\u00C5:{char:"A",accent:"\u02DA"},\u212B:{char:"A",accent:"\u02DA"},\u0226:{char:"A",accent:"\u02D9"},\u0102:{char:"A",accent:"\u02D8"},\u01CD:{char:"A",accent:"\u02C7"},\u01DE:{char:"A",accent:"\u02DD"},\u01FA:{char:"A",accent:"\u02DA"},\u01E0:{char:"A",accent:"-"},\u0100:{char:"A",accent:"-"},\u00C9:{char:"E",accent:"\xB4"},\u00C8:{char:"E",accent:"`"},\u0116:{char:"E",accent:"\u02D9"},\u00CA:{char:"E",accent:"^"},\u00CB:{char:"E",accent:"\xA8"},\u011A:{char:"E",accent:"\u02C7"},\u0204:{char:"E",accent:"`"},\u0206:{char:"E",accent:"\xA8"},\u0112:{char:"E",accent:"-"},\u00CD:{char:"I",accent:"\xB4"},\u00CC:{char:"I",accent:"`"},\u00CE:{char:"I",accent:"^"},\u00CF:{char:"I",accent:"\xA8"},\u012C:{char:"I",accent:"\u02D8"},\u01CF:{char:"I",accent:"\u02C7"},\u0208:{char:"I",accent:"`"},\u020A:{char:"I",accent:"\xA8"},\u012A:{char:"I",accent:"-"},\u00D3:{char:"O",accent:"\xB4"},\u00D2:{char:"O",accent:"`"},\u00D4:{char:"O",accent:"^"},\u00D5:{char:"O",accent:"~"},\u00D6:{char:"O",accent:"\xA8"},\u0150:{char:"O",accent:"\u02DD"},\u01D1:{char:"O",accent:"\u02C7"},\u020C:{char:"O",accent:"`"},\u020E:{char:"O",accent:"\xA8"},\u022A:{char:"O",accent:"\u02D8"},\u022C:{char:"O",accent:"\u02DD"},\u022E:{char:"O",accent:"\u02D9"},\u014C:{char:"O",accent:"-"},\u00DA:{char:"U",accent:"\xB4"},\u00D9:{char:"U",accent:"`"},\u00DB:{char:"U",accent:"^"},\u00DC:{char:"U",accent:"\xA8"},\u0170:{char:"U",accent:"\u02DD"},\u01D3:{char:"U",accent:"\u02C7"},\u01D5:{char:"U",accent:"\xA8"},\u0214:{char:"U",accent:"`"},\u0216:{char:"U",accent:"\xA8"},\u016A:{char:"U",accent:"-"},\u00DD:{char:"Y",accent:"\xB4"},\u1EF2:{char:"Y",accent:"`"},\u0176:{char:"Y",accent:"^"},\u0178:{char:"Y",accent:"\xA8"},\u0232:{char:"Y",accent:"-"},\u00F1:{char:"n",accent:"~"},\u00D1:{char:"N",accent:"~"},\u00E7:{char:"c",accent:"\u02D9"},\u00C7:{char:"C",accent:"\u02D9"},\u1E7D:{char:"v",accent:"~"},\u1E7C:{char:"V",accent:"~"},\u0135:{char:"j",accent:"^"},\u0134:{char:"J",accent:"^"},\u017A:{char:"z",accent:"\xB4"},\u0179:{char:"Z",accent:"\xB4"},\u017B:{char:"Z",accent:"^"},\u017C:{char:"z",accent:"^"},\u017D:{char:"Z",accent:"\u02C7"},\u017E:{char:"z",accent:"\u02C7"},\u1E91:{char:"z",accent:"\u02C6"}},n3={"\xB4":"acute","`":"grave","^":"hat","~":"tilde","\xA8":"ddot","\u02DA":"mathring","\u02D8":"breve","\u02C7":"check","\u02DD":"H","\u02D9":"dot","-":"bar","\u02C6":"hat","\u02DC":"tilde"},o={"\u{1D400}":{letter:"A",fontCmd:"mathbf"},"\u{1D401}":{letter:"B",fontCmd:"mathbf"},"\u{1D402}":{letter:"C",fontCmd:"mathbf"},"\u{1D403}":{letter:"D",fontCmd:"mathbf"},"\u{1D404}":{letter:"E",fontCmd:"mathbf"},\u0395:{letter:"E",fontCmd:"mathbf"},"\u{1D405}":{letter:"F",fontCmd:"mathbf"},"\u{1D406}":{letter:"G",fontCmd:"mathbf"},"\u{1D407}":{letter:"H",fontCmd:"mathbf"},"\u{1D408}":{letter:"I",fontCmd:"mathbf"},"\u{1D409}":{letter:"J",fontCmd:"mathbf"},"\u{1D40A}":{letter:"K",fontCmd:"mathbf"},"\u{1D40B}":{letter:"L",fontCmd:"mathbf"},"\u{1D40C}":{letter:"M",fontCmd:"mathbf"},"\u{1D40D}":{letter:"N",fontCmd:"mathbf"},"\u{1D40E}":{letter:"O",fontCmd:"mathbf"},"\u{1D40F}":{letter:"P",fontCmd:"mathbf"},"\u{1D410}":{letter:"Q",fontCmd:"mathbf"},"\u{1D411}":{letter:"R",fontCmd:"mathbf"},"\u{1D412}":{letter:"S",fontCmd:"mathbf"},"\u{1D413}":{letter:"T",fontCmd:"mathbf"},"\u{1D414}":{letter:"U",fontCmd:"mathbf"},"\u{1D415}":{letter:"V",fontCmd:"mathbf"},"\u{1D416}":{letter:"W",fontCmd:"mathbf"},"\u{1D417}":{letter:"X",fontCmd:"mathbf"},"\u{1D786}":{letter:"X",fontCmd:"mathbf"},"\u{1D418}":{letter:"Y",fontCmd:"mathbf"},"\u{1D419}":{letter:"Z",fontCmd:"mathbf"},"\u{1D7CE}":{letter:"0",fontCmd:"mathbf"},"\u{1D7CF}":{letter:"1",fontCmd:"mathbf"},"\u{1D7D0}":{letter:"2",fontCmd:"mathbf"},"\u{1D7D1}":{letter:"3",fontCmd:"mathbf"},"\u{1D7D2}":{letter:"4",fontCmd:"mathbf"},"\u{1D7D3}":{letter:"5",fontCmd:"mathbf"},"\u{1D7D4}":{letter:"6",fontCmd:"mathbf"},"\u{1D7D5}":{letter:"7",fontCmd:"mathbf"},"\u{1D7D6}":{letter:"8",fontCmd:"mathbf"},"\u{1D7D7}":{letter:"9",fontCmd:"mathbf"},"\u{1D434}":{letter:"A",fontCmd:"mathit"},"\u{1D435}":{letter:"B",fontCmd:"mathit"},"\u{1D436}":{letter:"C",fontCmd:"mathit"},"\u{1D437}":{letter:"D",fontCmd:"mathit"},"\u{1D438}":{letter:"E",fontCmd:"mathit"},"\u{1D439}":{letter:"F",fontCmd:"mathit"},"\u{1D43A}":{letter:"G",fontCmd:"mathit"},"\u{1D43B}":{letter:"H",fontCmd:"mathit"},"\u{1D43C}":{letter:"I",fontCmd:"mathit"},\u0399:{letter:"I",fontCmd:"mathit"},"\u{1D43D}":{letter:"J",fontCmd:"mathit"},"\u{1D43E}":{letter:"K",fontCmd:"mathit"},"\u{1D43F}":{letter:"L",fontCmd:"mathit"},"\u{1D440}":{letter:"M",fontCmd:"mathit"},"\u{1D441}":{letter:"N",fontCmd:"mathit"},"\u{1D442}":{letter:"O",fontCmd:"mathit"},"\u{1D443}":{letter:"P",fontCmd:"mathit"},"\u{1D444}":{letter:"Q",fontCmd:"mathit"},"\u{1D445}":{letter:"R",fontCmd:"mathit"},"\u{1D446}":{letter:"S",fontCmd:"mathit"},"\u{1D447}":{letter:"T",fontCmd:"mathit"},"\u{1D448}":{letter:"U",fontCmd:"mathit"},"\u{1D449}":{letter:"V",fontCmd:"mathit"},"\u{1D44A}":{letter:"W",fontCmd:"mathit"},"\u{1D44B}":{letter:"X",fontCmd:"mathit"},"\u{1D44C}":{letter:"Y",fontCmd:"mathit"},"\u{1D44D}":{letter:"Z",fontCmd:"mathit"},"\u{1D538}":{letter:"A",fontCmd:"mathbb"},"\u{1D539}":{letter:"B",fontCmd:"mathbb"},\u2102:{letter:"C",fontCmd:"mathbb"},"\u{1D53B}":{letter:"D",fontCmd:"mathbb"},"\u{1D53C}":{letter:"E",fontCmd:"mathbb"},"\u{1D53D}":{letter:"F",fontCmd:"mathbb"},"\u{1D53E}":{letter:"G",fontCmd:"mathbb"},\u210D:{letter:"H",fontCmd:"mathbb"},"\u{1D540}":{letter:"I",fontCmd:"mathbb"},"\u{1D541}":{letter:"J",fontCmd:"mathbb"},"\u{1D542}":{letter:"K",fontCmd:"mathbb"},"\u{1D543}":{letter:"L",fontCmd:"mathbb"},"\u{1D544}":{letter:"M",fontCmd:"mathbb"},\u2115:{letter:"N",fontCmd:"mathbb"},"\u{1D546}":{letter:"O",fontCmd:"mathbb"},\u2119:{letter:"P",fontCmd:"mathbb"},\u211A:{letter:"Q",fontCmd:"mathbb"},\u211D:{letter:"R",fontCmd:"mathbb"},"\u{1D54A}":{letter:"S",fontCmd:"mathbb"},"\u{1D54B}":{letter:"T",fontCmd:"mathbb"},"\u{1D54C}":{letter:"U",fontCmd:"mathbb"},"\u{1D54D}":{letter:"V",fontCmd:"mathbb"},"\u{1D54E}":{letter:"W",fontCmd:"mathbb"},"\u{1D54F}":{letter:"X",fontCmd:"mathbb"},"\u{1D550}":{letter:"Y",fontCmd:"mathbb"},\u2124:{letter:"Z",fontCmd:"mathbb"},"\u{1D7D8}":{letter:"0",fontCmd:"mathbb"},"\u{1D7D9}":{letter:"1",fontCmd:"mathbb"},"\u{1D7DA}":{letter:"2",fontCmd:"mathbb"},"\u{1D7DB}":{letter:"3",fontCmd:"mathbb"},"\u{1D7DC}":{letter:"4",fontCmd:"mathbb"},"\u{1D7DD}":{letter:"5",fontCmd:"mathbb"},"\u{1D7DE}":{letter:"6",fontCmd:"mathbb"},"\u{1D7DF}":{letter:"7",fontCmd:"mathbb"},"\u{1D7E0}":{letter:"8",fontCmd:"mathbb"},"\u{1D7E1}":{letter:"9",fontCmd:"mathbb"},"\u{1D49C}":{letter:"A",fontCmd:"mathcal"},"\u{1D4D0}":{letter:"A",fontCmd:"mathcal"},\u212C:{letter:"B",fontCmd:"mathcal"},"\u{1D49E}":{letter:"C",fontCmd:"mathcal"},"\u{1D49F}":{letter:"D",fontCmd:"mathcal"},"\u{1D4D3}":{letter:"D",fontCmd:"mathcal"},\u2130:{letter:"E",fontCmd:"mathcal"},\u2131:{letter:"F",fontCmd:"mathcal"},"\u{1D4D5}":{letter:"F",fontCmd:"mathcal"},"\u{1D4A2}":{letter:"G",fontCmd:"mathcal"},\u210B:{letter:"H",fontCmd:"mathcal"},\u2110:{letter:"I",fontCmd:"mathcal"},"\u{1D4A5}":{letter:"J",fontCmd:"mathcal"},"\u{1D4A6}":{letter:"K",fontCmd:"mathcal"},\u2112:{letter:"L",fontCmd:"mathcal"},"\u{1D4DB}":{letter:"L",fontCmd:"mathcal"},\u2133:{letter:"M",fontCmd:"mathcal"},"\u{1D4A9}":{letter:"N",fontCmd:"mathcal"},"\u{1D4AA}":{letter:"O",fontCmd:"mathcal"},"\u{1D4DE}":{letter:"O",fontCmd:"mathcal"},"\u{1D4AB}":{letter:"P",fontCmd:"mathcal"},"\u{1D4AC}":{letter:"Q",fontCmd:"mathcal"},\u211B:{letter:"R",fontCmd:"mathcal"},"\u{1D57D}":{letter:"R",fontCmd:"mathcal"},"\u211F":{letter:"R",fontCmd:"mathcal"},"\u{1D4AE}":{letter:"S",fontCmd:"mathcal"},"\u{1D4AF}":{letter:"T",fontCmd:"mathcal"},"\u{1D4B0}":{letter:"U",fontCmd:"mathcal"},"\u{1D4B1}":{letter:"V",fontCmd:"mathcal"},"\u{1D4B2}":{letter:"W",fontCmd:"mathcal"},"\u{1D4B3}":{letter:"X",fontCmd:"mathcal"},"\u{1D4B4}":{letter:"Y",fontCmd:"mathcal"},"\u{1D4B5}":{letter:"Z",fontCmd:"mathcal"},"\u{1D504}":{letter:"A",fontCmd:"mathfrak"},"\u{1D505}":{letter:"B",fontCmd:"mathfrak"},\u212D:{letter:"C",fontCmd:"mathfrak"},"\u{1D507}":{letter:"D",fontCmd:"mathfrak"},"\u{1D508}":{letter:"E",fontCmd:"mathfrak"},"\u{1D509}":{letter:"F",fontCmd:"mathfrak"},"\u{1D50A}":{letter:"G",fontCmd:"mathfrak"},\u210C:{letter:"H",fontCmd:"mathfrak"},\u2111:{letter:"I",fontCmd:"mathfrak"},"\u{1D50D}":{letter:"J",fontCmd:"mathfrak"},"\u{1D50E}":{letter:"K",fontCmd:"mathfrak"},"\u{1D50F}":{letter:"L",fontCmd:"mathfrak"},"\u{1D510}":{letter:"M",fontCmd:"mathfrak"},"\u{1D511}":{letter:"N",fontCmd:"mathfrak"},"\u{1D512}":{letter:"O",fontCmd:"mathfrak"},"\u{1D513}":{letter:"P",fontCmd:"mathfrak"},"\u{1D514}":{letter:"Q",fontCmd:"mathfrak"},\u211C:{letter:"R",fontCmd:"mathfrak"},"\u{1D516}":{letter:"S",fontCmd:"mathfrak"},"\u{1D517}":{letter:"T",fontCmd:"mathfrak"},"\u{1D518}":{letter:"U",fontCmd:"mathfrak"},"\u{1D519}":{letter:"V",fontCmd:"mathfrak"},"\u{1D51A}":{letter:"W",fontCmd:"mathfrak"},"\u{1D51B}":{letter:"X",fontCmd:"mathfrak"},"\u{1D51C}":{letter:"Y",fontCmd:"mathfrak"},\u2128:{letter:"Z",fontCmd:"mathfrak"},"\u{1D5A0}":{letter:"A",fontCmd:"mathsf"},\u0391:{letter:"A",fontCmd:"mathsf"},"\u{1D5A1}":{letter:"B",fontCmd:"mathsf"},\u0392:{letter:"B",fontCmd:"mathsf"},"\u{1D5A2}":{letter:"C",fontCmd:"mathsf"},"\u{1D5A3}":{letter:"D",fontCmd:"mathsf"},"\u{1D5A4}":{letter:"E",fontCmd:"mathsf"},"\u{1D5A5}":{letter:"F",fontCmd:"mathsf"},"\u{1D5A6}":{letter:"G",fontCmd:"mathsf"},"\u{1D5A7}":{letter:"H",fontCmd:"mathsf"},"\u{1D5A8}":{letter:"I",fontCmd:"mathsf"},"\u{1D5A9}":{letter:"J",fontCmd:"mathsf"},"\u0237":{letter:"J",fontCmd:"mathsf"},"\u{1D5AA}":{letter:"K",fontCmd:"mathsf"},\u039A:{letter:"K",fontCmd:"mathsf"},"\u{1D5AB}":{letter:"L",fontCmd:"mathsf"},"\u{1D5AC}":{letter:"M",fontCmd:"mathsf"},"\u{1D5AD}":{letter:"N",fontCmd:"mathsf"},"\u{1D5AE}":{letter:"O",fontCmd:"mathsf"},"\u{1D5AF}":{letter:"P",fontCmd:"mathsf"},"\u{1D5B0}":{letter:"Q",fontCmd:"mathsf"},"\u{1D5B1}":{letter:"R",fontCmd:"mathsf"},"\u{1D5B2}":{letter:"S",fontCmd:"mathsf"},"\u{1D5B3}":{letter:"T",fontCmd:"mathsf"},"\u{1D5B4}":{letter:"U",fontCmd:"mathsf"},"\u{1D5B5}":{letter:"V",fontCmd:"mathsf"},"\u{1D5B6}":{letter:"W",fontCmd:"mathsf"},"\u{1D5B7}":{letter:"X",fontCmd:"mathsf"},\u03A7:{letter:"X",fontCmd:"mathsf"},"\u{1D5B8}":{letter:"Y",fontCmd:"mathsf"},"\u{1D5B9}":{letter:"Z",fontCmd:"mathsf"},"\u{1D6A8}":{letter:"A",fontCmd:"mathtt"},"\u{1D6A9}":{letter:"B",fontCmd:"mathtt"},"\u{1D6AA}":{letter:"\\Gamma",fontCmd:"mathtt"},"\u{1D6AB}":{letter:"\\Delta",fontCmd:"mathtt"},"\u{1D6AC}":{letter:"E",fontCmd:"mathtt"},"\u{1D6AD}":{letter:"F",fontCmd:"mathtt"},"\u{1D6AE}":{letter:"G",fontCmd:"mathtt"},"\u{1D6AF}":{letter:"\\Theta",fontCmd:"mathtt"},"\u{1D6B0}":{letter:"I",fontCmd:"mathtt"},"\u{1D6B1}":{letter:"J",fontCmd:"mathtt"},"\u{1D6B2}":{letter:"\\Lambda",fontCmd:"mathtt"},"\u{1D6B3}":{letter:"L",fontCmd:"mathtt"},"\u{1D6B4}":{letter:"M",fontCmd:"mathtt"},"\u{1D6B5}":{letter:"\\Pi",fontCmd:"mathtt"},"\u{1D6B6}":{letter:"O",fontCmd:"mathtt"},"\u{1D6B7}":{letter:"\\Pi",fontCmd:"mathtt"},"\u{1D6B8}":{letter:"Q",fontCmd:"mathtt"},"\u{1D6B9}":{letter:"R",fontCmd:"mathtt"},"\u{1D6BA}":{letter:"S",fontCmd:"mathtt"},"\u{1D6BB}":{letter:"T",fontCmd:"mathtt"},"\u{1D6BC}":{letter:"U",fontCmd:"mathtt"},"\u{1D6BD}":{letter:"\\Phi",fontCmd:"mathtt"},"\u{1D6BE}":{letter:"W",fontCmd:"mathtt"},"\u{1D6BF}":{letter:"\\Psi",fontCmd:"mathtt"},"\u{1D6C0}":{letter:"\\Omega",fontCmd:"mathtt"}}}},t3={};function r2(n3){var o=t3[n3];if(o!==void 0)return o.exports;var i=t3[n3]={exports:{}};return e3[n3].call(i.exports,i,i.exports,r2),i.exports}var n2={};return(()=>{"use strict";var e4=n2;Object.defineProperty(e4,"__esModule",{value:!0}),e4.MathMLToLaTeX=void 0;var t4=r2(8672);Object.defineProperty(e4,"MathMLToLaTeX",{enumerable:!0,get:function(){return t4.MathMLToLaTeX}})})(),n2})(),e2.exports=t2()},2640(e2,t2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.TW_ARBITRARY_RE=t2.TW_SPECIAL_CLASS_RE=t2.TW_COLOR_CLASS_RE=t2.TAILWIND_SPECIAL=t2.TAILWIND_COLORS=t2.ALLOWED_ATTRIBUTES_DEBUG=t2.ALLOWED_ATTRIBUTES=t2.ALLOWED_EMPTY_ELEMENTS=t2.FOOTNOTE_LIST_SELECTORS=t2.FOOTNOTE_INLINE_REFERENCES=t2.TEST_ATTRIBUTES_SELECTOR=t2.PARTIAL_SELECTORS_REGEX=t2.PARTIAL_SELECTORS=t2.TEST_ATTRIBUTES=t2.EXACT_SELECTORS_JOINED=t2.EXACT_SELECTORS=t2.HIDDEN_EXACT_SKIP_SELECTOR=t2.HIDDEN_EXACT_SELECTOR=t2.CONTENT_ELEMENT_SELECTOR=t2.INLINE_ELEMENTS=t2.PRESERVE_ELEMENTS=t2.BLOCK_LEVEL_ELEMENTS=t2.BLOCK_ELEMENTS_SET=t2.BLOCK_ELEMENTS_SELECTOR=t2.BLOCK_ELEMENTS=t2.MOBILE_WIDTH=t2.ENTRY_POINT_ELEMENTS=void 0,t2.ENTRY_POINT_ELEMENTS=["#post",".post-content",".post-body",".article-content","#article-content",".js-article-content",".article_post",".article-wrapper",".entry-content",".content-article",".instapaper_body",".post",".markdown-body","article",'[role="article"]',"main",'[role="main"]',".article-body","#content","body"],t2.MOBILE_WIDTH=600,t2.BLOCK_ELEMENTS=["div","section","article","main","aside","header","footer","nav","content"],t2.BLOCK_ELEMENTS_SELECTOR=t2.BLOCK_ELEMENTS.join(","),t2.BLOCK_ELEMENTS_SET=new Set(t2.BLOCK_ELEMENTS),t2.BLOCK_LEVEL_ELEMENTS=new Set([...t2.BLOCK_ELEMENTS,"p","h1","h2","h3","h4","h5","h6","ul","ol","li","dl","dt","dd","pre","blockquote","figure","figcaption","table","thead","tbody","tfoot","tr","td","th","details","summary","address","hr","form","fieldset"]),t2.PRESERVE_ELEMENTS=new Set(["pre","code","table","thead","tbody","tr","td","th","ul","ol","li","dl","dt","dd","figure","figcaption","picture","details","summary","blockquote","form","fieldset"]),t2.INLINE_ELEMENTS=new Set(["a","span","strong","em","i","b","u","code","br","small","sub","sup","mark","date","del","ins","q","abbr","cite","relative-time","time","font"]),t2.CONTENT_ELEMENT_SELECTOR=["math","[data-mathml]",".katex",".katex-mathml",".katex-display",".MathJax",".MathJax_Display",".MathJax_SVG","mjx-container","pre","code","table","img","picture","video","blockquote","figure"].join(", ");let r2=["[hidden]",'[aria-hidden="true"]',".hidden",".invisible"],n2=r2.map((e3=>e3==='[aria-hidden="true"]'?'[aria-hidden="true"]:not([class*="math"]):not(svg):not([class*="paywall"])':e3));t2.HIDDEN_EXACT_SELECTOR=n2.join(","),t2.HIDDEN_EXACT_SKIP_SELECTOR=r2.join(","),t2.EXACT_SELECTORS=["noscript",'script:not([type^="math/"])',"style","meta","link","audio:not([src]):not(:has(source))","video:not([src]):not(:has(source))",".jwplayer",'.ad:not([class*="gradient"])','[class^="ad-" i]','[class$="-ad" i]',"[data-ad-wrapper]",'[id^="ad-" i]','[id$="-ad" i]','[role="banner" i]','[alt*="advert" i]',".promo",".Promo","#barrier-page",".alert",'[rel="sponsored" i]','[href*="source=promotion" i]','[id="comments" i]','[id="comment" i]','div[class*="cover-"]','div[id*="cover-"]',"ads-breadcrumbs","header:not(:has(p + p)):not(:has(img))",'header[class~="fixed"]','header[class~="sticky"]',".header:not(.banner)","#header","#Header","#banner","#Banner","nav",".navigation","#navigation",'[role="navigation" i]','[role="dialog" i]','[role="alertdialog" i]','[role*="complementary" i]','[class*="pagination" i]',".menu","#siteSub",".previous",".author",".Author",'[class$="_bio"]',"#categories",".contributor",".date","#date","[data-date]",".entry-meta",".meta",".tags","#tags",'[rel="tag"]',".headline","#headline","#title","#Title","#articleTag",'[href*="/author/"]','[href*="/author?"]','[href$="/author"]','a[href*="copyright.com"]','a[href*="google.com/preferences"]','[href="#top"]','[href="#Top"]','[href="#page-header"]','[href="#content"]','[href="#site-content"]','[href="#main-content"]','[href^="#main"]','[src*="author"]',".toc",".Toc","#toc",'[href*="#toc"]',"footer",".aside",'aside:not([class*="callout"])',"button","canvas","date","dialog","fieldset","form",'input:not([type="checkbox"])','input[type="checkbox"][class*="sidebar" i]','input[type="checkbox"][id*="sidebar" i]','input[type="checkbox"][class*="drawer" i]','input[type="checkbox"][id*="drawer" i]','input[type="checkbox"][class*="hamburger" i]','input[type="checkbox"][id*="hamburger" i]','input[type="checkbox"][class*="toggle" i]','input[type="checkbox"][id*="toggle" i]','input[type="checkbox"][class*="trigger" i]','input[type="checkbox"][id*="trigger" i]',"label","option","select",'[role="listbox"]','[role="option"]',"textarea",...n2,"instaread-player","iframe:not([src])",'iframe[src*="giscus.app"]','iframe[src*="tinypass.com"]','iframe[src*="trinitymedia.ai"]','[class="logo" i]',"#logo","#Logo","#newsletter","#Newsletter",".subscribe",'[data-component-name="ButtonCreateButton"]','[data-component-name="DigestPostEmbed"]','[data-component-name="SubscribeWidgetToDOM"]','[class*="digestPostEmbed"]',".noprint",'[data-print-layout="hide" i]','[data-block="donotprint" i]','[class*="clickable-icon" i]','li span[class*="ltx_tag" i][class*="ltx_tag_item" i]','a[href^="#"][class*="anchor" i]','a[href^="#"][class*="ref" i]:not(.ltx_ref):not(.footnote-backref)','[data-container*="most-viewed" i]',".sidebar",".Sidebar","#sidebar","#Sidebar","#side-bar","#secondary","#sitesub",'[href*="/sitemap/sitemap.xml"]','[data-link-name*="skip" i]','[aria-label*="skip" i]','[aria-label="Dismiss" i]','[aria-label="Close" i]','[data-testid="load-more-posts"] + div',".copyright","#copyright",".licensebox","#page-info","#rss","#feed",".gutter","#primaryaudio","#NYT_ABOVE_MAIN_CONTENT_REGION",'[data-testid="photoviewer-children-figure"] > span',"table.infobox",'[data-optimizely="related-articles-section" i]','[data-orientation="vertical"]',".gh-header-sticky",'[data-testid="issue-metadata-sticky"]'],t2.EXACT_SELECTORS_JOINED=t2.EXACT_SELECTORS.join(","),t2.TEST_ATTRIBUTES=["class","id","data-component","data-test","data-testid","data-test-id","data-qa","data-cy"],t2.PARTIAL_SELECTORS=["a-statement","(?<!main-)access-wall","activitypub","actioncall","addcomment","addtoany","advert","adlayout","ad-tldr","ad-placement","adplacehold","ads-container","_ad_","AdBlock_","AdUnit","after_content","after_main_article","afterpost","allterms","-alert-","alert-box","_archive","around-the-web","aroundpages","article-author","article-badges","article-banner","article-bottom-section","article-bottom","article-category","article-card","article-citation","article-continues","article__copy","article_date","article-date","article-end ","article_header","article-header","article__header","article__hero","article__info","article-info","article-meta","article_meta","article__meta","articlename","article-subject","article_subject","article-snippet","article-separator","article--share","article-share","article--topics","article-tools","articletags","article-tags","article_tags","articletitle","article-title","article_title","articletopics","article-topics","article-actions","article--lede","articlewell","associated-people","ambient-video__button","audio-card","beyondwords","about-author","author-bio","author-box","author-info","author_info","authorm","author-mini-bio","author-name","author-publish-info","authored-by","avatar","back-to-top","backlink_container","backlinks-section","bio-block","biobox","blog-pager","bookmark-","-bookmark","bottominfo","bottomnav","bottom-of-article","bottom-wrapper","brand-bar","bcrumb","breadcrumb","brdcrumb","crumbs","bubblewrapper","button-wrapper","buttons-container","btn-","-btn","byline","captcha","card-text","card-media","card-post","carouselcontainer","carousel-container","cat_header","cat-overlay","catlinks","_categories","card-author","card-content","chapter-list","collections","comments","-comment\\b","commentbox","comment-button","commentcomp","comment-content","comment-count","comment-form","comment-number","comment-respond","comment-thread","comment-wrap","complementary","consent","contact-","cookie.law","content-card","copycontent","copy-tooltip","content-topics","contentpromo","context-bar","context-widget","core-collateral","cover-image","cover-photo","cover-wrap","created-date","creative-commons_","c-subscribe","_cta","-cta","cta-","cta_","current-issue","custom-list-number","dateline","dateheader","date-header","date-pub","disclaimer","disclosure","discussion","discuss_","-dismiss","disqus","donate","donation","dropdown","editorial_contact","editorial-contact","element-invisible","elementor-shortcode","eletters","emailsignup","emoji-bar","engagement-widget","enhancement-","entry-author-info","entry-categories","entry-date","entry-title","entry-utility","-error","error-","eyebrow","expand-reduce","external-anchor","externallinkembedwrapper","extra-services","extra-title","facebook","fancy-box","favorite","featured-content","feature_feed","feedback","feed-links","field-site-sections","filed","fixheader","floating-vid","follower","footer","footnote-back","footnoteback","form-group","for-you","frontmatter","further-reading","fullbleedheader","gallery-count","gated-popup","gh-feed","gist-meta","goog-","graph-view","hamburger","hawk-","header-pattern","hero[_\\-a-z]","hide-for-print","hide-print","hide-when-no-script","hidden-print","hidden-sidenote","hidden-accessibility","home-link","icon-sidebar","inarticle-ad","infoline","inline-topic","instacartIntegration","interlude","interaction","itemendrow","intro-date","invisible","jp-no-solution","jp-relatedposts","jswarning","js-warning","jumplink","jumpto","jump-to-","js-skip-to-content","keepreading","keep-reading","keep_reading","keyword_wrap","kicker","labstab","-labels","language-name","lastupdated","latest-content","-ledes-","-license","license-","lightbox-popup","like-button","link-box","links-grid","links-title","listing-dynamic-terms","list-tags","live-blog-header-live-label","listinks","loading","loa-info","logo","ltx_role_refnum","ltx_tag_bibitem","ltx_error","masthead","marketing","media-inquiry","-menu","menu-","metadata","meta-bottom","meta-date","meta-row","might-like","minibio","more-about","mod-paywall","_modal","-modal","more-","morenews","morestories","more_wrapper","most-read","move-helper","mw-editsection","mw-cite-backlink","mw-indicators","mw-jump-link","nav-","nav_","navigation-post","next-","next_prev","no-script","newsgallery","news-story-title","newsletter_","newsletterbanner","newslettercontainer","newsletter-form","newsletter-signup","newslettersignup","newsletterwidget","newsletterwrapper","not-found","notessection","nomobile","noprint","onward-journey","open-slideshow","originally-published","other-blogs","outline-view","pagefoot","pagehead","page-header","page-title","paywall_message","-partners","permission-","plea","popular","popup_links","pop_stories","pop-up","post__author","post-author","post-bottom","post__category","postcomment","postdate","post-date","post_date","post-details","post-feeds","postinfo","post-info","post_info","post-inline-date","post-links","postlist","post_list","post_meta","post-meta","postmeta","post_more","postnavi","post-navigation","postpath","post-preview","postsnippet","post_snippet","post-snippet","post-subject","posttax","post-tax","post_tax","posttag","post-tag","post_time","posttitle","post-title","post_title","post__title","post-ufi-button","prev-post","prevnext","prev_next","prev-next","previousnext","press-inquiries","print-none","print-header","print:hidden","privacy-notice","privacy-settings","profile","promo_article","promo-bar","promo-box","pubdate","pub_date","pub-date","publish_date","publish-date","publication-date","publicationName","qr-code","qr_code","quick_up","_rail","ratingssection","read_also","readmore","read-next","read_next","read_time","read-time","reading_time","reading-time","reading-list","recent-","recent-articles","recentpost","recent_post","recent-post","recommend","redirectedfrom","recirc","register","(?<!h[1-6]-)related","relevant","relposts","reversefootnote","rightcol","\\bnocontent\\b","_rss","rss-link","rubricwrapper","screen-reader-text","scroll_to","scroll-to","_search","-search","section-nav","series-banner","share-box","sharedaddy","share-icons","sharelinks","share-links","share-post","share-print","share-section","share-text","sharing_","shariff-","shortcode-id","show-for-print","sidebartitle","sidebar-content","sidebar-wrapper","sideitems","sidebar-author","sidebar-item","side-box","sign-in-gate","similar-","similar_","similars-","site-index","site-header","siteheader","site-name","site-wordpress","skip-content","skip-to-content","skip-link","c-skip-link","_skip-link","-slider","slug-wrap","social-author","social-button","social-shar","social-date","speechify-ignore","speedbump","sponsor","springercitation","sr-only","_stats","story-date","story-navigation","storyreadtime","storysmall","storypublishdate","subject-label","subhead","submenu","-subscribe-","subscriber-drive","subscription-","_tags","tags__item","tag_list","tag-list","tag-module","taxonomy","table-of-contents","tblc","tabs-","terminaltout","time-rubric","timestamp","time-read","time-to-read","tip_off","-ticker","tiptout","-tout-","toc-container","toggle-caption","tooltip-content","topbar","subnavbar","topic-authors","topic-footer","topic-list","topic-subnav","top-wrapper","tree-item","trending","trust-feat","trust-badge","trust-project","chakra-badge","twiblock","u-hide","upsell","vid_carousel","viewbottom","view-language","yarpp-related","visually-hidden","welcomebox","widget_pages","w-form-done","w-form-fail"],t2.PARTIAL_SELECTORS_REGEX=new RegExp(t2.PARTIAL_SELECTORS.join("|"),"i"),t2.TEST_ATTRIBUTES_SELECTOR=t2.TEST_ATTRIBUTES.map((e3=>`[${e3}]`)).join(","),t2.FOOTNOTE_INLINE_REFERENCES=["sup.reference","cite.ltx_cite",'sup[id^="fnr"]','span[id^="fnr"]','span[class*="footnote_ref"]','span[class*="footnote-ref"]',"span.footnote-link","a.citation",'a[id^="ref-link"]','a[href^="#fn"]','a[href^="#cite"]','a[href^="#reference"]','a[href^="#footnote"]','a[href^="#r"]','a[href^="#b"]','a[href*="cite_note"]','a[href*="cite_ref"]',"a.footnote-anchor","span.footnote-hovercard-target a",'a[role="doc-biblioref"]','a[id^="fnref"]','a[id^="ref-link"]',"sup.footnoteref","sup.footnote-reference",'sup[data-fn] > a[href^="#"]','sup[id^="ftnt_ref"] a[href^="#ftnt"]','span.easy-footnote > a[href^="#easy-footnote-bottom-"]'].join(","),t2.FOOTNOTE_LIST_SELECTORS=["div.footnote ol","div.footnotes ol",'div[role="doc-endnotes"]','div[role="doc-footnotes"]',"ol.footnotes-list","ol.footnotes","ol.references",'ol[class*="article-references"]',"section.footnotes ol",'section[role="doc-endnotes"]','section[role="doc-footnotes"]','section[role="doc-bibliography"]',"ul.footnotes-list","ul.ltx_biblist",'div.footnote[data-component-name="FootnoteToDOM"]',"div.footnotes-footer","div.footnote-definitions","div.footnote-definition","ol.wp-block-footnotes","ol.easy-footnotes-wrapper","#footnotes"].join(","),t2.ALLOWED_EMPTY_ELEMENTS=new Set(["area","audio","base","br","circle","col","defs","ellipse","embed","figure","g","hr","iframe","img","input","line","link","mask","meta","object","param","path","pattern","picture","polygon","polyline","rect","source","stop","svg","td","th","track","use","video","wbr"]),t2.ALLOWED_ATTRIBUTES=new Set(["alt","allow","allowfullscreen","aria-label","checked","colspan","controls","data-latex","data-src","data-srcset","data-callout","data-callout-fold","data-callout-title","data-lang","dir","display","frameborder","headers","height","href","kind","label","lang","role","rowspan","src","srclang","srcset","start","title","type","width","accent","accentunder","align","columnalign","columnlines","columnspacing","columnspan","data-mjx-texclass","depth","displaystyle","fence","frame","framespacing","linethickness","lspace","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","rowalign","rowlines","rowspacing","rowspan","rspace","scriptlevel","separator","stretchy","symmetric","voffset","xmlns"]),t2.ALLOWED_ATTRIBUTES_DEBUG=new Set(["class","id"]),t2.TAILWIND_COLORS={slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"}},t2.TAILWIND_SPECIAL={black:"#000",white:"#fff",transparent:"transparent",current:"currentColor"},t2.TW_COLOR_CLASS_RE=/^(fill|stroke)-([a-z]+)-(\d{2,3})(?:\/(\d+))?$/,t2.TW_SPECIAL_CLASS_RE=/^(fill|stroke)-(black|white|transparent|current)$/,t2.TW_ARBITRARY_RE=/^text-\[(.+)\]$/},4467(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.findContentStart=function e3(t3,r3){let o2=(function(e4,t4){let r4=(0,n2.normalizeText)(t4);if(!r4)return null;let o3=e4.querySelectorAll("h1, h2");for(let e5 of o3)if((0,n2.normalizeText)(e5.textContent||"")===r4)return e5;return null})(t3,r3)||null,i2=t3.ownerDocument.createTreeWalker(t3,1);o2&&(i2.currentNode=o2);let a2=null,s2=null,l2=i2.nextNode();for(;l2;){let e4=l2;if(h2(e4)){if(c2.has(e4.tagName)){a2=e4;break}s2||(s2=e4)}l2=i2.nextNode()}if(a2)return a2;if(s2){let e4=s2;for(;;){let t4=null,r4=!1;for(let n3 of e4.children)if(h2(n3)){if(t4){r4=!0;break}t4=n3}if(!t4||r4)break;e4=t4}return e4}return o2?e3(t3,""):null},t2.isAboveContentStart=function(e3,t3){if(!t3||e3===t3)return!1;let r3=e3.compareDocumentPosition(t3);return!(1&r3)&&!!(4&r3)};let n2=r2(2552),o=/(?:(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[a-z]*\s+\d{1,2}|\d{1,2}(?:st|nd|rd|th)?\s+(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[a-z]*|\d{4}[-/]\d{1,2}[-/]\d{1,2})/i,i=/^by\s+\S/i,a=/[.!?]/,s=/\b(?:isHidden(?:-[A-Za-z0-9_]+)?|is-hidden)\b/,l=new Set(["P","DIV","SECTION","ARTICLE","BLOCKQUOTE","FONT"]),c2=new Set(["P","BLOCKQUOTE","FONT"]),u='[role="dialog"], [role="alertdialog"]',d=`aside, nav, header, footer, form, ${u}`;function h2(e3){if(!e3.tagName||!l.has(e3.tagName)||e3.closest(d))return!1;let t3=typeof e3.className=="string"?e3.className:"";if(s.test(t3)||e3.querySelector(u)||e3.querySelector("script, style"))return!1;let r3=(e3.textContent||"").trim();if(!r3)return!1;let c3=(0,n2.countWords)(r3);return!(c3<7)&&!!a.test(r3)&&!(i.test(r3)&&c3<15)&&!(o.test(r3)&&c3<20)&&!((function(e4){let t4=0;for(let r4 of e4.querySelectorAll("a"))t4+=(r4.textContent||"").length;return t4})(e3)>.7*r3.length)&&!(e3.tagName==="DIV"&&!e3.querySelector("p"))}},5628(e2,t2,r2){"use strict";var n2=this&&this.__awaiter||function(e3,t3,r3,n3){return new(r3||(r3=Promise))((function(o2,i2){function a2(e4){try{l2(n3.next(e4))}catch(e5){i2(e5)}}function s2(e4){try{l2(n3.throw(e4))}catch(e5){i2(e5)}}function l2(e4){var t4;e4.done?o2(e4.value):(t4=e4.value,t4 instanceof r3?t4:new r3((function(e5){e5(t4)}))).then(a2,s2)}l2((n3=n3.apply(e3,t3||[])).next())}))};Object.defineProperty(t2,"__esModule",{value:!0}),t2.Defuddle=void 0;let o=r2(1608),i=r2(1917),a=r2(2640),s=r2(4840),l=r2(3610),c2=r2(7726),u=r2(3550),d=r2(2408),h2=r2(8983),m=r2(7393),p=r2(3172),f=r2(662),g=r2(2552),b=r2(639),x=new Set(["title","author","published","site","description","image","language"]),v=/[:\[\]()#>~+,]/;class y{constructor(e3,t3={}){this._schemaOrgData=void 0,this._schemaOrgExtracted=!1,this._inExtractorPipelineRun=!1,this.doc=e3,this.options=t3,this.debug=t3.debug||!1}getSchemaOrgData(){return this._schemaOrgExtracted||(this._schemaOrgData=this._extractSchemaOrgData(this.doc),this._schemaOrgExtracted=!0),this._schemaOrgData}parse(){this.doc.body&&(this._normalizeAttributes(this.doc.body),this._resolveNoscriptImages(this.doc.body));let e3=this.parseInternal();if(e3.wordCount<200){this._log("Initial parse returned very little content, trying again");let t4=this.parseInternal({removePartialSelectors:!1});t4.wordCount>2*e3.wordCount&&(this._log("Retry produced more content"),e3=t4)}if(e3.wordCount<50){this._log("Still very little content, retrying without hidden-element removal");let t4=this.parseInternal({removeHiddenElements:!1});t4.wordCount>2*e3.wordCount&&(this._log("Hidden-element retry produced more content"),e3=t4);let r3=this.findLargestHiddenContentSelector();if(r3){this._log("Retrying with hidden content selector:",r3);let t5=this.parseInternal({removeHiddenElements:!1,removePartialSelectors:!1,contentSelector:r3});(t5.wordCount>e3.wordCount||t5.wordCount>Math.max(20,.7*e3.wordCount)&&t5.content.length<e3.content.length)&&(this._log("Hidden-selector retry produced better focused content"),e3=t5)}}if(e3.wordCount<50){this._log("Still very little content, retrying without scoring/partial selectors (possible index page)");let t4=this.parseInternal({removeLowScoring:!1,removePartialSelectors:!1,removeContentPatterns:!1});t4.wordCount>e3.wordCount&&(this._log("Index page retry produced more content"),e3=t4)}this._stripUnsafeElements();let t3=this._getSchemaText(e3.schemaOrgData);if(t3&&this.countHtmlWords(t3)>1.5*e3.wordCount){let r3=this._findElementBySchemaText(this.doc.body,t3);if(r3){let t4=this.getElementSelector(r3);this._log("Schema.org suggests a better content element, retrying with selector:",t4),e3=this.parseInternal({contentSelector:t4})}else this._log("Using schema.org text as content (DOM element not found)"),e3.content=t3,e3.wordCount=this.countHtmlWords(t3)}return e3}_getSchemaText(e3,t3=0){if(!e3||t3>10)return"";let r3=Array.isArray(e3)?e3:[e3];for(let e4 of r3)if(Array.isArray(e4)){let r4=this._getSchemaText(e4,t3+1);if(r4)return r4}else{if(e4!=null&&e4.text&&typeof e4.text=="string")return e4.text;if(e4!=null&&e4.articleBody&&typeof e4.articleBody=="string")return e4.articleBody;if(e4!=null&&e4["@graph"]&&Array.isArray(e4["@graph"])){let r4=this._getSchemaText(e4["@graph"],t3+1);if(r4)return r4}}return""}_stripUnsafeElements(){let e3=this.doc.body;if(!e3)return;let t3=e3.querySelectorAll('script:not([type^="math/"]), style, noscript, frame, frameset, object, embed, applet, base');for(let e4 of t3)e4.tagName==="STYLE"&&(0,g.isSVGElement)(e4)||e4.remove();let r3=e3.querySelectorAll("*");for(let e4 of r3)for(let t4 of Array.from(e4.attributes)){let r4=t4.name.toLowerCase();(r4.startsWith("on")||r4==="srcdoc"||["href","src","action","formaction","xlink:href"].includes(r4)&&(0,b.isDangerousUrl)(t4.value))&&e4.removeAttribute(t4.name)}}_deduplicateImages(e3){for(let t4 of e3.querySelectorAll("figure")){let e4=Array.from(t4.querySelectorAll("img")).filter((e5=>!e5.closest("noscript")&&e5.parentElement));if(e4.length<2)continue;let r3=new Map;for(let t5 of e4){let e5=t5.getAttribute("src")||"";if(!e5||e5.startsWith("data:"))continue;let n3=(t5.getAttribute("alt")||"").trim()||null,o2=r3.get(n3)||[];o2.push(t5),r3.set(n3,o2)}for(let[e5,t5]of r3)t5.length<2||e5!==null&&t5.every((e6=>e6.getAttribute("src")===t5[0].getAttribute("src")))||this._keepBestImage(t5)}let t3=Array.from(e3.querySelectorAll("img"));for(let e4=0;e4<t3.length;e4++){let r3=t3[e4];if(r3.closest("noscript")||r3.closest("figure")||!r3.parentElement)continue;let n3=(r3.getAttribute("alt")||"").trim();if(!n3)continue;let o2=r3.getAttribute("src")||"";if(o2&&!o2.startsWith("data:"))for(let i2=e4+1;i2<t3.length;i2++){let e5=t3[i2];if(e5.closest("noscript")||e5.closest("figure")||!e5.parentElement)continue;if((e5.getAttribute("alt")||"").trim()!==n3)break;let a2=e5.getAttribute("src")||"";if(a2&&!a2.startsWith("data:")&&(a2===o2||(this._keepBestImage([r3,e5]),!r3.parentElement)))break}}}_keepBestImage(e3){let t3=e3[0];for(let r3=1;r3<e3.length;r3++){let n3=this._pickBestImage(t3,e3[r3]);(n3===t3?e3[r3]:t3).remove(),t3=n3}}_removeCoverImage(e3,t3){if(!t3)return;let r3=e4=>e4.replace(/^https?:\/\//,"").split("?")[0],n3=r3(t3);for(let t4 of e3.querySelectorAll("img")){let e4=t4.getAttribute("src")||"";if(!e4||e4.startsWith("data:")||r3(e4)!==n3)continue;let o2=this._getLargestImageSrc(t4),i2=t4.closest("figure");return i2&&i2.querySelector("figcaption")||t4.remove(),o2}}_pickBestImage(e3,t3){let r3=e3.getAttribute("srcset")?2:e3.closest("picture")?1:0,n3=t3.getAttribute("srcset")?2:t3.closest("picture")?1:0;if(r3!==n3)return r3>n3?e3:t3;let o2=y._urlWidth(e3),i2=y._urlWidth(t3);return o2!==i2?o2>i2?e3:t3:e3}static _urlWidth(e3){let t3=(e3.getAttribute("src")||"").match(y._urlWidthPattern);return t3?parseInt(t3[1],10):0}_normalizeAttributes(e3){let t3=[["srcSet","srcset"]],r3=e3.querySelectorAll("img, source");for(let e4 of r3)for(let[r4,n3]of t3){let t4=e4.getAttribute(r4);t4!==null&&(e4.removeAttribute(r4),e4.setAttribute(n3,t4))}}_resolveNoscriptImages(e3){let t3=e3.querySelectorAll("noscript");for(let e4 of t3){let t4=e4.querySelector("img");if(!t4){let r4=e4.innerHTML||"";if(r4.includes("<img")||(r4=e4.textContent||""),!r4.includes("<img"))continue;t4=(0,b.parseHTML)(this.doc,r4).querySelector("img")}if(!t4)continue;let r3=t4.getAttribute("src")||"";if(!r3||r3.startsWith("data:"))continue;let n3=t4.getAttribute("alt"),o2=e4.parentElement;if(!o2)continue;let i2=!1,a2=o2.querySelectorAll(":scope > img");for(let e5 of a2){if(!(e5.getAttribute("src")||"").startsWith("data:")||!n3||e5.getAttribute("alt")!==n3)continue;e5.setAttribute("src",r3);let o3=t4.getAttribute("srcset")||"";o3&&e5.setAttribute("srcset",o3),i2=!0;break}if(!i2&&this._isLazyImageContext(e4)){let r4=(e4.closest("figure")||o2).querySelectorAll("img"),n4=!1;for(let e5 of r4){if(e5.closest("noscript"))continue;let t5=e5.getAttribute("src")||"";if(t5&&!t5.startsWith("data:")){n4=!0;break}}if(!n4){let r5=t4.cloneNode(!0);o2.insertBefore(r5,e4)}}}}_isLazyImageContext(e3){if(e3.closest("figure"))return!0;let t3=e3.parentElement;if(t3){for(let r4 of t3.children)if(r4!==e3&&(0,b.getClassName)(r4).toLowerCase().includes("lazy"))return!0;let r3=(0,b.getClassName)(t3).toLowerCase();if(r3.includes("image")||r3.includes("img")||r3.includes("picture")||r3.includes("photo")||r3.includes("media"))return!0}return!1}_findElementBySchemaText(e3,t3){var r3;let n3=(((r3=t3.split(/\n\s*\n/)[0])===null||r3===void 0?void 0:r3.trim())||"").substring(0,100).trim();if(!n3)return null;let o2=(0,g.countWords)(t3),i2=null,a2=1/0,s2=e3.querySelectorAll("*");for(let t4 of s2){if(t4===e3)continue;let r4=t4.textContent||"";if(!r4.includes(n3))continue;let s3=(0,g.countWords)(r4);s3>=.8*o2&&s3<a2&&(a2=s3,i2=t4)}return i2}findLargestHiddenContentSelector(){let e3=this.doc.body;if(!e3)return;let t3=Array.from(e3.querySelectorAll(a.HIDDEN_EXACT_SKIP_SELECTOR)).filter((e4=>!(e4.getAttribute("class")||"").includes("math"))),r3=null,n3=0;for(let e4 of t3){let t4=(0,g.countWords)(e4.textContent||"");t4>n3&&(r3=e4,n3=t4)}return!r3||n3<30?void 0:this.getElementSelector(r3)}_getLargestImageSrc(e3){let t3=e3.getAttribute("srcset")||"";if(!t3)return e3.getAttribute("src")||"";let r3=/(.+?)\s+(\d+(?:\.\d+)?)w/g,n3,o2="",i2=0,a2=0;for(;(n3=r3.exec(t3))!==null;){let e4=n3[1].trim();a2>0&&(e4=e4.replace(/^,\s*/,"")),a2=r3.lastIndex;let t4=parseFloat(n3[2]);e4&&t4>i2&&(i2=t4,o2=e4)}let s2=o2||e3.getAttribute("src")||"";return s2=s2.replace(/,w_\d+/g,"").replace(/,c_\w+/g,""),s2}parseAsync(){return n2(this,void 0,void 0,(function*(){var e3;if(this.options.useAsync!==!1){let e4=yield this.tryAsyncExtractor(i.ExtractorRegistry.findPreferredAsyncExtractor.bind(i.ExtractorRegistry));if(e4)return e4}let t3=this.parse();return t3.wordCount>0||this.options.useAsync===!1?t3:(e3=yield this.tryAsyncExtractor(i.ExtractorRegistry.findAsyncExtractor.bind(i.ExtractorRegistry)))!==null&&e3!==void 0?e3:t3}))}fetchAsyncVariables(){return n2(this,void 0,void 0,(function*(){var e3;if(this.options.useAsync===!1)return null;try{let t3=this.options.url||this.doc.URL,r3=this.getSchemaOrgData(),n3={includeReplies:(e3=this.options.includeReplies)!==null&&e3!==void 0?e3:"extractors",language:this.options.language,fetch:this.options.fetch},o2=i.ExtractorRegistry.findPreferredAsyncExtractor(this.doc,t3,r3,n3);if(o2){let e4=yield o2.extractAsync();return this.getExtractorVariables(e4.variables)||null}}catch(e4){console.error("Defuddle","Error fetching async variables:",e4)}return null}))}tryAsyncExtractor(e3){return n2(this,void 0,void 0,(function*(){var t3;try{let r3=this.options.url||this.doc.URL,n3=this.getSchemaOrgData(),i2={includeReplies:(t3=this.options.includeReplies)!==null&&t3!==void 0?t3:"extractors",language:this.options.language,fetch:this.options.fetch},a2=e3(this.doc,r3,n3,i2);if(a2){let e4=Date.now(),t4=yield a2.extractAsync(),r4=this._collectMetaTags(),i3=o.MetadataExtractor.extract(this.doc,n3,r4);return this.buildExtractorResponse(t4,i3,e4,a2,r4)}}catch(e4){console.error("Defuddle","Error in async extraction:",e4)}return null}))}parseInternal(e3={}){var t3,r3,n3,a2,g2,x2,v2;let y2=Date.now(),w={},A=(t3=this.options.profile)!==null&&t3!==void 0&&t3,C=(e4,t4)=>{if(!A)return t4();let r4=performance.now(),n4=t4();return w[e4]=Math.round(performance.now()-r4),n4};if(!this.doc.documentElement){let e4=this.options.url||"";return{content:"",title:"",description:"",domain:e4?new URL(e4).hostname:"",favicon:"",image:"",language:"",parseTime:Date.now()-y2,published:"",author:"",site:"",schemaOrgData:null,wordCount:0}}let E=Object.assign(Object.assign({removeExactSelectors:!0,removePartialSelectors:!0,removeHiddenElements:!0,removeLowScoring:!0,removeSmallImages:!0,removeContentPatterns:!0,standardize:!0,includeReplies:"extractors"},this.options),e3),S=[],_=this.getSchemaOrgData();this._metaTags||(this._metaTags=this._collectMetaTags());let T=this._metaTags;this._metadata||(this._metadata=o.MetadataExtractor.extract(this.doc,_,T));let q=this._metadata;E.removeImages&&this.removeImages(this.doc);try{let e4=E.url||this.doc.URL,t4={includeReplies:E.includeReplies,language:E.language,fetch:E.fetch};if(!this._inExtractorPipelineRun){let o3=i.ExtractorRegistry.findExtractor(this.doc,e4,_,t4);if(o3&&o3.canExtract()){let e5=o3.extract();if(e5.contentSelector){this._inExtractorPipelineRun=!0;try{let t5=this.parseInternal({contentSelector:e5.contentSelector,removeLowScoring:!1,removeHiddenElements:!1}),i2=this.getExtractorVariables(e5.variables);return Object.assign(Object.assign(Object.assign({},t5),{title:((r3=e5.variables)===null||r3===void 0?void 0:r3.title)||t5.title,description:((n3=e5.variables)===null||n3===void 0?void 0:n3.description)||t5.description,author:((a2=e5.variables)===null||a2===void 0?void 0:a2.author)||t5.author,published:((g2=e5.variables)===null||g2===void 0?void 0:g2.published)||t5.published,site:((x2=e5.variables)===null||x2===void 0?void 0:x2.site)||t5.site,language:((v2=e5.variables)===null||v2===void 0?void 0:v2.language)||t5.language,extractorType:o3.constructor.name.replace("Extractor","").toLowerCase()}),i2?{variables:i2}:{})}finally{this._inExtractorPipelineRun=!1}}return this.buildExtractorResponse(e5,q,y2,o3,T)}}this._mobileStyles||(this._mobileStyles=this._evaluateMediaQueries(this.doc));let o2=this._mobileStyles;this._smallImages||(this._smallImages=(0,d.findSmallImages)(this.doc,this.debug));let k=this._smallImages,N;C("cloneDocument",(()=>{var e5;N=this.doc.cloneNode(!0),(e5=N.body)===null||e5===void 0||e5.normalize()})),C("flattenShadowRoots",(()=>this.flattenShadowRoots(this.doc,N))),C("resolveStreamedContent",(()=>this.resolveStreamedContent(N))),C("applyMobileStyles",(()=>this.applyMobileStyles(N,o2)));let L=C("findMainContent",(()=>{let e5=null;if(E.contentSelector&&(e5=N.querySelector(E.contentSelector),this._log("Using contentSelector:",E.contentSelector,e5?"found":"not found")),e5||(e5=this.findMainContent(N)),e5){let t5=e5.closest("[data-defuddle]");t5&&(e5=t5)}if(e5&&e5.tagName.toLowerCase()==="body"){let t5=this._getSchemaText(_);if(t5){let r4=this._findElementBySchemaText(N.body,t5);r4&&(this._log("Found content element via schema.org text"),e5=r4)}}return e5}));if(!L){let e5=this.doc.body?this.resolveContentUrls((0,b.serializeHTML)(this.doc.body)):"",t5=Date.now();return Object.assign(Object.assign({content:e5},q),{wordCount:this.countHtmlWords(e5),parseTime:Math.round(t5-y2),metaTags:T})}C("removeMetadataBlock",(()=>{(q.published||q.author)&&(0,f.removeMetadataBlock)(L),L.querySelectorAll("wbr").forEach((e5=>e5.remove()))})),C("adoptExternalFootnotes",(()=>{E.standardize&&this.adoptExternalFootnotes(L,N)})),C("standardizeFootnotesCallouts",(()=>{E.standardize&&((0,l.standardizeFootnotes)(L),(0,c2.standardizeCallouts)(L))})),C("removeSmallImages",(()=>{E.removeSmallImages&&(0,d.removeSmallImages)(N,k,this.debug)})),C("removeHiddenElements",(()=>{E.removeHiddenElements&&(0,h2.removeHiddenElements)(N,this.debug,S)})),C("removeEyebrowLabel",(()=>{E.removeContentPatterns&&L&&(0,p.removeEyebrowLabel)(L,this.debug,S)})),C("removeBySelector",(()=>{(E.removeExactSelectors||E.removePartialSelectors)&&(0,m.removeBySelector)(N,this.debug,E.removeExactSelectors,E.removePartialSelectors,L,S,E.removeHiddenElements===!1)})),C("removeLowScoring",(()=>{E.removeLowScoring&&u.ContentScorer.scoreAndRemove(N,this.debug,S,L)})),C("removeByContentPattern",(()=>{if(E.removeContentPatterns&&L){let e5=this.options.url||this.doc.URL||"";(0,p.removeByContentPattern)(L,this.debug,e5,q.title||"",q.description||"",S)}})),C("standardizeContent",(()=>{E.standardize&&(0,s.standardizeContent)(L,q,this.doc,this.debug,A?w:void 0)})),C("resolveRelativeUrls",(()=>this.resolveRelativeUrls(L))),this._deduplicateImages(L);let O=this._removeCoverImage(L,q.image||"");O&&(q.image=O);let D=L.outerHTML,M=Date.now(),$=Object.assign(Object.assign({content:D},q),{wordCount:this.countHtmlWords(D),parseTime:Math.round(M-y2),metaTags:T});return this.debug&&($.debug={contentSelector:this.getElementSelector(L),removals:S}),this.options.profile&&($.profile=w),$}catch(e4){console.error("Defuddle","Error processing document:",e4);let t4=this.doc.body?this.resolveContentUrls((0,b.serializeHTML)(this.doc.body)):"",r4=Date.now();return Object.assign(Object.assign({content:t4},q),{wordCount:this.countHtmlWords(t4),parseTime:Math.round(r4-y2),metaTags:T})}}countHtmlWords(e3){let t3=e3.replace(/<[^>]*>/g," ").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&#\d+;/g," ").replace(/&\w+;/g," ");return(0,g.countWords)(t3)}_log(...e3){this.debug&&console.log("Defuddle:",...e3)}_evaluateMediaQueries(e3){let t3=[],r3=/max-width[^:]*:\s*(\d+)/;try{if(!e3.styleSheets)return t3;Array.from(e3.styleSheets).filter((e4=>{try{return e4.cssRules,!0}catch(e5){return e5 instanceof DOMException&&e5.name,!1}})).flatMap((e4=>{try{return typeof CSSMediaRule=="undefined"?[]:Array.from(e4.cssRules).filter((e5=>e5 instanceof CSSMediaRule&&e5.conditionText.includes("max-width")))}catch(e5){return this.debug&&console.warn("Defuddle: Failed to process stylesheet:",e5),[]}})).forEach((e4=>{let n4=e4.conditionText.match(r3);if(n4){let r4=parseInt(n4[1]);a.MOBILE_WIDTH<=r4&&Array.from(e4.cssRules).filter((e5=>e5 instanceof CSSStyleRule)).forEach((e5=>{try{t3.push({selector:e5.selectorText,styles:e5.style.cssText})}catch(e6){this.debug&&console.warn("Defuddle: Failed to process CSS rule:",e6)}}))}}))}catch(e4){console.error("Defuddle: Error evaluating media queries:",e4)}return t3}applyMobileStyles(e3,t3){t3.forEach((({selector:t4,styles:r3})=>{try{e3.querySelectorAll(t4).forEach((e4=>{e4.setAttribute("style",(e4.getAttribute("style")||"")+r3)}))}catch(e4){console.error("Defuddle","Error applying styles for selector:",t4,e4)}}))}removeImages(e3){let t3=e3.getElementsByTagName("img");Array.from(t3).forEach((e4=>{e4.remove()}))}findMainContent(e3){let t3=[];if(a.ENTRY_POINT_ELEMENTS.forEach(((r4,n4)=>{e3.querySelectorAll(r4).forEach((e4=>{let r5=40*(a.ENTRY_POINT_ELEMENTS.length-n4);r5+=u.ContentScorer.scoreElement(e4),t3.push({element:e4,score:r5,selectorIndex:n4})}))})),t3.length===0)return this.findContentByScoring(e3);if(t3.sort(((e4,t4)=>t4.score-e4.score)),this.debug&&this._log("Content candidates:",t3.map((e4=>({element:e4.element.tagName,selector:this.getElementSelector(e4.element),score:e4.score})))),t3.length===1&&t3[0].element.tagName.toLowerCase()==="body"){let t4=this.findTableBasedContent(e3);if(t4)return t4}let r3=t3[0],n3=r3;for(let e4=1;e4<t3.length;e4++){let o2=t3[e4],i2=(0,g.countWords)(o2.element.textContent||"");if(o2.selectorIndex<n3.selectorIndex&&n3.element.contains(o2.element)&&i2>50){let e5=0;for(let n4 of t3)if(n4.selectorIndex===o2.selectorIndex&&r3.element.contains(n4.element)&&++e5>1)break;if(e5>1)continue;n3=o2}}return n3!==r3?n3.element:r3.element}findTableBasedContent(e3){if(!Array.from(e3.getElementsByTagName("table")).some((e4=>{var t4;let r4=parseInt(e4.getAttribute("width")||"0"),n4=this.getComputedStyle(e4),o2=(0,b.getClassName)(e4).toLowerCase();return r4>400||((t4=n4==null?void 0:n4.width)===null||t4===void 0?void 0:t4.includes("px"))&&parseInt(n4.width)>400||e4.getAttribute("align")==="center"||o2.includes("content")||o2.includes("article")||Array.from(e4.getElementsByTagName("tr")).some((e5=>{let t5=Array.from(e5.children).filter((e6=>e6.tagName==="TD"));return t5.length>=2&&t5.some((e6=>e6.getAttribute("width")))}))})))return null;let r3=Array.from(e3.getElementsByTagName("td")),n3=u.ContentScorer.findBestElement(r3);return n3?2*(0,g.countWords)(n3.textContent||"")<(0,g.countWords)((e3.body||e3.documentElement).textContent||"")?null:n3:null}findContentByScoring(e3){let t3=[];return e3.querySelectorAll(a.BLOCK_ELEMENTS_SELECTOR).forEach((e4=>{let r3=u.ContentScorer.scoreElement(e4);r3>0&&t3.push({score:r3,element:e4})})),t3.length>0?t3.sort(((e4,t4)=>t4.score-e4.score))[0].element:null}getElementSelector(e3){let t3=[],r3=e3;for(;r3&&r3!==this.doc.documentElement;){let e4=r3.tagName.toLowerCase();if(r3.id)e4+="#"+r3.id;else if((0,b.getClassName)(r3)){let t4=(0,b.getClassName)(r3).trim().split(/\s+/).filter((e5=>!v.test(e5)));t4.length&&(e4+="."+t4.join("."))}t3.unshift(e4),r3=r3.parentElement}return t3.join(" > ")}getComputedStyle(e3){return(0,g.getComputedStyle)(e3)}adoptExternalFootnotes(e3,t3){let r3=t3.body||t3;r3&&e3!==r3&&r3.querySelectorAll("div, section, aside").forEach((t4=>{var r4;let n3=(0,b.getClassName)(t4),o2=t4.id||"";if(!/footnote/i.test(n3)&&!/footnote/i.test(o2)||e3.contains(t4)||t4.contains(e3))return;let i2=t4.querySelector("h1, h2, h3, h4, h5, h6");i2&&l.FOOTNOTE_SECTION_RE.test(((r4=i2.textContent)===null||r4===void 0?void 0:r4.trim())||"")&&e3.appendChild(t4)}))}resolveRelativeUrls(e3){let t3=this.options.url||this.doc.URL;if(!t3)return;let r3=t3,n3=this.doc.querySelector("base[href]");if(n3){let e4=n3.getAttribute("href");if(e4)try{r3=new URL(e4,t3).href}catch(e5){}}let o2=e4=>{let t4=e4.trim().replace(/^\\?["']+/,"").replace(/\\?["']+$/,"");if(t4.startsWith("#"))return t4;try{return new URL(t4,r3).href}catch(r4){return t4||e4}};e3.querySelectorAll("[href]").forEach((e4=>{let t4=e4.getAttribute("href");t4&&e4.setAttribute("href",o2(t4))})),e3.querySelectorAll("[src]").forEach((e4=>{let t4=e4.getAttribute("src");t4&&e4.setAttribute("src",o2(t4))})),e3.querySelectorAll("[srcset]").forEach((e4=>{let t4=e4.getAttribute("srcset");if(t4){let r4=/(.+?)\s+(\d+(?:\.\d+)?[wx])/g,n4=[],i2,a2=0;for(;(i2=r4.exec(t4))!==null;){let e5=i2[1].trim();a2>0&&(e5=e5.replace(/^,\s*/,"")),a2=r4.lastIndex,n4.push(`${o2(e5)} ${i2[2]}`)}if(n4.length>0)e4.setAttribute("srcset",n4.join(", "));else{let r5=t4.split(",").map((e5=>{let t5=e5.trim().split(/\s+/);return t5[0]&&(t5[0]=o2(t5[0])),t5.join(" ")})).join(", ");e4.setAttribute("srcset",r5)}}})),e3.querySelectorAll("[poster]").forEach((e4=>{let t4=e4.getAttribute("poster");t4&&e4.setAttribute("poster",o2(t4))}))}flattenShadowRoots(e3,t3){var r3,n3,o2;if(!e3.body||!t3.body)return;let i2=Array.from(e3.body.querySelectorAll("*")),a2=i2.find((e4=>e4.shadowRoot));if(!a2)return;let s2=Array.from(t3.body.querySelectorAll("*"));if(((o2=(n3=(r3=a2.shadowRoot)===null||r3===void 0?void 0:r3.childNodes)===null||n3===void 0?void 0:n3.length)!==null&&o2!==void 0?o2:0)>0)for(let e4=i2.length-1;e4>=0;e4--){let r4=i2[e4];if(!r4.shadowRoot)continue;let n4=s2[e4];if(!n4)continue;let o3=r4.shadowRoot.innerHTML;o3.length>0&&this.replaceShadowHost(n4,o3,t3)}else{let e4=[];for(let t4=0;t4<i2.length;t4++){let r4=i2[t4],n4=r4.getAttribute("data-defuddle-shadow");if(!n4)continue;let o3=s2[t4];o3&&(e4.push({cloneEl:o3,html:n4}),r4.removeAttribute("data-defuddle-shadow"),o3.removeAttribute("data-defuddle-shadow"))}for(let{cloneEl:r4,html:n4}of e4)this.replaceShadowHost(r4,n4,t3)}}resolveStreamedContent(e3){let t3=e3.querySelectorAll("script"),r3=[],n3=/\$RC\("(B:\d+)","(S:\d+)"\)/g;for(let e4 of t3){let t4=e4.textContent||"";if(!t4.includes("$RC("))continue;let o3;for(n3.lastIndex=0;(o3=n3.exec(t4))!==null;)r3.push({templateId:o3[1],contentId:o3[2]})}if(r3.length===0)return;let o2=0;for(let{templateId:t4,contentId:n4}of r3){let r4=e3.getElementById(t4),i2=e3.getElementById(n4);if(!r4||!i2)continue;let a2=r4.parentNode;if(!a2)continue;let s2=r4.nextSibling,l2=!1;for(;s2;){let e4=s2.nextSibling;if(s2.nodeType===8&&s2.data==="/$"){s2.remove(),l2=!0;break}s2.remove(),s2=e4}if(l2){for(;i2.firstChild;)a2.insertBefore(i2.firstChild,r4);r4.remove(),i2.remove(),o2++}}o2>0&&this._log("Resolved streamed content:",o2,"suspense boundaries")}replaceShadowHost(e3,t3,r3){var n3;let o2=(0,b.parseHTML)(r3,t3);if(e3.tagName.includes("-")){let t4=r3.createElement("div");t4.appendChild(o2),(n3=e3.parentNode)===null||n3===void 0||n3.replaceChild(t4,e3)}else e3.textContent="",e3.appendChild(o2)}resolveContentUrls(e3){if(!(this.options.url||this.doc.URL))return e3;let t3=this.doc.createElement("div");return t3.appendChild((0,b.parseHTML)(this.doc,e3)),this.resolveRelativeUrls(t3),(0,b.serializeHTML)(t3)}_extractSchemaOrgData(e3){let t3=e3.querySelectorAll('script[type="application/ld+json"]'),r3=[];t3.forEach((e4=>{let t4=e4.textContent||"";try{t4=t4.replace(/\/\*[\s\S]*?\*\/|^\s*\/\/.*$/gm,"").replace(/^\s*<!\[CDATA\[([\s\S]*?)\]\]>\s*$/,"$1").replace(/^\s*(\*\/|\/\*)\s*|\s*(\*\/|\/\*)\s*$/g,"").trim();let e5=JSON.parse(t4);e5["@graph"]&&Array.isArray(e5["@graph"])?r3.push(...e5["@graph"]):r3.push(e5)}catch(e5){console.error("Defuddle: Error parsing schema.org data:",e5),this.debug&&console.error("Defuddle: Problematic JSON content:",t4)}}));let n3=e4=>{if(typeof e4=="string")return this._decodeHTMLEntities(e4);if(Array.isArray(e4))return e4.map(n3);if(typeof e4=="object"&&e4!==null){let t4={};for(let r4 in e4)Object.prototype.hasOwnProperty.call(e4,r4)&&(t4[r4]=n3(e4[r4]));return t4}return e4};return r3.map(n3)}_collectMetaTags(){let e3=[];return this.doc.querySelectorAll("meta").forEach((t3=>{let r3=t3.getAttribute("name"),n3=t3.getAttribute("property"),o2=t3.getAttribute("content");o2&&e3.push({name:r3,property:n3,content:this._decodeHTMLEntities(o2)})})),e3}_decodeHTMLEntities(e3){return(0,b.decodeHTMLEntities)(this.doc,e3)}buildExtractorResponse(e3,t3,r3,n3,o2){var i2,a2,s2,l2,c3,u2;let d2=this.resolveContentUrls(e3.contentHtml),h3=this.getExtractorVariables(e3.variables);return Object.assign({content:d2,title:((i2=e3.variables)===null||i2===void 0?void 0:i2.title)||t3.title,description:((a2=e3.variables)===null||a2===void 0?void 0:a2.description)||t3.description,domain:t3.domain,favicon:t3.favicon,image:t3.image,language:((s2=e3.variables)===null||s2===void 0?void 0:s2.language)||t3.language,published:((l2=e3.variables)===null||l2===void 0?void 0:l2.published)||t3.published,author:((c3=e3.variables)===null||c3===void 0?void 0:c3.author)||t3.author,site:((u2=e3.variables)===null||u2===void 0?void 0:u2.site)||t3.site,schemaOrgData:t3.schemaOrgData,wordCount:this.countHtmlWords(e3.contentHtml),parseTime:Math.round(Date.now()-r3),extractorType:n3.constructor.name.replace("Extractor","").toLowerCase(),metaTags:o2},h3?{variables:h3}:{})}getExtractorVariables(e3){if(!e3)return;let t3={},r3=!1;for(let[n3,o2]of Object.entries(e3))x.has(n3)||(t3[n3]=o2,r3=!0);return r3?t3:void 0}}t2.Defuddle=y,y._urlWidthPattern=/(?:width[=:/]|[/,?&]w[_:=])(\d+)/},7726(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.standardizeCallouts=function(e3){var t3,r3;let n3=e3.ownerDocument;if(!n3)return;let i=Array.from(e3.querySelectorAll(".callout.is-collapsed, .callout.is-collapsible"));for(let e4 of i){let t4=e4.classList.contains("is-collapsed");e4.classList.remove("is-collapsed","is-collapsible"),e4.hasAttribute("data-callout-fold")||e4.setAttribute("data-callout-fold",t4?"-":"+");let r4=e4.querySelector(".callout-fold");r4&&r4.remove();let n4=e4.querySelector(".callout-content");if(n4){let e5=n4.getAttribute("style");if(e5){let t5=e5.replace(/display\s*:\s*none\s*;?/gi,"").trim();t5?n4.setAttribute("style",t5):n4.removeAttribute("style")}}}let a=Array.from(e3.querySelectorAll(".markdown-alert"));for(let e4 of a){let t4=Array.from(e4.classList).find((e5=>e5.startsWith("markdown-alert-")&&e5!=="markdown-alert")),r4=t4?t4.replace("markdown-alert-",""):"note",i2=r4.charAt(0).toUpperCase()+r4.slice(1),a2=e4.querySelector(".markdown-alert-title");a2&&a2.remove(),e4.replaceWith(o(n3,r4,i2,e4))}let s=Array.from(e3.querySelectorAll('aside[class*="callout"]'));for(let e4 of s){let t4=Array.from(e4.classList).find((e5=>e5.startsWith("callout-"))),r4=t4?t4.replace("callout-",""):"note",i2=r4.charAt(0).toUpperCase()+r4.slice(1),a2=e4.querySelector(".callout-content");e4.replaceWith(o(n3,r4,i2,a2||e4))}let l=new Set(["info","warning","note","tip","danger","caution","important","abstract","success","question","failure","bug","example","quote"]),c2=Array.from(e3.querySelectorAll(".admonition"));for(let e4 of c2){if(e4.getAttribute("data-callout"))continue;let r4=Array.from(e4.classList).find((e5=>l.has(e5)))||"note",i2=e4.querySelector(".admonition-title"),a2=((t3=i2==null?void 0:i2.textContent)===null||t3===void 0?void 0:t3.trim())||r4.charAt(0).toUpperCase()+r4.slice(1);i2&&i2.remove();let s2=e4.querySelector(".admonition-content")||e4.querySelector(".details-content")||e4;e4.replaceWith(o(n3,r4,a2,s2))}let u=Array.from(e3.querySelectorAll('.alert[class*="alert-"]'));for(let e4 of u){let t4=Array.from(e4.classList).find((e5=>e5.startsWith("alert-")&&e5!=="alert-dismissible")),i2=t4?t4.replace("alert-",""):"note",a2=e4.querySelector(".alert-heading, .alert-title"),s2=((r3=a2==null?void 0:a2.textContent)===null||r3===void 0?void 0:r3.trim())||i2.charAt(0).toUpperCase()+i2.slice(1);a2&&a2.remove(),e4.replaceWith(o(n3,i2,s2,e4))}};let n2=r2(639);function o(e3,t3,r3,o2){let i=e3.createElement("div");i.setAttribute("data-callout",t3),i.className="callout";let a=e3.createElement("div");a.className="callout-title";let s=e3.createElement("div");s.className="callout-title-inner",s.textContent=r3,a.appendChild(s),i.appendChild(a);let l=e3.createElement("div");return l.className="callout-content",(0,n2.transferContent)(o2,l),i.appendChild(l),i}},754(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.codeBlockRules=void 0;let n2=r2(2552),o=[/^language-(\w+)$/,/^lang-(\w+)$/,/^(\w+)-code$/,/^code-(\w+)$/,/^syntax-(\w+)$/,/^code-snippet__(\w+)$/,/^highlight-(\w+)$/,/^(\w+)-snippet$/,/(?:^|\s)(?:language|lang|brush|syntax)-(\w+)(?:\s|$)/i],i=new Set(["abap","actionscript","ada","adoc","agda","antlr4","applescript","arduino","armasm","asciidoc","aspnet","atom","bash","batch","c","clojure","cmake","cobol","coffeescript","cpp","c++","crystal","csharp","cs","dart","django","dockerfile","dotnet","elixir","elm","erlang","fortran","fsharp","gdscript","gitignore","glsl","golang","gradle","graphql","groovy","haskell","hs","haxe","hlsl","html","idris","java","javascript","js","jsx","jsdoc","json","jsonp","julia","kotlin","latex","lean","lean4","lisp","elisp","livescript","lua","makefile","markdown","md","markup","masm","mathml","matlab","mongodb","mysql","nasm","nginx","nim","nix","objc","ocaml","pascal","perl","php","postgresql","powershell","prolog","puppet","python","regex","rss","ruby","rb","rust","scala","scheme","shell","sh","solidity","sparql","sql","ssml","svg","swift","tcl","terraform","tex","toml","typescript","ts","tsx","unrealscript","verilog","vhdl","webassembly","wasm","xml","yaml","yml","zig"]);t2.codeBlockRules=[{selector:["pre",'div[class*="prismjs"]',".syntaxhighlighter",".highlight",".highlight-source",".wp-block-syntaxhighlighter-code",".wp-block-code",'div[class*="language-"]',".code-block[data-lang]","code.hl.block"].join(", "),element:"pre",transform:(e3,t3)=>{var r3;if(!(e4=>"classList"in e4&&"getAttribute"in e4&&"querySelector"in e4)(e3))return e3;e3.querySelectorAll('button, [class*="codeblock-button"]').forEach((e4=>e4.remove())),e3.querySelectorAll('[class*="header"], [class*="toolbar"], [class*="titlebar"], [class*="title-bar"]').forEach((t4=>{var r4;let o2=t4.tagName;if(o2!=="DIV"&&o2!=="SPAN")return;let i2=(r4=t4.closest)===null||r4===void 0?void 0:r4.call(t4,"[data-line], .line");if(i2&&e3.contains(i2)||t4.querySelector("[data-line], .line, pre"))return;let a2=(t4.textContent||"").trim();(0,n2.countWords)(a2)<=5&&t4.remove()}));let a=e4=>{var t4;let r4=e4.getAttribute("data-lang")||e4.getAttribute("data-language")||e4.getAttribute("language");if(r4)return r4.toLowerCase();let n3=Array.from(e4.classList||[]);if(!((t4=e4.classList)===null||t4===void 0)&&t4.contains("syntaxhighlighter")){let e5=n3.find((e6=>!["syntaxhighlighter","nogutter"].includes(e6)));if(e5&&i.has(e5.toLowerCase()))return e5.toLowerCase()}for(let e5 of n3)for(let t5 of o){let r5=e5.toLowerCase().match(t5);if(r5&&r5[1]&&i.has(r5[1].toLowerCase()))return r5[1].toLowerCase()}for(let e5 of n3)if(i.has(e5.toLowerCase()))return e5.toLowerCase();return""},s="",l=e3;for(;l&&!s;){if(s=a(l),!s&&l===e3){let e4=l.querySelector('code[data-lang], code[class*="language-"]')||l.querySelector("code");e4&&(s=a(e4))}l=l.parentElement}let c2=e3.querySelector(".cm-content");if(c2&&!s){let t4=Array.from(e3.querySelectorAll("div"));for(let e4 of t4){if(e4.contains(c2))continue;let t5=(e4.textContent||"").trim().toLowerCase();if(t5&&i.has(t5)){s=t5;break}}}let u=e4=>{var t4;if((0,n2.isTextNode)(e4))return!((t4=e4.parentElement)===null||t4===void 0)&&t4.querySelector("[data-line], .line")&&!(e4.textContent||"").trim()?"":e4.textContent||"";let r4="";if((0,n2.isElement)(e4)){if(e4.matches(".hover-info, .hover-container")||e4.tagName==="BUTTON"||e4.tagName==="STYLE")return"";if(e4.tagName==="BR"){let t5=e4.previousElementSibling;return t5&&t5.matches('div[class*="line"], span[class*="line"], .ec-line, [data-line-number], [data-line]')?"":`
`}if(e4.matches("span.lnt")||e4.matches("span.lineno")||e4.matches(".react-syntax-highlighter-line-number")||e4.matches(".rouge-gutter"))return"";if((e4.tagName==="DIV"||e4.tagName==="SPAN")&&e4.children.length===2){let t5=(e4.children[0].textContent||"").trim();if(/^\d+$/.test(t5))return u(e4.children[1]).replace(/\n$/,"")+`
`}if(e4.matches('div[class*="line"], span[class*="line"], .ec-line, [data-line-number], [data-line]')){let t5=e4.querySelector('.code:not(.token), .content:not(.token), [class*="code-"], [class*="content-"]');if(t5)return(t5.textContent||"").replace(/\n$/,"")+`
`;let r5=e4.querySelector('.line-number, .gutter, [class*="line-number"], [class*="gutter"]');return r5?Array.from(e4.childNodes).filter((e5=>!r5.contains(e5))).map((e5=>u(e5))).join("").replace(/\n$/,"")+`
`:(e4.textContent||"").replace(/\n$/,"")+`
`}e4.childNodes.forEach((e5=>{r4+=u(e5)}))}return r4},d="";if(e3.matches(".syntaxhighlighter, .wp-block-syntaxhighlighter-code")&&(d=(e4=>{let t4=e4.querySelector(".syntaxhighlighter table .code .container");if(t4)return Array.from(t4.children).map((e5=>Array.from(e5.querySelectorAll("code")).map((e6=>{var t6;let r5=e6.textContent||"";return!((t6=e6.classList)===null||t6===void 0)&&t6.contains("spaces")&&(r5=" ".repeat(r5.length)),r5})).join("")||e5.textContent||"")).join(`
`);let r4=e4.querySelectorAll(".code .line");return r4.length>0?Array.from(r4).map((e5=>Array.from(e5.querySelectorAll("code")).map((e6=>e6.textContent||"")).join("")||e5.textContent||"")).join(`
`):""})(e3)),!d&&c2)d=u(c2);else if(!d){let t4=e3;if(e3.tagName!=="PRE"&&e3.tagName!=="CODE"){let r4=Array.from(e3.querySelectorAll("pre")),n3=r4.find((e4=>e4.querySelector('code[data-lang], code[class*="language-"], .line, [data-line]')))||r4.find((e4=>e4.querySelector("span[class]")&&!e4.classList.contains("lineno")));n3&&(t4=n3)}d=u(t4)}if(e3.matches("code.hl.block"))d=d.replace(/^[ \t]+|[ \t]+$/g,"").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/^\n+/,"");else{d=d.replace(/\t/g," ").replace(/\u00a0/g," ");let e4=d.split(`
`),t4=1/0;for(let r4 of e4){let e5=r4.search(/\S/);e5>-1&&(t4=Math.min(t4,e5))}t4===1/0&&(t4=0),t4>0&&(d=e4.map((e5=>e5.slice(t4))).join(`
`)),d=d.replace(/^\s+|\s+$/g,"").replace(/\n{3,}/g,`
`).replace(/^\n+/,"").replace(/\n+$/,"")}let h2=e3;for(let t4=0;t4<3&&h2;t4++){let t5=h2.parentElement;if(!t5||t5.tagName==="BODY"||t5.children.length>5||!((r3=t5.closest)===null||r3===void 0)&&r3.call(t5,"[data-callout]"))break;let o2=Array.from(t5.children);for(let t6 of o2){if(t6.contains(e3))continue;let r4=t6.tagName;if(r4!=="DIV"&&r4!=="SPAN")continue;let o3=(t6.textContent||"").trim();(0,n2.countWords)(o3)<=5&&!t6.querySelector("pre, code, img, svg, table, h1, h2, h3, h4, h5, h6, p, blockquote, ul, ol, hr")&&t6.remove()}h2=t5}let m=t3.createElement("pre");e3.matches("code.hl.block, pre.hl.lean.lean-output")&&m.setAttribute("data-verso-code","true");let p=t3.createElement("code");return s&&(p.setAttribute("data-lang",s),p.setAttribute("class",`language-${s}`)),p.textContent=d,m.appendChild(p),m}}]},3610(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.FOOTNOTE_SECTION_RE=void 0,t2.standardizeFootnotes=function(e3){let t3=e3.ownerDocument;t3&&new h2(t3).standardizeFootnotes(e3)};let n2=r2(2640),o=r2(639),i=r2(2552),a=r2(4840);t2.FOOTNOTE_SECTION_RE=/^(foot\s*notes?|end\s*notes?|notes?|references?)$/i;let s=/^[\^\u21A9\u21A5\u2191\u21B5\u2934\u2935\u23CE]+$/,l=/^#cite_ref-/,c2=/^\[?\(?(\d{1,4})\)?\]?$/;function u(e3){var t3;return((t3=((e3==null?void 0:e3.getAttribute("href"))||"").split("#").pop())===null||t3===void 0?void 0:t3.toLowerCase())||""}let d=[{selector:"sup.footnoteref",extract:e3=>{var t3;let r3=e3.querySelector('a[id^="footnoteref-"]');return((t3=r3==null?void 0:r3.id.match(/^footnoteref-(\d+)$/))===null||t3===void 0?void 0:t3[1])||""}},{selector:'a[id^="ref-link"]',extract:e3=>{var t3;return((t3=e3.textContent)===null||t3===void 0?void 0:t3.trim())||""}},{selector:'a[role="doc-biblioref"]',extract:e3=>{let t3=e3.getAttribute("data-xml-rid");if(t3)return t3;let r3=e3.getAttribute("href")||"";return r3.startsWith("#core-R")?r3.replace("#core-",""):""}},{selector:"a.footnote-anchor, span.footnote-hovercard-target a",extract:e3=>{var t3;return(((t3=e3.id)===null||t3===void 0?void 0:t3.replace("footnote-anchor-",""))||"").toLowerCase()}},{selector:"sup.reference",extract:e3=>{let t3="";return e3.querySelectorAll("a").forEach((e4=>{var r3;let n3=(r3=(e4.getAttribute("href")||"").split("/").pop())===null||r3===void 0?void 0:r3.match(/(?:cite_note|cite_ref)-(.+)/);n3&&(t3=n3[1].toLowerCase())})),t3}},{selector:'sup[id^="fnref:"], span[id^="fnref:"]',extract:e3=>e3.id.replace("fnref:","").toLowerCase()},{selector:'sup[id^="fnr"]',extract:e3=>e3.id.replace("fnr","").toLowerCase()},{selector:"sup.footnote-reference",extract:e3=>u(e3.querySelector('a[href^="#"]'))},{selector:"span.footnote-reference",extract:e3=>{var t3;return e3.getAttribute("data-footnote-id")||""||(!((t3=e3.id)===null||t3===void 0)&&t3.startsWith("fnref")?e3.id.replace("fnref","").toLowerCase():"")}},{selector:"span.footnote-link",extract:e3=>e3.getAttribute("data-footnote-id")||""},{selector:"a.citation",extract:e3=>{var t3;return((t3=e3.textContent)===null||t3===void 0?void 0:t3.trim())||""}},{selector:'a[id^="fnref"]',extract:e3=>e3.id.replace("fnref","").toLowerCase()}];class h2{constructor(e3){this.pendingRemovals=[],this.doc=e3}makeRefId(e3,t3){return t3>0?`fnref:${e3}-${t3+1}`:`fnref:${e3}`}mergeFootnotes(e3,t3){for(let[r3,n3]of Object.entries(t3)){let t4=parseInt(r3);e3[t4]||(e3[t4]=n3)}}addFootnote(e3,t3,r3,n3){if(!t3||e3.processedIds.has(t3))return!1;let o2=n3!=null?n3:e3.count;return e3.footnotes[o2]={content:r3,originalId:t3,refs:[]},e3.processedIds.add(t3),n3===void 0?e3.count++:n3>=e3.count&&(e3.count=n3+1),!0}createFootnoteItem(e3,t3,r3){let i2=typeof t3=="string"?this.doc:t3.ownerDocument,a2=i2.createElement("li");if(a2.className="footnote",a2.id=`fn:${e3}`,typeof t3=="string"){let e4=i2.createElement("p");e4.appendChild((0,o.parseHTML)(i2,t3)),a2.appendChild(e4)}else{let e4=Array.from(t3.children),r4=e4.some((e5=>e5.tagName.toLowerCase()==="p")),s3=e4.some((e5=>n2.BLOCK_LEVEL_ELEMENTS.has(e5.tagName.toLowerCase())));if(r4||s3)!r4&&s3?e4.forEach((e5=>{if(this.isBackrefLink(e5))return;let t4=e5.cloneNode(!0);this.removeBackrefs(t4),a2.appendChild(t4)})):e4.forEach((e5=>{var t4;if(!this.isBackrefLink(e5))if(e5.tagName.toLowerCase()==="p"){if(!(!((t4=e5.textContent)===null||t4===void 0)&&t4.trim())&&!e5.querySelector("img, br"))return;let r5=i2.createElement("p");(0,o.transferContent)(e5,r5),this.removeBackrefs(r5),a2.appendChild(r5)}else{let t5=e5.cloneNode(!0);this.removeBackrefs(t5),a2.appendChild(t5)}}));else{let e5=i2.createElement("p");(0,o.transferContent)(t3,e5),this.removeBackrefs(e5),a2.appendChild(e5)}}let s2=a2.querySelector("p:last-of-type")||a2;return r3.forEach(((e4,t4)=>{let n3=i2.createElement("a");n3.href=`#${e4}`,n3.title="return to article",n3.className="footnote-backref",n3.textContent="\u21A9",t4<r3.length-1&&(n3.textContent+=" "),s2.appendChild(n3)})),a2}collectFootnotes(e3){let t3={footnotes:{},processedIds:new Set,count:1};e3.querySelectorAll(n2.FOOTNOTE_LIST_SELECTORS).forEach((r4=>{var n3,i2;if(r4.matches("div.footnotes-footer"))return void r4.querySelectorAll("div.footnote-footer").forEach((r5=>{let n4=(r5.id||"").match(/^footnote-(\d+)$/);if(!n4)return;let i3=n4[1];if(t3.processedIds.has(i3))return;let a2=r5.cloneNode(!0),s2=a2.querySelector("a");s2&&s2.remove();let l2=(0,o.serializeHTML)(a2).replace(/^\s*\.\s*/,""),c3=e3.ownerDocument.createElement("div");c3.appendChild((0,o.parseHTML)(e3.ownerDocument,l2.trim())),this.addFootnote(t3,i3,c3)}));if(r4.matches("div.footnote-definition")&&!(!((n3=r4.parentElement)===null||n3===void 0)&&n3.matches("div.footnote-definitions"))){let e4=(r4.id||"").toLowerCase(),n4=r4.cloneNode(!0),o2=n4.querySelector("sup.footnote-definition-label");return o2&&o2.remove(),void this.addFootnote(t3,e4,n4)}if(r4.matches("div.footnote-definitions")){r4.querySelectorAll("div.footnote-definition").forEach((e4=>{let r5=e4.querySelector("sup[id]"),n5=e4.querySelector(".footnote-body");r5&&n5&&this.addFootnote(t3,(r5.id||"").toLowerCase(),n5.cloneNode(!0))}));let n4=r4.parentElement;return void(n4&&n4!==e3&&((i2=n4.classList)===null||i2===void 0?void 0:i2.contains("footnotes"))&&this.pendingRemovals.push(n4))}if(r4.matches("ol.easy-footnotes-wrapper"))return r4.querySelectorAll("li.easy-footnote-single").forEach((e4=>{var r5,n4;let o2=e4.querySelector('span[id^="easy-footnote-bottom-"]');if(!o2)return;let i3=e4.cloneNode(!0);(r5=i3.querySelector('span[id^="easy-footnote-bottom-"]'))===null||r5===void 0||r5.remove(),(n4=i3.querySelector("a.easy-footnote-to-top"))===null||n4===void 0||n4.remove(),this.addFootnote(t3,o2.id.toLowerCase(),i3)})),void e3.querySelectorAll("span.easy-footnote-margin-adjust").forEach((e4=>{this.pendingRemovals.push(e4)}));if(r4.matches('div.footnote[data-component-name="FootnoteToDOM"]')){let e4=r4.querySelector("a.footnote-number"),n4=r4.querySelector(".footnote-content");return void(e4&&n4&&this.addFootnote(t3,e4.id.replace("footnote-","").toLowerCase(),n4))}r4.querySelectorAll('li, div[role="listitem"]').forEach((e4=>{let{id:r5,content:n4}=this.extractListItemIdAndContent(e4);this.addFootnote(t3,r5,n4||e4)}))}));let r3=[this.tryGenericIdDetection,this.tryWordExport,this.tryGoogleDocs,this.tryLabeledSection,this.tryLooseFootnotes,this.tryClassFootnote];for(let n3 of r3){if(t3.count>1)break;n3.call(this,e3,t3)}return t3.footnotes}tryGenericIdDetection(e3,t3){let r3=new Map;if(e3.querySelectorAll('a[href*="#"]').forEach((e4=>{var t4;let n4=u(e4);if(!n4)return;let o2=((t4=e4.textContent)===null||t4===void 0?void 0:t4.trim())||"";c2.test(o2)&&(r3.has(n4)||r3.set(n4,[]),r3.get(n4).push(e4))})),r3.size<2)return;let n3=new Set(r3.keys()),i2=e3.querySelectorAll("div, section, aside, footer, ol, ul"),a2=null,s2=0;if(i2.forEach((t4=>{if(t4===e3)return;let r4=this.findMatchingFootnoteElements(t4,n3).length;r4>=2&&r4>=s2&&(s2=r4,a2=t4)})),!a2)return;let l2=this.findMatchingFootnoteElements(a2,n3),d2=new Set(l2.map((({id:e4})=>e4))),h3=0,m=0;r3.forEach(((e4,t4)=>{e4.some((e5=>a2.contains(e5)))||(h3++,d2.has(t4)&&m++)})),m<Math.max(2,Math.ceil(.75*h3))&&(a2=null),l2.forEach((({el:r4,id:i3})=>{var a3,s3;if(t3.processedIds.has(i3))return;let l3=e3.ownerDocument.createElement("div"),c3=r4.cloneNode(!0),u2=c3.querySelector(`a[id="${i3}"]`);!u2||!((a3=u2.textContent)===null||a3===void 0)&&a3.trim()&&!/^\d+[.)]*\s*$/.test(u2.textContent.trim())||u2.remove();let d3=c3.querySelector("a[name]");d3&&((s3=d3.getAttribute("name"))===null||s3===void 0?void 0:s3.toLowerCase())===i3&&d3.remove();let h4=c3.childNodes[0];h4&&h4.nodeType===3&&(h4.textContent=h4.textContent.replace(/^\d+\.\s*/,"").replace(/^\s+/,"")),c3.matches("li")?(0,o.transferContent)(c3,l3):l3.appendChild(c3);let m2=r4.nextElementSibling;for(;m2&&!m2.id;){let e4=this.getChildAnchorId(m2);if(e4&&n3.has(e4))break;l3.appendChild(m2.cloneNode(!0)),m2=m2.nextElementSibling}this.addFootnote(t3,i3,l3)})),a2&&this.pendingRemovals.push(a2)}tryWordExport(e3,t3){let r3=Array.from(e3.querySelectorAll('a[href*="#_ftnref"]'));if(r3.length<2)return;let n3=[];r3.forEach((e4=>{let t4=u(e4).match(/^_ftnref(\d+)$/);t4&&n3.push({num:parseInt(t4[1]),anchor:e4})})),n3.sort(((e4,t4)=>e4.num-t4.num)),n3.forEach((({num:r4,anchor:n4})=>{let o2=`_ftn${r4}`;if(t3.processedIds.has(o2))return;let i2=n4.parentElement;for(;i2&&i2!==e3;){let e4=i2.tagName.toLowerCase();if(e4==="p"||e4==="div"||e4==="li")break;i2=i2.parentElement}if(!i2||i2===e3)return;let a2=i2.cloneNode(!0),s2=a2.querySelector('a[href*="_ftnref"]');if(s2){let e4=s2.closest("sup");e4?e4.remove():s2.remove()}let l2=e3.ownerDocument.createElement("div");l2.appendChild(a2),this.addFootnote(t3,o2,l2,r4),this.pendingRemovals.push(i2)}))}tryGoogleDocs(e3,r3){var n3;let o2=[];if(e3.querySelectorAll('p[id^="ftnt"]').forEach((e4=>{let t3=(e4.id||"").match(/^ftnt(\d+)$/);t3&&o2.push({num:parseInt(t3[1]),el:e4})})),o2.length<2)return;o2.sort(((e4,t3)=>e4.num-t3.num)),o2.forEach((({num:t3,el:n4})=>{var o3;let i3=`ftnt${t3}`;if(r3.processedIds.has(i3))return;let a3=n4.cloneNode(!0);(o3=a3.querySelector('a[href*="#ftnt_ref"]'))===null||o3===void 0||o3.remove();let s3=e3.ownerDocument.createElement("div");s3.appendChild(a3),this.addFootnote(r3,i3,s3,t3),this.pendingRemovals.push(n4);let l2=n4.parentElement;l2&&l2!==e3&&l2.tagName.toLowerCase()==="div"&&l2.children.length===1&&this.pendingRemovals.push(l2)}));let i2=o2[0].el,a2=i2.parentElement,s2=(a2&&a2!==e3&&a2.tagName.toLowerCase()==="div"?a2:i2).previousElementSibling;s2&&/^h[1-6]$/.test(s2.tagName.toLowerCase())&&t2.FOOTNOTE_SECTION_RE.test(((n3=s2.textContent)===null||n3===void 0?void 0:n3.trim())||"")&&this.pendingRemovals.push(s2)}tryLooseFootnotes(e3,t3){var r3,n3;let o2=this.findLooseFootnoteParagraphs(e3);if(!o2)return;let{paragraphs:i2,toRemove:a2}=o2,s2=new Set(a2);for(let e4=0;e4<i2.length;e4++){let{num:o3,el:a3}=i2[e4],l2=(n3=(r3=i2[e4+1])===null||r3===void 0?void 0:r3.el)!==null&&n3!==void 0?n3:null,c3=this.stripMarkerAndWrap(a3),u2=a3.nextElementSibling;for(;u2&&u2!==l2&&s2.has(u2);)c3.appendChild(u2.cloneNode(!0)),u2=u2.nextElementSibling;this.addFootnote(t3,String(o3),c3)}this.pendingRemovals.push(...a2)}tryClassFootnote(e3,t3){let r3=[];e3.querySelectorAll("p.footnote").forEach((e4=>{let t4=this.parseFootnoteNum(e4);t4!==null&&r3.push({num:t4,el:e4})}));for(let{num:e4,el:n3}of r3)this.addFootnote(t3,String(e4),this.stripMarkerAndWrap(n3));this.pendingRemovals.push(...r3.map((e4=>e4.el)))}tryLabeledSection(e3,r3){var n3,i2;let a2=e3.querySelectorAll("div, section, aside");for(let e4 of Array.from(a2)){let a3=(0,o.getClassName)(e4),s2=e4.id||"";if(!/footnote/i.test(a3)&&!/footnote/i.test(s2))continue;let l2=e4.querySelector("h1, h2, h3, h4, h5, h6");if(!l2||!t2.FOOTNOTE_SECTION_RE.test(((n3=l2.textContent)===null||n3===void 0?void 0:n3.trim())||""))continue;let c3=[];if(e4.querySelectorAll("p").forEach((e5=>{let t3=this.parseFootnoteNum(e5);t3!==null&&c3.push({num:t3,el:e5})})),c3.length===0)continue;let u2=new Set(c3.map((e5=>e5.el)));for(let e5=0;e5<c3.length;e5++){let{num:t3,el:n4}=c3[e5],o2=this.stripMarkerAndWrap(n4),a4=n4.nextElementSibling;for(;a4&&!u2.has(a4);)!((i2=a4.textContent)===null||i2===void 0)&&i2.trim()&&o2.appendChild(a4.cloneNode(!0)),this.pendingRemovals.push(a4),a4=a4.nextElementSibling;this.addFootnote(r3,String(t3),o2),this.pendingRemovals.push(n4)}this.pendingRemovals.push(e4);break}}trimLeadingWhitespace(e3){let t3=e3.firstChild;(t3==null?void 0:t3.nodeType)===3&&(t3.textContent=t3.textContent.replace(/^\s+/,""))}isBoldWrappedSup(e3){var t3,r3,n3;let o2=(t3=e3.tagName)===null||t3===void 0?void 0:t3.toLowerCase();return(o2==="b"||o2==="strong")&&e3.firstChild===e3.firstElementChild&&((n3=(r3=e3.firstElementChild)===null||r3===void 0?void 0:r3.tagName)===null||n3===void 0?void 0:n3.toLowerCase())==="sup"}stripMarkerAndWrap(e3){let t3=e3.ownerDocument.createElement("div"),r3=e3.cloneNode(!0),n3=r3.firstElementChild;return n3&&(this.isBoldWrappedSup(n3)?(n3.firstElementChild.remove(),this.trimLeadingWhitespace(n3)):(n3.remove(),this.trimLeadingWhitespace(r3))),t3.appendChild(r3),t3}parseFootnoteNum(e3){var t3;if(!e3.firstChild)return null;let r3=e3.firstElementChild;if(!r3||r3!==e3.firstChild)return null;let n3=r3.tagName.toLowerCase();if(this.isBoldWrappedSup(r3)&&(r3=r3.firstElementChild,n3="sup"),n3!=="sup"&&n3!=="strong")return null;let o2=((t3=r3.textContent)===null||t3===void 0?void 0:t3.trim())||"",i2=parseInt(o2,10);return!isNaN(i2)&&i2>=1&&String(i2)===o2?i2:null}crossValidate(e3,t3){let r3=new Set(t3.map((e4=>e4.num))),n3=new Set;return e3.querySelectorAll("sup").forEach((e4=>{var o2;if(t3.some((t4=>t4.el.contains(e4)))||e4.querySelector("a"))return;let i2=((o2=e4.textContent)===null||o2===void 0?void 0:o2.trim())||"",a2=parseInt(i2,10);!isNaN(a2)&&a2>=1&&String(a2)===i2&&r3.has(a2)&&n3.add(a2)})),n3.size>=2}findLooseFootnoteParagraphs(e3){var r3,n3;let o2=Array.from(e3.querySelectorAll("p")),i2=o2.length>0&&(r3=o2[o2.length-1].parentElement)!==null&&r3!==void 0?r3:e3,a2=Array.from(i2.children);for(let t3=a2.length-1;t3>=0;t3--){if(a2[t3].tagName.toLowerCase()!=="hr")continue;let r4=[];for(let e4=t3+1;e4<a2.length;e4++){let t4=this.parseFootnoteNum(a2[e4]);t4!==null&&r4.push({num:t4,el:a2[e4]})}if(r4.length>=2&&this.crossValidate(e3,r4))return{paragraphs:r4,toRemove:a2.slice(t3)};break}let s2=[],l2=-1;for(let e4=a2.length-1;e4>=0;e4--){let t3=a2[e4],r4=t3.tagName.toLowerCase();if(r4==="p"){let r5=this.parseFootnoteNum(t3);if(r5!==null){s2.unshift({num:r5,el:t3}),l2=e4;continue}break}if(r4!=="ul"&&r4!=="ol"&&r4!=="blockquote")break}if(s2.length>=2&&this.crossValidate(e3,s2)){let e4=a2.slice(l2),r4=s2[0].el.previousElementSibling;if(r4){let o3=r4.tagName.toLowerCase();/^h[1-6]$/.test(o3)&&t2.FOOTNOTE_SECTION_RE.test(((n3=r4.textContent)===null||n3===void 0?void 0:n3.trim())||"")&&e4.unshift(r4)}return{paragraphs:s2,toRemove:e4}}let c3=[];for(let e4=Math.floor(o2.length/2);e4<o2.length;e4++){let t3=this.parseFootnoteNum(o2[e4]);t3!==null&&c3.push({num:t3,el:o2[e4]})}return c3.length>=2&&this.crossValidate(e3,c3)?{paragraphs:c3,toRemove:c3.map((e4=>e4.el))}:null}isBackrefLink(e3){var t3,r3,n3;if(((t3=e3.tagName)===null||t3===void 0?void 0:t3.toLowerCase())!=="a")return!1;let o2=((r3=e3.textContent)===null||r3===void 0?void 0:r3.trim().replace(/\uFE0E|\uFE0F/g,""))||"";if(s.test(o2)||!((n3=e3.classList)===null||n3===void 0)&&n3.contains("footnote-backref"))return!0;let i2=e3.getAttribute("href")||"";return l.test(i2)}removeBackrefs(e3){for(e3.querySelectorAll("a").forEach((e4=>{var t3;if(this.isBackrefLink(e4)){let r3=e4.parentElement;((t3=r3==null?void 0:r3.tagName)===null||t3===void 0?void 0:t3.toLowerCase())==="sup"&&r3.children.length===1?r3.remove():e4.remove()}}));e3.firstChild&&e3.firstChild.nodeType===3;){let t3=e3.firstChild.textContent;if(!(t3&&/^[\s\^,.;]*$/.test(t3)&&t3.includes("^")))break;e3.firstChild.remove()}for(;e3.lastChild&&e3.lastChild.nodeType===3;){let t3=e3.lastChild.textContent;if(!/^[\s,.;]*$/.test(t3))break;e3.lastChild.remove()}}getChildAnchorId(e3){let t3=e3.querySelector("a[id], a[name]");return t3?(t3.id||t3.getAttribute("name")||"").toLowerCase():""}extractListItemIdAndContent(e3){var t3,r3;let n3=e3.querySelector(".citations");if(!((t3=n3==null?void 0:n3.id)===null||t3===void 0)&&t3.toLowerCase().startsWith("r"))return{id:n3.id.toLowerCase(),content:n3.querySelector(".citation-content")||null};let o2=(e3.id||"").toLowerCase();for(let t4 of["bib.bib","fn:","fn"])if(o2.startsWith(t4))return{id:o2.slice(t4.length),content:e3};if(e3.hasAttribute("data-counter"))return{id:(e3.getAttribute("data-counter")||"").replace(/\.$/,"").toLowerCase(),content:e3};let i2=(r3=o2.split("/").pop())===null||r3===void 0?void 0:r3.match(/cite_note-(.+)/);return{id:i2?i2[1]:o2,content:e3}}findMatchingFootnoteElements(e3,t3){let r3=[],n3=new Set;return e3.querySelectorAll("li, p, div").forEach((e4=>{let o2="";if(e4.id&&t3.has(e4.id.toLowerCase()))o2=e4.id.toLowerCase();else if(!e4.id){let r4=this.getChildAnchorId(e4);r4&&t3.has(r4)&&(o2=r4)}o2&&!n3.has(o2)&&(r3.push({el:e4,id:o2}),n3.add(o2))})),r3}replaceContainerPreservingText(e3,t3){let r3="",n3=!1;for(let t4 of e3.childNodes)(0,i.isTextNode)(t4)?r3+=t4.textContent||"":(0,i.isElement)(t4)&&(n3=!0);if(r3=r3.trim(),r3&&n3){let n4=e3.ownerDocument.createDocumentFragment();n4.appendChild(e3.ownerDocument.createTextNode(r3)),n4.appendChild(t3),e3.replaceWith(n4)}else e3.replaceWith(t3)}findOuterFootnoteContainer(e3){var t3;let r3=e3,n3=e3.parentElement;for(;n3;){let e4=n3.tagName.toLowerCase();if(e4!=="span"&&e4!=="sup")break;if(e4==="span"){let e5=!1;for(let o2 of n3.childNodes)if(o2!==r3){if((0,i.isTextNode)(o2)&&(!((t3=o2.textContent)===null||t3===void 0)&&t3.trim())){e5=!0;break}if((0,i.isElement)(o2)&&o2.tagName.toLowerCase()!=="sup"){e5=!0;break}}if(e5)break}r3=n3,n3=n3.parentElement}return r3}createFootnoteReference(e3,t3){let r3=this.doc.createElement("sup");r3.id=t3;let n3=this.doc.createElement("a");return n3.href=`#fn:${e3}`,n3.textContent=e3,r3.appendChild(n3),r3}collectInlineSidenotes(e3){let t3={},r3=e3.querySelectorAll("span.footnote-container, span.sidenote-container, span.inline-footnote");if(r3.length===0){let r4=e3.querySelectorAll("label.footref");if(r4.length>0){let n4=1;return r4.forEach((e4=>{var r5,o2,i2;let a2=e4.nextElementSibling;if((a2==null?void 0:a2.tagName)==="INPUT"&&(!((r5=a2.classList)===null||r5===void 0)&&r5.contains("footref-toggle"))&&(a2=a2.nextElementSibling),!a2||a2.tagName!=="SPAN"||!(!((o2=a2.classList)===null||o2===void 0)&&o2.contains("sidenote")))return;let s2=a2.cloneNode(!0),l2=s2.querySelector("sup");l2&&s2.firstChild===l2&&l2.remove(),t3[n4]={content:s2,originalId:String(n4),refs:[`fnref:${n4}`]};let c3=this.createFootnoteReference(String(n4),`fnref:${n4}`),u2=e4.nextElementSibling;(u2==null?void 0:u2.tagName)==="INPUT"&&(!((i2=u2.classList)===null||i2===void 0)&&i2.contains("footref-toggle"))&&u2.remove(),a2.remove(),e4.replaceWith(c3),n4++})),e3.querySelectorAll("footer").forEach((e4=>{e4.querySelector(".footdef")&&e4.remove()})),t3}return e3.querySelectorAll("span.sidenote").forEach((e4=>{e4.remove()})),t3}let n3=1;return r3.forEach((e4=>{let r4=e4.querySelector("span.footnote, span.sidenote, span.footnoteContent");if(!r4)return;t3[n3]={content:r4.cloneNode(!0),originalId:String(n3),refs:[`fnref:${n3}`]};let o2=this.createFootnoteReference(String(n3),`fnref:${n3}`);e4.replaceWith(o2),n3++})),t3}collectSidenotesColumn(e3){let t3={},r3=Array.from(e3.querySelectorAll(".sidenotes-column"));if(r3.length===0){let t4=e3.parentElement;for(let e4=0;e4<3&&t4&&r3.length===0;e4++)r3=Array.from(t4.querySelectorAll(":scope > .sidenotes-column")),t4=t4.parentElement}if(r3.length===0)return t3;let n3=1;return r3.forEach((e4=>{e4.querySelectorAll(".sidenote[id]").forEach((e5=>{var r4;let o2=e5.id;if(!o2)return;let a2=e5.querySelector(".sidenote__id"),s2=(r4=a2==null?void 0:a2.textContent)===null||r4===void 0?void 0:r4.replace(/\D/g,""),l2=s2?parseInt(s2,10):n3,c3=this.doc.createElement("div");Array.from(e5.childNodes).forEach((e6=>{var t4,r5,n4;(0,i.isElement)(e6)&&(!((t4=e6.classList)===null||t4===void 0)&&t4.contains("sidenote__id")||!((r5=e6.classList)===null||r5===void 0)&&r5.contains("sidenote__label")||!((n4=e6.classList)===null||n4===void 0)&&n4.contains("sn-backref"))||c3.appendChild(e6.cloneNode(!0))})),this.removeBackrefs(c3),t3[l2]={content:c3,originalId:o2.toLowerCase(),refs:[]},n3++})),e4.remove()})),t3}collectAsideFootnotes(e3){let t3={},r3=Array.from(e3.querySelectorAll("aside > ol[start]"));return r3.length===0||r3.forEach((e4=>{let r4=e4.parentElement,n3=parseInt(e4.getAttribute("start")||"",10);if(isNaN(n3)||n3<1)return;let i2=Array.from(e4.querySelectorAll("li"));if(i2.length===0)return;let a2=this.doc.createElement("div");i2.length===1?(0,o.transferContent)(i2[0].cloneNode(!0),a2):i2.forEach((e5=>{let t4=this.doc.createElement("p");(0,o.transferContent)(e5.cloneNode(!0),t4),a2.appendChild(t4)})),t3[n3]={content:a2,originalId:String(n3),refs:[]},r4.remove()})),t3}collectHiddenAsideFootnotes(e3){let t3={},r3=Array.from(e3.querySelectorAll("span[data-definition]"));if(r3.length===0)return t3;let n3=new Map;e3.querySelectorAll("aside[id]").forEach((e4=>{n3.set(e4.id,e4)}));let i2=1;return r3.forEach((e4=>{let r4=e4.getAttribute("data-definition");if(!r4)return;let a2=n3.get(r4);if(!a2)return;let s2=this.doc.createElement("div");(0,o.transferContent)(a2,s2),a2.remove();let l2=String(i2),c3=`fnref:${l2}`;t3[i2]={content:s2,originalId:r4.toLowerCase(),refs:[c3]},e4.replaceWith(this.createFootnoteReference(l2,c3)),i2++})),t3}standardizeFootnotes(e3){let t3=this.collectInlineSidenotes(e3),r3=this.collectHiddenAsideFootnotes(e3);this.mergeFootnotes(r3,this.collectFootnotes(e3)),this.mergeFootnotes(r3,this.collectSidenotesColumn(e3)),this.mergeFootnotes(r3,this.collectAsideFootnotes(e3));let o2=e3.querySelectorAll(n2.FOOTNOTE_INLINE_REFERENCES),i2=new Map,s2=new Map;Object.entries(r3).forEach((([e4,t4])=>{s2.set(t4.originalId.toLowerCase(),[e4,t4])})),o2.forEach((e4=>{var t4,r4;if(!e4||!e4.parentNode||!(!((t4=e4.textContent)===null||t4===void 0)&&t4.trim()))return;if(e4.matches("cite.ltx_cite")){let t5=[];if(e4.querySelectorAll("a").forEach((e5=>{var r5;let n4=e5.getAttribute("href");if(!n4)return;let o3=(r5=n4.split("/").pop())===null||r5===void 0?void 0:r5.match(/bib\.bib(\d+)/);if(!o3)return;let i3=s2.get(o3[1].toLowerCase());if(!i3)return;let[a2,l3]=i3,c3=this.makeRefId(a2,l3.refs.length);l3.refs.push(c3),t5.push(this.createFootnoteReference(a2,c3))})),t5.length>0){let r5=this.findOuterFootnoteContainer(e4),n4=e4.ownerDocument.createDocumentFragment();t5.forEach(((t6,r6)=>{r6>0&&n4.appendChild(e4.ownerDocument.createTextNode(" ")),n4.appendChild(t6)})),r5.replaceWith(n4)}return}let n3="";for(let{selector:t5,extract:r5}of d)if(e4.matches(t5)){n3=r5(e4);break}if(!n3){let t5=e4.getAttribute("href");t5&&(n3=t5.replace(/^[#]/,"").toLowerCase())}if(n3){let t5=s2.get(n3.toLowerCase());if(t5){let[n4,o3]=t5,a2=this.findOuterFootnoteContainer(e4),s3=a2.tagName.toLowerCase()==="sup";if(s3&&(!((r4=i2.get(a2))===null||r4===void 0)&&r4.some((e5=>e5.footnoteNumber===n4))))return;let l3=this.makeRefId(n4,o3.refs.length);o3.refs.push(l3),s3?(i2.has(a2)||i2.set(a2,[]),i2.get(a2).push({footnoteNumber:n4,refId:l3})):this.replaceContainerPreservingText(a2,this.createFootnoteReference(n4,l3))}}}));let l2=Object.entries(r3).filter((([e4,t4])=>t4.refs.length===0));if(l2.length>0){let t4=new Map,n3=new Map;l2.forEach((([e4,r4])=>{t4.set(r4.originalId,[e4,r4]),n3.set(e4,[e4,r4])}));let o3=e4=>e4.closest('[id^="fnref:"]')||e4.closest("#footnotes")||this.pendingRemovals.some((t5=>t5.contains(e4))),i3=(e4,t5)=>{let[r4,n4]=t5,o4=this.makeRefId(r4,n4.refs.length);n4.refs.push(o4);let i4=this.findOuterFootnoteContainer(e4);this.replaceContainerPreservingText(i4,this.createFootnoteReference(r4,o4))};e3.querySelectorAll('a[href*="#"]').forEach((e4=>{var r4;if(!e4.parentNode||o3(e4))return;let n4=u(e4);if(!n4)return;let a2=t4.get(n4);if(!a2)return;let s3=((r4=e4.textContent)===null||r4===void 0?void 0:r4.trim())||"";c2.test(s3)&&i3(e4,a2)})),Object.values(r3).some((e4=>e4.refs.length===0))&&e3.querySelectorAll("sup, span.footnote-ref").forEach((e4=>{var r4,o4;if(!e4.parentNode||!((r4=e4.id)===null||r4===void 0)&&r4.startsWith("fnref:")||e4.closest("#footnotes"))return;let a2=(((o4=e4.textContent)===null||o4===void 0?void 0:o4.trim())||"").match(c2);if(!a2)return;let s3=n3.get(a2[1])||t4.get(a2[1]);!s3||s3[1].refs.length>0||i3(e4,s3)}))}i2.forEach(((e4,t4)=>{let r4=this.doc.createDocumentFragment();e4.forEach((({footnoteNumber:e5,refId:t5})=>{r4.appendChild(this.createFootnoteReference(e5,t5))})),t4.replaceWith(r4)}));let h3=this.doc.createElement("div");h3.id="footnotes";let m=this.doc.createElement("ol"),p=Object.assign(Object.assign({},t3),r3);Object.entries(p).forEach((([e4,t4])=>{m.appendChild(this.createFootnoteItem(parseInt(e4),t4.content,t4.refs))})),e3.querySelectorAll(n2.FOOTNOTE_LIST_SELECTORS).forEach((e4=>e4.remove())),this.pendingRemovals.forEach((e4=>{e4.parentNode&&e4.remove()})),(0,a.removeOrphanedDividers)(e3),m.children.length>0&&(h3.appendChild(m),e3.appendChild(h3))}}},7864(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.headingRules=void 0,t2.removePermalinkAnchors=function(e3){Array.from(e3.querySelectorAll("h1 a, h2 a, h3 a, h4 a, h5 a, h6 a, a.permalink, a.anchor-link, a.heading-anchor")).forEach((e4=>{o(e4)&&e4.remove()}))},t2.isPermalinkAnchor=o;let n2=r2(2640);function o(e3){if(e3.tagName.toLowerCase()!=="a")return!1;let t3=e3.getAttribute("href")||"",r3=(e3.getAttribute("title")||"").toLowerCase(),n3=(e3.getAttribute("class")||"").toLowerCase(),o2=(e3.textContent||"").trim();return t3.startsWith("#")||r3.includes("permalink")?!0:!!(n3.includes("permalink")||n3.includes("heading-anchor")||n3.includes("anchor-link"))||!!/^[#\xb6\xa7\ud83d\udd17\uFEFF]$/.test(o2)}t2.headingRules=[{selector:"h1, h2, h3, h4, h5, h6",element:"keep",transform:e3=>{var t3,r3;let i=e3.ownerDocument;if(!i)return e3;let a=i.createElement(e3.tagName);if(Array.from(e3.attributes).forEach((e4=>{n2.ALLOWED_ATTRIBUTES.has(e4.name)&&a.setAttribute(e4.name,e4.value)})),!e3.children.length)return a.textContent=((t3=e3.textContent)===null||t3===void 0?void 0:t3.trim())||"",a;let s=e3.cloneNode(!0),l=new Map,c2=[];Array.from(s.querySelectorAll("*")).forEach((e4=>{var t4,r4,n3,i2;if(!(function(e5){let t5=e5.tagName.toLowerCase();return t5==="button"||!(t5!=="a"||!o(e5))||!(!e5.classList.contains("anchor")&&!e5.classList.contains("permalink-widget"))||!(t5!=="span"&&t5!=="div"||!Array.from(e5.querySelectorAll("a")).some((e6=>o(e6))))})(e4))return;l.set(e4,((t4=e4.textContent)===null||t4===void 0?void 0:t4.trim())||"");let a2=e4.parentElement;a2&&a2!==s&&((r4=a2.textContent)===null||r4===void 0?void 0:r4.trim())===((n3=e4.textContent)===null||n3===void 0?void 0:n3.trim())&&l.set(a2,((i2=e4.textContent)===null||i2===void 0?void 0:i2.trim())||""),c2.push(e4)})),c2.forEach((e4=>e4.remove()));let u=((r3=s.textContent)===null||r3===void 0?void 0:r3.trim())||"";return!u&&l.size>0&&(u=Array.from(l.values())[0]),a.textContent=u,a}}]},2649(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.imageRules=void 0,t2.isBase64Placeholder=x;let n2=r2(2552),o=r2(639),i=r2(2640),a=/^data:image\/([^;]+);base64,/,s=/\.(jpg|jpeg|png|webp)\s+\d/,l=/^\s*\S+\.(jpg|jpeg|png|webp)\S*\s*$/,c2=/\.(jpg|jpeg|png|webp|gif|avif)(\?.*)?$/i,u=/\s(\d+)w/,d=/dpr=(\d+(?:\.\d+)?)/,h2=/^([^\s]+)/,m=/^[\w\-\.\/\\]+\.(jpg|jpeg|png|gif|webp|svg)$/i,p=/^\d{4}-\d{2}-\d{2}$/;function f(e3,t3,r3){let i2=r3.createElement("figure");i2.appendChild(e3.cloneNode(!0));let a2=r3.createElement("figcaption"),s2=(function(e4){let t4=[],r4=new Set,i3=e5=>{var o2;if((0,n2.isTextNode)(e5)){let n3=((o2=e5.textContent)===null||o2===void 0?void 0:o2.trim())||"";n3&&!r4.has(n3)&&(t4.push(n3),r4.add(n3))}else if((0,n2.isElement)(e5)){let t5=e5.childNodes;for(let e6=0;e6<t5.length;e6++)i3(t5[e6])}},a3=e4.childNodes;for(let e5=0;e5<a3.length;e5++)i3(a3[e5]);return t4.length>0?t4.join(" "):(0,o.serializeHTML)(e4)})(t3);return a2.appendChild((0,o.parseHTML)(r3,s2)),i2.appendChild(a2),i2}function g(e3,t3){t3.setAttribute("srcset",e3);let r3=q(e3);r3&&y(r3)&&t3.setAttribute("src",r3)}function b(e3,t3,r3){for(let n3=0;n3<e3.attributes.length;n3++){let o2=e3.attributes[n3];r3.includes(o2.name)||t3.setAttribute(o2.name,o2.value)}}function x(e3){let t3=e3.match(a);if(!t3||t3[1]==="svg+xml")return!1;let r3=t3[0].length;return e3.length-r3<133}function v(e3){return e3.startsWith("data:image/svg+xml")}function y(e3){return!e3.startsWith("data:")&&!(!e3||e3.trim()==="")&&(c2.test(e3)||e3.includes("image")||e3.includes("img")||e3.includes("photo"))}function w(e3){return A(e3)?!0:e3.querySelectorAll("img, video, picture, source").length>0}function A(e3){let t3=e3.tagName.toLowerCase();return t3==="img"||t3==="video"||t3==="picture"||t3==="source"}function C(e3){if(A(e3))return e3;let t3=e3.querySelectorAll("picture");if(t3.length>0)return t3[0];let r3=e3.querySelectorAll("img"),n3=[];for(let e4=0;e4<r3.length;e4++){let t4=r3[e4],o3=t4.getAttribute("src")||"",i3=t4.getAttribute("alt")||"";o3.includes("data:image/svg+xml")||x(o3)||!i3.trim()&&r3.length>1||n3.push(t4)}if(n3.length>0)return n3[0];let o2=e3.querySelectorAll("video");if(o2.length>0)return o2[0];let i2=e3.querySelectorAll("source");if(i2.length>0)return i2[0];let a2=e3.querySelectorAll("img, picture, source, video");return a2.length>0?a2[0]:null}function E(e3){var t3,r3,n3,o2;let i2=e3.querySelector("figcaption");if(i2)return i2;let a2=new Set,s2=['[class*="caption"]','[class*="description"]','[class*="alt"]','[class*="title"]','[class*="credit"]','[class*="text"]','[class*="post-thumbnail-text"]','[class*="image-caption"]','[class*="photo-caption"]',"[aria-label]","[title]"].join(", "),l2=e3.querySelectorAll(s2);for(let e4=0;e4<l2.length;e4++){let r4=l2[e4];if(A(r4))continue;let n4=(t3=r4.textContent)===null||t3===void 0?void 0:t3.trim();if(n4&&n4.length>0&&!a2.has(n4))return a2.add(n4),r4}let c3=e3.querySelector("img");if(c3&&c3.hasAttribute("alt")){let t4=c3.getAttribute("alt");if(t4&&t4.trim().length>0){let r4=e3.ownerDocument.createElement("div");return r4.textContent=t4,r4}}if(e3.parentElement){let t4=e3.parentElement.children;for(let n4=0;n4<t4.length;n4++){let o3=t4[n4];if(o3!==e3&&Array.from(o3.classList).some((e4=>e4.includes("caption")||e4.includes("credit")||e4.includes("text")||e4.includes("description")))){let e4=(r3=o3.textContent)===null||r3===void 0?void 0:r3.trim();if(e4&&e4.length>0)return o3}}}let u2=e3.querySelectorAll("img");for(let e4=0;e4<u2.length;e4++){let t4=u2[e4];if(!t4.parentElement)continue;let r4=t4.nextElementSibling;for(;r4;){if(["EM","STRONG","SPAN","I","B","SMALL","CITE"].includes(r4.tagName)){let e5=(n3=r4.textContent)===null||n3===void 0?void 0:n3.trim();if(e5&&e5.length>0)return r4}r4=r4.nextElementSibling}}for(let e4=0;e4<u2.length;e4++){let t4=u2[e4],r4=t4.parentElement;if(!r4)continue;let n4=r4.querySelectorAll("em, strong, span, i, b, small, cite");for(let e5=0;e5<n4.length;e5++){let r5=n4[e5];if(r5===t4)continue;let i3=(o2=r5.textContent)===null||o2===void 0?void 0:o2.trim();if(i3&&i3.length>0)return r5}}return null}function S(e3){var t3;let r3=((t3=e3.textContent)===null||t3===void 0?void 0:t3.trim())||"";return!(r3.length<10||r3.startsWith("http://")||r3.startsWith("https://"))&&!m.test(r3)&&!r3.match(/^\d+$/)&&!p.test(r3)}function _(e3,t3){let r3=e3.tagName.toLowerCase();if(r3==="img")return T(e3,t3);if(r3==="picture"){let r4=e3.querySelector("img");return r4?T(r4,t3):e3.cloneNode(!0)}return r3==="source"?(function(e4,t4){let r4=t4.createElement("img"),n3=e4.getAttribute("srcset");n3&&g(n3,r4);let o2=e4.parentElement;if(o2){let e5=o2.querySelectorAll("img"),t5=[];for(let r5=0;r5<e5.length;r5++){let n4=e5[r5],o3=n4.getAttribute("src")||"";x(o3)||v(o3)||o3===""||t5.push(n4)}if(t5.length>0){if(b(t5[0],r4,["src","srcset"]),!r4.hasAttribute("src")||!y(r4.getAttribute("src")||"")){let e6=t5[0].getAttribute("src");e6&&y(e6)&&r4.setAttribute("src",e6)}}else{let e6=o2.querySelector("img[data-src]");if(e6&&(b(e6,r4,["src","srcset"]),!r4.hasAttribute("src")||!y(r4.getAttribute("src")||""))){let t6=e6.getAttribute("data-src");t6&&y(t6)&&r4.setAttribute("src",t6)}}}return r4})(e3,t3):e3.cloneNode(!0)}function T(e3,t3){let r3=e3.getAttribute("src")||"";if(x(r3)||v(r3)){let r4=e3.parentElement;if(r4){let n3=r4.querySelectorAll("source"),o2=[];for(let e4=0;e4<n3.length;e4++){let t4=n3[e4];t4.hasAttribute("data-srcset")&&t4.getAttribute("data-srcset")!==""&&o2.push(t4)}if(o2.length>0){let r5=t3.createElement("img"),n4=e3.getAttribute("data-src");return n4&&!v(n4)&&r5.setAttribute("src",n4),b(e3,r5,["src"]),r5}}}return e3.cloneNode(!0)}function q(e3){if(!e3||!e3.trim())return null;let t3=e3.trim(),r3=/(.+?)\s+(\d+(?:\.\d+)?[wx])/g,n3,o2=0;for(;(n3=r3.exec(t3))!==null;){let e4=n3[1].trim();if(o2>0&&(e4=e4.replace(/^,\s*/,"")),o2=r3.lastIndex,e4&&!v(e4))return e4}let i2=t3.match(h2);return i2&&i2[1]&&!v(i2[1])?i2[1]:null}function k(e3){if(e3.length===0)return null;if(e3.length===1)return e3[0];for(let t4=0;t4<e3.length;t4++)if(!e3[t4].hasAttribute("media"))return e3[t4];let t3=null,r3=0;for(let n3=0;n3<e3.length;n3++){let o2=e3[n3],i2=o2.getAttribute("srcset");if(!i2)continue;let a2=i2.match(u),s2=i2.match(d);if(a2&&a2[1]){let e4=parseInt(a2[1],10)*(s2?parseFloat(s2[1]):1);e4>r3&&(r3=e4,t3=o2)}}return t3||e3[0]}t2.imageRules=[{selector:"picture",element:"picture",transform:(e3,t3)=>{let r3=e3.querySelectorAll("source"),n3=e3.querySelector("img");if(!n3){let n4=k(r3);if(n4){let r4=n4.getAttribute("srcset");if(r4){let n5=t3.createElement("img");return g(r4,n5),e3.replaceChildren(n5),e3}}return e3}let o2=null,i2=null;if(r3.length>0){let e4=k(r3);e4&&(o2=e4.getAttribute("srcset"),o2&&(i2=q(o2)))}if(o2&&n3.setAttribute("srcset",o2),i2&&y(i2))n3.setAttribute("src",i2);else if(!n3.hasAttribute("src")||!y(n3.getAttribute("src")||"")){let e4=q(n3.getAttribute("srcset")||o2||"");e4&&y(e4)&&n3.setAttribute("src",e4)}return r3.forEach((e4=>e4.remove())),e3}},{selector:"uni-image-full-width",element:"figure",transform:(e3,t3)=>{var r3;let n3=t3.createElement("figure"),i2=t3.createElement("img"),a2=e3.querySelector("img");if(!a2)return n3;let s2=a2.getAttribute("src"),l2=a2.getAttribute("data-loading");if(l2)try{let e4=JSON.parse(l2);e4.desktop&&y(e4.desktop)&&(s2=e4.desktop)}catch(e4){}if(!s2||!y(s2))return n3;i2.setAttribute("src",s2);let c3=a2.getAttribute("alt");c3||(c3=e3.getAttribute("alt-text")),c3&&i2.setAttribute("alt",c3),n3.appendChild(i2);let u2=e3.querySelector("figcaption");if(u2){let e4=(r3=u2.textContent)===null||r3===void 0?void 0:r3.trim();if(e4&&e4.length>5){let r4=t3.createElement("figcaption"),i3=u2.querySelector(".rich-text p");i3?(0,o.transferContent)(i3,r4):r4.textContent=e4,n3.appendChild(r4)}}return n3}},{selector:'img[data-src], img[data-srcset], img[loading="lazy"], img.lazy, img.lazyload',element:"img",transform:(e3,t3)=>{let r3=e3.getAttribute("src")||"",n3=(function(e4){if(e4.hasAttribute("data-src")||e4.hasAttribute("data-srcset"))return!0;for(let t4=0;t4<e4.attributes.length;t4++){let r4=e4.attributes[t4];if(r4.name!=="src"&&(r4.name.startsWith("data-")&&/\.(jpg|jpeg|png|webp|gif)(\?.*)?$/i.test(r4.value)||/\.(jpg|jpeg|png|webp|gif)(\?.*)?$/i.test(r4.value)))return!0}return!1})(e3);x(r3)&&n3&&e3.removeAttribute("src");let o2=e3.getAttribute("data-src");o2&&!e3.getAttribute("src")&&e3.setAttribute("src",o2);let i2=e3.getAttribute("data-srcset");i2&&!e3.getAttribute("srcset")&&e3.setAttribute("srcset",i2);for(let t4=0;t4<e3.attributes.length;t4++){let r4=e3.attributes[t4];if(r4.name==="src"||r4.name==="srcset"||r4.name==="alt")continue;let n4=r4.value.charAt(0);n4!=="{"&&n4!=="["&&(s.test(r4.value)?e3.setAttribute("srcset",r4.value):l.test(r4.value)&&e3.setAttribute("src",r4.value))}return e3.classList.remove("lazy","lazyload"),e3.removeAttribute("data-ll-status"),e3.removeAttribute("data-src"),e3.removeAttribute("data-srcset"),e3.removeAttribute("loading"),e3}},{selector:"span:has(img)",element:"span",transform:(e3,t3)=>{try{if(!w(e3))return e3;for(let t4 of e3.children)if(i.BLOCK_LEVEL_ELEMENTS.has(t4.tagName.toLowerCase()))return e3;let r3=C(e3);if(!r3)return e3;let n3=E(e3),o2=_(r3,t3);if(n3&&S(n3)){let e4=f(o2,n3,t3);return n3.parentNode&&n3.parentNode.removeChild(n3),e4}return o2}catch(t4){return e3}}},{selector:'figure, p:has([class*="caption"])',element:"figure",transform:(e3,t3)=>{try{if(!w(e3))return e3;let r3=C(e3);if(!r3)return e3;let n3=E(e3);if(n3&&S(n3)){let o2=C(e3),i2;return i2=o2||_(r3,t3),f(i2,n3,t3)}return e3}catch(t4){return e3}}}]},7282(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.LOOKS_LIKE_LATEX_RE=t2.mathSelectors=t2.mathFastCheck=t2.isBlockDisplay=t2.getBasicLatexFromElement=t2.getMathMLFromElement=void 0,t2.extractLatexFromImageSrc=function(e3){for(let t4 of i){let r4=e3.match(t4);if(r4){let e4=a(r4[1]);if(e4)return e4}}let t3=e3.match(/\?([^#]+)/);if(t3){let e4=a(t3[1]);if(e4)return e4}let r3=e3.split("?")[0].split("/");for(let e4=r3.length-1;e4>=0;e4--)if(/%5[Cc]/.test(r3[e4])){let t4=a(r3[e4]);if(t4)return t4}return null},t2.wrapRawLatexDelimiters=function(e3,r3){var n3,i2;if(!(function(e4){let t3=Array.from(e4.querySelectorAll("script[src]"));for(let e5 of t3){let t4=(e5.getAttribute("src")||"").toLowerCase();if(t4.includes("mathjax")||t4.includes("katex"))return!0}let r4=Array.from(e4.querySelectorAll("script:not([src])"));for(let e5 of r4){let t4=e5.textContent||"";if(/MathJax\s*[.=]/.test(t4)||/katex/i.test(t4))return!0}return!1})(r3)||e3.querySelector(t2.mathFastCheck))return;let a2=[];(function e4(t3){if(!(0,o.isElement)(t3)||!u.has(t3.tagName))if((0,o.isTextNode)(t3))a2.push(t3);else for(let r4=t3.firstChild;r4;r4=r4.nextSibling)e4(r4)})(e3);for(let e4 of a2){let t3=e4.textContent||"";if(!t3.includes("$")&&!t3.includes("\\(")&&!t3.includes("\\["))continue;let a3=[],u2,h2=0,m=!1;for(s.lastIndex=0;(u2=s.exec(t3))!==null;){let e5=(n3=u2[1])!==null&&n3!==void 0?n3:u2[2],r4=(i2=u2[3])!==null&&i2!==void 0?i2:u2[4],o2=e5!==void 0,s2=(e5!=null?e5:r4).trim();(u2[2]!==void 0||u2[4]!==void 0||(d=s2,l.test(d)||c2.test(d)))&&(h2<u2.index&&a3.push(t3.slice(h2,u2.index)),o2&&(m=!0),a3.push({latex:s2,isBlock:o2}),h2=u2.index+u2[0].length)}if(a3.length===0)continue;if(h2<t3.length&&a3.push(t3.slice(h2)),m){let t4=a3.some((e5=>typeof e5=="string"&&e5.trim().length>0)),r4=e4.parentElement,n4=!!r4&&Array.from(r4.childNodes).some((t5=>t5!==e4&&((0,o.isTextNode)(t5)&&(t5.textContent||"").trim().length>0||(0,o.isElement)(t5))));if(t4||n4)for(let e5 of a3)typeof e5!="string"&&(e5.isBlock=!1)}let p=r3.createDocumentFragment();for(let e5 of a3)if(typeof e5=="string")p.appendChild(r3.createTextNode(e5));else{let t4=r3.createElement("math");t4.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),t4.setAttribute("display",e5.isBlock?"block":"inline"),t4.setAttribute("data-latex",e5.latex),t4.textContent=e5.latex,p.appendChild(t4)}e4.replaceWith(p)}var d};let n2=r2(639),o=r2(2552);t2.getMathMLFromElement=e3=>{if(e3.tagName.toLowerCase()==="math"){let t4=e3.getAttribute("display")==="block";return{mathml:e3.outerHTML,latex:e3.getAttribute("alttext")||null,isBlock:t4}}let t3=e3.getAttribute("data-mathml");if(t3){let r4=e3.ownerDocument||document,o3=(0,n2.parseHTML)(r4,t3).querySelector("math");if(o3){let e4=o3.getAttribute("display")==="block";return{mathml:o3.outerHTML,latex:o3.getAttribute("alttext")||null,isBlock:e4}}}let r3=e3.querySelector(".MJX_Assistive_MathML, mjx-assistive-mml");if(r3){let e4=r3.querySelector("math");if(e4){let t4=e4.getAttribute("display"),n3=r3.getAttribute("display"),o3=t4==="block"||n3==="block";return{mathml:e4.outerHTML,latex:e4.getAttribute("alttext")||null,isBlock:o3}}}let o2=e3.querySelector(".katex-mathml math");return o2?{mathml:o2.outerHTML,latex:null,isBlock:!1}:null},t2.getBasicLatexFromElement=e3=>{var t3,r3,n3;let o2=e3.getAttribute("data-latex");if(o2)return o2;let i2=e3.getAttribute("data-math");if(i2)return i2;if(e3.tagName.toLowerCase()==="img"&&e3.classList.contains("latex")){let t4=e3.getAttribute("alt");if(t4)return t4;let r4=e3.getAttribute("src");if(r4){let e4=r4.match(/latex\.php\?latex=([^&]+)/);if(e4)return decodeURIComponent(e4[1]).replace(/\+/g," ").replace(/%5C/g,"\\")}}let a2=e3.querySelector('annotation[encoding="application/x-tex"]');if(a2!=null&&a2.textContent)return a2.textContent.trim();if(e3.matches(".katex")){let t4=e3.querySelector('.katex-mathml annotation[encoding="application/x-tex"]');if(t4!=null&&t4.textContent)return t4.textContent.trim()}if(e3.matches('script[type="math/tex"]')||e3.matches('script[type="math/tex; mode=display"]'))return((t3=e3.textContent)===null||t3===void 0?void 0:t3.trim())||null;if(e3.parentElement){let t4=e3.parentElement.querySelector('script[type="math/tex"], script[type="math/tex; mode=display"]');if(t4)return((r3=t4.textContent)===null||r3===void 0?void 0:r3.trim())||null}return e3.tagName.toLowerCase()==="math"&&(!((n3=e3.textContent)===null||n3===void 0)&&n3.trim())?e3.textContent.trim():e3.getAttribute("alt")||null},t2.isBlockDisplay=e3=>{if(e3.getAttribute("display")==="block")return!0;let t3=(0,n2.getClassName)(e3).toLowerCase();if(t3.includes("display")||t3.includes("block")||e3.closest('.katex-display, .MathJax_Display, [data-display="block"]'))return!0;let r3=e3.previousElementSibling;if((r3==null?void 0:r3.tagName.toLowerCase())==="p"||e3.matches(".mwe-math-fallback-image-display"))return!0;if(e3.matches(".katex"))return e3.closest(".katex-display")!==null;if(e3.hasAttribute("display"))return e3.getAttribute("display")==="true";if(e3.matches('script[type="math/tex; mode=display"]'))return!0;let o2=e3.closest("[display]");return!!o2&&o2.getAttribute("display")==="true"},t2.mathFastCheck='math, mjx-container, .MathJax, .katex, img.latex, [data-math], [data-latex], script[type^="math/"]',t2.mathSelectors=['img.latex[src*="latex.php"]',"span.MathJax","mjx-container",'script[type="math/tex"]','script[type="math/tex; mode=display"]','.MathJax_Preview + script[type="math/tex"]',".MathJax_Display",".MathJax_SVG",".MathJax_MathML",".mwe-math-element",".mwe-math-fallback-image-inline",".mwe-math-fallback-image-display",".mwe-math-mathml-inline",".mwe-math-mathml-display",".katex",".katex-display",".katex-mathml",".katex-html","[data-katex]",'script[type="math/katex"]',"math","[data-math]","[data-latex]","[data-tex]",'script[type^="math/"]','annotation[encoding="application/x-tex"]'].join(",");let i=["latex","chl","tex","eq","math"].map((e3=>new RegExp(`[?&]${e3}=([^&#]+)`,"i")));function a(e3){try{let r3=decodeURIComponent(e3.replace(/\+/g," "));return t2.LOOKS_LIKE_LATEX_RE.test(r3)?r3:null}catch(e4){return null}}t2.LOOKS_LIKE_LATEX_RE=/\\[a-zA-Z]{2,}/;let s=/\$\$([\s\S]+?)\$\$|\\\[([\s\S]+?)\\\]|\$([^\s$][^$]*[^\s$]|[^\s$])\$|\\\(([\s\S]+?)\\\)/g,l=/\\[a-zA-Z]/,c2=/[_^{}]/,u=new Set(["PRE","CODE","SCRIPT","STYLE","MATH","SVG","TEXTAREA"])},3974(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.mathRules=t2.createCleanMathEl=t2.getLatexFromElement=void 0;let n2=r2(2354),o=r2(7282),i=r2(639);t2.getLatexFromElement=e3=>{let t3=(0,o.getBasicLatexFromElement)(e3);if(t3)return t3;let r3=(0,o.getMathMLFromElement)(e3);if(r3!=null&&r3.mathml)try{return n2.MathMLToLaTeX.convert(r3.mathml)}catch(e4){console.warn("Failed to convert MathML to LaTeX:",e4)}return null},t2.createCleanMathEl=(e3,t3,n3,o2)=>{let a=o2.createElement("math");if(a.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),a.setAttribute("display",n3?"block":"inline"),a.setAttribute("data-latex",t3||""),e3==null?void 0:e3.mathml){let t4=(0,i.parseHTML)(o2,e3.mathml).querySelector("math");t4&&(0,i.transferContent)(t4,a)}else if(t3)try{let e4=r2(5914).renderToString(t3,{displayMode:n3,throwOnError:!1}),s=(0,i.parseHTML)(o2,e4).querySelector("math");if(s)for(;s.firstChild;)a.appendChild(s.firstChild);else a.textContent=t3}catch(e4){console.warn("Failed to convert LaTeX to MathML:",e4),a.textContent=t3}return a},t2.mathRules=[{selector:o.mathSelectors,element:"math",fastCheck:o.mathFastCheck,transform:e3=>{if(!("classList"in e3)||!("getAttribute"in e3)||!("querySelector"in e3))return e3;let r3=(0,o.getMathMLFromElement)(e3),n3=(0,t2.getLatexFromElement)(e3),i2=(0,o.isBlockDisplay)(e3),a=(0,t2.createCleanMathEl)(r3,n3,i2,e3.ownerDocument);return e3.parentElement&&!e3.matches('script[type^="math/"]')&&e3.parentElement.querySelectorAll('script[type^="math/"], .MathJax_Preview, script[type="text/javascript"][src*="mathjax"], script[type="text/javascript"][src*="katex"]').forEach((e4=>e4.remove())),a}}]},1917(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.ExtractorRegistry=void 0;let n2=r2(5959),o=r2(2248),i=r2(1064),a=r2(3258),s=r2(2458),l=r2(8632),c2=r2(8397),u=r2(3020),d=r2(4732),h2=r2(3588),m=r2(5666),p=r2(3055),f=r2(27),g=r2(6581),b=r2(8090),x=r2(2144),v=r2(8477),y=r2(9970),w=r2(5654),A=r2(4454),C=r2(1756);class E{static initialize(){this.register({patterns:["x.com","twitter.com"],extractor:i.XArticleExtractor}),this.register({patterns:["twitter.com",/\/x\.com\/.*/],extractor:o.TwitterExtractor}),this.register({patterns:["x.com","twitter.com"],extractor:m.XOembedExtractor}),this.register({patterns:["reddit.com","old.reddit.com","new.reddit.com",/^https:\/\/[^\/]+\.reddit\.com/],extractor:n2.RedditExtractor}),this.register({patterns:["youtube.com","youtu.be",/youtube\.com\/watch\?v=.*/,/youtu\.be\/.*/],extractor:a.YoutubeExtractor}),this.register({patterns:["news.ycombinator.com"],extractor:s.HackerNewsExtractor}),this.register({patterns:[/^https?:\/\/chatgpt\.com\/(c|share)\/.*/],extractor:l.ChatGPTExtractor}),this.register({patterns:["claude.ai",/^https?:\/\/claude\.ai\/(chat|share)\/.*/],extractor:c2.ClaudeExtractor}),this.register({patterns:[/^https?:\/\/grok\.com\/(chat|share)(\/.*)?$/],extractor:u.GrokExtractor}),this.register({patterns:[/^https?:\/\/gemini\.google\.com\/app\/.*/],extractor:d.GeminiExtractor}),this.register({patterns:["github.com",/^https?:\/\/github\.com\/.*/],extractor:h2.GitHubExtractor}),this.register({patterns:["linkedin.com"],extractor:v.LinkedInExtractor}),this.register({patterns:["threads.net","www.threads.com","threads.com"],extractor:y.ThreadsExtractor}),this.register({patterns:["bsky.app"],extractor:w.BlueskyExtractor}),this.register({patterns:["medium.com",/\.medium\.com/],extractor:C.MediumExtractor}),this.register({patterns:["wiki.c2.com"],extractor:f.C2WikiExtractor}),this.register({patterns:[/^https?:\/\/substack\.com\/@[^/]+\/note\/.+/,/^https?:\/\/substack\.com\/home\/post\/p-\d+/,"substack.com"],extractor:g.SubstackExtractor}),this.register({patterns:["nytimes.com"],extractor:b.NytimesExtractor}),this.register({patterns:["wikipedia.org"],extractor:x.WikipediaExtractor}),this.register({patterns:[/\/t\/[^/]+\/\d+/],extractor:A.DiscourseExtractor}),this.register({patterns:[/.*/],extractor:p.BbcodeDataExtractor})}static register(e3){this.mappings.push(e3)}static findExtractor(e3,t3,r3,n3){return this.findByPredicate(e3,t3,r3,(e4=>e4.canExtract()),n3)}static findAsyncExtractor(e3,t3,r3,n3){return this.findByPredicate(e3,t3,r3,(e4=>e4.canExtractAsync()),n3)}static findPreferredAsyncExtractor(e3,t3,r3,n3){return this.findByPredicate(e3,t3,r3,(e4=>e4.canExtractAsync()&&e4.prefersAsync()),n3)}static findByPredicate(e3,t3,r3,n3,o2){try{let i2=new URL(t3).hostname;for(let{patterns:a2,extractor:s2}of this.mappings)if(a2.some((e4=>e4 instanceof RegExp?e4.test(t3):i2.includes(e4)))){let i3=new s2(e3,t3,r3,o2);if(n3(i3))return i3}return null}catch(e4){return console.error("Error finding extractor:",e4),null}}}t2.ExtractorRegistry=E,E.mappings=[],E.initialize()},2279(e2,t2){"use strict";var r2=this&&this.__awaiter||function(e3,t3,r3,n2){return new(r3||(r3=Promise))((function(o,i){function a(e4){try{l(n2.next(e4))}catch(e5){i(e5)}}function s(e4){try{l(n2.throw(e4))}catch(e5){i(e5)}}function l(e4){var t4;e4.done?o(e4.value):(t4=e4.value,t4 instanceof r3?t4:new r3((function(e5){e5(t4)}))).then(a,s)}l((n2=n2.apply(e3,t3||[])).next())}))};Object.defineProperty(t2,"__esModule",{value:!0}),t2.BaseExtractor=void 0,t2.BaseExtractor=class{constructor(e3,t3,r3,n2){this.document=e3,this.url=t3,this.schemaOrgData=r3,this.options=n2||{}}get fetch(){return(this.options.fetch||globalThis.fetch).bind(globalThis)}postTitle(e3,t3){return`Post by ${e3} on ${t3}`}canExtractAsync(){return!1}prefersAsync(){return!1}extractAsync(){return r2(this,void 0,void 0,(function*(){return this.extract()}))}}},5181(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.ConversationExtractor=void 0;let n2=r2(2279),o=r2(5628),i=r2(639);class a extends n2.BaseExtractor{getFootnotes(){return[]}extract(){var e3;let t3=this.extractMessages(),r3=this.getMetadata(),n3=this.getFootnotes(),a2=this.createContentHtml(t3,n3),s=this.document.implementation.createHTMLDocument(),l=s.createElement("article");l.appendChild((0,i.parseHTML)(s,a2)),s.body.appendChild(l);let c2=new o.Defuddle(s).parse(),u=c2.content;return{content:u,contentHtml:u,extractedContent:{messageCount:t3.length.toString()},variables:{title:r3.title||"Conversation",site:r3.site,description:r3.description||`${r3.site} conversation with ${t3.length} messages`,wordCount:((e3=c2.wordCount)===null||e3===void 0?void 0:e3.toString())||""}}}createContentHtml(e3,t3){return`${e3.map(((t4,r3)=>{let n3=t4.timestamp?`<div class="message-timestamp">${t4.timestamp}</div>`:"",o2=/<p[^>]*>[\s\S]*?<\/p>/i.test(t4.content)?t4.content:`<p>${t4.content}</p>`,i2=t4.metadata?Object.entries(t4.metadata).map((([e4,t5])=>`data-${e4}="${t5}"`)).join(" "):"";return`
<div class="message message-${t4.author.toLowerCase()}" ${i2}>
<div class="message-header">
<p class="message-author"><strong>${t4.author}</strong></p>
${n3}
</div>
<div class="message-content">
${o2}
</div>
</div>${r3<e3.length-1?`
<hr>`:""}`})).join(`
`).trim()}
${t3.length>0?`
<div id="footnotes">
<ol>
${t3.map(((e4,t4)=>`
<li class="footnote" id="fn:${t4+1}">
<p>
<a href="${e4.url}" target="_blank">${e4.text}</a>&nbsp;<a href="#fnref:${t4+1}" class="footnote-backref">\u21A9</a>
</p>
</li>
`)).join("")}
</ol>
</div>`:""}`.trim()}}t2.ConversationExtractor=a},3055(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.BbcodeDataExtractor=void 0;let n2=r2(2279),o=r2(6618);class i extends n2.BaseExtractor{constructor(){super(...arguments),this.eventData=void 0}canExtract(){var e3,t3;return!!(!((t3=(e3=this.getEventData())===null||e3===void 0?void 0:e3.announcement_body)===null||t3===void 0)&&t3.body)}extract(){let e3=this.getEventData(),t3=e3.announcement_body,r3=(0,o.bbcodeToHtml)(t3.body||""),n3=t3.headline||e3.event_name||"",i2=t3.posttime?new Date(1e3*t3.posttime).toISOString():"";return{content:r3,contentHtml:r3,extractedContent:{},variables:{title:n3,author:this.getGroupName(),published:i2}}}getEventData(){var e3;return this.eventData===void 0&&(this.eventData=(e3=this.parseConfigAttr("data-partnereventstore"))!==null&&e3!==void 0?e3:null),this.eventData}getGroupName(){let e3=this.parseConfigAttr("data-groupvanityinfo");return(e3==null?void 0:e3.group_name)||""}parseConfigAttr(e3){let t3=this.document.querySelector("#application_config"),r3=t3==null?void 0:t3.getAttribute(e3);if(!r3)return null;try{let e4=JSON.parse(r3);return Array.isArray(e4)?e4[0]:e4}catch(e4){return null}}}t2.BbcodeDataExtractor=i},5654(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.BlueskyExtractor=void 0;let n2=r2(2279),o=r2(639),i=r2(6077);class a extends n2.BaseExtractor{constructor(e3,t3,r3,n3){super(e3,t3,r3,n3),this.postItems=[],this.threadScreen=e3.querySelector('[data-testid="postThreadScreen"]'),this.threadScreen&&(this.postItems=Array.from(this.threadScreen.querySelectorAll('[data-testid^="postThreadItem-by-"]')))}canExtract(){return this.postItems.length>0}extract(){let e3=this.getHandle(this.postItems[0]),t3=[],r3=[],n3=!1;for(let o3 of this.postItems){let i2=this.getHandle(o3);n3||i2!==e3?(n3=!0,r3.push(o3)):t3.push(o3)}let o2=t3.map((e4=>this.extractPostContent(e4))).join(`
<hr>
`),a2=this.options.includeReplies!==!1?this.extractComments(r3):"",s=(0,i.buildContentHtml)("bluesky",o2,a2),l=`@${e3}`,c2=this.getDisplayName(this.postItems[0]),u=this.createDescription(this.postItems[0]),d=this.getPublishedDate(),h2=this.postTitle(c2||l,"Bluesky");return{content:s,contentHtml:s,extractedContent:{postAuthor:e3},variables:Object.assign({title:h2,author:c2||l,site:"Bluesky",description:u},d&&{published:d})}}extractComments(e3){if(e3.length===0)return"";let t3=0,r3=e3.map((e4=>{let r4=this.getHandle(e4),n3=this.getDisplayName(e4),o2=this.extractPostContent(e4),i2=this.getReplyDate(e4),a2=this.getPermalink(e4);return this.hasTopConnector(e4)?t3++:t3=0,{author:n3?`${n3} @${r4}`:`@${r4}`,date:i2,content:o2,depth:t3,url:a2||void 0}}));return(0,i.buildCommentTree)(r3)}hasTopConnector(e3){let t3=e3.children[0];if(!t3)return!1;let r3=t3.querySelectorAll("div");for(let e4 of Array.from(r3)){let t4=e4.getAttribute("style")||"";if(t4.includes("width: 2px")&&t4.includes("background-color"))return!0}return!1}getHandle(e3){let t3=(e3.getAttribute("data-testid")||"").match(/^postThreadItem-by-(.+)$/);return t3?t3[1]:""}getDisplayName(e3){var t3;let r3=e3.querySelector('a[aria-label*="avatar"]');if(r3){let e4=(r3.getAttribute("aria-label")||"").match(/^(.+)'s avatar$/);if(e4)return e4[1]}let n3=e3.querySelectorAll('a[href^="/profile/"]');for(let e4 of Array.from(n3)){let r4=((t3=e4.textContent)===null||t3===void 0?void 0:t3.trim())||"";if(r4&&!r4.startsWith("@")&&!r4.includes("avatar")&&!r4.includes("\xB7"))return r4}return""}getPublishedDate(){let e3=this.document.querySelector('meta[name="twitter:value1"]');if(e3){let t3=e3.getAttribute("content")||"";try{return new Date(t3).toISOString().split("T")[0]}catch(e4){}}return""}getReplyDate(e3){let t3=e3.querySelector('a[href*="/post/"]');if(!t3)return"";let r3=t3.getAttribute("aria-label")||"";if(!r3)return"";try{let e4=new Date(r3.replace(" at "," "));if(!isNaN(e4.getTime()))return e4.toISOString().split("T")[0]}catch(e4){}return""}getPermalink(e3){let t3=e3.querySelector('a[href*="/post/"]');if(!t3)return"";let r3=t3.getAttribute("href")||"";return r3.startsWith("http")?r3:`https://bsky.app${r3}`}extractPostContent(e3){let t3=[],r3=e3.querySelector('div[data-word-wrap="1"]');if(r3){let e4=this.cleanText(r3);e4&&t3.push(e4)}let n3=this.extractImages(e3);n3&&t3.push(n3);let o2=this.extractLinkCard(e3);o2&&t3.push(o2);let i2=this.extractQuotedPost(e3);return i2&&t3.push(i2),t3.join(`
`)}cleanText(e3){let t3=e3.cloneNode(!0);t3.querySelectorAll('a[href*="/profile/"]').forEach((e4=>{var r4;let n3=((r4=e4.textContent)===null||r4===void 0?void 0:r4.trim())||"",o2=e4.getAttribute("href")||"";if(n3.startsWith("@")){let r5=n3.slice(1),o3=t3.ownerDocument.createElement("a");o3.setAttribute("href",`https://bsky.app/profile/${r5}`),o3.textContent=n3,e4.replaceWith(o3)}else o2.startsWith("/profile/")&&e4.setAttribute("href",`https://bsky.app${o2}`)})),t3.querySelectorAll('a[href^="http"]').forEach((e4=>{var r4;let n3=e4.getAttribute("href")||"",o2=((r4=e4.textContent)===null||r4===void 0?void 0:r4.trim())||"",i2=t3.ownerDocument.createElement("a");i2.setAttribute("href",n3),i2.textContent=o2,e4.replaceWith(i2)})),t3.querySelectorAll("span, div").forEach((e4=>{e4.replaceWith(...Array.from(e4.childNodes))}));let r3=(t3.innerHTML||t3.textContent||"").trim();return r3=r3.replace(/[\u200E\u200F\u200B]/g,""),r3=r3.replace(/[^\S\n]+/g," ").trim(),r3?r3.split(/\n+/).map((e4=>e4.trim())).filter((e4=>e4)).map((e4=>`<p>${e4}</p>`)).join(`
`):""}extractImages(e3){let t3=[];return e3.querySelectorAll('img[src*="/feed_thumbnail/"], img[src*="/feed_fullsize/"]').forEach((e4=>{let r3=e4.getAttribute("src")||"";if(!r3)return;let n3=r3.replace("/feed_thumbnail/","/feed_fullsize/");t3.push(`<img src="${(0,o.escapeHtml)(n3)}" alt="" />`)})),t3.join(`
`)}extractLinkCard(e3){let t3=e3.querySelectorAll('a[aria-label][href^="http"]');for(let e4 of Array.from(t3)){if(!e4.querySelector('div[style*="border"]'))continue;let t4=e4.getAttribute("href")||"",r3=e4.getAttribute("aria-label")||"",n3=e4.querySelector("img");if(r3){let e5="";if(n3){let i2=n3.getAttribute("src")||"";e5+=`<a href="${(0,o.escapeHtml)(t4)}"><img src="${(0,o.escapeHtml)(i2)}" alt="${(0,o.escapeHtml)(r3)}" /></a>
`}return e5+=`<p><a href="${(0,o.escapeHtml)(t4)}">${(0,o.escapeHtml)(r3)}</a></p>`,e5}}return""}extractQuotedPost(e3){let t3=e3.querySelectorAll('[data-testid^="postThreadItem-by-"]');for(let r3 of Array.from(t3)){if(r3===e3)continue;let t4=this.getHandle(r3),n3=this.getDisplayName(r3),o2=r3.querySelector('div[data-word-wrap="1"]'),a2=o2?this.cleanText(o2):"";return(0,i.buildQuotedPost)({author:n3?`${n3} @${t4}`:`@${t4}`,content:a2})}return""}createDescription(e3){let t3=e3.querySelector('div[data-word-wrap="1"]');return t3?(t3.textContent||"").replace(/[\u200E\u200F\u200B]/g,"").trim().slice(0,140).replace(/\s+/g," "):""}}t2.BlueskyExtractor=a},27(e2,t2,r2){"use strict";var n2=this&&this.__awaiter||function(e3,t3,r3,n3){return new(r3||(r3=Promise))((function(o2,i2){function a2(e4){try{l(n3.next(e4))}catch(e5){i2(e5)}}function s2(e4){try{l(n3.throw(e4))}catch(e5){i2(e5)}}function l(e4){var t4;e4.done?o2(e4.value):(t4=e4.value,t4 instanceof r3?t4:new r3((function(e5){e5(t4)}))).then(a2,s2)}l((n3=n3.apply(e3,t3||[])).next())}))};Object.defineProperty(t2,"__esModule",{value:!0}),t2.C2WikiExtractor=void 0;let o=r2(2279),i=r2(639);class a extends o.BaseExtractor{canExtract(){return!1}canExtractAsync(){return this.getPageTitle()!==null}prefersAsync(){return!0}extract(){return{content:"",contentHtml:""}}extractAsync(){return n2(this,void 0,void 0,(function*(){let e3=this.getPageTitle();if(!e3)return{content:"",contentHtml:""};let t3=yield this.fetch("https://c2.com/wiki/remodel/pages/"+e3).then((e4=>e4.json()));if(!t3||!t3.text)return{content:"",contentHtml:""};let r3=e3.replace(/([a-z])([A-Z])/g,"$1 $2"),n3=this.renderPage(t3);return{content:n3,contentHtml:n3,variables:Object.assign({title:r3,site:"C2 Wiki"},t3.date?{published:t3.date}:{})}}))}getPageTitle(){if(this.pageTitle!==void 0)return this.pageTitle;try{let e3=new URL(this.url).search.match(/[?&]([A-Za-z]\w*)/);this.pageTitle=e3?e3[1]:"WelcomeVisitors"}catch(e3){this.pageTitle=null}return this.pageTitle}renderPage(e3){return`${this.markup(e3.text)}${e3.date?`<hr><p>Last edit ${(0,i.escapeHtml)(e3.date)}</p>`:""}`}markup(e3){let t3=e3.replace(/\\\n/g," ").split(/\r?\n/),r3=[],n3=[];for(let e4 of t3){let{html:t4,openTags:o2}=this.applyBullets(e4,n3);r3.push(this.applyInline(t4)),n3=o2}for(;n3.length>0;)r3.push(`</${n3.pop()}>`);return r3.join(`
`)}applyBullets(e3,t3){let r3=[...t3],n3="",o2=(e4,t4)=>{for(;r3.length>e4;)n3+=`</${r3.pop()}>`;t4&&r3.length<e4?(n3+=`<${t4}>`,r3.push(t4)):t4&&r3.length===e4&&r3[e4-1]!==t4&&(n3+=`</${r3.pop()}><${t4}>`,r3.push(t4))};if(/^\s*$/.test(e3))return r3.some((e4=>e4==="ul"||e4==="ol"||e4==="dl"))?{html:"",openTags:r3}:(o2(0),{html:n3+"<p></p>",openTags:r3});if(/^-----*/.test(e3))return o2(0),{html:n3+"<hr>",openTags:r3};let i2=e3.match(/^(\t+)(.+):\t/);if(i2)return o2(i2[1].length,"dl"),{html:n3+`<dt>${i2[2]}<dd>`+e3.slice(i2[0].length),openTags:r3};let a2=e3.match(/^(\t+)\*/);if(a2)return o2(a2[1].length,"ul"),{html:n3+"<li>"+e3.slice(a2[0].length),openTags:r3};let s2=e3.match(/^(\*+)/);if(s2)return o2(s2[1].length,"ul"),{html:n3+"<li>"+e3.slice(s2[0].length),openTags:r3};let l=e3.match(/^(\t+)\d+\.?/);return l?(o2(l[1].length,"ol"),{html:n3+"<li>"+e3.slice(l[0].length),openTags:r3}):/^\s/.test(e3)?(o2(1,"pre"),{html:n3+e3,openTags:r3}):(o2(0),{html:n3+e3,openTags:r3})}applyInline(e3){return e3.replace(/'''(.*?)'''/g,"<strong>$1</strong>").replace(/''(.*?)''/g,"<em>$1</em>").replace(/\b(https?|ftp|mailto|file|telnet|news):[^\s<>[\]"'()]*[^\s<>[\]"'(),.?]/g,(e4=>(0,i.isDangerousUrl)(e4)?(0,i.escapeHtml)(e4):/\.(gif|jpg|jpeg|png)$/i.test(e4)?`<img src="${s(e4)}">`:`<a href="${s(e4)}" rel="nofollow" target="_blank">${(0,i.escapeHtml)(e4)}</a>`))}}function s(e3){return e3.replace(/"/g,"&quot;").replace(/'/g,"&#39;")}t2.C2WikiExtractor=a},8632(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.ChatGPTExtractor=void 0;let n2=r2(5181),o=r2(639);class i extends n2.ConversationExtractor{constructor(e3,t3){super(e3,t3),this.cachedMessages=null,this.turns=e3.querySelectorAll('[data-testid^="conversation-turn-"]'),this.footnotes=[],this.footnoteCounter=0}canExtract(){return!!this.turns&&this.turns.length>0}extractMessages(){if(this.cachedMessages)return this.cachedMessages;let e3=[];return this.footnotes=[],this.footnoteCounter=0,this.turns&&(this.turns.forEach((t3=>{var r3,n3;let i2=t3.querySelector("h4.sr-only, h5.sr-only, h6.sr-only"),a=((n3=(r3=i2==null?void 0:i2.textContent)===null||r3===void 0?void 0:r3.trim())===null||n3===void 0?void 0:n3.replace(/:\s*$/,""))||"",s=t3.querySelector("[data-message-author-role]"),l=(s==null?void 0:s.getAttribute("data-message-author-role"))||"",c2=(s==null?void 0:s.querySelector(".markdown, .whitespace-pre-wrap"))||s||t3,u=(0,o.serializeHTML)(c2);u=u.replace(/\u200B/g,"");let d=this.document.createElement("div");d.appendChild((0,o.parseHTML)(this.document,u)),d.querySelectorAll('h4.sr-only, h5.sr-only, h6.sr-only, span[data-state="closed"]').forEach((e4=>e4.remove())),u=(0,o.serializeHTML)(d),u=u.replace(/(&ZeroWidthSpace;)?(<span[^>]*?>\s*<a(?=[^>]*?href="([^"]+)")(?=[^>]*?target="_blank")(?=[^>]*?rel="noopener")[^>]*?>[\s\S]*?<\/a>\s*<\/span>)/gi,((e4,t4,r4,n4)=>{let o2="",i3="";try{o2=new URL(n4).hostname.replace(/^www\./,"");let e5=n4.split("#:~:text=");if(e5.length>1){i3=decodeURIComponent(e5[1]),i3=i3.replace(/%2C/g,",");let t5=i3.split(",");i3=t5.length>1&&t5[0].trim()?` \u2014 ${t5[0].trim()}...`:t5[0].trim()?` \u2014 ${i3.trim()}`:""}}catch(e5){console.error(`Failed to parse URL: ${n4}`,e5),o2=n4}let a2,s2=this.footnotes.findIndex((e5=>e5.url===n4));return s2===-1?(this.footnoteCounter++,a2=this.footnoteCounter,this.footnotes.push({url:n4,text:`<a href="${n4}">${o2}</a>${i3}`})):a2=s2+1,`<sup id="fnref:${a2}"><a href="#fn:${a2}">${a2}</a></sup>`})),u=u.replace(/<p[^>]*>\s*<\/p>/g,""),e3.push({author:a,content:u.trim(),metadata:{role:l||"unknown"}})})),this.cachedMessages=e3),e3}getFootnotes(){return this.footnotes}getMetadata(){let e3=this.getTitle(),t3=this.extractMessages();return{title:e3,site:"ChatGPT",url:this.url,messageCount:t3.length,description:`ChatGPT conversation with ${t3.length} messages`}}getTitle(){var e3,t3,r3;let n3=(e3=this.document.title)===null||e3===void 0?void 0:e3.trim();if(n3&&n3!=="ChatGPT")return n3;let o2=(r3=(t3=this.turns)===null||t3===void 0?void 0:t3.item(0))===null||r3===void 0?void 0:r3.querySelector(".text-message");if(o2){let e4=o2.textContent||"";return e4.length>50?e4.slice(0,50)+"...":e4}return"ChatGPT Conversation"}}t2.ChatGPTExtractor=i},8397(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.ClaudeExtractor=void 0;let n2=r2(5181),o=r2(639);class i extends n2.ConversationExtractor{constructor(e3,t3){super(e3,t3),this.articles=e3.querySelectorAll('div[data-testid="user-message"], div[data-testid="assistant-message"], div.font-claude-response')}canExtract(){return!!this.articles&&this.articles.length>0}extractMessages(){let e3=[];return this.articles&&this.articles.forEach((t3=>{let r3,n3;if(t3.hasAttribute("data-testid")){if(t3.getAttribute("data-testid")!=="user-message")return;r3="you",n3=(0,o.serializeHTML)(t3)}else{if(!t3.classList.contains("font-claude-response"))return;{r3="assistant";let e4=t3.querySelector(".standard-markdown")||t3;n3=(0,o.serializeHTML)(e4)}}n3&&(n3=n3.replace(/\u200B/g,"").replace(/<p[^>]*>\s*<\/p>/g,""),e3.push({author:r3==="you"?"You":"Claude",content:n3.trim(),metadata:{role:r3}}))})),e3}getMetadata(){let e3=this.getTitle(),t3=this.extractMessages();return{title:e3,site:"Claude",url:this.url,messageCount:t3.length,description:`Claude conversation with ${t3.length} messages`}}getTitle(){var e3,t3,r3,n3,o2;let i2=(e3=this.document.title)===null||e3===void 0?void 0:e3.trim();if(i2&&i2!=="Claude")return i2.replace(/ - Claude$/,"");let a=(r3=(t3=this.document.querySelector("header .font-tiempos"))===null||t3===void 0?void 0:t3.textContent)===null||r3===void 0?void 0:r3.trim();if(a)return a;let s=(o2=(n3=this.articles)===null||n3===void 0?void 0:n3.item(0))===null||o2===void 0?void 0:o2.querySelector('[data-testid="user-message"]');if(s){let e4=s.textContent||"";return e4.length>50?e4.slice(0,50)+"...":e4}return"Claude Conversation"}}t2.ClaudeExtractor=i},4454(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.DiscourseExtractor=void 0;let n2=r2(2279),o=r2(639),i=r2(6077);class a extends n2.BaseExtractor{constructor(e3,t3,r3,n3){var o2;super(e3,t3,r3,n3);let i2=((o2=e3.querySelector('meta[name="generator"]'))===null||o2===void 0?void 0:o2.getAttribute("content"))||"";this.isDiscourse=i2.startsWith("Discourse")}canExtract(){return this.isDiscourse&&!!this.document.querySelector(".topic-post")}extract(){var e3,t3,r3,n3;let o2=this.getTopicTitle(),a2=((e3=this.document.querySelector('meta[property="og:site_name"]'))===null||e3===void 0?void 0:e3.getAttribute("content"))||"",s=((r3=(t3=this.document.querySelector(".badge-category__name"))===null||t3===void 0?void 0:t3.textContent)===null||r3===void 0?void 0:r3.trim())||"",l=this.getTags(),c2=this.getPublishedDate(),u=Array.from(this.document.querySelectorAll(".topic-post")),d=u.find((e4=>e4.classList.contains("topic-owner"))),h2=d?this.extractPostContent(d):"",m=d?this.getAuthor(d):"",p=u.filter((e4=>e4!==d)),f=this.options.includeReplies!==!1?this.extractComments(p):"",g=(0,i.buildContentHtml)("discourse",h2,f),b=m||this.getAuthor(u[0]),x=d?this.getPostText(d).slice(0,140).replace(/\s+/g," "):"";return{content:g,contentHtml:g,extractedContent:{topicId:((n3=this.document.querySelector("h1[data-topic-id]"))===null||n3===void 0?void 0:n3.getAttribute("data-topic-id"))||"",category:s,tags:l.join(", ")},variables:Object.assign({title:o2,author:b,site:a2||"Discourse",description:x},c2&&{published:c2})}}getTopicTitle(){var e3,t3;let r3=this.document.querySelector(".fancy-title");if(r3)return((e3=r3.textContent)===null||e3===void 0?void 0:e3.trim())||"";let n3=this.document.querySelector("h1[data-topic-id]");if(n3){let e4=n3.cloneNode(!0);return e4.querySelectorAll("svg, .topic-statuses").forEach((e5=>e5.remove())),((t3=e4.textContent)===null||t3===void 0?void 0:t3.trim())||""}return""}getTags(){return Array.from(this.document.querySelectorAll("a.discourse-tag")).map((e3=>{var t3;return e3.getAttribute("data-tag-name")||((t3=e3.textContent)===null||t3===void 0?void 0:t3.trim())||""})).filter((e3=>e3))}getPublishedDate(){let e3=this.document.querySelector('meta[property="article:published_time"]');if(e3){let t3=e3.getAttribute("content")||"";try{return new Date(t3).toISOString().split("T")[0]}catch(e4){}}return""}getAuthor(e3){var t3;let r3=e3.querySelector(".names a[data-user-card]");return(r3==null?void 0:r3.getAttribute("data-user-card"))||((t3=r3==null?void 0:r3.textContent)===null||t3===void 0?void 0:t3.trim())||""}getPostDate(e3){let t3=e3.querySelector(".relative-date[data-time]");if(!t3)return"";let r3=parseInt(t3.getAttribute("data-time")||"0");if(!r3)return"";try{return new Date(r3).toISOString().split("T")[0]}catch(e4){return""}}getPostPermalink(e3){let t3=e3.querySelector("a.post-date[href]");if(!t3)return"";let r3=t3.getAttribute("href")||"";if(!r3)return"";try{return`${new URL(this.url).origin}${r3}`}catch(e4){return r3}}getLikeCount(e3){var t3;let r3=e3.querySelector("button.like-count"),n3=((t3=r3==null?void 0:r3.textContent)===null||t3===void 0?void 0:t3.trim())||"";return n3?`${n3} likes`:""}getPostText(e3){var t3;let r3=e3.querySelector(".cooked");return r3&&((t3=r3.textContent)===null||t3===void 0?void 0:t3.trim())||""}extractPostContent(e3){let t3=e3.querySelector(".cooked");if(!t3)return"";let r3=t3.cloneNode(!0);return r3.querySelectorAll(".cooked-selection-barrier").forEach((e4=>e4.remove())),r3.querySelectorAll("a.anchor").forEach((e4=>e4.remove())),(0,o.serializeHTML)(r3)}extractComments(e3){if(e3.length===0)return"";let t3=e3.map((e4=>{let t4=this.getAuthor(e4),r3=this.extractPostContent(e4),n3=this.getPostDate(e4),o2=this.getPostPermalink(e4);return{author:t4,date:n3,content:r3,depth:0,score:this.getLikeCount(e4)||void 0,url:o2||void 0}}));return(0,i.buildCommentTree)(t3)}}t2.DiscourseExtractor=a},4732(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.GeminiExtractor=void 0;let n2=r2(5181),o=r2(639);class i extends n2.ConversationExtractor{constructor(e3,t3){super(e3,t3),this.messageCount=null,this.conversationContainers=e3.querySelectorAll("div.conversation-container"),this.footnotes=[]}canExtract(){return!!this.conversationContainers&&this.conversationContainers.length>0}extractMessages(){this.messageCount=0;let e3=[];return this.conversationContainers&&(this.extractSources(),this.conversationContainers.forEach((t3=>{let r3=t3.querySelector("user-query");if(r3){let t4=r3.querySelector(".query-text");if(t4){let r4=(0,o.serializeHTML)(t4);e3.push({author:"You",content:r4.trim(),metadata:{role:"user"}})}}let n3=t3.querySelector("model-response");if(n3){let t4=n3.querySelector(".model-response-text .markdown"),r4=n3.querySelector("#extended-response-markdown-content")||t4;if(r4){let t5=(0,o.serializeHTML)(r4),n4=this.document.createElement("div");n4.appendChild((0,o.parseHTML)(this.document,t5)),n4.querySelectorAll(".table-content").forEach((e4=>{e4.classList.remove("table-content")})),t5=(0,o.serializeHTML)(n4),e3.push({author:"Gemini",content:t5.trim(),metadata:{role:"assistant"}})}}})),this.messageCount=e3.length),e3}extractSources(){let e3=this.document.querySelectorAll("browse-item");e3&&e3.length>0&&e3.forEach((e4=>{var t3,r3,n3,o2;let i2=e4.querySelector("a");if(i2 instanceof HTMLAnchorElement){let e5=i2.href,a=((r3=(t3=i2.querySelector(".domain"))===null||t3===void 0?void 0:t3.textContent)===null||r3===void 0?void 0:r3.trim())||"",s=((o2=(n3=i2.querySelector(".title"))===null||n3===void 0?void 0:n3.textContent)===null||o2===void 0?void 0:o2.trim())||"";e5&&(a||s)&&this.footnotes.push({url:e5,text:s?`${a}: ${s}`:a})}}))}getFootnotes(){return this.footnotes}getMetadata(){var e3;let t3=this.getTitle(),r3=(e3=this.messageCount)!==null&&e3!==void 0?e3:this.extractMessages().length;return{title:t3,site:"Gemini",url:this.url,messageCount:r3,description:`Gemini conversation with ${r3} messages`}}getTitle(){var e3,t3,r3,n3,o2;let i2=(e3=this.document.title)===null||e3===void 0?void 0:e3.trim();if(i2&&i2!=="Gemini"&&!i2.includes("Gemini"))return i2;let a=(r3=(t3=this.document.querySelector(".title-text"))===null||t3===void 0?void 0:t3.textContent)===null||r3===void 0?void 0:r3.trim();if(a)return a;let s=(o2=(n3=this.conversationContainers)===null||n3===void 0?void 0:n3.item(0))===null||o2===void 0?void 0:o2.querySelector(".query-text");if(s){let e4=s.textContent||"";return e4.length>50?e4.slice(0,50)+"...":e4}return"Gemini Conversation"}}t2.GeminiExtractor=i},3588(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.GitHubExtractor=void 0;let n2=r2(2279),o=r2(639),i=r2(6077);class a extends n2.BaseExtractor{constructor(e3,t3){super(e3,t3),this.isIssue=/\/issues\/\d+/.test(t3),this.isPR=/\/pull\/\d+/.test(t3)}canExtract(){return!!['meta[name="expected-hostname"][content="github.com"]','meta[name="octolytics-url"]','meta[name="github-keyboard-shortcuts"]',".js-header-wrapper","#js-repo-pjax-container"].some((e3=>this.document.querySelector(e3)!==null))&&(this.isIssue?['[data-testid="issue-metadata-sticky"]','[data-testid="issue-title"]'].some((e3=>this.document.querySelector(e3)!==null)):!!this.isPR&&[".pull-discussion-timeline",".discussion-timeline",".gh-header-title",".js-issue-title"].some((e3=>this.document.querySelector(e3)!==null)))}extract(){let e3=this.extractRepoInfo(),t3=this.extractNumber(),r3=this.isPR?"pull":"issue",n3=this.isPR?this.getPRBody():null,{content:o2,author:i2,published:a2}=this.isPR?this.getPRContent(n3):this.getIssueContent(),s=this.options.includeReplies!==!1?this.isPR?this.extractPRComments(n3):this.extractComments():"",l=this.createContentHtml(o2,s);return{content:l,contentHtml:l,extractedContent:{type:r3,number:t3,repository:e3.repo,owner:e3.owner},variables:{title:this.document.title,author:i2,published:a2,site:`GitHub - ${e3.owner}/${e3.repo}`,description:this.createDescription(l)}}}createContentHtml(e3,t3){return(0,i.buildContentHtml)("github",e3,t3)}getIssueContent(){let e3=this.document.querySelector('[data-testid="issue-viewer-issue-container"]');if(!e3)return{content:"",author:"",published:""};let t3=this.extractAuthor(e3,['a[data-testid="issue-body-header-author"]',".IssueBodyHeaderAuthor-module__authorLoginLink--_S7aT",".ActivityHeader-module__AuthorLink--iofTU",'a[href*="/users/"][data-hovercard-url*="/users/"]','a[aria-label*="profile"]']),r3=e3.querySelector("relative-time"),n3=(r3==null?void 0:r3.getAttribute("datetime"))||"",o2=e3.querySelector('[data-testid="issue-body-viewer"] .markdown-body');return o2?{content:this.cleanBodyContent(o2),author:t3,published:n3}:{content:"",author:t3,published:n3}}extractComments(){let e3=Array.from(this.document.querySelectorAll("[data-wrapper-timeline-id]")),t3=new Set,r3=[];for(let n3 of e3){let e4=n3.querySelector(".react-issue-comment");if(!e4)continue;let o2=n3.getAttribute("data-wrapper-timeline-id");if(!o2||t3.has(o2))continue;t3.add(o2);let i2=this.extractAuthor(e4,[".ActivityHeader-module__AuthorLink--iofTU",'a[data-testid="avatar-link"]','a[href^="/"][data-hovercard-url*="/users/"]']),a2=e4.querySelector("relative-time"),s=(a2==null?void 0:a2.getAttribute("datetime"))||"",l=s?new Date(s).toISOString().split("T")[0]:"",c2=e4.querySelector(".markdown-body");if(!c2)continue;let u=this.cleanBodyContent(c2);u&&r3.push({author:i2,date:l,content:u})}return(0,i.buildCommentTree)(r3)}getPRBody(){return this.document.querySelector('[id^="pullrequest-"]')||this.document.querySelector(".timeline-comment")}getPRContent(e3){var t3;let r3=(e3==null?void 0:e3.querySelector(".comment-body.markdown-body"))||this.document.querySelector(".comment-body.markdown-body"),n3=r3?this.cleanBodyContent(r3):"",o2=(e3==null?void 0:e3.querySelector(".author"))||this.document.querySelector(".gh-header-meta .author"),i2=((t3=o2==null?void 0:o2.textContent)===null||t3===void 0?void 0:t3.trim())||"",a2=e3==null?void 0:e3.querySelector("relative-time");return{content:n3,author:i2,published:(a2==null?void 0:a2.getAttribute("datetime"))||""}}extractPRComments(e3){var t3;let r3=Array.from(this.document.querySelectorAll(".timeline-comment, .review-comment")),n3=[];for(let o2 of r3){if(e3&&(o2===e3||e3.contains(o2)))continue;let r4=o2.querySelector(".author"),i2=((t3=r4==null?void 0:r4.textContent)===null||t3===void 0?void 0:t3.trim())||"",a2=o2.querySelector("relative-time"),s=(a2==null?void 0:a2.getAttribute("datetime"))||"",l=s?new Date(s).toISOString().split("T")[0]:"",c2=o2.querySelector(".comment-body.markdown-body");if(!c2)continue;let u=this.cleanBodyContent(c2);u&&n3.push({author:i2,date:l,content:u})}return(0,i.buildCommentTree)(n3)}extractAuthor(e3,t3){for(let r3 of t3){let t4=e3.querySelector(r3);if(t4){let e4=t4.getAttribute("href");if(e4){if(e4.startsWith("/"))return e4.substring(1);if(e4.includes("github.com/")){let t5=e4.match(/github\.com\/([^\/\?#]+)/);if(t5&&t5[1])return t5[1]}}}}return"Unknown"}cleanBodyContent(e3){let t3=e3.cloneNode(!0);return t3.querySelectorAll('button, [data-testid*="button"], [data-testid*="menu"]').forEach((e4=>e4.remove())),t3.querySelectorAll(".js-clipboard-copy, .zeroclipboard-container").forEach((e4=>e4.remove())),t3.querySelectorAll('div.highlight[class*="highlight-source-"] pre, div.highlight pre').forEach((e4=>{let t4=e4.parentElement;if(!t4)return;let r3=t4.className.match(/highlight-source-(\w+)/),n3=(r3==null?void 0:r3[1])||"",o2=t4.getAttribute("data-snippet-clipboard-copy-content")||e4.textContent||"",i2=this.document.createElement("code");n3&&(i2.setAttribute("class",`language-${n3}`),i2.setAttribute("data-lang",n3)),i2.textContent=o2;let a2=this.document.createElement("pre");a2.appendChild(i2),t4.replaceWith(a2)})),(0,o.serializeHTML)(t3).trim()}extractNumber(){var e3;let t3=this.url.match(/\/(issues|pull)\/(\d+)/);if(t3)return t3[2];let r3=this.document.querySelector("h1"),n3=(e3=r3==null?void 0:r3.textContent)===null||e3===void 0?void 0:e3.match(/#(\d+)/);return n3?n3[1]:""}extractRepoInfo(){let e3=this.url.match(/github\.com\/([^\/]+)\/([^\/]+)/);if(e3)return{owner:e3[1],repo:e3[2]};let t3=this.document.title.match(/([^\/\s]+)\/([^\/\s]+)/);return t3?{owner:t3[1],repo:t3[2]}:{owner:"",repo:""}}createDescription(e3){var t3;if(!e3)return"";let r3=this.document.createElement("div");return r3.appendChild((0,o.parseHTML)(this.document,e3)),((t3=r3.textContent)===null||t3===void 0?void 0:t3.trim().slice(0,140).replace(/\s+/g," "))||""}}t2.GitHubExtractor=a},3020(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.GrokExtractor=void 0;let n2=r2(5181),o=r2(639);class i extends n2.ConversationExtractor{constructor(e3,t3){super(e3,t3),this.messageContainerSelector=".relative.group.flex.flex-col.justify-center.w-full",this.messageBubbles=e3.querySelectorAll(this.messageContainerSelector),this.footnotes=[],this.footnoteCounter=0}canExtract(){return!!this.messageBubbles&&this.messageBubbles.length>0}extractMessages(){let e3=[];return this.footnotes=[],this.footnoteCounter=0,this.messageBubbles&&this.messageBubbles.length!==0&&this.messageBubbles.forEach((t3=>{var r3;let n3=t3.classList.contains("items-end"),i2=t3.classList.contains("items-start");if(!n3&&!i2)return;let a=t3.querySelector(".message-bubble");if(!a)return;let s="",l="",c2="";if(n3)s=a.textContent||"",l="user",c2="You";else if(i2){l="assistant",c2="Grok";let e4=a.cloneNode(!0);(r3=e4.querySelector(".relative.border.border-border-l1.bg-surface-base"))===null||r3===void 0||r3.remove(),s=(0,o.serializeHTML)(e4),s=this.processFootnotes(s)}s.trim()&&e3.push({author:c2,content:s.trim(),metadata:{role:l}})})),e3}getFootnotes(){return this.footnotes}getMetadata(){var e3;let t3=this.getTitle(),r3=((e3=this.messageBubbles)===null||e3===void 0?void 0:e3.length)||0;return{title:t3,site:"Grok",url:this.url,messageCount:r3,description:`Grok conversation with ${r3} messages`}}getTitle(){var e3,t3;let r3=(e3=this.document.title)===null||e3===void 0?void 0:e3.trim();if(r3&&r3!=="Grok"&&!r3.startsWith("Grok by "))return r3.replace(/\s-\s*Grok$/,"").trim();let n3=this.document.querySelector(`${this.messageContainerSelector}.items-end`);if(n3){let e4=n3.querySelector(".message-bubble");if(e4){let r4=((t3=e4.textContent)===null||t3===void 0?void 0:t3.trim())||"";return r4.length>50?r4.slice(0,50)+"...":r4}}return"Grok Conversation"}processFootnotes(e3){return e3.replace(/<a\s+(?:[^>]*?\s+)?href="([^"]*)"[^>]*>(.*?)<\/a>/gi,((e4,t3,r3)=>{if(!t3||t3.startsWith("#")||!t3.match(/^https?:\/\//i))return e4;let n3;if(this.footnotes.find((e5=>e5.url===t3)))n3=this.footnotes.findIndex((e5=>e5.url===t3))+1;else{this.footnoteCounter++,n3=this.footnoteCounter;let e5=t3;try{let r4=new URL(t3).hostname.replace(/^www\./,"");e5=`<a href="${t3}" target="_blank" rel="noopener noreferrer">${r4}</a>`}catch(r4){e5=`<a href="${t3}" target="_blank" rel="noopener noreferrer">${t3}</a>`,console.warn(`GrokExtractor: Could not parse URL for footnote: ${t3}`)}this.footnotes.push({url:t3,text:e5})}return`${r3}<sup id="fnref:${n3}" class="footnote-ref"><a href="#fn:${n3}" class="footnote-link">${n3}</a></sup>`}))}}t2.GrokExtractor=i},2458(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.HackerNewsExtractor=void 0;let n2=r2(2279),o=r2(639),i=r2(6077);class a extends n2.BaseExtractor{constructor(e3,t3){super(e3,t3),this.mainPost=e3.querySelector(".fatitem"),this.isListingPage=this.detectListingPage(),this.isCommentPage=this.detectCommentPage(),this.mainComment=this.isCommentPage?this.findMainComment():null}detectListingPage(){return this.mainPost?!1:this.document.querySelectorAll("tr.athing").length>1}detectCommentPage(){var e3,t3;return!!(!((e3=this.mainPost)===null||e3===void 0)&&e3.querySelector(".onstory"))&&!(!((t3=this.mainPost)===null||t3===void 0)&&t3.querySelector(".titleline"))}findMainComment(){var e3;return((e3=this.mainPost)===null||e3===void 0?void 0:e3.querySelector("tr.athing"))||null}canExtract(){return!!this.mainPost||this.isListingPage}extract(){if(this.isListingPage)return this.extractListing();let e3=this.getPostContent(),t3=this.options.includeReplies!==!1?this.extractComments():"",r3=this.createContentHtml(e3,t3),n3=this.getPostTitle(),o2=this.getPostAuthor(),i2=this.createDescription(),a2=this.getPostDate();return{content:r3,contentHtml:r3,extractedContent:{postId:this.getPostId(),postAuthor:o2},variables:{title:n3,author:o2,site:"Hacker News",description:i2,published:a2}}}getMoreLink(){var e3;let t3=this.document.querySelector(".morelink");return t3?{url:t3.getAttribute("href")||"",text:((e3=t3.textContent)===null||e3===void 0?void 0:e3.trim())||"More"}:null}extractListing(){var e3;let t3=this.extractStories(),r3=this.getMoreLink(),n3=this.buildListingHtml(t3,r3);return{content:n3,contentHtml:n3,extractedContent:{},variables:{title:((e3=this.document.title)===null||e3===void 0?void 0:e3.replace(/\s*\|\s*Hacker News$/,"").trim())||"Hacker News",site:"Hacker News"}}}extractStories(){var e3,t3,r3,n3,o2,i2,a2,s;let l=Array.from(this.document.querySelectorAll("tr.athing")),c2=[];for(let u of l){let l2=u.getAttribute("id")||"",d=u.querySelector(".titleline a");if(!d)continue;let h2=((e3=d.textContent)===null||e3===void 0?void 0:e3.trim())||"",m=d.getAttribute("href")||"",p=((r3=(t3=u.querySelector(".sitestr"))===null||t3===void 0?void 0:t3.textContent)===null||r3===void 0?void 0:r3.trim())||"",f=u.nextElementSibling,g=((o2=(n3=f==null?void 0:f.querySelector(".score"))===null||n3===void 0?void 0:n3.textContent)===null||o2===void 0?void 0:o2.trim())||"",b=((a2=(i2=f==null?void 0:f.querySelector(".hnuser"))===null||i2===void 0?void 0:i2.textContent)===null||a2===void 0?void 0:a2.trim())||"",x=f==null?void 0:f.querySelector(".age"),v=((x==null?void 0:x.getAttribute("title"))||"").split("T")[0]||"",y=f?Array.from(f.querySelectorAll("td.subtext a")):[],w=y[y.length-1],A=((s=w==null?void 0:w.textContent)===null||s===void 0?void 0:s.replace(/\u00a0/g," ").trim())||"",C=/\d+\s*comment/.test(A)?A:"",E=l2?`https://news.ycombinator.com/item?id=${l2}`:"";c2.push({id:l2,title:h2,url:m,site:p,score:g,author:b,date:v,comments:C,commentsUrl:E})}return c2}buildListingHtml(e3,t3){if(e3.length===0)return"";let n3=`<ol>${e3.map((e4=>{let t4="<li>";t4+=`<a href="${(0,o.escapeHtml)(e4.url)}">${(0,o.escapeHtml)(e4.title)}</a>`,e4.site&&(t4+=` <small>(${(0,o.escapeHtml)(e4.site)})</small>`);let r4=[];return e4.score&&r4.push((0,o.escapeHtml)(e4.score)),e4.author&&r4.push(`by ${(0,o.escapeHtml)(e4.author)}`),e4.comments&&r4.push(`<a href="${(0,o.escapeHtml)(e4.commentsUrl)}">${(0,o.escapeHtml)(e4.comments)}</a>`),r4.length>0&&(t4+=`<br><small>${r4.join(" \xB7 ")}</small>`),t4+="</li>",t4})).join("")}</ol>`;return t3&&(n3+=`<p><a href="${(0,o.escapeHtml)(t3.url)}">${(0,o.escapeHtml)(t3.text)}</a></p>`),n3}createContentHtml(e3,t3){return(0,i.buildContentHtml)("hackernews",e3,t3)}getPostContent(){var e3,t3,r3,n3;if(!this.mainPost)return"";if(this.isCommentPage&&this.mainComment){let n4=((e3=this.mainComment.querySelector(".hnuser"))===null||e3===void 0?void 0:e3.textContent)||"[deleted]",a3=this.mainComment.querySelector(".commtext"),s2=a3?(0,o.serializeHTML)(a3):"",l2=this.mainComment.querySelector(".age"),c3=((l2==null?void 0:l2.getAttribute("title"))||"").split("T")[0]||"",u=((r3=(t3=this.mainComment.querySelector(".score"))===null||t3===void 0?void 0:t3.textContent)===null||r3===void 0?void 0:r3.trim())||"";return(0,i.buildComment)({author:n4,date:c3,content:s2,score:u||void 0})}let a2=this.mainPost.querySelector("tr.athing"),s=(a2==null||a2.nextElementSibling,((n3=a2==null?void 0:a2.querySelector(".titleline a"))===null||n3===void 0?void 0:n3.getAttribute("href"))||""),l="";s&&(l+=`<p><a href="${s}" target="_blank">${s}</a></p>`);let c2=this.mainPost.querySelector(".toptext");return c2&&(l+=`<div class="post-text">${(0,o.serializeHTML)(c2)}</div>`),l}extractComments(){let e3=Array.from(this.document.querySelectorAll("tr.comtr"));return this.processComments(e3)}processComments(e3){var t3,r3,n3,a2;let s=[],l=new Set;for(let i2 of e3){let e4=i2.getAttribute("id");if(!e4||l.has(e4))continue;l.add(e4);let c2=((t3=i2.querySelector(".ind img"))===null||t3===void 0?void 0:t3.getAttribute("width"))||"0",u=parseInt(c2)/40,d=i2.querySelector(".commtext"),h2=((r3=i2.querySelector(".hnuser"))===null||r3===void 0?void 0:r3.textContent)||"[deleted]",m=i2.querySelector(".age"),p=((a2=(n3=i2.querySelector(".score"))===null||n3===void 0?void 0:n3.textContent)===null||a2===void 0?void 0:a2.trim())||"";if(!d)continue;let f=`https://news.ycombinator.com/item?id=${e4}`,g=((m==null?void 0:m.getAttribute("title"))||"").split("T")[0]||"";s.push({author:h2,date:g,content:(0,o.serializeHTML)(d),depth:u,score:p||void 0,url:f})}return(0,i.buildCommentTree)(s)}getPostId(){let e3=this.url.match(/id=(\d+)/);return(e3==null?void 0:e3[1])||""}getPostTitle(){var e3,t3,r3,n3,o2;if(this.isCommentPage&&this.mainComment){let r4=((e3=this.mainComment.querySelector(".hnuser"))===null||e3===void 0?void 0:e3.textContent)||"[deleted]",n4=((t3=this.mainComment.querySelector(".commtext"))===null||t3===void 0?void 0:t3.textContent)||"";return`Comment by ${r4}: ${n4.trim().slice(0,50)+(n4.length>50?"...":"")}`}return((o2=(n3=(r3=this.mainPost)===null||r3===void 0?void 0:r3.querySelector(".titleline"))===null||n3===void 0?void 0:n3.textContent)===null||o2===void 0?void 0:o2.trim())||""}getPostAuthor(){var e3,t3,r3;return((r3=(t3=(e3=this.mainPost)===null||e3===void 0?void 0:e3.querySelector(".hnuser"))===null||t3===void 0?void 0:t3.textContent)===null||r3===void 0?void 0:r3.trim())||""}createDescription(){let e3=this.getPostTitle(),t3=this.getPostAuthor();return this.isCommentPage?`Comment by ${t3} on Hacker News`:`${e3} - by ${t3} on Hacker News`}getPostDate(){if(!this.mainPost)return"";let e3=this.mainPost.querySelector(".age");return((e3==null?void 0:e3.getAttribute("title"))||"").split("T")[0]||""}}t2.HackerNewsExtractor=a},8477(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.LinkedInExtractor=void 0;let n2=r2(2279),o=r2(639),i=r2(6077);class a extends n2.BaseExtractor{constructor(e3,t3,r3,n3){super(e3,t3,r3,n3),this.postArticle=e3.querySelector('[role="article"].feed-shared-update-v2')}canExtract(){return!!this.postArticle}extract(){var e3;let t3=this.getPostContent(),r3=this.options.includeReplies!==!1?this.extractComments():"",n3=(0,i.buildContentHtml)("linkedin",t3,r3),o2=this.getAuthorName(),a2=this.createDescription();return{content:n3,contentHtml:n3,extractedContent:{postUrn:((e3=this.postArticle)===null||e3===void 0?void 0:e3.getAttribute("data-urn"))||""},variables:{title:this.postTitle(o2,"LinkedIn"),author:o2,site:"LinkedIn",description:a2}}}getPostContent(){if(!this.postArticle)return"";let e3=this.postArticle.querySelector(".feed-shared-update-v2__update-content-wrapper"),t3=this.postArticle.querySelector(".update-components-text.update-components-update-v2__commentary"),r3=!t3||e3&&e3.contains(t3)?"":this.cleanTextContent(t3),n3=this.extractImages(),o2=this.extractVideo(),i2=this.extractQuotedPost(e3),a2="";return r3&&(a2+=r3),n3&&(a2+=`
${n3}`),o2&&(a2+=`
${o2}`),i2&&(a2+=`
${i2}`),a2}getVisibleText(e3,t3){var r3;let n3=e3.cloneNode(!0),o2=t3?`.visually-hidden, ${t3}`:".visually-hidden";return n3.querySelectorAll(o2).forEach((e4=>e4.remove())),((r3=n3.textContent)===null||r3===void 0?void 0:r3.trim())||""}cleanTextContent(e3){let t3=e3.cloneNode(!0);t3.querySelectorAll(".visually-hidden, .feed-shared-inline-show-more-text__see-more-less-toggle").forEach((e4=>e4.remove())),t3.querySelectorAll("a").forEach((e4=>{var t4;let r4=e4.getAttribute("href")||"",n3=((t4=e4.textContent)===null||t4===void 0?void 0:t4.trim())||"";if(r4&&n3){let t5=this.document.createElement("a");t5.setAttribute("href",r4),t5.textContent=n3,e4.replaceWith(t5)}else e4.replaceWith(e4.textContent||"")})),t3.querySelectorAll("span, div").forEach((e4=>{e4.replaceWith(...Array.from(e4.childNodes))}));let r3=(0,o.serializeHTML)(t3).trim();return r3=r3.replace(/<!--.*?-->/g,""),r3.split(/(?:<br\s*\/?>\s*){2,}|\n{2,}/).map((e4=>e4.replace(/<br\s*\/?>/g," ").replace(/\s+/g," ").trim())).filter((e4=>e4)).map((e4=>`<p>${e4}</p>`)).join(`
`)}extractQuotedPost(e3){var t3;if(!e3)return"";let r3=e3.querySelector(".update-components-actor__title"),n3=r3?this.getVisibleText(r3,".update-components-actor__supplementary-actor-info, .text-view-model__verified-icon"):"",o2=e3.querySelector(".update-components-actor__sub-description"),a2="";if(o2){let e4=(((t3=(o2.querySelector('[aria-hidden="true"]')||o2).textContent)===null||t3===void 0?void 0:t3.trim())||"").match(/^(\d+\w+)/);a2=e4?e4[1]:""}let s=e3.querySelector(".update-components-text.update-components-update-v2__commentary"),l=s?this.cleanTextContent(s):"",c2=e3.querySelector("a.update-components-mini-update-v2__link-to-details-page"),u=(c2==null?void 0:c2.getAttribute("href"))||"",d=u?(u.startsWith("http")?u:`https://www.linkedin.com${u}`).split("?")[0]:"";return(0,i.buildQuotedPost)({author:n3||void 0,date:a2||void 0,content:l,url:d||void 0})}extractImages(){if(!this.postArticle)return"";let e3=[];return this.postArticle.querySelectorAll(".update-components-image img, .feed-shared-image img").forEach((t3=>{let r3=t3.getAttribute("src")||"",n3=t3.getAttribute("alt")||"";!r3||r3.includes("profile-displayphoto")||r3.includes("avm-avatar")||e3.push(`<img src="${(0,o.escapeHtml)(r3)}" alt="${(0,o.escapeHtml)(n3)}" />`)})),e3.join(`
`)}extractVideo(){if(!this.postArticle)return"";let e3=this.postArticle.querySelector(".update-components-linkedin-video video[poster]");if(!e3)return"";let t3=e3.getAttribute("poster")||"";return`<img src="${(0,o.escapeHtml)(t3)}" alt="Video thumbnail" />`}extractComments(){if(!this.postArticle)return"";let e3=[],t3=this.postArticle.querySelectorAll("article.comments-comment-entity:not(.comments-comment-entity--reply)");for(let r3 of Array.from(t3)){let t4=this.extractCommentData(r3,0);t4&&e3.push(t4);let n3=r3.querySelectorAll(".comments-replies-list article.comments-comment-entity--reply");for(let t5 of Array.from(n3)){let r4=this.extractCommentData(t5,1);r4&&e3.push(r4)}}return e3.length>0?(0,i.buildCommentTree)(e3):""}extractCommentData(e3,t3){var r3,n3,o2,i2,a2;let s=((n3=(r3=e3.querySelector(".comments-comment-meta__description-title"))===null||r3===void 0?void 0:r3.textContent)===null||n3===void 0?void 0:n3.trim())||"";if(!s)return null;let l=e3.querySelector(".comments-comment-entity__content .update-components-text"),c2=l?this.cleanTextContent(l):"",u=e3.querySelector("time.comments-comment-meta__data"),d=((o2=u==null?void 0:u.textContent)===null||o2===void 0?void 0:o2.trim())||"",h2=e3.querySelector("a.comments-comment-meta__description-container"),m=((i2=h2==null?void 0:h2.getAttribute("href"))===null||i2===void 0?void 0:i2.split("?")[0])||"",p="";m&&(p=m.startsWith("http")?m:`https://www.linkedin.com${m}`);let f=e3.querySelector(".comments-comment-social-bar__reactions-count--cr span.v-align-middle"),g=((a2=f==null?void 0:f.textContent)===null||a2===void 0?void 0:a2.trim())||"";return{author:s,date:d,content:c2,depth:t3,score:g?`${g} reactions`:void 0,url:p||void 0}}getAuthorName(){if(!this.postArticle)return"";let e3=this.postArticle.querySelector(".update-components-actor__title");return e3?this.getVisibleText(e3,".text-view-model__verified-icon, .update-components-actor__supplementary-actor-info"):""}createDescription(){if(!this.postArticle)return"";let e3=this.postArticle.querySelector(".feed-shared-update-v2__update-content-wrapper"),t3=this.postArticle.querySelector(".update-components-text.update-components-update-v2__commentary");return!t3||e3&&e3.contains(t3)?"":this.getVisibleText(t3).slice(0,140).replace(/\s+/g," ")}}t2.LinkedInExtractor=a},1756(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.MediumExtractor=void 0;let n2=r2(2279);class o extends n2.BaseExtractor{constructor(e3,t3,r3,n3){super(e3,t3,r3,n3),this.article=e3.querySelector("article.meteredContent")||e3.querySelector("article")}canExtract(){var e3,t3,r3;if(!this.article)return!1;if(!((e3=this.article.classList)===null||e3===void 0)&&e3.contains("meteredContent"))return!0;let n3=((t3=this.document.querySelector('meta[property="og:site_name"]'))===null||t3===void 0?void 0:t3.getAttribute("content"))||"",o2=((r3=this.document.querySelector('meta[property="al:android:app_name"]'))===null||r3===void 0?void 0:r3.getAttribute("content"))||"";return n3==="Medium"||o2==="Medium"}extract(){let e3=this.getTitle(),t3=this.getSubtitle(),r3=this.getAuthor(),n3=this.getPublication();return this.cleanArticle(),{content:"",contentHtml:"",contentSelector:"article",extractedContent:{publication:n3},variables:{title:e3,author:r3,site:n3||"Medium",description:t3||this.getDescription()}}}cleanArticle(){if(!this.article)return;this.article.querySelectorAll('figure [role="button"]').forEach((e4=>{e4.replaceWith(...Array.from(e4.childNodes))})),this.article.querySelectorAll('[role="tooltip"]').forEach((e4=>{e4.removeAttribute("role")})),this.article.querySelectorAll('a[href*="medium.com/plans"]').forEach((e4=>{let t3=e4.closest("div");t3&&t3!==this.article?t3.remove():e4.remove()})),this.article.querySelectorAll('[data-testid="post-preview"]').forEach((e4=>e4.remove())),this.article.querySelectorAll('[data-testid*="Clap"], [data-testid*="Bookmark"], [data-testid*="Share"], [data-testid*="Response"]').forEach((e4=>e4.remove())),this.article.querySelectorAll('[data-testid="authorPhoto"], [data-testid="authorName"], [data-testid="storyReadTime"]').forEach((e4=>e4.remove()));let e3=new Set(["Member-only story","Listen","Share","Top highlight","\xB7","Press enter or click to view image in full size"]);this.article.querySelectorAll("p, span, div").forEach((t3=>{var r3;let n3=((r3=t3.textContent)===null||r3===void 0?void 0:r3.trim())||"";n3&&(e3.has(n3)||/^\w{3}\s+\d{1,2},\s+\d{4}/.test(n3)&&n3.length<30||/^\xb7\s*\d+\s*\w+\s*ago$/.test(n3)||/^\xb7?\s*\d+\s*min\s*read$/.test(n3))&&t3.remove()}))}getTitle(){var e3,t3,r3,n3;let o2=this.document.querySelector('[data-testid="storyTitle"]');return o2?((e3=o2.textContent)===null||e3===void 0?void 0:e3.trim())||"":((n3=(r3=(t3=this.article)===null||t3===void 0?void 0:t3.querySelector("h1"))===null||r3===void 0?void 0:r3.textContent)===null||n3===void 0?void 0:n3.trim())||""}getSubtitle(){var e3,t3;return((t3=(e3=this.document.querySelector(".pw-subtitle-paragraph"))===null||e3===void 0?void 0:e3.textContent)===null||t3===void 0?void 0:t3.trim())||""}getAuthor(){var e3,t3;return((t3=(e3=this.document.querySelector('[data-testid="authorName"]'))===null||e3===void 0?void 0:e3.textContent)===null||t3===void 0?void 0:t3.trim())||""}getPublication(){var e3;let t3=this.document.querySelector('meta[property="og:site_name"]'),r3=(t3==null?void 0:t3.getAttribute("content"))||"";if(r3&&r3!=="Medium")return r3;let n3=Array.isArray(this.schemaOrgData)?this.schemaOrgData:[this.schemaOrgData];for(let t4 of n3)if(!((e3=t4==null?void 0:t4.publisher)===null||e3===void 0)&&e3.name)return t4.publisher.name;return""}getDescription(){var e3;if(!this.article)return"";let t3=this.article.querySelectorAll("p");for(let r3 of Array.from(t3)){let t4=((e3=r3.textContent)===null||e3===void 0?void 0:e3.trim())||"";if(!(t4.length<3||/^[\d\W]+$/.test(t4)))return t4.slice(0,140).replace(/\s+/g," ")}return""}}t2.MediumExtractor=o},8090(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.NytimesExtractor=void 0;let n2=r2(2279),o=r2(639),i="data-defuddle-nyt";class a extends n2.BaseExtractor{constructor(e3,t3,r3,n3){var a2;if(super(e3,t3,r3,n3),this.preloadedData=null,this.contentSelector=null,this.preloadedData=this.extractPreloadData(),this.preloadedData){let t4=this.preloadedData.sprinkledBody||this.preloadedData.body;if(!((a2=t4==null?void 0:t4.content)===null||a2===void 0)&&a2.length){if(!e3.querySelector(`[${i}]`)){let r4=e3.createElement("div");r4.setAttribute(i,""),r4.appendChild((0,o.parseHTML)(e3,this.renderBlocks(t4.content))),e3.body.appendChild(r4)}this.contentSelector=`[${i}]`}}}canExtract(){return this.contentSelector!==null}extract(){var e3,t3,r3;let n3=this.preloadedData,o2=((e3=n3.headline)===null||e3===void 0?void 0:e3.default)||"",i2=(((r3=(t3=n3.bylines)===null||t3===void 0?void 0:t3[0])===null||r3===void 0?void 0:r3.creators)||[]).map((e4=>e4.displayName)).filter(Boolean).join(", "),a2=n3.firstPublished||"",s=n3.summary||"";return{content:"",contentHtml:"",contentSelector:this.contentSelector,variables:{title:o2,author:i2,published:a2,description:s}}}extractPreloadData(){var e3,t3;let r3=this.document.querySelectorAll("script:not([src])");for(let n3 of r3){let r4=n3.textContent||"";if(!r4.includes("window.__preloadedData"))continue;let o2=r4.match(/window\.__preloadedData\s*=\s*({[\s\S]+})\s*;?\s*$/);if(o2)try{let r5=o2[1].replace(/(?<=:)undefined(?=[,}\]])/g,"null");return((t3=(e3=JSON.parse(r5).initialData)===null||e3===void 0?void 0:e3.data)===null||t3===void 0?void 0:t3.article)||null}catch(e4){return null}}return null}renderBlocks(e3){var t3,r3,n3;let o2=[];for(let i2 of e3)switch(i2.__typename){case"ParagraphBlock":o2.push(`<p>${this.renderInlines(i2.content)}</p>`);break;case"Heading2Block":o2.push(`<h2>${this.renderInlines(i2.content)}</h2>`);break;case"Heading3Block":o2.push(`<h3>${this.renderInlines(i2.content)}</h3>`);break;case"Heading4Block":o2.push(`<h4>${this.renderInlines(i2.content)}</h4>`);break;case"ImageBlock":{let e4=i2.media;if(!e4)break;let n4=this.getBestImageUrl(e4);if(!n4)break;let a2=this.escapeAttr(e4.altText||((t3=e4.caption)===null||t3===void 0?void 0:t3.text)||""),s=[((r3=e4.caption)===null||r3===void 0?void 0:r3.text)||"",e4.credit||""].filter(Boolean);s.length?o2.push(`<figure><img src="${this.escapeAttr(n4)}" alt="${a2}"><figcaption>${this.escapeHtml(s.join(" "))}</figcaption></figure>`):o2.push(`<img src="${this.escapeAttr(n4)}" alt="${a2}">`);break}case"HeaderBasicBlock":case"Dropzone":break;default:{let e4=i2;!((n3=e4.content)===null||n3===void 0)&&n3.length&&o2.push(`<p>${this.renderInlines(e4.content)}</p>`);break}}return o2.join(`
`)}renderInlines(e3){return e3?e3.map((e4=>{var t3;let r3=this.escapeHtml(e4.text||"");if(!(!((t3=e4.formats)===null||t3===void 0)&&t3.length))return r3;for(let t4 of e4.formats)switch(t4.__typename){case"BoldFormat":r3=`<strong>${r3}</strong>`;break;case"ItalicFormat":r3=`<em>${r3}</em>`;break;case"LinkFormat":t4.url&&(r3=`<a href="${this.escapeAttr(t4.url)}">${r3}</a>`)}return r3})).join(""):""}getBestImageUrl(e3){var t3,r3;let n3=e3==null?void 0:e3.crops;if(!(n3!=null&&n3.length))return null;let o2=["superJumbo","jumbo","articleLarge"];for(let e4 of o2)for(let r4 of n3){let n4=(t3=r4.renditions)===null||t3===void 0?void 0:t3.find((t4=>t4.name===e4));if(n4!=null&&n4.url)return n4.url}for(let e4 of n3)if(!((r3=e4.renditions)===null||r3===void 0)&&r3.length&&e4.renditions[0].url)return e4.renditions[0].url;return null}escapeHtml(e3){return e3.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}escapeAttr(e3){return e3.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}}t2.NytimesExtractor=a},5959(e2,t2,r2){"use strict";var n2=this&&this.__awaiter||function(e3,t3,r3,n3){return new(r3||(r3=Promise))((function(o2,i2){function a2(e4){try{l(n3.next(e4))}catch(e5){i2(e5)}}function s2(e4){try{l(n3.throw(e4))}catch(e5){i2(e5)}}function l(e4){var t4;e4.done?o2(e4.value):(t4=e4.value,t4 instanceof r3?t4:new r3((function(e5){e5(t4)}))).then(a2,s2)}l((n3=n3.apply(e3,t3||[])).next())}))};Object.defineProperty(t2,"__esModule",{value:!0}),t2.RedditExtractor=void 0;let o=r2(2279),i=r2(639),a=r2(6077);class s extends o.BaseExtractor{constructor(e3,t3){super(e3,t3),this.shredditPost=e3.querySelector("shreddit-post"),this.isOldReddit=!!e3.querySelector(".thing.link")}canExtract(){return!!this.shredditPost||this.isOldReddit}canExtractAsync(){return this.isCommentsPage()&&!this.isOldReddit}prefersAsync(){let e3=typeof window!="undefined"&&this.document.defaultView===window;return this.isCommentsPage()&&!this.isOldReddit&&!e3}isCommentsPage(){return/\/r\/.+\/comments\//.test(this.url)}extractAsync(){return n2(this,void 0,void 0,(function*(){var e3,t3;let r3=new URL(this.url);r3.hostname="old.reddit.com";let n3=yield this.fetch(r3.toString(),{headers:{"User-Agent":"Mozilla/5.0 (compatible; Defuddle/1.0)"}});if(!n3.ok)throw new Error(`Failed to fetch old.reddit.com: ${n3.status}`);let o2=yield n3.text(),i2=(t3=(e3=this.document.defaultView)===null||e3===void 0?void 0:e3.DOMParser)!==null&&t3!==void 0?t3:typeof DOMParser!="undefined"?DOMParser:null;if(!i2)throw new Error("DOMParser is not available in this environment");let a2=new i2().parseFromString(o2,"text/html");return this.extractOldReddit(a2)}))}extract(){var e3,t3;if(this.isOldReddit)return this.extractOldReddit(this.document);let r3=((t3=(e3=this.document.querySelector("h1"))===null||e3===void 0?void 0:e3.textContent)===null||t3===void 0?void 0:t3.trim())||"",n3=this.getSubreddit(),o2=this.getPostAuthor(),i2=this.getPostContent(),a2=this.createDescription(i2),s2=this.options.includeReplies!==!1?this.extractComments():"",l=this.createContentHtml(i2,s2);return{content:l,contentHtml:l,extractedContent:{postId:this.getPostId(),subreddit:n3,postAuthor:o2},variables:{title:r3,author:o2,site:`r/${n3}`,description:a2}}}extractOldReddit(e3){var t3,r3;let n3=e3.querySelector(".thing.link"),o2=((r3=(t3=n3==null?void 0:n3.querySelector("a.title"))===null||t3===void 0?void 0:t3.textContent)===null||r3===void 0?void 0:r3.trim())||"",s2=(n3==null?void 0:n3.getAttribute("data-author"))||"",l=(n3==null?void 0:n3.getAttribute("data-subreddit"))||"",c2=n3==null?void 0:n3.querySelector(".usertext-body .md"),u=c2?(0,i.serializeHTML)(c2):"",d="";if(this.options.includeReplies!==!1){let t4=e3.querySelector(".commentarea .sitetable"),r4=t4?this.collectOldRedditComments(t4):[];d=r4.length>0?(0,a.buildCommentTree)(r4):""}let h2=this.createContentHtml(u,d),m=this.createDescription(u);return{content:h2,contentHtml:h2,extractedContent:{postId:this.getPostId(),subreddit:l,postAuthor:s2},variables:{title:o2,author:s2,site:`r/${l}`,description:m}}}getPostContent(){var e3,t3,r3;let n3=(e3=this.shredditPost)===null||e3===void 0?void 0:e3.querySelector('[slot="text-body"]');return(n3?(0,i.serializeHTML)(n3):"")+(((r3=(t3=this.shredditPost)===null||t3===void 0?void 0:t3.querySelector("#post-image"))===null||r3===void 0?void 0:r3.outerHTML)||"")}createContentHtml(e3,t3){return(0,a.buildContentHtml)("reddit",e3,t3)}extractComments(){let e3=Array.from(this.document.querySelectorAll("shreddit-comment"));return this.processComments(e3)}getPostId(){let e3=this.url.match(/comments\/([a-zA-Z0-9]+)/);return(e3==null?void 0:e3[1])||""}getSubreddit(){let e3=this.url.match(/\/r\/([^/]+)/);return(e3==null?void 0:e3[1])||""}getPostAuthor(){var e3;return((e3=this.shredditPost)===null||e3===void 0?void 0:e3.getAttribute("author"))||""}createDescription(e3){var t3;if(!e3)return"";let r3=this.document.createElement("div");return r3.appendChild((0,i.parseHTML)(this.document,e3)),((t3=r3.textContent)===null||t3===void 0?void 0:t3.trim().slice(0,140).replace(/\s+/g," "))||""}collectOldRedditComments(e3,t3=0){var r3,n3;let o2=[],a2=Array.from(e3.querySelectorAll(":scope > .thing.comment"));for(let e4 of a2){let a3=e4.getAttribute("data-author")||"",s2=e4.getAttribute("data-permalink")||"",l=((n3=(r3=e4.querySelector(".entry .tagline .score.unvoted"))===null||r3===void 0?void 0:r3.textContent)===null||n3===void 0?void 0:n3.trim())||"",c2=e4.querySelector(".entry .tagline time[datetime]"),u=(c2==null?void 0:c2.getAttribute("datetime"))||"",d=u?new Date(u).toISOString().split("T")[0]:"",h2=e4.querySelector(".entry .usertext-body .md"),m=h2?(0,i.serializeHTML)(h2):"";o2.push({author:a3,date:d,content:m,depth:t3,score:l||void 0,url:s2?`https://reddit.com${s2}`:void 0});let p=e4.querySelector(".child > .sitetable");p&&o2.push(...this.collectOldRedditComments(p,t3+1))}return o2}processComments(e3){var t3;let r3=[];for(let n3 of e3){let e4=parseInt(n3.getAttribute("depth")||"0"),o2=n3.getAttribute("author")||"",a2=n3.getAttribute("score")||"0",s2=n3.getAttribute("permalink")||"",l=n3.querySelector('[slot="comment"]'),c2=l?(0,i.serializeHTML)(l):"",u=n3.getAttribute("created")||((t3=n3.querySelector("time"))===null||t3===void 0?void 0:t3.getAttribute("datetime"))||"",d=u?new Date(u).toISOString().split("T")[0]:"";r3.push({author:o2,date:d,content:c2,depth:e4,score:`${a2} points`,url:s2?`https://reddit.com${s2}`:void 0})}return(0,a.buildCommentTree)(r3)}}t2.RedditExtractor=s},6581(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.SubstackExtractor=void 0;let n2=r2(2279),o=r2(639),i="data-defuddle-substack-post";class a extends n2.BaseExtractor{constructor(e3,t3,r3,n3){var a2,s;if(super(e3,t3,r3,n3),this.noteText=null,this.noteImage=null,this.postData=null,this.postContentSelector=null,e3.querySelector("div.body.markup"))return this.postData=this.extractPreloadData(),void(this.postContentSelector="div.body.markup");if(this.postData=this.extractPreloadData(),(a2=this.postData)===null||a2===void 0?void 0:a2.body_html){if(!e3.querySelector(`[${i}]`)){let t4=e3.createElement("div");t4.setAttribute(i,""),t4.appendChild((0,o.parseHTML)(e3,this.postData.body_html)),e3.body.appendChild(t4)}return void(this.postContentSelector=`[${i}]`)}let l=e3.querySelector('[class*="feedPermalinkUnit"]');if(this.noteText=(l||e3).querySelector("div.ProseMirror.FeedProseMirror"),this.noteText){let e4=this.noteText.closest('[class*="feedCommentBody"]:not([class*="feedCommentBodyInner"])');if(e4){let t4=[e4.nextElementSibling,(s=e4.parentElement)===null||s===void 0?void 0:s.nextElementSibling];for(let e5 of t4)if(e5&&(e5.getAttribute("class")||"").includes("imageGrid")){this.noteImage=e5;break}}}}canExtract(){return this.postContentSelector!==null||this.noteText!==null}extract(){return this.postContentSelector?this.extractPost():this.extractNote()}extractPost(){var e3,t3,r3,n3,o2,i2,a2,s,l,c2;let u=((e3=this.postData)===null||e3===void 0?void 0:e3.title)||((t3=this.document.querySelector('meta[property="og:title"]'))===null||t3===void 0?void 0:t3.getAttribute("content"))||"",d=((r3=this.postData)===null||r3===void 0?void 0:r3.subtitle)||((n3=this.document.querySelector('meta[property="og:description"]'))===null||n3===void 0?void 0:n3.getAttribute("content"))||"",h2=((a2=(i2=(o2=this.postData)===null||o2===void 0?void 0:o2.publishedBylines)===null||i2===void 0?void 0:i2[0])===null||a2===void 0?void 0:a2.name)||((l=(s=this.document.querySelector('a[href*="substack.com/@"]'))===null||s===void 0?void 0:s.textContent)===null||l===void 0?void 0:l.trim())||"",m=((c2=this.postData)===null||c2===void 0?void 0:c2.post_date)||this.parseDateFromByline()||"";return{content:"",contentHtml:"",contentSelector:this.postContentSelector,variables:{title:u,author:h2,site:"Substack",description:d,published:m}}}extractNote(){var e3,t3;let r3=this.noteText.outerHTML,n3=this.buildImageHtml(),o2=n3?`${r3}
${n3}`:r3,i2=((e3=this.document.querySelector('meta[property="og:title"]'))===null||e3===void 0?void 0:e3.getAttribute("content"))||"",a2=((t3=this.document.querySelector('meta[property="og:description"]'))===null||t3===void 0?void 0:t3.getAttribute("content"))||"",s=i2.replace(/\s*\(@[^)]+\)\s*$/,"").trim();return{content:o2,contentHtml:o2,variables:{title:i2,author:s,site:"Substack",description:a2}}}parseDateFromByline(){let e3=this.document.querySelector('[class*="byline-wrapper"]');if(!e3)return"";let t3={Jan:"01",Feb:"02",Mar:"03",Apr:"04",May:"05",Jun:"06",Jul:"07",Aug:"08",Sep:"09",Oct:"10",Nov:"11",Dec:"12"},r3=(e3.textContent||"").trim().replace(/([a-z])([A-Z])/g,"$1 $2").match(new RegExp("\\b(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s+(\\d{1,2}),?\\s+(\\d{4})\\b"));if(r3){let e4=t3[r3[1]],n3=r3[2].padStart(2,"0");return`${r3[3]}-${e4}-${n3}T00:00:00+00:00`}return""}extractPreloadData(){var e3,t3;let r3=Array.from(this.document.querySelectorAll("script"));for(let n3 of r3){let r4=n3.textContent||"";if(!r4.includes("window._preloads")||!r4.includes("body_html"))continue;let o2=r4.indexOf('JSON.parse("');if(o2===-1)continue;let i2=o2+12,a2=i2;for(;a2<r4.length;)if(r4[a2]==="\\")a2+=2;else{if(r4[a2]==='"')break;a2++}try{let n4=r4.slice(i2,a2),o3=JSON.parse('"'+n4+'"'),s=JSON.parse(o3),l=(t3=(e3=s==null?void 0:s.feedData)===null||e3===void 0?void 0:e3.initialPost)===null||t3===void 0?void 0:t3.post;if(l!=null&&l.body_html)return l}catch(e4){}}return null}buildImageHtml(){var e3;if(!this.noteImage)return"";let t3=(e3=this.document.querySelector('meta[property="og:image"]'))===null||e3===void 0?void 0:e3.getAttribute("content");if(t3)return`<img src="${t3}" alt="" />`;let r3=this.noteImage.querySelector("img");if(!r3)return"";let n3=this.getLargestSrc(r3);return n3?`<img src="${n3}" alt="" />`:""}getLargestSrc(e3){let t3=e3.getAttribute("srcset")||"";if(t3){let e4=/(.+?)\s+(\d+(?:\.\d+)?)w/g,r3,n3="",o2=0,i2=0;for(;(r3=e4.exec(t3))!==null;){let t4=r3[1].trim();i2>0&&(t4=t4.replace(/^,\s*/,"")),i2=e4.lastIndex;let a2=parseFloat(r3[2]);t4&&a2>o2&&(o2=a2,n3=t4)}if(n3)return n3.replace(/,w_\d+/g,"").replace(/,c_\w+/g,"")}return e3.getAttribute("src")||""}}t2.SubstackExtractor=a},9970(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.ThreadsExtractor=void 0;let n2=r2(2279),o=r2(639),i=r2(6077);class a extends n2.BaseExtractor{constructor(e3,t3,r3,n3){super(e3,t3,r3,n3),this.pagelets=[],this.regionContainer=null;let o2=Array.from(e3.querySelectorAll('[data-pagelet^="threads_post_page_"]'));if(this.pagelets=o2.filter((e4=>e4.querySelector('a[href^="/@"], time[datetime]'))),this.pagelets.length===0){let t4=e3.querySelector('div[role="region"]');t4!=null&&t4.querySelector('a[href^="/@"]')&&(this.regionContainer=t4)}}canExtract(){return this.pagelets.length>0||!!this.regionContainer}extract(){var e3,t3;if(this.pagelets.length===0&&this.regionContainer)return this.extractFromRegion(this.regionContainer);let r3=this.getUsername(this.pagelets[0]),n3=[],o2=[],a2=!1;for(let e4 of this.pagelets){let t4=this.getPostsFromPagelet(e4);t4.length!==0&&(a2||t4[0].username!==r3||t4.length!==1?(a2=!0,o2.push(t4)):n3.push(t4[0]))}let s=n3.map((e4=>e4.content)).join(`
<hr>
`),l=this.options.includeReplies!==!1?this.extractComments(o2):"",c2=(0,i.buildContentHtml)("threads",s,l),u=`@${r3}`,d=this.createDescription((e3=n3[0])===null||e3===void 0?void 0:e3.element),h2=this.postTitle(u,"Threads"),m=((t3=n3[0])===null||t3===void 0?void 0:t3.date)||"";return{content:c2,contentHtml:c2,extractedContent:{postAuthor:r3},variables:Object.assign({title:h2,author:u,site:"Threads",description:d},m&&{published:m})}}extractFromRegion(e3){let t3=this.getUsername(e3);if(!t3)return{content:"",contentHtml:""};let r3=`@${t3}`,n3=this.extractPostContent(e3),o2=this.options.includeReplies!==!1?this.extractCommentsFromJson(t3):"",a2=(0,i.buildContentHtml)("threads",n3,o2),s=this.createDescription(e3),l=this.getDate(e3);return{content:a2,contentHtml:a2,extractedContent:{postAuthor:t3},variables:Object.assign({title:this.postTitle(r3,"Threads"),author:r3,site:"Threads",description:s},l&&{published:l})}}extractCommentsFromJson(e3){let t3=this.document.querySelectorAll('script[type="application/json"]'),r3=[],n3=new Set;for(let e4 of Array.from(t3)){let t4=e4.textContent||"";if(!((t4.match(/"text_fragments"/g)||[]).length<2)&&t4.includes('"username"'))try{let e5=JSON.parse(t4);for(let t5 of this.findPostsInJson(e5,0)){let e6=t5.username+":"+t5.text.slice(0,80);n3.has(e6)||(n3.add(e6),r3.push(t5))}}catch(e5){}}if(r3.length<2)return"";let a2=[],s=!0;for(let t4 of r3)s&&t4.username===e3?s=!1:a2.push({author:`@${t4.username}`,date:"",content:`<p>${(0,o.escapeHtml)(t4.text)}</p>`,depth:0});return a2.length>0?(0,i.buildCommentTree)(a2):""}findPostsInJson(e3,t3,r3=[]){var n3;if(t3>35||e3==null||typeof e3!="object")return r3;if(!((n3=e3.user)===null||n3===void 0)&&n3.username&&typeof e3.user.username=="string"){let t4=this.extractTextFromJson(e3,0);t4&&r3.push({username:e3.user.username,text:t4})}for(let n4 of Object.keys(e3))n4!=="quoted_post"&&this.findPostsInJson(e3[n4],t3+1,r3);return r3}extractTextFromJson(e3,t3){var r3;if(t3>10||e3==null||typeof e3!="object")return null;if(!((r3=e3.text_fragments)===null||r3===void 0)&&r3.fragments)return e3.text_fragments.fragments.map((e4=>{var t4;return e4.plaintext?e4.plaintext:!((t4=e4.mention_fragment)===null||t4===void 0)&&t4.username?`@${e4.mention_fragment.username}`:e4.linkified_web_url?e4.linkified_web_url:""})).join("");for(let r4 of Object.keys(e3)){if(r4==="quoted_post")continue;let n3=this.extractTextFromJson(e3[r4],t3+1);if(n3)return n3}return null}getPostsFromPagelet(e3){var t3;let r3=e3.querySelectorAll("[data-pressable-container]"),n3=[];for(let e4 of Array.from(r3)){if(!((t3=e4.parentElement)===null||t3===void 0)&&t3.closest("[data-pressable-container]"))continue;let r4=this.getUsername(e4);r4&&n3.push({username:r4,date:this.getDate(e4),permalink:this.getPermalink(e4),content:this.extractPostContent(e4),element:e4})}return n3}extractComments(e3){let t3=[];for(let r3 of e3)for(let e4=0;e4<r3.length;e4++)t3.push(this.toCommentData(r3[e4],r3.length===1?0:e4));return t3.length>0?(0,i.buildCommentTree)(t3):""}toCommentData(e3,t3){return{author:`@${e3.username}`,date:e3.date,content:e3.content,depth:t3,url:e3.permalink||void 0}}getUsername(e3){var t3,r3;let n3=e3.querySelectorAll('a[href^="/@"][role="link"]');for(let e4 of Array.from(n3)){let r4=(t3=e4.textContent)===null||t3===void 0?void 0:t3.trim();if(r4&&!r4.includes("profile picture"))return r4}let o2=e3.querySelector('a[href^="/@"]');if(o2){let e4=(r3=o2.getAttribute("href"))===null||r3===void 0?void 0:r3.match(/\/@([^/]+)/);return e4?e4[1]:""}return""}getDate(e3){let t3=e3.querySelector("time[datetime]");if(!t3)return"";let r3=t3.getAttribute("datetime")||"";try{return new Date(r3).toISOString().split("T")[0]}catch(e4){return""}}getPermalink(e3){let t3=e3.querySelector('a[href*="/post/"]');if(!t3)return"";let r3=t3.getAttribute("href")||"";return r3.startsWith("http")?r3:`https://www.threads.com${r3}`}extractPostContent(e3){var t3;let r3=[],n3=Array.from(e3.querySelectorAll('span[dir="auto"]'));for(let e4 of n3){if(e4.closest('a[href^="/@"], a[href*="/post/"], a[href*="l.threads.com"], time')||e4.closest('[role="button"]'))continue;let n4=((t3=e4.textContent)===null||t3===void 0?void 0:t3.trim())||"";if(!n4||n4==="Author"||n4==="\xB7"||n4==="Top"||n4==="View activity"||/^\d{2}\/\d{2}\/\d{2}$/.test(n4)||/^@?\w+\/post\/\w+$/.test(n4)||!this.stripThreadNumber(n4))continue;let o3=this.cleanText(e4);o3&&r3.push(`<p>${o3}</p>`)}let o2=this.extractImages(e3);o2&&r3.push(o2);let i2=this.extractLinkCard(e3);i2&&r3.push(i2);let a2=this.extractQuotedPost(e3);return a2&&r3.push(a2),r3.join(`
`)}cleanText(e3){let t3=e3.cloneNode(!0);this.removeThreadNumbers(t3),t3.querySelectorAll("a").forEach((e4=>{var r4;let n3=e4.getAttribute("href")||"",o2=((r4=e4.textContent)===null||r4===void 0?void 0:r4.trim())||"";if(n3.match(/\/@[\w.]+\/post\//))return void e4.remove();let i2=t3.ownerDocument.createElement("a");if(n3.includes("l.threads.com"))i2.setAttribute("href",this.unwrapRedirectUrl(n3));else{if(n3.startsWith("/@")){let t4=n3.replace(/^\/@/,"");return i2.setAttribute("href",`https://www.threads.com/@${t4}`),i2.textContent=`@${t4}`,void e4.replaceWith(i2)}i2.setAttribute("href",n3.startsWith("http")?n3:`https://www.threads.com${n3}`)}i2.textContent=o2,e4.replaceWith(i2)})),t3.querySelectorAll("span, div").forEach((e4=>{e4.replaceWith(...Array.from(e4.childNodes))}));let r3=(t3.innerHTML||t3.textContent||"").trim();return r3=r3.replace(/<!--.*?-->/g,""),r3=r3.replace(/\s+/g," ").trim(),r3||""}stripThreadNumber(e3){return e3.replace(/\s*\d+\s*\/\s*\d+\s*$/,"").trim()}removeThreadNumbers(e3){var t3;let r3=Array.from(e3.querySelectorAll("div"));for(let e4 of r3){let r4=((t3=e4.textContent)===null||t3===void 0?void 0:t3.trim())||"";/^\d+\/\d+$/.test(r4)&&e4.querySelectorAll("span").length>=2&&e4.remove()}}unwrapRedirectUrl(e3){try{let t3=new URL(e3).searchParams.get("u");return t3?decodeURIComponent(t3):e3}catch(t3){return e3}}extractImages(e3){let t3=[];return e3.querySelectorAll("img").forEach((e4=>{let r3=e4.getAttribute("alt")||"",n3=e4.getAttribute("src")||"";if(r3.includes("profile picture")||!n3||e4.closest('a[href*="l.threads.com"]'))return;let i2=parseInt(e4.getAttribute("width")||"0");i2>0&&i2<=48||t3.push(`<img src="${(0,o.escapeHtml)(n3)}" alt="${(0,o.escapeHtml)(r3)}" />`)})),t3.join(`
`)}extractLinkCard(e3){let t3=e3.querySelectorAll('a[href*="l.threads.com"]');for(let e4 of Array.from(t3)){let t4=e4.querySelector("img");if(!t4)continue;let r3=e4.getAttribute("href")||"",n3=this.unwrapRedirectUrl(r3),i2=t4.getAttribute("src")||"",a2=t4.getAttribute("alt")||"";if(i2)return`<a href="${(0,o.escapeHtml)(n3)}"><img src="${(0,o.escapeHtml)(i2)}" alt="${(0,o.escapeHtml)(a2)}" /></a>`}return""}extractQuotedPost(e3){var t3;let r3=e3.querySelector("[data-pressable-container]");if(r3)return this.extractQuotedPostFrom(r3);let n3=e3.querySelectorAll('a[href*="/post/"]');for(let e4 of Array.from(n3)){let r4=((t3=e4.textContent)===null||t3===void 0?void 0:t3.trim())||"";if(/^\d{2}\/\d{2}\/\d{2}$/.test(r4))continue;let n4=e4.getAttribute("href")||"",a2=n4.match(/\/@([^/]+)\/post\//);if(!a2)continue;let s=a2[1],l=`<p>${(0,o.escapeHtml)(r4)}</p>`,c2=n4.startsWith("http")?n4:`https://www.threads.com${n4}`;return(0,i.buildQuotedPost)({author:`@${s}`,content:l,url:c2})}return""}extractQuotedPostFrom(e3){var t3,r3;let n3=this.getUsername(e3),a2=this.getDate(e3),s=Array.from(e3.querySelectorAll('span[dir="auto"]')),l="";for(let e4 of s){if(e4.closest('[role="button"], time'))continue;let n4=e4.closest('a[href^="/@"]');if(n4&&!(!((t3=n4.getAttribute("href"))===null||t3===void 0)&&t3.includes("/post/")))continue;let i2=(r3=e4.textContent)===null||r3===void 0?void 0:r3.trim();if(!i2||i2==="\xB7"||i2==="Author"||/^\d{2}\/\d{2}\/\d{2}$/.test(i2))continue;let a3=this.stripThreadNumber(i2);a3&&(l+=`<p>${(0,o.escapeHtml)(a3)}</p>
`)}return(0,i.buildQuotedPost)({author:n3?`@${n3}`:void 0,date:a2||void 0,content:l.trim()})}createDescription(e3){var t3;if(!e3)return"";let r3=e3.querySelectorAll('span[dir="auto"]');for(let e4 of Array.from(r3)){if(e4.closest('a[href^="/@"], [role="button"], a[href*="/post/"], time'))continue;let r4=((t3=e4.textContent)===null||t3===void 0?void 0:t3.trim())||"";if(!r4||r4==="Author"||r4==="\xB7"||r4==="Top"||r4==="View activity"||/^\d{2}\/\d{2}\/\d{2}$/.test(r4))continue;let n3=this.stripThreadNumber(r4);if(n3)return n3.slice(0,140).replace(/\s+/g," ")}return""}}t2.ThreadsExtractor=a},2248(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.TwitterExtractor=void 0;let n2=r2(2279),o=r2(639),i=r2(6077);class a extends n2.BaseExtractor{constructor(e3,t3){var r3;super(e3,t3),this.mainTweet=null,this.threadTweets=[],this.replyTweets=[],this.replyDepths=[];let n3=e3.querySelector('[aria-label="Timeline: Conversation"]');if(!n3){let t4=e3.querySelector('article[data-testid="tweet"]');return void(t4&&(this.mainTweet=t4))}let o2=Array.from(n3.querySelectorAll('[data-testid="cellInnerDiv"]')),i2=(r3=n3.querySelector("section, h2"))===null||r3===void 0?void 0:r3.parentElement,a2="",s=!0,l=!1,c2=!1,u=0;for(let e4 of o2){if(i2&&i2.compareDocumentPosition(e4)&Node.DOCUMENT_POSITION_FOLLOWING)break;let t4=e4.querySelector('article[data-testid="tweet"]');if(t4){if(s){this.mainTweet=t4,a2=this.getHandle(t4),s=!1,c2=!0;continue}let e5=this.getHandle(t4);if(!l&&e5===a2){this.threadTweets.push(t4),c2=!0;continue}l||(l=!0),c2?u++:u=0,this.replyTweets.push(t4),this.replyDepths.push(u),c2=!0}else c2=!1}}canExtract(){return!!this.mainTweet}extract(){let e3=[this.extractTweetContent(this.mainTweet)];for(let t4 of this.threadTweets)e3.push(this.extractTweetContent(t4));let t3=e3.join(`
<hr>
`),r3=this.options.includeReplies!==!1?this.extractComments():"",n3=(0,i.buildContentHtml)("twitter",t3,r3),o2=this.getTweetId(),a2=this.getTweetAuthor(),s=this.createDescription(this.mainTweet);return{content:n3,contentHtml:n3,extractedContent:{tweetId:o2,tweetAuthor:a2},variables:{title:this.postTitle(a2,"X"),author:a2,site:"X (Twitter)",description:s}}}extractComments(){if(this.replyTweets.length===0)return"";let e3=this.replyTweets.map(((e4,t3)=>{let r3=this.extractUserInfo(e4),n3=this.extractTweetContent(e4);return{author:r3.fullName?`${r3.fullName} ${r3.handle}`:r3.handle,date:r3.date,content:n3,depth:this.replyDepths[t3],url:r3.permalink}}));return(0,i.buildCommentTree)(e3)}getHandle(e3){var t3,r3;let n3=e3.querySelector('[data-testid="User-Name"]'),o2=n3==null?void 0:n3.querySelectorAll("a");return((r3=(t3=o2==null?void 0:o2[1])===null||t3===void 0?void 0:t3.textContent)===null||r3===void 0?void 0:r3.trim())||""}formatTweetText(e3){if(!e3)return"";let t3=this.document.createElement("div");return t3.appendChild((0,o.parseHTML)(this.document,e3)),t3.querySelectorAll("a").forEach((e4=>{var t4;let r3=((t4=e4.textContent)===null||t4===void 0?void 0:t4.trim())||"";e4.replaceWith(r3)})),t3.querySelectorAll("span, div").forEach((e4=>{e4.replaceWith(...Array.from(e4.childNodes))})),(0,o.serializeHTML)(t3).split(`
`).map((e4=>e4.trim())).filter((e4=>e4)).map((e4=>`<p>${e4}</p>`)).join(`
`)}replaceEmojiImages(e3){e3.querySelectorAll('img[src*="/emoji/"]').forEach((e4=>{let t3=e4.getAttribute("alt");t3&&e4.replaceWith(t3)}))}findQuotedTweet(e3){var t3,r3;return((r3=(t3=e3.querySelector('[aria-labelledby*="id__"]'))===null||t3===void 0?void 0:t3.querySelector('[data-testid="User-Name"]'))===null||r3===void 0?void 0:r3.closest('[aria-labelledby*="id__"]'))||null}extractTweetContent(e3){if(!e3)return"";let t3=e3.cloneNode(!0);this.replaceEmojiImages(t3);let r3=t3.querySelector('[data-testid="tweetText"]'),n3=r3?(0,o.serializeHTML)(r3):"",i2=this.formatTweetText(n3),a2=this.findQuotedTweet(e3),s=this.extractImages(e3,a2),l=a2?this.extractQuotedTweet(a2):"",c2=this.extractCard(e3),u="";return i2&&(u+=i2),s.length&&(u+=`
${s.join(`
`)}`),c2&&(u+=`
${c2}`),l&&(u+=`
${l}`),u}extractQuotedTweet(e3){let t3=e3.cloneNode(!0);this.replaceEmojiImages(t3);let r3=t3.querySelector('[data-testid="tweetText"]'),n3=r3?(0,o.serializeHTML)(r3):"",a2=this.formatTweetText(n3),s=this.extractUserInfo(e3),l=this.extractImages(e3,null),c2="";a2&&(c2+=a2),l.length&&(c2+=`
${l.join(`
`)}`);let u=s.fullName?`${s.fullName} ${s.handle}`:s.handle;return(0,i.buildQuotedPost)({author:u||void 0,date:s.date||void 0,content:c2})}extractUserInfo(e3){var t3,r3,n3,o2,i2,a2,s,l,c2;let u=e3.querySelector('[data-testid="User-Name"]');if(!u)return{fullName:"",handle:"",date:"",permalink:""};let d=u.querySelectorAll("a"),h2=((r3=(t3=d==null?void 0:d[0])===null||t3===void 0?void 0:t3.textContent)===null||r3===void 0?void 0:r3.trim())||"",m=((o2=(n3=d==null?void 0:d[1])===null||n3===void 0?void 0:n3.textContent)===null||o2===void 0?void 0:o2.trim())||"";if(!h2||!m){let e4=Array.from(u.children);if(e4.length>=2){h2=((a2=(i2=e4[0])===null||i2===void 0?void 0:i2.textContent)===null||a2===void 0?void 0:a2.trim())||"";let t4=(((l=(s=e4[1])===null||s===void 0?void 0:s.textContent)===null||l===void 0?void 0:l.trim())||"").match(/(@\w+)/);m=t4?t4[1]:""}}let p=e3.querySelector("time"),f=(p==null?void 0:p.getAttribute("datetime"))||"";return{fullName:h2,handle:m,date:f?new Date(f).toISOString().split("T")[0]:"",permalink:((c2=p==null?void 0:p.closest("a"))===null||c2===void 0?void 0:c2.href)||""}}extractImages(e3,t3){let r3=['[data-testid="tweetPhoto"]','[data-testid="tweet-image"]','img[src*="media"]'],n3=[];for(let i2 of r3)e3.querySelectorAll(i2).forEach((e4=>{var r4,i3;if(!(t3!=null&&t3.contains(e4))&&e4.tagName.toLowerCase()==="img"&&e4.getAttribute("alt")){let t4=((r4=e4.getAttribute("src"))===null||r4===void 0?void 0:r4.replace(/&name=\w+$/,"&name=large"))||"",a2=((i3=e4.getAttribute("alt"))===null||i3===void 0?void 0:i3.replace(/\s+/g," ").trim())||"";n3.push(`<img src="${(0,o.escapeHtml)(t4)}" alt="${(0,o.escapeHtml)(a2)}" />`)}}));return n3}extractCard(e3){var t3;let r3=e3.querySelector('[data-testid="card.wrapper"]');if(!r3)return"";let n3=r3.querySelector("a[href]");if(!n3)return"";let i2=n3.getAttribute("href")||"",a2=((t3=(n3.getAttribute("aria-label")||"").split(/\n/)[0])===null||t3===void 0?void 0:t3.trim())||i2;return`<p><a href="${(0,o.escapeHtml)(i2)}">${(0,o.escapeHtml)(a2)}</a></p>`}getTweetId(){let e3=this.url.match(/status\/(\d+)/);return(e3==null?void 0:e3[1])||""}getTweetAuthor(){let e3=this.getHandle(this.mainTweet);return e3.startsWith("@")?e3:`@${e3}`}createDescription(e3){var t3;return e3?(((t3=e3.querySelector('[data-testid="tweetText"]'))===null||t3===void 0?void 0:t3.textContent)||"").trim().slice(0,140).replace(/\s+/g," "):""}}t2.TwitterExtractor=a},2144(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.WikipediaExtractor=void 0;let n2=r2(2279);class o extends n2.BaseExtractor{canExtract(){return this.document.querySelector("#mw-content-text")!==null}extract(){var e3;let t3=((e3=this.document.querySelector('meta[property="og:title"]'))===null||e3===void 0?void 0:e3.getAttribute("content"))||"";return{content:"",contentHtml:"",contentSelector:"#mw-content-text",variables:{title:t3.replace(/\s*[-\u2013\u2014]\s*Wikipedia\s*$/,"")||t3,author:"Wikipedia",site:"Wikipedia"}}}}t2.WikipediaExtractor=o},1064(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.XArticleExtractor=void 0;let n2=r2(2279),o=r2(639),i='[data-testid="twitterArticleReadView"]',a='[data-testid="twitterArticleRichTextView"]',s='[data-testid="twitter-article-title"]',l='[itemprop="author"]',c2='meta[itemprop="name"]',u='meta[itemprop="additionalName"]',d='[data-testid="tweetPhoto"] img',h2=".longform-unstyled, .public-DraftStyleDefault-block",m='span[style*="font-weight: bold"]',p="[data-offset-key]",f='[data-testid="simpleTweet"]',g='[data-testid="tweetText"]',b='[data-testid="User-Name"]',x='[data-testid="markdown-code-block"]';class v extends n2.BaseExtractor{constructor(e3,t3,r3){super(e3,t3,r3),this.articleContainer=e3.querySelector(a)}canExtract(){return!!this.articleContainer}extract(){let e3=this.extractTitle(),t3=this.extractAuthor(),r3=this.extractContent(),n3=this.createDescription();return{content:r3,contentHtml:r3,extractedContent:{articleId:this.getArticleId()},variables:{title:e3,author:t3,site:"X (Twitter)",description:n3}}}extractTitle(){var e3;let t3=this.document.querySelector(s);return((e3=t3==null?void 0:t3.textContent)===null||e3===void 0?void 0:e3.trim())||"Untitled X Article"}extractAuthor(){var e3,t3;let r3=this.document.querySelector(l);if(!r3)return this.getAuthorFromUrl();let n3=(e3=r3.querySelector(c2))===null||e3===void 0?void 0:e3.getAttribute("content"),o2=(t3=r3.querySelector(u))===null||t3===void 0?void 0:t3.getAttribute("content");return n3&&o2?`${n3} (@${o2})`:n3||o2||this.getAuthorFromUrl()}getAuthorFromUrl(){let e3=this.url.match(/\/([a-zA-Z0-9_][a-zA-Z0-9_]{0,14})\/(article|status)\/\d+/);return e3?`@${e3[1]}`:this.getAuthorFromOgTitle()}getAuthorFromOgTitle(){var e3;let t3=(((e3=this.document.querySelector('meta[property="og:title"]'))===null||e3===void 0?void 0:e3.getAttribute("content"))||"").match(/^(?:\(\d+\)\s+)?(.+?)\s+on\s+X\s*:/);return t3?t3[1].trim():"Unknown"}getArticleId(){let e3=this.url.match(/article\/(\d+)/);return e3?e3[1]:""}extractContent(){if(!this.articleContainer)return"";let e3=this.articleContainer.cloneNode(!0);return this.cleanContent(e3),`<article class="x-article">${this.extractHeaderImage()}${(0,o.serializeHTML)(e3)}</article>`}extractHeaderImage(){var e3;let t3=this.document.querySelector(i);if(!t3)return"";let r3=t3.querySelector(d);if(!r3||this.articleContainer.contains(r3))return"";let n3=r3.getAttribute("src");if(!n3)return"";let o2=((e3=r3.getAttribute("alt"))===null||e3===void 0?void 0:e3.replace(/\s+/g," ").trim())||"Image";return`<img src="${this.upgradeImageSrc(n3)}" alt="${o2}">`}cleanContent(e3){let t3=e3.ownerDocument||this.document;this.convertEmbeddedTweets(e3,t3),this.convertCodeBlocks(e3,t3),this.convertHeaders(e3,t3),this.unwrapLinkedImages(e3,t3),this.upgradeImageQuality(e3),this.convertBoldSpans(e3,t3),this.convertDraftParagraphs(e3,t3),this.removeDraftAttributes(e3),this.repairSurrogatePairs(e3)}convertEmbeddedTweets(e3,t3){e3.querySelectorAll(f).forEach((e4=>{var r3,n3,o2,i2,a2;let s2=t3.createElement("blockquote");s2.className="embedded-tweet";let l2=e4.querySelector(b),c3=l2==null?void 0:l2.querySelectorAll("a"),u2=((n3=(r3=c3==null?void 0:c3[0])===null||r3===void 0?void 0:r3.textContent)===null||n3===void 0?void 0:n3.trim())||"",d2=((i2=(o2=c3==null?void 0:c3[1])===null||o2===void 0?void 0:o2.textContent)===null||i2===void 0?void 0:i2.trim())||"",h3=e4.querySelector(g),m2=((a2=h3==null?void 0:h3.textContent)===null||a2===void 0?void 0:a2.trim())||"";if(u2||d2){let e5=t3.createElement("cite");e5.textContent=d2?`${u2} ${d2}`:u2,s2.appendChild(e5)}if(m2){let e5=t3.createElement("p");e5.textContent=m2,s2.appendChild(e5)}e4.replaceWith(s2)}))}convertCodeBlocks(e3,t3){e3.querySelectorAll(x).forEach((e4=>{var r3;let n3=e4.querySelector("pre"),o2=e4.querySelector("code");if(!n3||!o2)return;let i2="",a2=o2.className.match(/language-(\w+)/);if(a2)i2=a2[1];else{let t4=e4.querySelector("span");i2=((r3=t4==null?void 0:t4.textContent)===null||r3===void 0?void 0:r3.trim())||""}let s2=t3.createElement("pre"),l2=t3.createElement("code");i2&&(l2.setAttribute("data-lang",i2),l2.className=`language-${i2}`),l2.textContent=o2.textContent||"",s2.appendChild(l2),e4.replaceWith(s2)}))}convertHeaders(e3,t3){e3.querySelectorAll("h1, h2, h3, h4, h5, h6").forEach((e4=>{var r3;let n3=e4.tagName.toLowerCase(),o2=((r3=e4.textContent)===null||r3===void 0?void 0:r3.trim())||"";if(!o2)return;let i2=t3.createElement(n3);i2.textContent=o2,e4.replaceWith(i2)}))}unwrapLinkedImages(e3,t3){e3.querySelectorAll(d).forEach((r3=>{var n3;let o2=r3.closest("a");if(!o2||!e3.contains(o2))return;let i2=r3.getAttribute("src")||"",a2=((n3=r3.getAttribute("alt"))===null||n3===void 0?void 0:n3.replace(/\s+/g," ").trim())||"Image",s2=t3.createElement("img");s2.setAttribute("src",this.upgradeImageSrc(i2)),s2.setAttribute("alt",a2),o2.replaceWith(s2)}))}upgradeImageQuality(e3){e3.querySelectorAll(d).forEach((e4=>{let t3=e4.getAttribute("src");t3&&e4.setAttribute("src",this.upgradeImageSrc(t3))}))}upgradeImageSrc(e3){return e3.includes("&name=")?e3.replace(/&name=\w+/,"&name=large"):e3.includes("?")?`${e3}&name=large`:`${e3}?name=large`}convertDraftParagraphs(e3,t3){e3.querySelectorAll(h2).forEach((e4=>{let r3=t3.createElement("p"),n3=e5=>{if(e5.nodeType===3)r3.appendChild(t3.createTextNode(e5.textContent||""));else if(e5.nodeType===1){let o2=e5,i2=o2.tagName.toLowerCase();if(i2==="strong"){let e6=t3.createElement("strong");e6.textContent=o2.textContent||"",r3.appendChild(e6)}else if(i2==="a"){let e6=t3.createElement("a");e6.setAttribute("href",o2.getAttribute("href")||""),e6.textContent=o2.textContent||"",r3.appendChild(e6)}else if(i2==="code"){let e6=t3.createElement("code");e6.textContent=o2.textContent||"",r3.appendChild(e6)}else o2.childNodes.forEach((e6=>n3(e6)))}};e4.childNodes.forEach((e5=>n3(e5))),e4.replaceWith(r3)}))}convertBoldSpans(e3,t3){e3.querySelectorAll(m).forEach((e4=>{let r3=t3.createElement("strong");r3.textContent=e4.textContent||"",e4.replaceWith(r3)}))}removeDraftAttributes(e3){e3.querySelectorAll(p).forEach((e4=>{e4.removeAttribute("data-offset-key")}))}repairSurrogatePairs(e3){let t3=(e3.ownerDocument||this.document).createTreeWalker(e3,4),r3,n3=null;for(;r3=t3.nextNode();){let e4=r3;if(n3){let t4=n3.textContent||"",r4=e4.textContent||"";if(t4&&r4){let o2=t4.charCodeAt(t4.length-1),i2=r4.charCodeAt(0);o2>=55296&&o2<=56319&&i2>=56320&&i2<=57343&&(n3.textContent=t4.slice(0,-1),e4.textContent=t4.slice(-1)+r4)}}n3=e4}}createDescription(){var e3,t3;let r3=((t3=(e3=this.articleContainer)===null||e3===void 0?void 0:e3.textContent)===null||t3===void 0?void 0:t3.trim())||"";return r3.slice(0,140)+(r3.length>140?"...":"")}}t2.XArticleExtractor=v},5666(e2,t2,r2){"use strict";var n2=this&&this.__awaiter||function(e3,t3,r3,n3){return new(r3||(r3=Promise))((function(o2,i2){function a2(e4){try{l(n3.next(e4))}catch(e5){i2(e5)}}function s2(e4){try{l(n3.throw(e4))}catch(e5){i2(e5)}}function l(e4){var t4;e4.done?o2(e4.value):(t4=e4.value,t4 instanceof r3?t4:new r3((function(e5){e5(t4)}))).then(a2,s2)}l((n3=n3.apply(e3,t3||[])).next())}))};Object.defineProperty(t2,"__esModule",{value:!0}),t2.XOembedExtractor=void 0;let o=r2(2279),i=r2(639),a=r2(6077);class s extends o.BaseExtractor{canExtract(){return!1}extract(){return{content:"",contentHtml:""}}canExtractAsync(){return/\/(status|article)\/\d+/.test(this.url)}extractAsync(){return n2(this,void 0,void 0,(function*(){return(yield this.tryExtractFxTwitter())||this.extractOembed()}))}extractOembed(){return n2(this,void 0,void 0,(function*(){let e3=`https://publish.twitter.com/oembed?url=${encodeURIComponent(this.url)}&omit_script=true`,t3=yield this.fetch(e3);if(!t3.ok)throw new Error(`oEmbed request failed: ${t3.status}`);let r3=yield t3.json(),n3=this.document.createElement("div");n3.appendChild((0,i.parseHTML)(this.document,r3.html));let o2=n3.querySelector("blockquote"),s2=(o2==null?void 0:o2.querySelectorAll("p"))||[],l=Array.from(s2).map((e4=>`<p>${(0,i.serializeHTML)(e4)}</p>`)).join(`
`),c2=r3.author_url?`@${r3.author_url.split("/").pop()}`:"",u=(0,a.buildContentHtml)("twitter",l,""),d=c2||r3.author_name,h2=l.replace(/<[^>]*>/g,"").trim().slice(0,140).replace(/\s+/g," ");return{content:u,contentHtml:u,variables:{title:this.postTitle(d,"X"),author:d,site:"X (Twitter)",description:h2}}}))}tryExtractFxTwitter(){return n2(this,void 0,void 0,(function*(){var e3,t3;let r3=this.url.match(/\/([a-zA-Z0-9_][a-zA-Z0-9_]{0,14})\/(status|article)\/(\d+)/);if(!r3)return null;try{let n3=yield this.fetchFxTwitter(r3[1],r3[3]);return!((e3=n3.tweet)===null||e3===void 0)&&e3.article?this.buildArticleResult(n3):!((t3=n3.tweet)===null||t3===void 0)&&t3.text?this.buildTweetResult(n3):null}catch(e4){return null}}))}fetchFxTwitter(e3,t3){return n2(this,void 0,void 0,(function*(){let r3=`https://api.fxtwitter.com/${e3}/status/${t3}`,n3=yield this.fetch(r3,{headers:{"User-Agent":"Mozilla/5.0 (compatible; Defuddle/1.0; +https://defuddle.md)"}});if(!n3.ok)throw new Error(`FxTwitter API request failed: ${n3.status}`);return n3.json()}))}toDateString(e3){if(e3)try{return new Date(e3).toISOString().split("T")[0]}catch(e4){return}}buildArticleResult(e3){var t3;let r3=e3.tweet.article,{blocks:n3,entityMap:o2}=r3.content,i2=r3.media_entities||[],a2=this.renderArticle(n3,o2,r3.cover_media,i2),s2=`@${e3.tweet.author.screen_name}`,l=(t3=this.toDateString(r3.created_at))!==null&&t3!==void 0?t3:this.toDateString(e3.tweet.created_at);return{content:a2,contentHtml:a2,variables:Object.assign({title:r3.title,author:s2,site:"X (Twitter)",description:r3.preview_text},l&&{published:l})}}buildTweetResult(e3){let t3=e3.tweet,r3=`@${t3.author.screen_name}`,n3=this.renderTweet(t3),o2=(0,a.buildContentHtml)("twitter",n3,""),i2=this.toDateString(t3.created_at),s2=(t3.text||"").trim().slice(0,140).replace(/\s+/g," ");return{content:o2,contentHtml:o2,variables:Object.assign({title:this.postTitle(r3,"X"),author:r3,site:"X (Twitter)",description:s2},i2&&{published:i2})}}renderTweet(e3){var t3,r3,n3;let o2=((t3=e3.raw_text)===null||t3===void 0?void 0:t3.text)||e3.text,a2=(((r3=e3.raw_text)===null||r3===void 0?void 0:r3.facets)||[]).filter((e4=>e4.type!=="media")),s2=o2.split(/\n\n+/),l=0,c2=[];for(let e4 of s2){let t4=o2.indexOf(e4,l),r4=t4+e4.length;l=r4;let n4=e4.trimStart().startsWith(">"),i2=n4?e4.trimStart().slice(1).trimStart():e4,s3=n4?t4+(e4.length-e4.trimStart().length)+1+(e4.trimStart().slice(1).length-e4.trimStart().slice(1).trimStart().length):t4,u=this.applyFacets(i2,s3,r4,a2).replace(/\n/g,"<br>");n4?c2.push(`<blockquote><p>${u}</p></blockquote>`):u.trim()&&c2.push(`<p>${u}</p>`)}if(!((n3=e3.media)===null||n3===void 0)&&n3.photos)for(let t4 of e3.media.photos)c2.push(`<img src="${(0,i.escapeHtml)(t4.url)}" alt="">`);return c2.join(`
`)}applyMarkers(e3,t3){if(t3.length===0)return(0,i.escapeHtml)(e3);t3.sort(((e4,t4)=>e4.offset!==t4.offset?e4.offset-t4.offset:e4.type==="close"&&t4.type==="open"?-1:e4.type==="open"&&t4.type==="close"?1:0));let r3="",n3=0;for(let o2 of t3)o2.offset>n3&&(r3+=(0,i.escapeHtml)(e3.slice(n3,o2.offset))),r3+=o2.tag,n3=o2.offset;return n3<e3.length&&(r3+=(0,i.escapeHtml)(e3.slice(n3))),r3}applyFacets(e3,t3,r3,n3){let o2=[];for(let a2 of n3){let[n4,s2]=a2.indices;if(s2<=t3||n4>=r3)continue;let l=Math.max(0,n4-t3),c2=Math.min(e3.length,s2-t3);if(a2.type==="italic")o2.push({offset:l,type:"open",tag:"<em>"}),o2.push({offset:c2,type:"close",tag:"</em>"});else if(a2.type==="mention"&&a2.text){let e4=`https://x.com/${(0,i.escapeHtml)(a2.text)}`;o2.push({offset:l,type:"open",tag:`<a href="${e4}">`}),o2.push({offset:c2,type:"close",tag:"</a>"})}else if(a2.type==="url"&&a2.original){let e4=(0,i.escapeHtml)(a2.original);o2.push({offset:l,type:"open",tag:`<a href="${e4}">`}),o2.push({offset:c2,type:"close",tag:"</a>"})}}return this.applyMarkers(e3,o2)}renderArticle(e3,t3,r3,n3){var o2;let a2=[];!((o2=r3==null?void 0:r3.media_info)===null||o2===void 0)&&o2.original_img_url&&a2.push(`<img src="${(0,i.escapeHtml)(r3.media_info.original_img_url)}" alt="Cover image">`);let s2=0;for(;s2<e3.length;){let r4=e3[s2];if(r4.type==="unordered-list-item"){let r5=[];for(;s2<e3.length&&e3[s2].type==="unordered-list-item";)r5.push(`<li>${this.renderInlineContent(e3[s2],t3)}</li>`),s2++;a2.push(`<ul>${r5.join("")}</ul>`);continue}let o3=this.renderBlock(r4,t3,n3);o3&&a2.push(o3),s2++}return`<article class="x-article">${a2.join(`
`)}</article>`}renderBlock(e3,t3,r3){switch(e3.type){case"unstyled":default:return e3.text.trim()?`<p>${this.renderInlineContent(e3,t3)}</p>`:"";case"header-two":return`<h2>${this.renderInlineContent(e3,t3)}</h2>`;case"header-three":return`<h3>${this.renderInlineContent(e3,t3)}</h3>`;case"atomic":return this.renderAtomicBlock(e3,t3,r3)}}renderAtomicBlock(e3,t3,r3){var n3,o2;if(e3.entityRanges.length===0)return"";let a2=t3.find((t4=>t4.key===String(e3.entityRanges[0].key)));if(!a2)return"";let s2=a2.value;switch(s2.type){case"MEDIA":{let e4=s2.data.mediaItems||[],t4=s2.data.caption,a3=[];for(let s3 of e4){let e5=r3==null?void 0:r3.find((e6=>String(e6.media_id)===String(s3.mediaId)));if(!e5)continue;let l=e5.media_info;if(l.__typename==="ApiImage"&&l.original_img_url)a3.push(`<img src="${(0,i.escapeHtml)(l.original_img_url)}" alt="${t4?(0,i.escapeHtml)(t4):""}">`);else if(l.__typename==="ApiVideo"&&(!((n3=l.preview_image)===null||n3===void 0)&&n3.original_img_url)){let e6=(o2=(l.variants||[]).filter((e7=>e7.content_type==="video/mp4"&&e7.bit_rate)).sort(((e7,t5)=>(t5.bit_rate||0)-(e7.bit_rate||0)))[0])===null||o2===void 0?void 0:o2.url,r4=l.preview_image.original_img_url;e6?a3.push(`<video src="${(0,i.escapeHtml)(e6)}" poster="${(0,i.escapeHtml)(r4)}" controls></video>`):a3.push(`<img src="${(0,i.escapeHtml)(r4)}" alt="${t4?(0,i.escapeHtml)(t4):""}">`)}}return a3.length>0&&t4?`<figure>${a3.join(`
`)}<figcaption>${(0,i.escapeHtml)(t4)}</figcaption></figure>`:a3.length>0?a3.map((e5=>`<figure>${e5}</figure>`)).join(`
`):t4?`<figure><figcaption>${(0,i.escapeHtml)(t4)}</figcaption></figure>`:""}case"MARKDOWN":{let e4=s2.data.markdown||"",t4=e4.match(/^```(\w*)\n([\s\S]*?)\n?```$/);if(t4){let e5=t4[1],r4=t4[2];return`<pre><code${e5?` class="language-${(0,i.escapeHtml)(e5)}" data-lang="${(0,i.escapeHtml)(e5)}"`:""}>${(0,i.escapeHtml)(r4)}</code></pre>`}return`<pre><code>${(0,i.escapeHtml)(e4)}</code></pre>`}default:return""}}renderInlineContent(e3,t3){var r3,n3;let o2=e3.text;if(!o2)return"";let a2=[];for(let t4 of e3.inlineStyleRanges)t4.style==="Bold"&&(a2.push({offset:t4.offset,type:"open",tag:"<strong>"}),a2.push({offset:t4.offset+t4.length,type:"close",tag:"</strong>"}));for(let r4 of e3.entityRanges){let e4=t3.find((e5=>e5.key===String(r4.key)));if((e4==null?void 0:e4.value.type)==="LINK"&&e4.value.data.url){let t4=(0,i.escapeHtml)(e4.value.data.url);a2.push({offset:r4.offset,type:"open",tag:`<a href="${t4}">`}),a2.push({offset:r4.offset+r4.length,type:"close",tag:"</a>"})}}if(!((r3=e3.data)===null||r3===void 0)&&r3.mentions)for(let t4 of e3.data.mentions){let e4=`https://x.com/${(0,i.escapeHtml)(t4.text)}`;a2.push({offset:t4.fromIndex,type:"open",tag:`<a href="${e4}">`}),a2.push({offset:t4.toIndex,type:"close",tag:"</a>"})}if(!((n3=e3.data)===null||n3===void 0)&&n3.urls)for(let t4 of e3.data.urls){let e4=(0,i.escapeHtml)(t4.text);a2.push({offset:t4.fromIndex,type:"open",tag:`<a href="${e4}">`}),a2.push({offset:t4.toIndex,type:"close",tag:"</a>"})}return this.applyMarkers(o2,a2)}}t2.XOembedExtractor=s},3258(e2,t2,r2){"use strict";var n2=this&&this.__awaiter||function(e3,t3,r3,n3){return new(r3||(r3=Promise))((function(o2,i2){function a2(e4){try{l2(n3.next(e4))}catch(e5){i2(e5)}}function s2(e4){try{l2(n3.throw(e4))}catch(e5){i2(e5)}}function l2(e4){var t4;e4.done?o2(e4.value):(t4=e4.value,t4 instanceof r3?t4:new r3((function(e5){e5(t4)}))).then(a2,s2)}l2((n3=n3.apply(e3,t3||[])).next())}))};Object.defineProperty(t2,"__esModule",{value:!0}),t2.YoutubeExtractor=void 0;let o=r2(2279),i=r2(2552),a=r2(1497),s="\u300D\u300F\uFF09",l=new RegExp(`[.!?\u3002\uFF01\uFF1F]["'\\u2019\\u201D)${s}]*\\s*$`),c2=new RegExp(`[?\\uFF1F]["'\\u2019\\u201D)${s}]*\\s*$`),u=/^(>>|-\s)/,d=/^(>>\s*|-\s+)/,h2=/,\s*$/,m=new RegExp(`^(.*[.!?]["'\\u2019\\u201D)]*)\\s+([A-Z].*)$|^(.*[\u3002\uFF01\uFF1F][${s}]*)([${i.CJK_CHAR_RANGES}].*)$`),p=4e3,f="https://www.youtube.com/youtubei/v1/player?prettyPrint=false",g="20.10.38",b={client:{clientName:"ANDROID",clientVersion:g}},x=`com.google.android.youtube/${g} (Linux; U; Android 14)`,v={client:{clientName:"IOS",clientVersion:"20.10.3"}},y={client:{clientName:"WEB",clientVersion:"2.20240101.00.00"}},w={segments:"ytd-transcript-segment-renderer",timestamp:".segment-timestamp",text:".segment-text"},A={segments:"transcript-segment-view-model",timestamp:".ytwTranscriptSegmentViewModelTimestamp",text:"span.yt-core-attributed-string",chapters:"timeline-chapter-view-model h3"};class C extends o.BaseExtractor{constructor(e3,t3,r3,n3){super(e3,t3,r3,n3),this.inlineJsonCache=new Map,this.videoElement=e3.querySelector("video"),this.schemaOrgData=r3}canExtract(){return!0}canExtractAsync(){return!0}prefersAsync(){return!0}extract(){return this.buildResult(this.extractTranscriptFromExistingDom())}extractAsync(){return n2(this,void 0,void 0,(function*(){let e3=this.extractTranscriptFromExistingDom();if(this.shouldUseExistingDomTranscript(e3))return this.buildResult(e3);let t3=(yield this.fetchTranscript())||e3||(yield this.extractTranscriptFromOpenedDom());return this.buildResult(t3)}))}normalizeLanguageCode(e3){return(e3||"").trim().replace(/_/g,"-").toLocaleLowerCase()}languageCodeMatchesPreference(e3,t3){let r3=this.normalizeLanguageCode(e3),n3=this.normalizeLanguageCode(t3);if(!r3||!n3)return!1;if(r3===n3)return!0;let o2=r3.split("-")[0],i2=n3.split("-")[0];return o2===i2&&(r3===o2||n3===i2)}shouldUseExistingDomTranscript(e3){return!!e3&&(!this.options.language||this.languageCodeMatchesPreference(e3.languageCode,this.options.language))}getCaptionTracks(e3){var t3,r3;let n3=(r3=(t3=e3==null?void 0:e3.captions)===null||t3===void 0?void 0:t3.playerCaptionsTracklistRenderer)===null||r3===void 0?void 0:r3.captionTracks;return Array.isArray(n3)?n3:[]}findPreferredCaptionTrack(e3,t3){var r3,n3;let o2=this.normalizeLanguageCode(t3);if(!o2)return;let i2=o2.split("-")[0],a2=e3.map((e4=>({t:e4,code:this.normalizeLanguageCode(e4.languageCode)}))),s2=e4=>{var t4,r4;let n4=a2.filter(e4);return(r4=(t4=n4.find((({t:e5})=>e5.kind!=="asr")))!==null&&t4!==void 0?t4:n4[0])===null||r4===void 0?void 0:r4.t};return(n3=(r3=s2((({code:e4})=>e4===o2)))!==null&&r3!==void 0?r3:s2((({code:e4})=>e4===i2)))!==null&&n3!==void 0?n3:s2((({code:e4})=>e4.split("-")[0]===i2))}pickCaptionTrack(e3){let t3=this.options.language;if(t3){let r4=this.findPreferredCaptionTrack(e3,t3);if(r4)return r4}let r3=e3.filter((e4=>e4.kind!=="asr")),n3=r3.length>0?r3:e3;return n3.find((e4=>e4.languageCode==="en"))||n3[0]}getTrackDisplayName(e3){var t3,r3,n3;return((t3=e3==null?void 0:e3.name)===null||t3===void 0?void 0:t3.simpleText)||((n3=(r3=e3==null?void 0:e3.name)===null||r3===void 0?void 0:r3.runs)===null||n3===void 0?void 0:n3.map((e4=>(e4==null?void 0:e4.text)||"")).join("").trim())||""}normalizeLanguageLabel(e3){return e3.replace(/\s*\([^)]*\)\s*/g," ").replace(/\s+/g," ").trim().toLocaleLowerCase()}getTranscriptLanguageCodeFromDom(){var e3;let t3=this.document.querySelector('ytd-engagement-panel-section-list-renderer[target-id="engagement-panel-searchable-transcript"] #footer yt-sort-filter-sub-menu-renderer yt-dropdown-menu button'),r3=(e3=t3==null?void 0:t3.textContent)===null||e3===void 0?void 0:e3.trim(),n3=this.getCaptionTracks(this.getValidatedPlayerResponse()),o2=n3.length===1?n3[0]:void 0;if(!r3)return o2==null?void 0:o2.languageCode;let i2=this.normalizeLanguageLabel(r3),a2=n3.find((e4=>this.normalizeLanguageLabel(this.getTrackDisplayName(e4))===i2));return(a2==null?void 0:a2.languageCode)||(o2==null?void 0:o2.languageCode)}getInlineChapters(){var e3,t3,r3,n3;let o2=this.getVideoId(),i2=this.parseInlineJson("ytInitialData");if(!i2)return[];if(o2){let a3=(t3=(e3=i2==null?void 0:i2.currentVideoEndpoint)===null||e3===void 0?void 0:e3.watchEndpoint)===null||t3===void 0?void 0:t3.videoId,s2=(n3=(r3=i2==null?void 0:i2.endpoint)===null||r3===void 0?void 0:r3.watchEndpoint)===null||n3===void 0?void 0:n3.videoId;if(a3!==o2&&s2!==o2)return[]}let a2=this.extractChaptersFromPlayerBar(i2);return a2.length>0?a2:this.extractChaptersFromEngagementPanels(i2)}getTranscriptContainer(){return this.document.querySelector('ytd-engagement-panel-section-list-renderer[target-id="engagement-panel-searchable-transcript"] #segments-container')||this.document.querySelector("ytm-macro-markers-list-renderer .ytm-macro-markers-list-container")}getTranscriptSelectors(e3){return e3.querySelectorAll("ytd-transcript-segment-renderer").length>0?w:e3.querySelectorAll("transcript-segment-view-model").length>0?A:void 0}buildTranscriptFromContainer(e3,t3){var r3;if(e3.children.length===0)return;let n3=this.getTranscriptSelectors(e3);if(!n3)return;let o2=[],i2=[];if(n3.chapters){let t4=e3.querySelectorAll(n3.chapters);for(let e4 of t4){let t5=(e4.textContent||"").trim();if(!t5)continue;let o3=e4.closest("macro-markers-panel-item-view-model"),a2=(r3=o3==null?void 0:o3.nextElementSibling)===null||r3===void 0?void 0:r3.querySelector(n3.timestamp),s3=((a2==null?void 0:a2.textContent)||"").trim(),l3=this.parseTimestamp(s3);l3!==null&&i2.push({title:t5,start:l3})}}let s2=e3.querySelectorAll(n3.segments);for(let e4 of s2){let t4=e4.querySelector(n3.timestamp),r4=e4.querySelector(n3.text);if(!t4||!r4)continue;let i3=(t4.textContent||"").trim(),a2=(r4.textContent||"").trim();if(!a2)continue;let s3=this.parseTimestamp(i3);s3!==null&&o2.push({start:s3,text:a2})}if(o2.length===0)return;let l2=t3.length>0?t3:i2,c3=this.groupTranscriptSegments(o2),{html:u2,text:d2}=(0,a.buildTranscript)("youtube",c3,l2);return{html:u2,text:d2,languageCode:this.getTranscriptLanguageCodeFromDom()}}extractTranscriptFromExistingDom(){try{let e3=this.getTranscriptContainer();return e3?this.buildTranscriptFromContainer(e3,this.getInlineChapters()):void 0}catch(e3){return void console.error("YoutubeExtractor: failed to extract transcript from existing DOM",e3)}}canOpenTranscriptPanel(){var e3;return typeof((e3=this.document.defaultView)===null||e3===void 0?void 0:e3.MutationObserver)=="function"}buildResult(e3){let t3=this.getVideoData(),r3=this.getChannelName(t3),n3=t3.description||"",o2=this.formatDescription(n3),i2=`<iframe width="560" height="315" src="https://www.youtube.com/embed/${this.getVideoId()}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>${o2}`;e3!=null&&e3.html&&(i2+=e3.html);let a2={title:t3.name||"",author:r3,site:"YouTube",image:Array.isArray(t3.thumbnailUrl)&&t3.thumbnailUrl[0]||"",published:t3.uploadDate,description:n3.slice(0,200).trim()};return e3!=null&&e3.text&&(a2.transcript=e3.text),e3!=null&&e3.languageCode&&(a2.language=e3.languageCode),{content:i2,contentHtml:i2,extractedContent:{videoId:this.getVideoId(),author:r3},variables:a2}}formatDescription(e3){return`<p>${e3.replace(/\n/g,"<br>")}</p>`}getVideoData(){var e3,t3,r3,n3;let o2=this.getVideoId(),i2=Array.from(this.document.querySelectorAll('script[type="application/ld+json"]'));for(let e4 of i2)try{let t4=JSON.parse(e4.textContent||""),r4=(Array.isArray(t4)?t4:[t4]).find((e5=>e5["@type"]!=="VideoObject"?!1:o2?(e5["@id"]||e5.url||e5.embedUrl||"").includes(o2):!0));if(r4)return r4}catch(e5){}return o2&&(((e3=this.document.querySelector('meta[property="og:url"]'))===null||e3===void 0?void 0:e3.getAttribute("content"))||"").includes(o2)?{name:((t3=this.document.querySelector('meta[property="og:title"]'))===null||t3===void 0?void 0:t3.getAttribute("content"))||"",description:((r3=this.document.querySelector('meta[property="og:description"]'))===null||r3===void 0?void 0:r3.getAttribute("content"))||"",thumbnailUrl:((n3=this.document.querySelector('meta[property="og:image"]'))===null||n3===void 0?void 0:n3.getAttribute("content"))||""}:{}}getChannelName(e3){let t3=this.getChannelNameFromDom();return t3||this.getChannelNameFromPlayerResponse()||(e3==null?void 0:e3.author)||""}getChannelNameFromDom(){var e3;let t3=['ytd-video-owner-renderer #channel-name a[href^="/@"]','#owner-name a[href^="/@"]'];for(let r3 of t3){let t4=this.document.querySelector(r3),n3=(e3=t4==null?void 0:t4.textContent)===null||e3===void 0?void 0:e3.trim();if(n3)return n3}return this.getChannelNameFromMicrodata()}getChannelNameFromMicrodata(){var e3;let t3=this.document.querySelector('[itemprop="author"]');if(!t3)return"";let r3=t3.querySelector('meta[itemprop="name"]');if(r3!=null&&r3.getAttribute("content"))return r3.getAttribute("content").trim();let n3=t3.querySelector('link[itemprop="name"]');if(n3!=null&&n3.getAttribute("content"))return n3.getAttribute("content").trim();let o2=t3.querySelector('[itemprop="name"], a, span');return((e3=o2==null?void 0:o2.textContent)===null||e3===void 0?void 0:e3.trim())||""}getChannelNameFromPlayerResponse(){var e3,t3,r3,n3;let o2=this.getValidatedPlayerResponse();return o2&&(((e3=o2.videoDetails)===null||e3===void 0?void 0:e3.author)||((t3=o2.videoDetails)===null||t3===void 0?void 0:t3.ownerChannelName)||((n3=(r3=o2.microformat)===null||r3===void 0?void 0:r3.playerMicroformatRenderer)===null||n3===void 0?void 0:n3.ownerChannelName))||""}getValidatedPlayerResponse(){var e3,t3,r3;let n3=this.getVideoId();if(!n3)return null;let o2=this.parseInlineJson("ytInitialPlayerResponse");if(!o2)return null;let i2=(e3=o2.videoDetails)===null||e3===void 0?void 0:e3.videoId,a2=(r3=(t3=o2.microformat)===null||t3===void 0?void 0:t3.playerMicroformatRenderer)===null||r3===void 0?void 0:r3.externalVideoId;return i2===n3||a2===n3?o2:null}parseInlineJson(e3){if(this.inlineJsonCache.has(e3))return this.inlineJsonCache.get(e3);let t3=Array.from(this.document.querySelectorAll("script"));for(let r3 of t3){let t4=r3.textContent||"";if(!t4.includes(e3))continue;let n3=t4.indexOf("{",t4.indexOf(e3));if(n3===-1)continue;let o2=0;for(let r4=n3;r4<t4.length;r4++){let i2=t4[r4];if(i2==="{")o2+=1;else if(i2==="}"&&(o2-=1,o2===0)){let o3=t4.slice(n3,r4+1);try{let t5=JSON.parse(o3);return this.inlineJsonCache.set(e3,t5),t5}catch(e4){console.error("YoutubeExtractor: failed to parse inline JSON",e4);break}}}}return null}fetchTranscript(){return n2(this,void 0,void 0,(function*(){try{let e3=this.getVideoId();if(!e3)return;let t3=this.fetchChapters(e3),r3=this.getInlineCaptionTrack(),n3=r3?this.fetchCaptionXml(r3,t3):void 0,o2=yield this.fetchPlayerData(e3),i2=o2?this.pickCaptionTrack(this.getCaptionTracks(o2)):void 0,a2=i2!=null&&i2.baseUrl&&i2.baseUrl!==(r3==null?void 0:r3.baseUrl)?this.fetchCaptionXml(i2,t3):void 0;return(a2?yield a2:void 0)||(n3?yield n3:void 0)}catch(e3){return void console.error("YoutubeExtractor: failed to fetch transcript",e3)}}))}getInlineCaptionTrack(){let e3=this.getValidatedPlayerResponse(),t3=this.getCaptionTracks(e3);if(t3.length===0)return;let r3=this.pickCaptionTrack(t3);return r3!=null&&r3.baseUrl?r3:void 0}fetchCaptionXml(e3,t3){return n2(this,void 0,void 0,(function*(){try{if(!new URL(e3.baseUrl).hostname.endsWith(".youtube.com"))return;let r3={"User-Agent":"Mozilla/5.0"};this.options.language&&(r3["Accept-Language"]=this.options.language);let n3=yield this.fetch(e3.baseUrl,{headers:r3,signal:AbortSignal.timeout(p)});if(!n3.ok)return;let o2;try{o2=yield n3.text()}catch(e4){return}if(!o2)return;let i2=yield t3;return this.parseTranscriptXml(o2,e3.languageCode||"en",i2)}catch(e4){return}}))}pollFor(e3,t3=20){return new Promise((r3=>{let n3=0,o2=()=>{let i2=e3();i2?r3(i2):n3++<t3?setTimeout(o2,250):r3(null)};o2()}))}waitForTranscriptSegments(){return this.pollFor((()=>{let e3=this.getTranscriptContainer();return e3&&e3.children.length!==0&&e3.querySelectorAll(A.segments).length>0?e3:null}))}waitForTranscriptContainer(){return this.pollFor((()=>{let e3=this.getTranscriptContainer();return e3&&e3.children.length>0?e3:null}))}waitForElement(e3){return this.pollFor((()=>this.document.querySelector(e3)))}isMobileYoutube(){return!!this.document.querySelector("ytm-slim-video-metadata-section-renderer")}extractTranscriptFromOpenedDom(){return n2(this,void 0,void 0,(function*(){try{if(!this.canOpenTranscriptPanel())return;if(this.isMobileYoutube())return this.openMobileTranscriptPanel();let e3=this.document.querySelector("ytd-video-description-transcript-section-renderer button");if(!e3)return;e3.click();let t3=yield this.waitForTranscriptContainer();if(!t3)return;let r3=this.getVideoId(),n3=r3?yield this.fetchChapters(r3):this.getInlineChapters();return this.buildTranscriptFromContainer(t3,n3)}catch(e3){return void console.error("YoutubeExtractor: failed to extract transcript from opened DOM",e3)}}))}openMobileTranscriptPanel(){return n2(this,void 0,void 0,(function*(){try{let e3=this.document.querySelector('button[aria-label="Show more"]');e3&&e3.click();let t3=yield this.waitForElement('button[aria-label="View all"]');if(!t3)return;t3.click();let r3=yield this.waitForElement('button[aria-label="Timeline"]');if(!r3)return;r3.click();let n3=yield this.waitForTranscriptSegments();return n3?this.buildTranscriptFromContainer(n3,[]):void 0}catch(e3){return void console.error("YoutubeExtractor: failed to open mobile transcript panel",e3)}}))}fetchPlayerData(e3){return n2(this,void 0,void 0,(function*(){try{let t4={"Content-Type":"application/json"};this.options.language&&(t4["Accept-Language"]=this.options.language);let r3=yield this.fetch(f,{method:"POST",headers:t4,signal:AbortSignal.timeout(p),body:JSON.stringify({context:v,videoId:e3})});if(r3.ok){let e4=yield r3.json();if(this.getCaptionTracks(e4).length>0)return e4}}catch(e4){}try{let t4={"Content-Type":"application/json","User-Agent":x};this.options.language&&(t4["Accept-Language"]=this.options.language);let r3=yield this.fetch(f,{method:"POST",headers:t4,signal:AbortSignal.timeout(p),body:JSON.stringify({context:b,videoId:e3})});if(r3.ok){let e4=yield r3.json();if(this.getCaptionTracks(e4).length>0)return e4}}catch(e4){}try{let t4={"Content-Type":"application/json"};this.options.language&&(t4["Accept-Language"]=this.options.language);let r3=yield this.fetch(f,{method:"POST",headers:t4,signal:AbortSignal.timeout(p),body:JSON.stringify({context:y,videoId:e3})});if(r3.ok){let e4=yield r3.json();if(this.getCaptionTracks(e4).length>0)return e4}}catch(e4){}let t3=this.parseInlineJson("ytInitialPlayerResponse");if(this.getCaptionTracks(t3).length>0)return t3}))}fetchChapters(e3){return n2(this,void 0,void 0,(function*(){let t3=this.getInlineChapters();if(t3.length>0)return t3;try{let t4={"Content-Type":"application/json"};this.options.language&&(t4["Accept-Language"]=this.options.language);let r3=yield this.fetch("https://www.youtube.com/youtubei/v1/next?prettyPrint=false",{method:"POST",headers:t4,signal:AbortSignal.timeout(p),body:JSON.stringify({context:y,videoId:e3})});if(!r3.ok)return[];let n3=yield r3.json(),o2=this.extractChaptersFromPlayerBar(n3);return o2.length>0?o2:this.extractChaptersFromEngagementPanels(n3)}catch(e4){return[]}}))}extractChaptersFromPlayerBar(e3){var t3,r3,n3,o2,i2,a2,s2,l2;let c3=[],u2=(a2=(i2=(o2=(n3=(r3=(t3=e3==null?void 0:e3.playerOverlays)===null||t3===void 0?void 0:t3.playerOverlayRenderer)===null||r3===void 0?void 0:r3.decoratedPlayerBarRenderer)===null||n3===void 0?void 0:n3.decoratedPlayerBarRenderer)===null||o2===void 0?void 0:o2.playerBar)===null||i2===void 0?void 0:i2.multiMarkersPlayerBarRenderer)===null||a2===void 0?void 0:a2.markersMap;if(!Array.isArray(u2))return c3;for(let e4 of u2){let t4=(s2=e4==null?void 0:e4.value)===null||s2===void 0?void 0:s2.chapters;if(Array.isArray(t4))for(let e5 of t4){let t5=e5==null?void 0:e5.chapterRenderer;if(!t5)continue;let r4=((l2=t5.title)===null||l2===void 0?void 0:l2.simpleText)||"",n4=t5.timeRangeStartMillis;r4&&typeof n4=="number"&&c3.push({title:r4,start:n4/1e3})}}return c3}extractChaptersFromEngagementPanels(e3){var t3,r3,n3,o2;let i2=[],a2=e3==null?void 0:e3.engagementPanels;if(!Array.isArray(a2))return i2;for(let e4 of a2){let a3=(t3=e4==null?void 0:e4.engagementPanelSectionListRenderer)===null||t3===void 0?void 0:t3.content,s2=(r3=a3==null?void 0:a3.macroMarkersListRenderer)===null||r3===void 0?void 0:r3.contents;if(Array.isArray(s2))for(let e5 of s2){let t4=e5==null?void 0:e5.macroMarkersListItemRenderer;if(!t4)continue;let r4=((n3=t4.title)===null||n3===void 0?void 0:n3.simpleText)||"",a4=((o2=t4.timeDescription)===null||o2===void 0?void 0:o2.simpleText)||"";if(!r4||!a4)continue;let s3=this.parseTimestamp(a4);s3!==null&&i2.push({title:r4,start:s3})}}return i2}parseTimestamp(e3){let t3=e3.split(":").map(Number);return t3.some(isNaN)?null:t3.length===3?3600*t3[0]+60*t3[1]+t3[2]:t3.length===2?60*t3[0]+t3[1]:null}parseTranscriptXml(e3,t3,r3=[]){let n3=[],o2=/<p\s+t="(\d+)"[^>]*>([\s\S]*?)<\/p>/g,i2;for(;(i2=o2.exec(e3))!==null;){let e4=parseInt(i2[1],10),t4=i2[2],r4="",o3=/<s[^>]*>([^<]*)<\/s>/g,a2;for(;(a2=o3.exec(t4))!==null;)r4+=a2[1];r4||(r4=t4.replace(/<[^>]+>/g,"")),r4=r4.replace(/\n/g," ").replace(/\s{2,}/g," "),r4=this.decodeEntities(r4),r4.trim()&&n3.push({start:e4/1e3,text:r4.trim()})}if(n3.length===0){let t4=/<text\s+start="([^"]*)"[^>]*>([\s\S]*?)<\/text>/g;for(;(i2=t4.exec(e3))!==null;){let e4=parseFloat(i2[1]),t5=this.decodeEntities(i2[2].replace(/<[^>]+>/g,"").replace(/\n/g," ").replace(/\s{2,}/g," "));t5.trim()&&n3.push({start:e4,text:t5.trim()})}}if(n3.length===0)return;let s2=this.groupTranscriptSegments(n3),{html:l2,text:c3}=(0,a.buildTranscript)("youtube",s2,r3);return{html:l2,text:c3,languageCode:t3}}decodeEntities(e3){return e3.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&apos;/g,"'").replace(/&#x([0-9a-fA-F]+);/g,((e4,t3)=>String.fromCodePoint(parseInt(t3,16)))).replace(/&#(\d+);/g,((e4,t3)=>String.fromCodePoint(parseInt(t3,10))))}getVideoId(){if(this._videoId===void 0){let e3=new URL(this.url);this._videoId=e3.hostname==="youtu.be"?e3.pathname.slice(1):e3.pathname.includes("/shorts/")?e3.pathname.split("/shorts/")[1].split("/")[0]:new URLSearchParams(e3.search).get("v")||""}return this._videoId}groupTranscriptSegments(e3){return e3.length===0?[]:e3.some((e4=>u.test(e4.text)))?this.groupBySpeaker(e3):this.groupBySentence(e3)}groupBySpeaker(e3){let t3=[],r3=null,n3=-1,o2="";for(let i3 of e3){let e4=u.test(i3.text),a2=i3.text.replace(d,""),s2=h2.test(o2),c3=(l.test(o2)||!o2)&&!s2;e4&&c3?(r3&&t3.push(r3),n3=(n3+1)%2,r3={start:i3.start,segments:[{start:i3.start,text:a2}],speakerChange:!0,speaker:n3}):(r3||(r3={start:i3.start,segments:[],speakerChange:!1}),r3.segments.push({start:i3.start,text:a2})),o2=a2}r3&&t3.push(r3),this.splitAffirmativeTurns(t3);let i2=[];for(let e4 of t3){let t4=e4.speaker===void 0?this.groupBySentence(e4.segments):this.mergeSentenceGroupsWithinTurn(this.groupBySentence(e4.segments));for(let r4=0;r4<t4.length;r4++)i2.push(Object.assign(Object.assign({},t4[r4]),{speakerChange:r4===0&&e4.speakerChange,speaker:e4.speaker}))}return i2}splitAffirmativeTurns(e3){let t3=/^(mhm|yeah|yes|yep|right|okay|ok|absolutely|sure|exactly|uh-huh|mm-hmm)[.!,]?\s+/i;for(let r3=0;r3<e3.length;r3++){let n3=e3[r3];if(n3.speaker===void 0||n3.segments.length===0)continue;let o2=n3.segments[0],a2=t3.exec(o2.text);if(!a2||/,\s*$/.test(a2[0]))continue;let s2=o2.text.slice(a2[0].length).trim(),l2=n3.segments.slice(1);if((0,i.countWords)(s2)+l2.reduce(((e4,t4)=>e4+(0,i.countWords)(t4.text)),0)<30)continue;let c3=a2[0].trimEnd(),u2=s2?[{start:o2.start,text:s2},...l2]:l2,d2={start:n3.start,segments:[{start:o2.start,text:c3}],speakerChange:n3.speakerChange,speaker:n3.speaker},h3={start:u2[0].start,segments:u2,speakerChange:!0,speaker:n3.speaker===0?1:0};e3.splice(r3,1,d2,h3),r3++}}mergeSentenceGroupsWithinTurn(e3){if(e3.length<=1)return e3;let t3=[],r3=Object.assign({},e3[0]),n3=!0;for(let o2=1;o2<e3.length;o2++){let i2=e3[o2];this.shouldMergeSentenceGroups(r3,i2,n3)?r3.text=`${r3.text} ${i2.text}`:(t3.push(r3),r3=Object.assign({},i2),n3=!1)}return t3.push(r3),t3}shouldMergeSentenceGroups(e3,t3,r3){let n3=(0,i.countWords)(e3.text),o2=(0,i.countWords)(t3.text);return!this.isShortStandaloneUtterance(e3.text,n3)&&!this.isShortStandaloneUtterance(t3.text,o2)&&!(r3&&n3<8)&&!c2.test(e3.text)&&!c2.test(t3.text)&&!(n3+o2>80)&&!(t3.start-e3.start>45)}isShortStandaloneUtterance(e3,t3){let r3=t3!=null?t3:(0,i.countWords)(e3);return r3>0&&r3<=3&&l.test(e3)}groupBySentence(e3){let t3=[],r3=[],n3=e4=>{let r4=e4.map((e5=>e5.text)).join(" ").trim();r4&&t3.push({start:e4[0].start,text:r4,speakerChange:!1})},o2=()=>{r3.length!==0&&(n3(r3),r3.length=0)};for(let t4 of e3)if(r3.length>0&&t4.start-r3[r3.length-1].start>20&&o2(),r3.push(t4),l.test(t4.text))o2();else if(t4.start-r3[0].start>=30){let e4=this.findNaturalBreak(r3);e4>0&&e4<r3.length?(i2=e4)<=0||n3(r3.splice(0,i2)):o2()}var i2;return o2(),t3}findNaturalBreak(e3){var t3,r3;if(e3.length<=1)return-1;let n3=e3[0].start+15;for(let o3=e3.length-1;o3>=0&&!(e3[o3].start<n3);o3--){let n4=e3[o3].text.match(m);if(n4){let i3=(t3=n4[1])!==null&&t3!==void 0?t3:n4[3],a2=(r3=n4[2])!==null&&r3!==void 0?r3:n4[4],s2=e3[o3].start;return e3.splice(o3,1,{start:s2,text:i3},{start:s2,text:a2}),o3+1}}let o2=-1,i2=0;for(let t4=1;t4<e3.length;t4++){if(e3[t4].start<n3)continue;let r4=e3[t4].start-e3[t4-1].start;r4>=i2&&(i2=r4,o2=t4)}return o2}}t2.YoutubeExtractor=C},9098(e2,t2,r2){"use strict";var n2=this&&this.__awaiter||function(e3,t3,r3,n3){return new(r3||(r3=Promise))((function(o2,i2){function a2(e4){try{l(n3.next(e4))}catch(e5){i2(e5)}}function s(e4){try{l(n3.throw(e4))}catch(e5){i2(e5)}}function l(e4){var t4;e4.done?o2(e4.value):(t4=e4.value,t4 instanceof r3?t4:new r3((function(e5){e5(t4)}))).then(a2,s)}l((n3=n3.apply(e3,t3||[])).next())}))};Object.defineProperty(t2,"__esModule",{value:!0}),t2.createMarkdownContent=void 0;let o=r2(5628),i=r2(7076);Object.defineProperty(t2,"createMarkdownContent",{enumerable:!0,get:function(){return i.createMarkdownContent}});class a{constructor(e3,t3={}){this.defuddle=new o.Defuddle(e3,t3),this.options=t3}parse(){var e3;let t3=this.defuddle.parse();return(0,i.toMarkdown)(t3,this.options,(e3=this.options.url)!==null&&e3!==void 0?e3:""),t3}parseAsync(){return n2(this,void 0,void 0,(function*(){var e3;let t3=yield this.defuddle.parseAsync();return(0,i.toMarkdown)(t3,this.options,(e3=this.options.url)!==null&&e3!==void 0?e3:""),t3}))}}a.createMarkdownContent=i.createMarkdownContent,t2.default=a},7076(e2,t2,r2){"use strict";var n2=this&&this.__importDefault||function(e3){return e3&&e3.__esModule?e3:{default:e3}};Object.defineProperty(t2,"__esModule",{value:!0}),t2.isGenericElement=s,t2.asGenericElement=l,t2.createMarkdownContent=h2,t2.toMarkdown=function(e3,t3,r3){t3.markdown?e3.content=h2(e3.content,r3):t3.separateMarkdown&&(e3.contentMarkdown=h2(e3.content,r3))};let o=n2(r2(8431)),i=r2(2552),a=r2(639);function s(e3){return e3!==null&&typeof e3=="object"&&"getAttribute"in e3}function l(e3){return e3}let c2=/^(\d+)w,?$/,u=/^\d+(?:\.\d+)?x,?$/;function d(e3){let t3=e3.getAttribute("srcset");if(t3){let e4="",r3=0,n3=t3.trim().split(/\s+/),o2=[];for(let t4 of n3){let n4=t4.match(c2);if(n4){let t5=parseInt(n4[1],10);if(o2.length>0&&t5>r3){let n5=o2.join(" ").replace(/^,\s*/,"");n5&&(r3=t5,e4=n5)}o2=[]}else u.test(t4)?o2=[]:o2.push(t4)}if(e4)return e4}return e3.getAttribute("src")||""}function h2(e3,t3){let n3={},l2=new o.default({headingStyle:"atx",hr:"---",bulletListMarker:"-",codeBlockStyle:"fenced",emDelimiter:"*",preformattedCode:!0});function c3(e4){let t4=e4.getAttribute("data-latex"),n4=e4.getAttribute("alttext");if(t4)return t4.trim();if(n4)return n4.trim();if(e4.nodeName.toLowerCase()==="math")try{let{MathMLToLaTeX:t5}=r2(2354);return t5.convert(`<math>${e4.innerHTML}</math>`).trim()}catch(e5){}return""}l2.addRule("table",{filter:"table",replacement:function(e4,t4){var r3,n4,o2;if(!s(t4))return e4;if(!((r3=t4.classList)===null||r3===void 0)&&r3.contains("ltx_equation")||!((n4=t4.classList)===null||n4===void 0)&&n4.contains("ltx_eqn_table")||!((o2=t4.classList)===null||o2===void 0)&&o2.contains("numblk"))return(function(e5){let t5=e5.querySelectorAll("math");return t5.length===0?"":Array.from(t5).map((e6=>{var t6,r4;let n5=e6.querySelector('annotation[encoding="application/x-tex"]'),o3=((t6=n5==null?void 0:n5.textContent)===null||t6===void 0?void 0:t6.trim())||((r4=e6.getAttribute("alttext"))===null||r4===void 0?void 0:r4.trim());return o3?e6.closest(".ltx_eqn_inline, .mwe-math-element-inline")!==null?`$${o3}$`:`
$$
${o3}
$$`:""})).join(`
`)})(t4);let c4=t4.querySelector("table")!==null,u2=Array.from(t4.querySelectorAll("td, th")).filter((e5=>(0,a.isDirectTableChild)(e5,t4)));if(c4||u2.length<=1){let e5=Array.from(t4.querySelectorAll("tr")).filter((e6=>(0,a.isDirectTableChild)(e6,t4))),r4=e5.map((e6=>u2.filter((t5=>t5.parentNode===e6)).length));if(e5.length>0&&new Set(r4).size===1&&r4[0]<=1)return`
`+l2.turndown(u2.map((e6=>(0,a.serializeHTML)(e6))).join(""))+`
`}if(Array.from(t4.querySelectorAll("td, th")).some((e5=>s(e5)&&(e5.hasAttribute("colspan")||e5.hasAttribute("rowspan")))))return`
`+(function(e5){let t5=["src","href","style","align","width","height","rowspan","colspan","bgcolor","scope","valign","headers"],r4=e6=>{Array.from(e6.attributes).forEach((r5=>{t5.includes(r5.name)||e6.removeAttribute(r5.name)})),e6.childNodes.forEach((e7=>{(0,i.isElement)(e7)&&r4(e7)}))},n5=e5.cloneNode(!0);return r4(n5),n5.outerHTML.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">")})(t4)+`
`;let d2=t4,h3=(d2.rows&&d2.rows.length>0?Array.from(d2.rows):Array.from(t4.querySelectorAll("tr")).filter((e5=>(0,a.isDirectTableChild)(e5,t4)))).map((e5=>`| ${(e5.cells&&e5.cells.length>0?Array.from(e5.cells):Array.from(e5.querySelectorAll("td, th")).filter((t5=>t5.parentNode===e5))).map((e6=>{let t5=l2.turndown((0,a.serializeHTML)(e6)).replace(/\n/g," ").trim();return t5=t5.replace(/\|/g,"\\|"),t5})).join(" | ")} |`));if(!h3.length)return e4;let m=`| ${Array(h3[0].split("|").length-2).fill("---").join(" | ")} |`;return`
${[h3[0],m,...h3.slice(1)].join(`
`)}
`}}),l2.remove(["style","script"]),l2.keep(["iframe","video","audio","sup","sub","svg","math"]),l2.remove(["button"]),l2.addRule("list",{filter:["ul","ol"],replacement:function(e4,t4){e4=e4.trim();let r3=t4;return(r3.parentNode&&(r3.parentNode.nodeName==="UL"||r3.parentNode.nodeName==="OL")?"":`
`)+e4+`
`}}),l2.addRule("listItem",{filter:"li",replacement:function(e4,t4,r3){var n4;if(!s(t4))return e4;let o2=(n4=t4.classList)===null||n4===void 0?void 0:n4.contains("task-list-item"),i2=t4.querySelector('input[type="checkbox"]'),a2="";o2&&i2&&s(i2)&&(e4=e4.replace(/<input[^>]*>/,""),a2=i2.getAttribute("checked")?"[x] ":"[ ] "),e4=e4.replace(/\n+$/,"").split(`
`).filter((e5=>e5.length>0)).join(`
`);let l3=r3.bulletListMarker+" ",c4=t4.parentNode,u2=0,d2=t4.parentNode;for(;d2&&s(d2);){if(d2.nodeName==="UL"||d2.nodeName==="OL")u2++;else if(d2.nodeName!=="LI")break;d2=d2.parentNode}let h3=Math.max(0,u2-1);if(l3=" ".repeat(h3)+l3,c4&&s(c4)&&c4.nodeName==="OL"){let e5=c4.getAttribute("start"),r4=1,n5=Array.from(c4.children||[]);for(let e6=0;e6<n5.length;e6++)if(n5[e6]===t4){r4=e6+1;break}l3=" ".repeat(u2-1)+(e5?Number(e5)+r4-1:r4)+". "}return l3+a2+e4.trim()+(t4.nextSibling&&!/\n$/.test(e4)?`
`:"")}}),l2.addRule("figure",{filter:"figure",replacement:function(e4,t4){var r3;if(!s(t4))return e4;let n4=t4.querySelector("img"),o2=t4.querySelector("figcaption");if(!n4||!s(n4)||Array.from(t4.querySelectorAll("p")).some((e5=>{let r4=e5.parentNode;for(;r4&&r4!==t4;){if(r4.nodeName==="FIGCAPTION")return!1;r4=r4.parentNode}return!0})))return e4;let i2=n4.getAttribute("alt")||"",u2=d(n4),h3="";if(o2&&s(o2)){let e5=o2.querySelector(".ltx_tag_figure"),n5=e5&&s(e5)?(r3=e5.textContent)===null||r3===void 0?void 0:r3.trim():"",i3=(0,a.serializeHTML)(o2),u3=t4.ownerDocument;i3=i3.replace(/<math.*?>(.*?)<\/math>/g,((e6,t5,r4,n6)=>{let o3="";if(u3){let t6=(0,a.parseHTML)(u3,e6).querySelector("math");o3=t6&&s(t6)?c3(t6):""}let i4=n6[r4-1]||"",l3=n6[r4+e6.length]||"",d2=r4===0||/\s/.test(i4),h4=r4+e6.length===n6.length||/\s/.test(l3);return`${d2||/[\s$]/.test(i4)?"":" "}$${o3}$${h4||/[\s$]/.test(l3)?"":" "}`})),h3=`${n5} ${l2.turndown(i3)}`.trim()}return h3=h3.replace(/\[([^\]]+)\]\(([^)]+)\)/g,((e5,t5,r4)=>`[${t5}](${r4})`)),`![${i2}](${u2})
${h3}
`}}),l2.addRule("image",{filter:"img",replacement:function(e4,t4){if(!s(t4))return e4;let r3=t4.getAttribute("alt")||"",n4=d(t4),o2=t4.getAttribute("title")||"";return n4?`![${r3}](${n4}${o2?` "${o2}"`:""})`:""}}),l2.addRule("embedToMarkdown",{filter:function(e4){if(!s(e4))return!1;let t4=e4.getAttribute("src");return!(!t4||!t4.match(/(?:youtube\.com|youtube-nocookie\.com|youtu\.be)/)&&!t4.match(/(?:twitter\.com|x\.com)/))},replacement:function(e4,t4){if(!s(t4))return e4;let r3=t4.getAttribute("src");if(r3){let e5=r3.match(/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)\/(?:embed\/|watch\?v=)?([a-zA-Z0-9_-]+)/);if(e5&&e5[1])return`
![](https://www.youtube.com/watch?v=${e5[1]})
`;let t5=r3.match(/(?:https?:\/\/)?(?:www\.)?(?:twitter\.com|x\.com)\/([^/]+)\/status\/([0-9]+)/);if(t5)return`
![](https://x.com/${t5[1]}/status/${t5[2]})
`;let n4=r3.match(/(?:https?:\/\/)?(?:platform\.)?twitter\.com\/embed\/Tweet\.html\?.*?id=([0-9]+)/);if(n4)return`
![](https://x.com/i/status/${n4[1]})
`}return e4}}),l2.addRule("highlight",{filter:"mark",replacement:function(e4){return"=="+e4+"=="}}),l2.addRule("strikethrough",{filter:e4=>e4.nodeName==="DEL"||e4.nodeName==="S"||e4.nodeName==="STRIKE",replacement:function(e4){return"~~"+e4+"~~"}}),l2.addRule("complexLinkStructure",{filter:function(e4,t4){return e4.nodeName==="A"&&e4.childNodes.length>1&&Array.from(e4.childNodes).some((e5=>["H1","H2","H3","H4","H5","H6"].includes(e5.nodeName)))},replacement:function(e4,t4,r3){if(!s(t4))return e4;let n4=t4.getAttribute("href"),o2=t4.getAttribute("title"),i2=t4.querySelector("h1, h2, h3, h4, h5, h6"),c4=i2?l2.turndown(i2.outerHTML):"";i2&&i2.remove();let u2=`${c4}
${l2.turndown((0,a.serializeHTML)(t4))}
`;return n4&&(u2+=`[View original](${n4})`,o2&&(u2+=` "${o2}"`)),u2}}),l2.addRule("arXivEnumerate",{filter:e4=>{var t4,r3;return e4.nodeName==="OL"&&s(e4)&&(r3=(t4=e4.classList)===null||t4===void 0?void 0:t4.contains("ltx_enumerate"))!==null&&r3!==void 0&&r3},replacement:function(e4,t4){return s(t4)?`
`+Array.from(t4.children||[]).map(((e5,t5)=>{if(s(e5)){let r3=((0,a.serializeHTML)(e5)||"").replace(/^<span class="ltx_tag ltx_tag_item">\d+\.<\/span>\s*/,"");return`${t5+1}. ${l2.turndown(r3)}`}return""})).join(`
`)+`
`:e4}}),l2.addRule("citations",{filter:e4=>{if(s(e4)){let t4=e4.getAttribute("id");return e4.nodeName==="SUP"&&t4!==null&&t4.startsWith("fnref:")}return!1},replacement:(e4,t4)=>{if(s(t4)){let e5=t4.getAttribute("id");if(t4.nodeName==="SUP"&&e5!==null&&e5.startsWith("fnref:"))return`[^${e5.replace("fnref:","").split("-")[0]}]`}return e4}}),l2.addRule("footnotesList",{filter:e4=>{if(s(e4)){let t4=e4.parentNode;return e4.nodeName==="OL"&&t4!==null&&s(t4)&&t4.getAttribute("id")==="footnotes"}return!1},replacement:(e4,t4)=>s(t4)?`
`+Array.from(t4.children||[]).map((e5=>{var t5,r3;let n4;if(s(e5)){let o2=e5.getAttribute("id");if(o2!==null)if(o2.startsWith("fn:"))n4=o2.replace("fn:","");else{let e6=(t5=o2.split("/").pop())===null||t5===void 0?void 0:t5.match(/cite_note-(.+)/);n4=e6?e6[1]:o2}let i2=e5.querySelector("sup");i2&&s(i2)&&((r3=i2.textContent)===null||r3===void 0?void 0:r3.trim())===n4&&i2.remove();let c4=l2.turndown((0,a.serializeHTML)(e5)).replace(/\s*\u21a9\ufe0e$/,"").trim();return`[^${n4==null?void 0:n4.toLowerCase()}]: ${c4}`}return""})).join(`
`)+`
`:e4}),l2.addRule("removals",{filter:function(e4){var t4,r3;return!!s(e4)&&(!!(!((t4=e4.getAttribute("href"))===null||t4===void 0)&&t4.includes("#fnref"))||!!(!((r3=e4.classList)===null||r3===void 0)&&r3.contains("footnote-backref")))},replacement:function(e4,t4){return""}}),l2.addRule("handleTextNodesInTables",{filter:function(e4){return(0,i.isTextNode)(e4)&&e4.parentNode!==null&&e4.parentNode.nodeName==="TD"},replacement:function(e4){return e4}}),l2.addRule("preformattedCode",{filter:e4=>e4.nodeName==="PRE",replacement:(e4,t4)=>{var r3,n4;if(!s(t4))return e4;let o2=t4.querySelector("code");return!o2||!s(o2)?e4:`
\`\`\`${o2.getAttribute("data-lang")||o2.getAttribute("data-language")||((n4=(r3=o2.getAttribute("class"))===null||r3===void 0?void 0:r3.match(/language-(\w+)/))===null||n4===void 0?void 0:n4[1])||t4.getAttribute("data-language")||""}
${(o2.textContent||"").trim().replace(/`/g,"\\`")}
\`\`\`
`}}),l2.addRule("math",{filter:e4=>{var t4,r3,n4;return e4.nodeName.toLowerCase()==="math"||s(e4)&&(((t4=e4.classList)===null||t4===void 0?void 0:t4.contains("mwe-math-element"))||((r3=e4.classList)===null||r3===void 0?void 0:r3.contains("mwe-math-fallback-image-inline"))||((n4=e4.classList)===null||n4===void 0?void 0:n4.contains("mwe-math-fallback-image-display")))},replacement:(e4,t4)=>{var r3,n4,o2,a2,l3,u2;if(!s(t4))return e4;let d2=c3(t4);if(d2=d2.trim(),!(typeof t4.closest=="function"&&t4.closest("table")!==null)&&(t4.getAttribute("display")==="block"||!((r3=t4.classList)===null||r3===void 0)&&r3.contains("mwe-math-fallback-image-display")||t4.parentNode&&s(t4.parentNode)&&(!((n4=t4.parentNode.classList)===null||n4===void 0)&&n4.contains("mwe-math-element"))&&t4.parentNode.previousSibling&&s(t4.parentNode.previousSibling)&&t4.parentNode.previousSibling.nodeName.toLowerCase()==="p"))return`
$$
${d2}
$$
`;{let e5=t4.previousSibling,r4=t4.nextSibling,n5=e5&&s(e5)&&((o2=e5.textContent)===null||o2===void 0?void 0:o2.slice(-1))||"",c4=r4&&s(r4)&&((a2=r4.textContent)===null||a2===void 0?void 0:a2[0])||"",h3=!e5||(0,i.isTextNode)(e5)&&((l3=e5.textContent)===null||l3===void 0?void 0:l3.trim())==="",m=!r4||(0,i.isTextNode)(r4)&&((u2=r4.textContent)===null||u2===void 0?void 0:u2.trim())==="";return`${h3||!n5||/[\s$]/.test(n5)?"":" "}$${d2}$${m||!c4||/[\s$]/.test(c4)?"":" "}`}}}),l2.addRule("katex",{filter:e4=>{var t4,r3;return s(e4)&&(((t4=e4.classList)===null||t4===void 0?void 0:t4.contains("math"))||((r3=e4.classList)===null||r3===void 0?void 0:r3.contains("katex")))},replacement:(e4,t4)=>{var r3,n4;if(!s(t4))return e4;let o2=t4.getAttribute("data-latex");if(!o2){let e5=t4.querySelector('.katex-mathml annotation[encoding="application/x-tex"]');o2=e5&&s(e5)&&e5.textContent||""}o2||(o2=((r3=t4.textContent)===null||r3===void 0?void 0:r3.trim())||"");let i2=t4.querySelector(".katex-mathml math");return!((n4=t4.classList)===null||n4===void 0)&&n4.contains("math-inline")||i2&&s(i2)&&i2.getAttribute("display")!=="block"?`$${o2}$`:`
$$
${o2}
$$
`}}),l2.addRule("callout",{filter:e4=>{var t4;return s(e4)&&!!e4.getAttribute("data-callout")&&((t4=e4.classList)===null||t4===void 0?void 0:t4.contains("callout"))},replacement:(e4,t4)=>{var r3;if(!s(t4))return e4;let n4=t4.getAttribute("data-callout")||"note",o2=t4.getAttribute("data-callout-fold"),i2=o2==="-"||o2==="+"?o2:"",a2=t4.querySelector(".callout-title-inner"),c4=((r3=a2==null?void 0:a2.textContent)===null||r3===void 0?void 0:r3.trim())||n4.charAt(0).toUpperCase()+n4.slice(1),u2=t4.querySelector(".callout-title");u2&&u2.remove();let d2=t4.querySelector(".callout-content");return`
> [!${n4}]${i2} ${c4}
${(d2?l2.turndown(d2.innerHTML):l2.turndown(t4.innerHTML)).trim().split(`
`).map((e5=>`> ${e5}`)).join(`
`)}
`}});try{e3=e3.replace(/<wbr\s*\/?>/gi,"");let t4=l2.turndown(e3),r3=t4.match(/^# .+\n+/);if(r3&&(t4=t4.slice(r3[0].length)),t4=t4.replace(/\n*(?<!!)\[]\([^)]+\)\n*/g,""),t4=t4.replace(/!(?=!\[|\[!\[)/g,"! "),t4=t4.replace(/\n{3,}/g,`
`),Object.keys(n3).length>0){t4+=`
---
`;for(let[e4,r4]of Object.entries(n3))t4+=`[^${e4}]: ${r4}
`}return t4.trim()}catch(t4){return console.error("Error converting HTML to Markdown:",t4),console.log("Problematic content:",e3.substring(0,1e3)+"..."),`Partial conversion completed with errors. Original HTML:
${e3}`}}},1608(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.MetadataExtractor=void 0;let n2=r2(2552);class o{static extract(e3,t3,r3){var n3,o2;let i="",a="";try{if(a=((n3=e3.location)===null||n3===void 0?void 0:n3.href)||"",a||(a=this.getMetaContent(r3,"property","og:url")||this.getMetaContent(r3,"property","twitter:url")||this.getSchemaProperty(t3,"url")||this.getSchemaProperty(t3,"mainEntityOfPage.url")||this.getSchemaProperty(t3,"mainEntity.url")||this.getSchemaProperty(t3,"WebSite.url")||((o2=e3.querySelector('link[rel="canonical"]'))===null||o2===void 0?void 0:o2.getAttribute("href"))||""),a)try{i=new URL(a).hostname.replace(/^www\./,"")}catch(e4){console.warn("Failed to parse URL:",e4)}}catch(t4){let r4=e3.querySelector("base[href]");if(r4)try{a=r4.getAttribute("href")||"",i=new URL(a).hostname.replace(/^www\./,"")}catch(e4){console.warn("Failed to parse base URL:",e4)}}let s=this.getSiteName(t3,r3),{title:l,detectedSiteName:c2}=this.cleanTitle(this.getBestTitle(e3,t3,r3,i,s),s),u=this.getAuthor(e3,t3,r3),d=u&&!u.includes(",")?u:"",h2=s||c2||d||i||"";return{title:l,description:this.getDescription(e3,t3,r3),domain:i,favicon:this.getFavicon(e3,a,r3),image:this.getImage(e3,t3,r3),language:this.getLanguage(e3,t3,r3),published:this.getPublished(e3,t3,r3),author:u,site:h2,schemaOrgData:t3,wordCount:0,parseTime:0}}static isPlaceholderValue(e3){return!(!/[{}]/.test(e3)&&!/^#[a-zA-Z]/.test(e3))||!/[\p{L}\p{N}]/u.test(e3)}static firstValid(e3){for(let t3 of e3){let e4=t3();if(e4&&!this.isPlaceholderValue(e4))return e4}return""}static getAuthor(e3,t3,r3){var n3,o2,i;let a;if(a=this.getMetaContent(r3,"name","sailthru.author")||this.getMetaContent(r3,"property","author")||this.getMetaContent(r3,"name","author")||this.getMetaContent(r3,"name","byl")||this.getMetaContent(r3,"name","authorList"),a&&!this.isPlaceholderValue(a))return this.cleanAuthorString(a);let s=this.getMetaContents(r3,"name","citation_author").filter((e4=>!this.isPlaceholderValue(e4)));if(s.length===0&&(s=this.getMetaContents(r3,"property","dc.creator").filter((e4=>!this.isPlaceholderValue(e4)))),s.length>0)return a=s.map((e4=>{if(!e4.includes(","))return e4.trim();let t4=/(.*),\s(.*)/.exec(e4);return t4&&t4.length===3?`${t4[2]} ${t4[1]}`:e4.trim()})).join(", "),a;let l=this.getSchemaProperty(t3,"author.name")||this.getSchemaProperty(t3,"author.[].name");if(l){let e4=l.split(",").map((e5=>e5.trim().replace(/,$/,"").trim())).filter((e5=>e5&&!this.isPlaceholderValue(e5)));if(e4.length>0){let t4=[...new Set(e4)];return t4.length>10&&(t4=t4.slice(0,10)),t4.join(", ")}}let c2=e3.querySelectorAll('a[rel~="author"], address[rel~="author"]');if(c2.length>0&&c2.length<=3){let e4=[];c2.forEach((t5=>{let r4=(t5.textContent||"").replace(/\s+/g," ").trim(),n4=r4.toLowerCase();r4&&r4.length<100&&n4!=="author"&&n4!=="authors"&&!this.isPlaceholderValue(r4)&&e4.push(r4)}));let t4=[...new Set(e4)];if(t4.length>0)return t4.join(", ")}let u=[],d=e4=>{e4&&e4.split(",").forEach((e5=>{let t4=e5.replace(/\s+/g," ").trim().replace(/,$/,"").trim(),r4=t4.toLowerCase();t4&&r4!=="author"&&r4!=="authors"&&!this.isPlaceholderValue(t4)&&u.push(t4)}))},h2=[{selector:'[itemprop="author"]'},{selector:".author",maxMatches:3},{selector:'[href*="/author/"]',maxMatches:3},{selector:".authors a",maxMatches:3}];for(let{selector:t4,maxMatches:r4}of h2){let n4=e3.querySelectorAll(t4);r4&&n4.length>r4||n4.forEach((e4=>d(e4.textContent)))}if(u.length>0){let e4=[...new Set(u.map((e5=>e5.trim())).filter(Boolean))];if(e4.length>1&&(e4=e4.filter((t4=>!e4.some((e5=>e5!==t4&&t4.includes(e5)))))),e4.length>0)return e4.length>10&&(e4=e4.slice(0,10)),e4.join(", ")}let m=e3.querySelector("h1");if(m){let e4=m.nextElementSibling;for(let t5=0;t5<3&&e4;t5++){let t6=((n3=e4.textContent)===null||n3===void 0?void 0:n3.trim())||"",r4=Array.from(e4.querySelectorAll("p, time")),a2=r4.some((e5=>{var t7;return!!this.parseDateText(((t7=e5.textContent)===null||t7===void 0?void 0:t7.trim())||"")}));if(this.parseDateText(t6)||a2){let n4=e4.querySelectorAll("a");if(n4.length===1){let e5=(((o2=n4[0].textContent)===null||o2===void 0?void 0:o2.trim())||"").replace(/\u00a0/g," ");if(e5.length>0&&e5.length<100&&!this.parseDateText(e5))return e5}if(a2&&t6.length<300)for(let e5 of r4){if(e5.tagName!=="P")continue;let t7=(((i=e5.textContent)===null||i===void 0?void 0:i.trim())||"").replace(/\u00a0/g," ");if(t7.length>0&&t7.length<150&&!this.parseDateText(t7))return t7}}e4=e4.nextElementSibling}let t4=m;for(let e5=0;e5<3&&t4;e5++){let e6=t4.previousElementSibling;for(let t5=0;t5<3&&e6;t5++){let t6=this.extractByline(e6);if(t6)return t6;e6=e6.previousElementSibling}e6=t4.nextElementSibling;for(let t5=0;t5<3&&e6;t5++){let t6=this.extractByline(e6);if(t6)return t6;e6=e6.nextElementSibling}t4=t4.parentElement}}return""}static extractByline(e3){var t3;let r3=[e3,...e3.querySelectorAll("p, span, address")];for(let e4 of r3){let r4=(((t3=e4.textContent)===null||t3===void 0?void 0:t3.trim())||"").replace(/\u00a0/g," ");if(r4.length>0&&r4.length<50){let e5=r4.match(/^By\s+([A-Z].+)$/i);if(e5)return e5[1].trim()}}return null}static cleanAuthorString(e3){return(e3=(e3=(e3=(e3=e3.replace(/^by\s+/i,"")).replace(/\(?\s*https?:\/\/\S+\s*\)?/gi,"")).replace(/,?\s+and\s+/gi,", ")).replace(/\s*[-\u2013\u2014|]\s*$/g,"")).trim()}static getSiteName(e3,t3){let r3=this.firstValid([()=>this.getSchemaProperty(e3,"publisher.name"),()=>this.getMetaContent(t3,"property","og:site_name"),()=>this.getMetaContent(t3,"name","og:site_name"),()=>this.getSchemaProperty(e3,"WebSite.name"),()=>this.getSchemaProperty(e3,"sourceOrganization.name"),()=>this.getMetaContent(t3,"name","copyright"),()=>this.getSchemaProperty(e3,"copyrightHolder.name"),()=>this.getSchemaProperty(e3,"isPartOf.name"),()=>this.getMetaContent(t3,"name","application-name")]);return r3&&(0,n2.countWords)(r3)>6?"":r3}static getBestTitle(e3,t3,r3,n3,o2){var i,a,s,l,c2;let u=[this.getMetaContent(r3,"property","og:title"),this.getMetaContent(r3,"name","twitter:title"),this.getSchemaProperty(t3,"headline"),this.getMetaContent(r3,"name","title"),this.getMetaContent(r3,"name","sailthru.title"),((a=(i=e3.querySelector("title"))===null||i===void 0?void 0:i.textContent)===null||a===void 0?void 0:a.trim())||"",((l=(s=e3.querySelector("h1"))===null||s===void 0?void 0:s.textContent)===null||l===void 0?void 0:l.trim())||""].filter((e4=>e4&&!this.isPlaceholderValue(e4)));if(u.length===0)return"";let d=(this.getMetaContent(r3,"property","author")||this.getMetaContent(r3,"name","author")).trim().toLowerCase(),h2=o2.trim().toLowerCase(),m=n3?n3.replace(/\.[^.]+$/,"").toLowerCase().replace(/[^a-z0-9]/g,""):"";return(c2=u.find((e4=>!this.isSiteIdentifier(e4,d,h2,m))))!==null&&c2!==void 0?c2:u[0]}static isSiteIdentifier(e3,t3,r3,n3){let o2=e3.trim().toLowerCase();return!!(t3&&o2===t3||r3&&o2===r3||n3&&o2.replace(/[^a-z0-9]/g,"")===n3)}static cleanTitle(e3,t3){if(!e3)return{title:e3,detectedSiteName:""};let r3="[|\\-\u2013\u2014/\xB7]";if(t3&&t3.toLowerCase()!==e3.toLowerCase()&&(0,n2.countWords)(t3)<=6){let o3=t3.toLowerCase(),i2=t3.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=[`\\s*${r3}\\s*${i2}\\s*$`,`^\\s*${i2}\\s*${r3}\\s*`];for(let r4 of a){let n3=new RegExp(r4,"i");if(n3.test(e3))return{title:e3.replace(n3,"").trim(),detectedSiteName:t3}}let s=new RegExp(`\\s+${r3}\\s+`,"g"),l,c2=[];for(;(l=s.exec(e3))!==null;)c2.push({index:l.index,length:l[0].length});if(c2.length>0){let r4=c2[c2.length-1],i3=e3.substring(r4.index+r4.length).trim().toLowerCase();if(i3&&o3.includes(i3)){let o4=r4.index;for(let t4=c2.length-2;t4>=0;t4--){let r5=c2[t4],i4=e3.substring(r5.index+r5.length,o4).trim();if((0,n2.countWords)(i4)>3)break;o4=r5.index}return{title:e3.substring(0,o4).trim(),detectedSiteName:t3}}let a2=c2[0],s2=e3.substring(0,a2.index).trim().toLowerCase();if(s2&&o3.includes(s2)){let r5=a2.index+a2.length;for(let t4=1;t4<c2.length;t4++){let o4=c2[t4],i4=e3.substring(r5,o4.index).trim();if((0,n2.countWords)(i4)>3)break;r5=o4.index+o4.length}return{title:e3.substring(r5).trim(),detectedSiteName:t3}}}}let o2=this.trySeparatorSplit(e3,/\s+([|/\xb7])\s+/g,{guard:(e4,t4)=>t4<=3&&e4>=2&&e4>=2*t4});return o2||this.trySeparatorSplit(e3,/\s+[-\u2013\u2014]\s+/g,{suffixOnly:!0,guard:(e4,t4)=>t4<=2&&e4>=2&&e4>t4})||{title:e3.trim(),detectedSiteName:""}}static trySeparatorSplit(e3,t3,r3){let o2,i=[];for(;(o2=t3.exec(e3))!==null;)i.push({index:o2.index,length:o2[0].length});if(i.length===0)return null;let a=i[i.length-1],s=e3.substring(0,a.index).trim(),l=e3.substring(a.index+a.length).trim();if(r3.guard((0,n2.countWords)(s),(0,n2.countWords)(l)))return{title:s,detectedSiteName:l};if(!r3.suffixOnly){let t4=i[0],o3=e3.substring(0,t4.index).trim(),a2=e3.substring(t4.index+t4.length).trim();if(r3.guard((0,n2.countWords)(a2),(0,n2.countWords)(o3)))return{title:a2,detectedSiteName:o3}}return null}static getDescription(e3,t3,r3){return this.firstValid([()=>this.getMetaContent(r3,"name","description"),()=>this.getMetaContent(r3,"property","description"),()=>this.getMetaContent(r3,"property","og:description"),()=>this.getSchemaProperty(t3,"description"),()=>this.getMetaContent(r3,"name","twitter:description"),()=>this.getMetaContent(r3,"name","sailthru.description")])}static getImage(e3,t3,r3){return this.getMetaContent(r3,"property","og:image")||this.getMetaContent(r3,"name","twitter:image")||this.getSchemaProperty(t3,"image.url")||this.getMetaContent(r3,"name","sailthru.image.full")||""}static getLanguage(e3,t3,r3){var n3,o2,i,a;let s=(o2=(n3=e3.documentElement)===null||n3===void 0?void 0:n3.getAttribute("lang"))===null||o2===void 0?void 0:o2.trim();if(s)return this.normalizeLangCode(s);let l=this.getMetaContent(r3,"name","content-language")||this.getMetaContent(r3,"property","og:locale");if(l)return this.normalizeLangCode(l);let c2=(a=(i=e3.querySelector('meta[http-equiv="Content-Language" i]'))===null||i===void 0?void 0:i.getAttribute("content"))===null||a===void 0?void 0:a.trim();if(c2)return this.normalizeLangCode(c2);let u=this.getSchemaProperty(t3,"inLanguage");return u?this.normalizeLangCode(u):""}static normalizeLangCode(e3){return e3.replace(/_/g,"-")}static getFavicon(e3,t3,r3){var n3,o2;let i=this.getMetaContent(r3,"property","og:image:favicon");if(i)return i;let a=(n3=e3.querySelector("link[rel='icon']"))===null||n3===void 0?void 0:n3.getAttribute("href");if(a)return a;let s=(o2=e3.querySelector("link[rel='shortcut icon']"))===null||o2===void 0?void 0:o2.getAttribute("href");if(s)return s;if(t3&&/^https?:\/\//.test(t3))try{return new URL("/favicon.ico",t3).href}catch(e4){}return""}static getPublished(e3,t3,r3){var n3,o2;let i=this.firstValid([()=>this.getSchemaProperty(t3,"datePublished"),()=>this.getMetaContent(r3,"name","publishDate"),()=>this.getMetaContent(r3,"property","article:published_time"),()=>{var t4,r4;return((r4=(t4=e3.querySelector('abbr[itemprop="datePublished"]'))===null||t4===void 0?void 0:t4.title)===null||r4===void 0?void 0:r4.trim())||""},()=>this.getTimeElement(e3),()=>this.getMetaContent(r3,"name","sailthru.date")]);if(i)return i;let a=e3.querySelector("h1");if(a){let e4=a.nextElementSibling;for(let t4=0;t4<3&&e4;t4++){for(let t6 of Array.from(e4.querySelectorAll("p, time"))){let e5=this.parseDateText(((n3=t6.textContent)===null||n3===void 0?void 0:n3.trim())||"");if(e5)return e5}let t5=this.parseDateText(((o2=e4.textContent)===null||o2===void 0?void 0:o2.trim())||"");if(t5)return t5;e4=e4.nextElementSibling}}return""}static getMetaContent(e3,t3,r3){var n3;return(n3=this.getMetaContents(e3,t3,r3)[0])!==null&&n3!==void 0?n3:""}static getMetaContents(e3,t3,r3){return e3.filter((e4=>{let n3=t3==="name"?e4.name:e4.property;return(n3==null?void 0:n3.toLowerCase())===r3.toLowerCase()})).map((e4=>{var t4,r4;return(r4=(t4=e4.content)===null||t4===void 0?void 0:t4.trim())!==null&&r4!==void 0?r4:""}))}static getTimeElement(e3){var t3,r3,n3,o2;let i=Array.from(e3.querySelectorAll("time"))[0];return i&&(o2=(r3=(t3=i.getAttribute("datetime"))===null||t3===void 0?void 0:t3.trim())!==null&&r3!==void 0?r3:(n3=i.textContent)===null||n3===void 0?void 0:n3.trim())!==null&&o2!==void 0?o2:""}static parseDateText(e3){let t3=e3.match(/\b(\d{1,2})\s+(January|February|March|April|May|June|July|August|September|October|November|December)\s+(\d{4})\b/i);if(t3){let e4=t3[1].padStart(2,"0"),r3=this.MONTH_MAP[t3[2].toLowerCase()];return`${t3[3]}-${r3}-${e4}T00:00:00+00:00`}if(t3=e3.match(/\b(January|February|March|April|May|June|July|August|September|October|November|December)\s+(\d{1,2}),?\s+(\d{4})\b/i),t3){let e4=this.MONTH_MAP[t3[1].toLowerCase()],r3=t3[2].padStart(2,"0");return`${t3[3]}-${e4}-${r3}T00:00:00+00:00`}return""}static getSchemaProperty(e3,t3,r3=""){if(!e3)return r3;let n3=(e4,t4,r4,o2=!0)=>{if(typeof e4=="string")return t4.length===0?[e4]:[];if(!e4||typeof e4!="object")return[];if(Array.isArray(e4)){let i2=t4[0];if(/^\[\d+\]$/.test(i2)){let a2=parseInt(i2.slice(1,-1));return e4[a2]?n3(e4[a2],t4.slice(1),r4,o2):[]}return t4.length===0&&e4.every((e5=>typeof e5=="string"||typeof e5=="number"))?e4.map(String):e4.flatMap((e5=>n3(e5,t4,r4,o2)))}let[i,...a]=t4;if(!i)return typeof e4=="string"?[e4]:typeof e4=="object"&&e4.name?[e4.name]:[];if(e4.hasOwnProperty(i))return n3(e4[i],a,r4?`${r4}.${i}`:i,!0);if(!o2){let o3=[];for(let i2 in e4)if(typeof e4[i2]=="object"){let a2=n3(e4[i2],t4,r4?`${r4}.${i2}`:i2,!1);o3.push(...a2)}if(o3.length>0)return o3}return[]};try{let o2=n3(e3,t3.split("."),"",!0);o2.length===0&&(o2=n3(e3,t3.split("."),"",!1));let i=[...new Set(o2.filter(Boolean))];return i.length>0?i.join(", "):r3}catch(e4){return console.error(`Error in getSchemaProperty for ${t3}:`,e4),r3}}}t2.MetadataExtractor=o,o.MONTH_MAP={january:"01",february:"02",march:"03",april:"04",may:"05",june:"06",july:"07",august:"08",september:"09",october:"10",november:"11",december:"12"}},3172(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.removeEyebrowLabel=function(e3,t3,r3){var n3;let i2=e3.querySelector("h1")||e3.querySelector("h2");if(!i2)return;let s2=i2;for(;s2.parentElement&&s2.parentElement!==e3&&!s2.previousElementSibling;)s2=s2.parentElement;let l2=s2.previousElementSibling;if(!l2)return;let c3=((n3=l2.textContent)===null||n3===void 0?void 0:n3.trim())||"",u2=(0,o.countWords)(c3);u2<1||u2>6||c3.length>40||/[.!?]/.test(c3)||a.test(c3)||l2.querySelector("img, picture, video, iframe, figure, table, pre, code, time, [datetime], h1, h2, h3, h4, h5, h6, ul, ol, blockquote")||(t3&&r3&&r3.push({step:"removeEyebrowLabel",reason:"eyebrow label",text:(0,o.textPreview)(l2)}),l2.remove())},t2.removeByContentPattern=function(e3,t3,r3,h3,$,B){var P,I,R,F,j,H,z2,U,W,G2,V,X,J,Z,K,Y,Q,ee,te,re,ne,oe,ie,ae,se,le,ce,ue,de,he,me,pe,fe;let ge=(0,i.findContentStart)(e3,h3),be=e4=>(0,i.isAboveContentStart)(e4,ge),xe=(0,o.normalizeText)(h3),ve=(0,o.normalizeText)($),ye=e3.querySelector("ul, ol");if(ye&&(function(e4){let t4=e4.querySelectorAll("li");if(t4.length<2||t4.length>8)return!1;let r4=Array.from(e4.querySelectorAll("a"));if(r4.length<1||r4.length>=t4.length||e4.querySelector("img, p, figure, blockquote"))return!1;for(let e5 of t4)if((0,o.countWords)(e5.textContent||"")>8)return!1;let n3=!0,i2=!1,a2=!0;for(let e5 of r4){let t5=e5.getAttribute("href")||"";if(t5.startsWith("http")||t5.startsWith("//")){n3=!1;break}(t5==="/"||/^\/[a-zA-Z0-9_-]+\/?$/.test(t5))&&(i2=!0),(e5.textContent||"").trim().split(/\s+/).filter(Boolean).length>5&&(a2=!1)}return n3&&i2&&a2})(ye)){let r4=ye;for(;r4.parentElement&&r4.parentElement!==e3&&r4.parentElement.children.length===1;)r4=r4.parentElement;t3&&B&&B.push({step:"removeByContentPattern",reason:"breadcrumb navigation list",text:(0,o.textPreview)(r4)}),r4.remove()}let we=e3.querySelector("h1");if(we)for(let r4 of e3.querySelectorAll("a[href]")){if(!r4.parentNode||!(4&r4.compareDocumentPosition(we))||!r4.querySelector("div")||r4.querySelector("img, picture, video"))continue;let e4=((P=r4.textContent)===null||P===void 0?void 0:P.trim())||"";(0,o.countWords)(e4)>25||/[.!?]\s/.test(e4)||(t3&&B&&B.push({step:"removeByContentPattern",reason:"promotional banner link",text:(0,o.textPreview)(r4)}),r4.remove())}(function(e4,t4,r4,n3){var a2;let s2=e4.querySelectorAll("time");if(s2.length!==0)for(let l2 of s2){if(!(0,i.isAboveContentStart)(l2,t4))continue;let s3=null,c3=l2.parentElement;for(;c3&&c3!==e4;){if(c3.querySelector("h1, h2")&&c3.querySelector("time")){let e5=((a2=c3.textContent)===null||a2===void 0?void 0:a2.trim())||"",t5=(0,o.countWords)(e5),r5=new Set;for(let e6 of c3.querySelectorAll("h1, h2, h3, time, [aria-label]")){let t6=!1;for(let n5 of r5)if(n5.contains(e6)){t6=!0;break}t6||r5.add(e6)}let n4=0;for(let e6 of r5)n4+=(0,o.countWords)(e6.textContent||"");if(!(t5-n4<30))break;s3=c3}c3=c3.parentElement}if(s3)return r4&&n3&&n3.push({step:"removeByContentPattern",reason:"hero header block",text:(0,o.textPreview)(s3)}),void s3.remove()}})(e3,ge,t3,B);for(let r4 of e3.querySelectorAll("audio, video")){if(!r4.parentNode||!r4.getAttribute("src")&&!r4.querySelector("source"))continue;let n3=r4;for(;n3.parentElement&&n3.parentElement!==e3&&!((0,o.countWords)(((I=n3.parentElement.textContent)===null||I===void 0?void 0:I.trim())||"")>25);)n3=n3.parentElement;let i2=((R=n3.textContent)===null||R===void 0?void 0:R.trim())||"",a2=/\blisten\s+to\s+(?:this\s+)?(?:article|story|post|episode|podcast)\b/i.test(i2),s2=!a2&&be(n3)&&(0,o.countWords)(i2)<=25;(a2||s2)&&(t3&&B&&B.push({step:"removeByContentPattern",reason:"audio player widget",text:(0,o.textPreview)(n3)}),n3.remove())}let Ae=e3.textContent||"",Ce=null;try{Ce=new URL(r3)}catch(e4){}for(let i2 of e3.querySelectorAll("ul, ol")){if(!i2.parentNode||i2.closest("#footnotes"))continue;let a2=((F=i2.textContent)===null||F===void 0?void 0:F.trim())||"",s2=Ae.indexOf(a2.substring(0,60));if(s2<0||s2>.3*Ae.length)continue;let l2=Array.from(i2.querySelectorAll("a[href]"));if(l2.length<3||i2.querySelector(n2.CONTENT_ELEMENT_SELECTOR))continue;let c3=0;for(let e4 of l2){let t4=e4.getAttribute("href")||"";if(t4.startsWith("#"))c3++;else if(Ce&&t4.includes("#"))try{let e5=new URL(t4,r3);e5.pathname===Ce.pathname&&e5.hostname===Ce.hostname&&c3++}catch(e5){}}if(c3<3||c3/l2.length<.8)continue;let u2=i2;for(;u2.parentElement&&u2.parentElement!==e3&&u2.parentElement.children.length===1;)u2=u2.parentElement;let d2=u2.previousElementSibling;if(d2&&w.test(d2.tagName)){let e4=((j=d2.textContent)===null||j===void 0?void 0:j.trim())||"";/^(?:table of )?contents$|^on this page$|^in this (?:article|guide|post)$/i.test(e4)&&(t3&&B&&B.push({step:"removeByContentPattern",reason:"table of contents heading",text:(0,o.textPreview)(d2)}),d2.remove())}let h4=u2.previousElementSibling,m2=u2.nextElementSibling;t3&&B&&B.push({step:"removeByContentPattern",reason:"table of contents",text:(0,o.textPreview)(u2)}),u2.remove(),(h4==null?void 0:h4.tagName)==="HR"&&h4.remove(),(m2==null?void 0:m2.tagName)==="HR"&&m2.remove();break}let Ee=Array.from(e3.querySelectorAll("p, span, div, time")),Se=!1,_e=!1;for(let r4 of Ee){if(!r4.parentNode)continue;let n3=((H=r4.textContent)===null||H===void 0?void 0:H.trim())||"",i2=(0,o.countWords)(n3);if(i2>15||i2===0||r4.closest("pre, code"))continue;let d2=r4.tagName,h4=a.test(n3),m2=-2,g2=()=>(m2===-2&&(m2=Ae.indexOf(n3)),m2);if(p.test(n3)&&g2()<=300){let n4=r4;n4.parentElement&&n4.parentElement!==e3&&(n4=n4.parentElement),t3&&B&&B.push({step:"removeByContentPattern",reason:"timezone widget",text:(0,o.textPreview)(n4)}),n4.remove()}else if(i2===1&&f.test(n3))t3&&B&&B.push({step:"removeByContentPattern",reason:"pinned label",text:(0,o.textPreview)(r4)}),r4.remove();else{for(let[e4,a2]of[[xe,"duplicate title"],[ve,"duplicate description"]])if(e4&&i2>=3&&be(r4)&&(0,o.normalizeText)(n3)===e4){t3&&B&&B.push({step:"removeByContentPattern",reason:a2,text:(0,o.textPreview)(r4)}),r4.remove();break}if(r4.parentNode)if((d2==="DIV"||d2==="P")&&i2>=1&&i2<=10&&(h4||s.test(n3))&&!/[.!?]/.test(n3)&&be(r4)&&!Array.from(r4.querySelectorAll("p, h1, h2, h3, h4, h5, h6")).some((e4=>(0,o.countWords)(e4.textContent||"")>8)))t3&&B&&B.push({step:"removeByContentPattern",reason:"article metadata header block",text:(0,o.textPreview)(r4)}),r4.remove();else{if(d2==="DIV"&&i2>=1&&i2<=5&&!/[.!?]/.test(n3)&&be(r4)&&r4.querySelector("img")){let e4=r4.querySelectorAll("a[href]");if(e4.length>0){let i3=0;for(let t4 of e4)i3+=(((z2=t4.textContent)===null||z2===void 0?void 0:z2.trim())||"").length;if(i3/(n3.length||1)>=.8){t3&&B&&B.push({step:"removeByContentPattern",reason:"category badge",text:(0,o.textPreview)(r4)}),r4.remove();continue}}}if(!Se&&u.test(n3)&&i2>=2&&!/[.!?]$/.test(n3)&&be(r4)){let i3=N(r4,n3,e3);t3&&B&&B.push({step:"removeByContentPattern",reason:"author byline",text:(0,o.textPreview)(i3)}),i3.remove(),Se=!0}else{if(l.test(n3)&&(h4?r4.querySelectorAll("p, div, section, article").length===0:i2<=5&&be(r4))){let i3=n3;for(let e4 of q)i3=i3.replace(e4,"");if(i3.trim().length===0){let i4=h4?r4:N(r4,n3,e3);t3&&B&&B.push({step:"removeByContentPattern",reason:"read time metadata",text:(0,o.textPreview)(i4)}),i4.remove();continue}}if(!_e&&i2>=2&&i2<=10&&h4&&be(r4)){let i3=n3;for(let e4 of k)i3=i3.replace(e4,"");if(i3=i3.trim(),i3){let a2=i3.split(/\s+/).filter((e4=>e4.length>0));if(a2.length>=1&&a2.length<=4&&a2.every((e4=>c2.test(e4)))){let i4=N(r4,n3,e3);t3&&B&&B.push({step:"removeByContentPattern",reason:"author date metadata",text:(0,o.textPreview)(i4)}),i4.remove(),_e=!0;continue}}}if(h4&&i2<=5&&be(r4)){let i3=n3;for(let e4 of T)i3=i3.replace(e4,"");if(i3=i3.replace(/[,\s/\-]+/g,"").trim(),i3.length===0){let i4=N(r4,n3,e3);t3&&B&&B.push({step:"removeByContentPattern",reason:"standalone date metadata",text:(0,o.textPreview)(i4)}),i4.remove();continue}}}}}}let Te=Array.from(e3.querySelectorAll("time"));for(let r4 of Te){if(!r4.parentNode)continue;let n3=r4,i2=((U=n3.textContent)===null||U===void 0?void 0:U.trim())||"";for(;n3.parentElement&&n3.parentElement!==e3;){let e4=n3.parentElement.tagName.toLowerCase(),t4=((W=n3.parentElement.textContent)===null||W===void 0?void 0:W.trim())||"";if(e4==="p"&&t4===i2){n3=n3.parentElement;break}if(!["i","em","span","b","strong","small"].includes(e4)||t4!==i2)break;n3=n3.parentElement,i2=t4}let a2=((G2=n3.textContent)===null||G2===void 0?void 0:G2.trim())||"";if((0,o.countWords)(a2)>10)continue;let s2=Ae.indexOf(a2),l2=Ae.length-(s2+a2.length);s2>200&&l2>200||(t3&&B&&B.push({step:"removeByContentPattern",reason:"boundary date element",text:(0,o.textPreview)(n3)}),n3.remove())}let qe=e3.querySelectorAll("ul, ol, dl");for(let r4 of qe){if(!r4.parentNode||r4.closest("#footnotes"))continue;let n3=r4.tagName==="DL",i2=Array.from(r4.children).filter((e4=>n3?e4.tagName==="DD":e4.tagName==="LI")),a2=n3?1:2;if(i2.length<a2||i2.length>8)continue;let s2=((V=r4.textContent)===null||V===void 0?void 0:V.trim())||"",l2=Ae.indexOf(s2),c3=Ae.length-(l2+s2.length);if(l2>500&&c3>500)continue;let u2=r4.previousElementSibling;if(u2&&(A(u2)||(((X=u2.textContent)===null||X===void 0?void 0:X.trim())||"").endsWith(":")))continue;let d2=!0;for(let e4 of i2){let t4=((J=e4.textContent)===null||J===void 0?void 0:J.trim())||"";if((0,o.countWords)(t4)>8){d2=!1;break}if(/[.!?]$/.test(t4)){d2=!1;break}}if(!d2||(0,o.countWords)(s2)>30)continue;let h4=N(r4,s2,e3);t3&&B&&B.push({step:"removeByContentPattern",reason:"blog metadata list",text:(0,o.textPreview)(h4)}),h4.remove()}let ke=(Ce==null?void 0:Ce.pathname)||"",Ne=(Ce==null?void 0:Ce.hostname.replace(/^www\./,""))||"";if(ke){let n3=e3.querySelectorAll("div, span, p, a[href]"),i2=e3.querySelector("h1, h2, h3");for(let a2 of n3){if(!a2.parentNode)continue;let n4=((Z=a2.textContent)===null||Z===void 0?void 0:Z.trim())||"";if((0,o.countWords)(n4)>10||a2.querySelectorAll("p, div, section, article").length>0||a2.matches("a[href]")&&a2.parentElement&&a2.parentElement!==e3&&(((K=a2.parentElement.textContent)===null||K===void 0?void 0:K.trim())||"")!==n4&&(a2.closest("p")||!i2||!(4&a2.compareDocumentPosition(i2))))continue;let s2=a2.matches("a[href]")?a2:a2.querySelector("a[href]");if(s2)try{let e4=new URL(s2.getAttribute("href")||"",r3).pathname,n5=e4.replace(/\/[^/]*$/,"/"),i3=/^index\.(html?|php)$/i.test(e4.split("/").pop()||"")&&ke.startsWith(n5);e4!=="/"&&e4!==ke&&(ke.startsWith(e4)||i3)&&(t3&&B&&B.push({step:"removeByContentPattern",reason:"section breadcrumb",text:(0,o.textPreview)(a2)}),a2.remove())}catch(e4){}}}if(Ne){let n3=e3.querySelectorAll("h2, h3, h4, h5, h6");for(let i2 of n3){if(!i2.parentNode)continue;let n4=i2.nextElementSibling;if(!n4||n4.tagName!=="UL"&&n4.tagName!=="OL")continue;let a2=Array.from(n4.children).filter((e4=>e4.tagName==="LI"));if(a2.length<2)continue;let s2=!1,l2=n4;for(;l2&&l2!==e3;){let e4=l2.nextElementSibling;for(;e4;){if((((Y=e4.textContent)===null||Y===void 0?void 0:Y.trim())||"").length>0){s2=!0;break}e4=e4.nextElementSibling}if(s2)break;l2=l2.parentElement}if(s2)continue;let c3=!0;for(let e4 of a2){let t4=e4.querySelectorAll("a[href]");if(t4.length===0){c3=!1;break}let n5=((Q=e4.textContent)===null||Q===void 0?void 0:Q.trim())||"",o2=0;for(let e5 of t4){o2+=(((ee=e5.textContent)===null||ee===void 0?void 0:ee.trim())||"").length;try{if(new URL(e5.getAttribute("href")||"",r3).hostname.replace(/^www\./,"")===Ne){c3=!1;break}}catch(e6){}}if(!c3)break;if(o2<.6*n5.length){c3=!1;break}}c3&&(t3&&B&&(B.push({step:"removeByContentPattern",reason:"trailing external link list",text:(0,o.textPreview)(i2)}),B.push({step:"removeByContentPattern",reason:"trailing external link list",text:(0,o.textPreview)(n4)})),n4.remove(),i2.remove())}}let Le=e3.lastElementChild;for(;Le&&["HR","BR"].includes(Le.tagName);)Le=Le.previousElementSibling;if(Le&&["SECTION","DIV","ASIDE"].includes(Le.tagName)){let e4=[],r4=!1;for(let t4 of Le.children)if(!((te=t4.textContent)===null||te===void 0)&&te.trim()){if(t4.tagName==="P")e4.push(t4);else if(t4.tagName!=="BR"){r4=!0;break}}e4.length>=2&&!r4&&e4.every((e5=>{var t4,r6,n3;let o2=(((t4=e5.textContent)===null||t4===void 0?void 0:t4.trim())||"").replace(/\s+/g," "),i2=e5.querySelectorAll("a[href]");if(i2.length===0)return!1;let a2=0;for(let e6 of i2)a2+=(((r6=e6.textContent)===null||r6===void 0?void 0:r6.trim())||"").length;if(a2/(o2.length||1)<=.6)return!1;let s2=o2;for(let e6 of i2)s2=s2.split(((n3=e6.textContent)===null||n3===void 0?void 0:n3.trim())||"").join("");return!/[.!?]/.test(s2)}))&&(t3&&B&&B.push({step:"removeByContentPattern",reason:"trailing related posts block",text:(0,o.textPreview)(Le)}),Le.remove())}let Oe=(0,o.countWords)(e3.textContent||"");if(Oe>300){let r4=[],i2=0,a2=e3.lastElementChild;for(;a2;){if(a2.id==="footnotes"){a2=a2.previousElementSibling;continue}if(a2.tagName==="HR"){r4.push(a2);break}let e4=0;for(let t5 of a2.querySelectorAll("svg"))e4+=(0,o.countWords)(t5.textContent||"");let t4=(0,o.countWords)(((re=a2.textContent)===null||re===void 0?void 0:re.trim())||"")-e4;if(t4>25)break;i2+=t4,r4.push(a2),a2=a2.previousElementSibling}if(r4.length>=1&&i2<.15*Oe){let e4=r4.some((e5=>A(e5))),i3=r4.some((e5=>e5.querySelector(n2.CONTENT_ELEMENT_SELECTOR))),a3=0;for(let e5 of r4)e5.tagName==="P"&&(0,o.countWords)(e5.textContent||"")>5&&a3++;if(e4&&!i3&&a3<2)for(let e5 of r4)t3&&B&&B.push({step:"removeByContentPattern",reason:"trailing thin section",text:(0,o.textPreview)(e5)}),e5.remove()}}let De=e3.textContent||"",Me=e3.querySelectorAll("p, div, span, section");for(let r4 of Me){if(!r4.parentNode||r4.closest("pre, code"))continue;let n3=((ne=r4.textContent)===null||ne===void 0?void 0:ne.trim())||"",i2=(0,o.countWords)(n3);if(!(i2>50||i2<1)){for(let i3 of d)if(i3.test(n3)){let n4=r4;for(;n4.parentElement&&n4.parentElement!==e3&&!n4.nextElementSibling;)n4=n4.parentElement;let i4=n4.textContent||"";if(De.indexOf(i4)<200){n4===r4||r4.nextElementSibling||(t3&&B&&B.push({step:"removeByContentPattern",reason:"boilerplate text",text:(0,o.textPreview)(r4)}),r4.remove());continue}O(n4,e3,t3,B);break}}}for(let r4 of e3.querySelectorAll("h2, h3, h4, h5, h6")){if(!r4.parentNode)continue;let n3=((oe=r4.textContent)===null||oe===void 0?void 0:oe.trim())||"",i2=S.test(n3);if(!i2&&!E.test(n3)||Ae.indexOf(n3)<500)continue;let a2=D(r4,e3);if(a2===r4){if(!i2)continue;L(r4,!0,t3,B)}else M(a2,t3,B),t3&&B&&B.push({step:"removeByContentPattern",reason:"related content section",text:(0,o.textPreview)(a2)}),O(a2,e3,t3,B);break}for(let r4 of e3.querySelectorAll("p")){if(!r4.parentNode)continue;let e4=((ie=r4.textContent)===null||ie===void 0?void 0:ie.trim())||"";_.test(e4)&&((0,o.countWords)(e4)>20||r4.querySelector(n2.CONTENT_ELEMENT_SELECTOR)||(t3&&B&&B.push({step:"removeByContentPattern",reason:"related content intro",text:(0,o.textPreview)(r4)}),r4.remove()))}let $e=(0,o.countWords)(Ae);for(let r4 of e3.querySelectorAll("div")){if(!r4.parentNode||r4.children.length<2)continue;let n3=Array.from(r4.children),i2=n3.filter((e4=>e4.querySelector("img, picture")&&(e4.querySelector("h2, h3, h4")||e4.querySelector("a[href]")))).length;if(i2<2||i2<.7*n3.length)continue;let a2=((ae=n3[0].textContent)===null||ae===void 0?void 0:ae.trim().substring(0,30))||"";if(a2.length<5||Ae.indexOf(a2)<500)continue;let s2=(0,o.countWords)(r4.textContent||"");if($e>0&&s2/$e>.3)continue;let l2=D(r4,e3);if(l2!==r4){M(l2,t3,B),t3&&B&&B.push({step:"removeByContentPattern",reason:"related post cards",text:(0,o.textPreview)(l2)}),L(l2,!0,t3,B);break}}for(let r4 of e3.querySelectorAll("div, section, aside")){if(!r4.parentNode||r4.closest("pre, code")||!C(r4,60))continue;let n3=(0,o.countWords)(((se=r4.textContent)===null||se===void 0?void 0:se.trim())||""),i2=r4;for(;i2.parentElement&&i2.parentElement!==e3&&!((0,o.countWords)(((le=i2.parentElement.textContent)===null||le===void 0?void 0:le.trim())||"")>2*n3+15);)i2=i2.parentElement;t3&&B&&B.push({step:"removeByContentPattern",reason:"newsletter signup",text:(0,o.textPreview)(i2)}),i2.remove();break}for(let r4 of e3.querySelectorAll("ul"))if(r4.parentNode&&C(r4,30)){t3&&B&&B.push({step:"removeByContentPattern",reason:"newsletter signup list",text:(0,o.textPreview)(r4)}),r4.remove();break}for(let r4 of e3.querySelectorAll("div, section")){if(!r4.parentNode)continue;let n3=((ce=r4.textContent)===null||ce===void 0?void 0:ce.trim())||"",i2=(0,o.countWords)(n3);if(i2<2||i2>40)continue;let a2=Ae.indexOf(n3.substring(0,60));if(a2<0||Ae.length-(a2+n3.length)>300)continue;let s2=r4.querySelectorAll("div, span, p, dt, dd, li"),l2=!1;for(let e4 of s2){let t4=((ue=e4.textContent)===null||ue===void 0?void 0:ue.trim())||"";if(g.test(t4)){l2=!0;break}}if(!l2||!(v.test(n3)||y.test(n3)||r4.querySelector('a[href^="mailto:"]')))continue;let c3=D(r4,e3);t3&&B&&B.push({step:"removeByContentPattern",reason:"author contact block",text:(0,o.textPreview)(c3)}),c3.remove();break}for(let r4 of e3.querySelectorAll("p, span, div")){if(!r4.parentNode)continue;let n3=((de=r4.textContent)===null||de===void 0?void 0:de.trim())||"";if(!b.test(n3))continue;let i2=r4;for(;i2.parentElement&&i2.parentElement!==e3;){let e4=i2.parentElement;if((0,o.countWords)(((he=e4.textContent)===null||he===void 0?void 0:he.trim())||"")>15)break;i2=e4}i2.querySelector(x)||(t3&&B&&B.push({step:"removeByContentPattern",reason:"author/share widget",text:(0,o.textPreview)(i2)}),i2.remove())}for(let r4 of e3.querySelectorAll("a, p, div, span")){if(!r4.parentNode)continue;let n3=((me=r4.textContent)===null||me===void 0?void 0:me.trim())||"";if(!m.test(n3)||r4.tagName==="A"&&r4.getAttribute("href"))continue;if(r4.tagName!=="A"){let e4=Ae.indexOf(n3);if(Ae.length-(e4+n3.length)>200)continue}let i2=N(r4,n3,e3);t3&&B&&B.push({step:"removeByContentPattern",reason:"social engagement counter",text:(0,o.textPreview)(i2)}),i2.remove()}for(let r4 of e3.querySelectorAll("div")){if(!r4.parentNode)continue;let e4=((pe=r4.textContent)===null||pe===void 0?void 0:pe.trim())||"",i2=(0,o.countWords)(e4);if(i2<1||i2>10||/[.!?]/.test(e4)||r4.querySelector(n2.CONTENT_ELEMENT_SELECTOR))continue;let a2=Ae.indexOf(e4);if(a2<0||Ae.length-(a2+e4.length)>300)continue;let s2=r4.querySelectorAll("a[href]");if(s2.length===0)continue;let l2=0;for(let e5 of s2)l2+=(((fe=e5.textContent)===null||fe===void 0?void 0:fe.trim())||"").length;l2/(e4.length||1)<.8||(t3&&B&&B.push({step:"removeByContentPattern",reason:"trailing tag link block",text:(0,o.textPreview)(r4)}),r4.remove())}};let n2=r2(2640),o=r2(2552),i=r2(4467),a=/(?:(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[a-z]*\s+\d{1,2}|\d{1,2}(?:st|nd|rd|th)?\s+(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[a-z]*|\d{4}[-/]\d{1,2}[-/]\d{1,2})/i,s=/\b\d+\s+(?:second|minute|hour|day|week|month|year)s?\s+ago\b/i,l=/\d+\s*min(?:ute)?s?\s+read\b|(?:read(?:ing)?\s+time)\s*:?\s*\d+\s*min(?:ute)?s?\b/i,c2=/^\p{Lu}/u,u=/^(?:posted\s+)?by\s+\S/i,d=[/^This (?:article|story|piece) (?:appeared|was published|originally appeared) in\b/i,/^A version of this (?:article|story) (?:appeared|was published) in\b/i,/^Originally (?:published|appeared) (?:in|on|at)\b/i,/^Any re-?use permitted\b/i,/^\xa9\s*(?:Copyright\s+)?\d{4}/i,/^Comments?$/i,/^Leave a (?:comment|reply)$/i,/^Loading\.{3}$/,/^Affiliate links\b.*\b(?:earn|commission)/i,/\bRead our Comment Policy\b/i,/^Thank you for (?:being part of|joining) our community\b/i],h2=/\bsubscribe\b[\s\S]{0,40}\bnewsletter\b|\bnewsletter\b[\s\S]{0,40}\bsubscribe\b|\bsign[- ]up\b[\s\S]{0,80}\b(?:newsletter|email alert)|\b(?:don[\u2019']?t (?:want to )?miss|never miss)\b[\s\S]{0,80}\b(?:latest|best|exclusive|reports?|updates?|source)/i,m=/^\d+\s+(?:Likes?|Comments?|Shares?|Retweets?|Reposts?|Restacks?)$/i,p=/^current time in$/i,f=/^pinned$/i,g=/^(?:written by|(?:author|contact|reporter|correspondent)s?)$/i,b=/^(?:share|follow|authors?|written\s+by)$/i,x=n2.CONTENT_ELEMENT_SELECTOR.replace(/img, picture, /,""),v=/[\w.-]+@[\w.-]+\.\w+/,y=/\(?\d{3}\)?[\s.\u2011\u2013-]?\d{3}[\s.\u2011\u2013-]?\d{4}/,w=/^H[1-6]$/;function A(e3){return w.test(e3.tagName)||!!e3.querySelector("h1, h2, h3, h4, h5, h6")}function C(e3,t3){var r3;let i2=((r3=e3.textContent)===null||r3===void 0?void 0:r3.trim())||"",a2=(0,o.countWords)(i2);if(a2<2||a2>t3||e3.querySelector(n2.CONTENT_ELEMENT_SELECTOR))return!1;let s2=i2.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[\u2018\u2019]/g,"'");return h2.test(s2)}let E=/^(?:related (?:posts?|articles?|content|stories|reads?|reading)|you (?:might|may|could) (?:also )?(?:like|enjoy|be interested in)|read (?:next|more|also)|further reading|see also|more (?:from .*|from|articles?|posts?|like this)|more to (?:read|explore)|explore more|about (?:the )?author|latest (?:news|events?|posts?|articles?|stories)(?:\s*[&+]\s*(?:news|events?|posts?|articles?|stories))?)$/i,S=/^(?:subscribe|sign up|follow us|share this|stay (?:updated|connected)|join (?:us|our)|search (?:the |our )?(?:site|blog|archives?|newsroom|website|catalog|store|shop|database))$/i,_=/^for more (?:on|about)\b/i,T=[/\b(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:t(?:ember)?)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\b/gi,/\b\d+(?:st|nd|rd|th)?\b/g,/\d{4}[-/]\d{1,2}[-/]\d{1,2}/g],q=[...T,/\bmin(?:ute)?s?\b/gi,/\bread(?:ing)?\b/gi,/\btime\b/gi,/\bestimated\b/gi,/[/|\xb7\u2022\u2014\u2013\-,:.\s]+/g],k=[...T,/\bby\b/gi,/[/|\xb7\u2022\u2014\u2013\-,]+/g];function N(e3,t3,r3){var n3;let o2=e3;for(;o2.parentElement&&o2.parentElement!==r3&&(((n3=o2.parentElement.textContent)===null||n3===void 0?void 0:n3.trim())||"")===t3;)o2=o2.parentElement;return o2}function L(e3,t3,r3,n3){let i2=e3.nextElementSibling;for(;i2;){let e4=i2.nextElementSibling;i2.id!=="footnotes"&&(r3&&n3&&n3.push({step:"removeByContentPattern",reason:"trailing non-content",text:(0,o.textPreview)(i2)}),i2.remove()),i2=e4}t3&&(r3&&n3&&n3.push({step:"removeByContentPattern",reason:"boilerplate text",text:(0,o.textPreview)(e3)}),e3.remove())}function O(e3,t3,r3,n3){let o2=[],i2=e3.parentElement;for(;i2&&i2!==t3;)o2.push(i2),i2=i2.parentElement;L(e3,!0,r3,n3);for(let e4 of o2)L(e4,!1,r3,n3)}function D(e3,t3){let r3=e3;for(;r3.parentElement&&r3.parentElement!==t3;){let e4=0,t4=r3.previousElementSibling;for(;t4&&(e4+=(0,o.countWords)(t4.textContent||""),!(e4>10));)t4=t4.previousElementSibling;if(e4>10)break;r3=r3.parentElement}return r3}function M(e3,t3,r3){let i2=e3.previousElementSibling;if(!i2||(0,o.countWords)(i2.textContent||"")>=50||i2.querySelector(n2.CONTENT_ELEMENT_SELECTOR))return;let a2=i2.previousElementSibling;a2&&A(a2)||(t3&&r3&&r3.push({step:"removeByContentPattern",reason:"thin CTA section",text:(0,o.textPreview)(i2)}),i2.remove())}},8983(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.removeHiddenElements=function(e3,t3,r3){let i=0,a=new Map,s=/(?:^|;\s*)(?:display\s*:\s*none|visibility\s*:\s*hidden|opacity\s*:\s*0)(?:\s*;|\s*$)/i,l=e3.defaultView,c2=typeof window!="undefined"&&l===window,u=e3.querySelectorAll("*");for(let e4 of u){if(e4.querySelector("math, [data-mathml], .katex-mathml")||e4.tagName.toLowerCase()==="math")continue;let t4=e4.getAttribute("style");if(t4&&s.test(t4)){let r5=t4.includes("display")?"display:none":t4.includes("visibility")?"visibility:hidden":"opacity:0";a.set(e4,r5),i++;continue}if(c2)try{let t5=l.getComputedStyle(e4),r5="";if(t5.display==="none"?r5="display:none":t5.visibility==="hidden"?r5="visibility:hidden":t5.opacity==="0"&&(r5="opacity:0"),r5){a.set(e4,r5),i++;continue}}catch(e5){}let r4=e4.getAttribute("class")||"";if(r4){let t5=r4.split(/\s+/);if((0,o.hasResponsiveShowClass)(r4))continue;for(let r5 of t5){let t6=r5==="hidden"||r5==="invisible",n3=!r5.includes("[")&&(r5.endsWith(":hidden")||r5.endsWith(":invisible"));if(t6||n3){a.set(e4,`class:${r5}`),i++;break}}}}a.forEach(((e4,o2)=>{t3&&r3&&r3.push({step:"removeHiddenElements",reason:e4,text:(0,n2.textPreview)(o2)}),o2.remove()})),(0,n2.logDebug)(t3,"Removed hidden elements:",i)};let n2=r2(2552),o=r2(639)},662(e2,t2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.removeMetadataBlock=function(e3){var t3,n2;let o=e3.querySelector("h1");if(!o)return;let i=o.nextElementSibling;for(let e4=0;e4<3&&i;e4++){let e5=i.nextElementSibling,o2=((t3=i.textContent)===null||t3===void 0?void 0:t3.trim())||"";if(o2.length>0&&o2.length<300){let e6=r2.test(o2);if(!e6){for(let t4 of i.querySelectorAll("p, time"))if(r2.test(((n2=t4.textContent)===null||n2===void 0?void 0:n2.trim())||"")){e6=!0;break}}if(e6){i.remove();break}}i=e5}};let r2=/\b(?:(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:t(?:ember)?)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\s+\d{1,2}[\s,]+\d{4}|\d{1,2}(?:st|nd|rd|th)?\s+(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:t(?:ember)?)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\s+\d{4}|\d{4}[-/]\d{1,2}[-/]\d{1,2})\b/i},3550(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.ContentScorer=void 0;let n2=r2(2640),o=r2(2552),i=r2(639),a=["admonition","article","content","entry","image","img","font","figure","figcaption","pre","main","post","story","table"],s=["advertisement","all rights reserved","banner","cookie","comments","copyright","follow me","follow us","footer","header","homepage","login","menu","more articles","more like this","most read","nav","navigation","newsletter","popular","privacy","recommended","register","related","responses","share","sidebar","sign in","sign up","signup","social","sponsored","subscribe","terms","trending"],l=/\b(linkedin\.com\/(in|company)\/|twitter\.com\/(?!intent\b)\w|x\.com\/(?!intent\b)\w|facebook\.com\/(?!share\b)\w|instagram\.com\/\w|threads\.net\/\w|mastodon\.\w)/i,c2=/(?:(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[a-z]*\s+\d{1,2}|\d{1,2}(?:st|nd|rd|th)?\s+(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[a-z]*)/i,u=/\bBy\s+[A-Z]/,d=s.map((e3=>new RegExp(`\\b${e3.replace(/\s+/g,"\\s+")}\\b`))),h2=new RegExp(s.map((e3=>e3.replace(/\s+/g,"\\s+"))).join("|"),"i"),m=/^(?:table of )?contents$|^on this page$|^in this (?:article|guide|post)$/i,p=/\b(?:(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[a-z]*\s+\d{1,2},?\s+\d{4}|\d{1,2}(?:st|nd|rd|th)?\s+(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)[a-z]*,?\s+\d{4})\b/i,f=/\b(?:by|written by|author:)\s+[A-Za-z\s]+\b/i,g=["advert","ad-","ads","banner","cookie","copyright","footer","header","homepage","menu","nav","newsletter","popular","privacy","recommended","related","rights","share","sidebar","social","sponsored","subscribe","terms","trending","widget"];class b{constructor(e3,t3=!1){this.doc=e3,this.debug=t3}static scoreElement(e3){let t3=0,r3=e3.textContent||"",a2=(0,o.countWords)(r3);t3+=a2,t3+=10*e3.getElementsByTagName("p").length,t3+=r3.split(/,/).length-1,t3-=3*(e3.getElementsByTagName("img").length/(a2||1));try{let r4=e3.getAttribute("style")||"",n3=e3.getAttribute("align")||"";(r4.includes("float: right")||r4.includes("text-align: right")||n3==="right")&&(t3+=5)}catch(e4){}p.test(r3)&&(t3+=10),f.test(r3)&&(t3+=10);let s2=(0,i.getClassName)(e3).toLowerCase();if((s2.includes("content")||s2.includes("article")||s2.includes("post"))&&(t3+=15),e3.querySelector(n2.FOOTNOTE_INLINE_REFERENCES)&&(t3+=10),e3.querySelector(n2.FOOTNOTE_LIST_SELECTORS)&&(t3+=10),t3-=5*e3.getElementsByTagName("table").length,e3.tagName.toLowerCase()==="td"){let r4=e3.closest("table");if(r4){let n3=parseInt(r4.getAttribute("width")||"0"),o2=r4.getAttribute("align")||"",a3=(0,i.getClassName)(r4).toLowerCase();if(n3>400||o2==="center"||a3.includes("content")||a3.includes("article")){let n4=Array.from(r4.getElementsByTagName("td")),o3=n4.indexOf(e3);o3>0&&o3<n4.length-1&&(t3+=10)}}}let l2=e3.getElementsByTagName("a"),c3=0;for(let e4=0;e4<l2.length;e4++)c3+=(l2[e4].textContent||"").length;let u2=r3.length||1;return t3*=1-Math.min(c3/u2,.5),t3}static findBestElement(e3,t3=50){let r3=null,n3=0;return e3.forEach((e4=>{let t4=this.scoreElement(e4);t4>n3&&(n3=t4,r3=e4)})),n3>t3?r3:null}static scoreAndRemove(e3,t3=!1,r3,i2){let a2=Date.now(),s2=new Map;Array.from(e3.querySelectorAll(n2.BLOCK_ELEMENTS_SELECTOR)).forEach((e4=>{if(s2.has(e4)||i2&&e4.contains(i2)||e4.closest("pre")||e4.closest("[data-defuddle]")||b.isLikelyContent(e4))return;let t4=b.scoreNonContentBlock(e4);t4<0&&s2.set(e4,t4)})),s2.forEach(((e4,n3)=>{t3&&r3&&r3.push({step:"scoreAndRemove",reason:`score: ${e4}`,text:(0,o.textPreview)(n3)}),n3.remove()}));let l2=Date.now();(0,o.logDebug)(t3,"Removed non-content blocks:",{count:s2.size,processingTime:`${(l2-a2).toFixed(2)}ms`})}static isLikelyContent(e3){let t3=e3.getAttribute("role");if(t3&&["article","main","contentinfo"].includes(t3))return!0;let r3=(0,i.getClassName)(e3).toLowerCase(),n3=e3.id.toLowerCase();for(let e4 of a)if(r3.includes(e4)||n3.includes(e4))return!0;if(e3.querySelector("pre, table, figure, picture"))return!0;let s2=e3.textContent||"",c3=(0,o.countWords)(s2),u2=e3.querySelector("h1, h2, h3, h4, h5, h6");if(u2){let e4=(u2.textContent||"").trim();if(e4&&e4===s2.trim()){let t4=e4.toLowerCase();if(!h2.test(t4)&&!m.test(t4))return!0}}if(c3<1e3){let t4=e3.querySelectorAll("h1, h2, h3, h4, h5, h6"),r4=!1;for(let e4=0;e4<t4.length;e4++){let n4=(t4[e4].textContent||"").toLowerCase().trim();if(h2.test(n4)){r4=!0;break}}if(r4&&(c3<200||e3.getElementsByTagName("a").length/(c3||1)>.2))return!1}if(b.isCardGrid(e3,c3))return!1;if(c3<80){let t4=e3.getElementsByTagName("a");for(let e4=0;e4<t4.length;e4++){let r4=(t4[e4].getAttribute("href")||"").toLowerCase();if(l.test(r4))return!1}}let d2=e3.getElementsByTagName("p").length+e3.getElementsByTagName("li").length;return!!(c3>50&&d2>1||c3>100||c3>30&&d2>0||c3>=10&&/[.?!]/.test(s2)&&e3.getElementsByTagName("a").length/c3<.1)}static scoreNonContentBlock(e3){try{if(e3.matches(n2.FOOTNOTE_LIST_SELECTORS)||e3.querySelector(n2.FOOTNOTE_LIST_SELECTORS)||e3.closest(n2.FOOTNOTE_LIST_SELECTORS))return 0}catch(e4){}let t3=0,r3=e3.textContent||"",a2=(0,o.countWords)(r3);if(a2<3)return 0;t3+=r3.split(/,/).length-1;let s2=r3.toLowerCase(),h3=0;for(let e4 of d)e4.test(s2)&&h3++;t3-=10*h3;let m2=e3.getElementsByTagName("a"),p2=m2.length;if(p2/(a2||1)>.5&&(t3-=15),p2>1&&a2<80){let e4=0;for(let t4=0;t4<m2.length;t4++)e4+=(m2[t4].textContent||"").length;let n3=r3.length;n3>0&&e4/n3>.8&&(t3-=15)}let f2=e3.getElementsByTagName("ul").length+e3.getElementsByTagName("ol").length;if(f2>0&&p2>3*f2&&(t3-=10),a2<80){let r4=e3.getElementsByTagName("a");for(let e4=0;e4<r4.length;e4++){let n3=(r4[e4].getAttribute("href")||"").toLowerCase();if(l.test(n3)){t3-=15;break}}}a2<15&&u.test(r3)&&c2.test(r3)&&(t3-=10),b.isCardGrid(e3,a2)&&(t3-=15);let x=(0,i.getClassName)(e3).toLowerCase(),v=e3.id.toLowerCase();for(let e4 of g)(x.includes(e4)||v.includes(e4))&&(t3-=8);return t3}static isCardGrid(e3,t3){if(t3<3||t3>=500)return!1;let r3=e3.querySelectorAll("h2, h3, h4");if(r3.length<3||e3.querySelectorAll("img").length<2)return!1;let n3=0;for(let e4=0;e4<r3.length;e4++)n3+=(0,o.countWords)(r3[e4].textContent||"");return(t3-n3)/r3.length<20}}t2.ContentScorer=b},7393(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.removeBySelector=function(e3,t3,r3=!0,a=!0,s,l,c2=!1){let u=Date.now(),d=0,h2=0,m=new Map;if(r3&&e3.querySelectorAll(n2.EXACT_SELECTORS_JOINED).forEach((e4=>{if(e4!=null&&e4.parentNode){if(c2){let t4=e4.closest(n2.HIDDEN_EXACT_SKIP_SELECTOR),r4=(e4.getAttribute("role")||"").toLowerCase();if(e4.matches(n2.HIDDEN_EXACT_SELECTOR)||t4&&r4==="dialog")return}if(e4.closest("pre, code")||e4.tagName==="STYLE"&&(0,o.isSVGElement)(e4)||e4.matches(n2.HIDDEN_EXACT_SELECTOR)&&(0,i.hasResponsiveShowClass)((0,i.getClassName)(e4)))return;m.set(e4,{type:"exact"}),d++}})),a){let r4=t3?n2.PARTIAL_SELECTORS.map((e4=>({pattern:e4,regex:new RegExp(e4,"i")}))):null,o2=e3.querySelectorAll(n2.TEST_ATTRIBUTES_SELECTOR),a2=s?s.querySelectorAll(n2.TEST_ATTRIBUTES_SELECTOR):[];new Set([...o2,...a2]).forEach((e4=>{var t4;if(m.has(e4)||e4.closest("[data-defuddle]"))return;let o3=e4.tagName;if(o3==="CODE"||o3==="PRE"||e4.querySelector("pre")||e4.closest("code, pre"))return;let a3=(/^H[1-6]$/.test(o3)?(0,i.getClassName)(e4):(0,i.getClassName)(e4)+" "+(e4.id||"")+" "+(e4.getAttribute("data-component")||"")+" "+(e4.getAttribute("data-test")||"")+" "+(e4.getAttribute("data-testid")||"")+" "+(e4.getAttribute("data-test-id")||"")+" "+(e4.getAttribute("data-qa")||"")+" "+(e4.getAttribute("data-cy")||"")).toLowerCase();if(a3.trim()&&n2.PARTIAL_SELECTORS_REGEX.test(a3)){let n3=r4?(t4=r4.find((e5=>e5.regex.test(a3))))===null||t4===void 0?void 0:t4.pattern:void 0;m.set(e4,{type:"partial",selector:n3}),h2++}}))}m.forEach((({type:e4,selector:r4},i2)=>{var a2;if(!(s&&i2.contains(s)||i2.tagName==="A"&&i2.closest("h1, h2, h3, h4, h5, h6"))){try{if(i2.matches(n2.FOOTNOTE_LIST_SELECTORS)||i2.querySelector(n2.FOOTNOTE_LIST_SELECTORS))return;let e5=i2.parentElement;if(e5&&e5.matches(n2.FOOTNOTE_LIST_SELECTORS)||!((a2=i2.classList)===null||a2===void 0)&&a2.contains("footnote-backref")&&i2.closest("#footnotes"))return}catch(e5){}t3&&l&&l.push({step:"removeBySelector",selector:e4==="exact"?"exact":r4,reason:e4==="exact"?"exact selector match":`partial match: ${r4}`,text:(0,o.textPreview)(i2)}),i2.remove()}}));let p=Date.now();(0,o.logDebug)(t3,"Removed clutter elements:",{exactSelectors:d,partialSelectors:h2,total:m.size,processingTime:`${(p-u).toFixed(2)}ms`})};let n2=r2(2640),o=r2(2552),i=r2(639)},2408(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.getElementIdentifier=u,t2.findSmallImages=function(e3,t3){var r3,o2,i2;let d=new Set,h2=0,m=e3.querySelectorAll("img, svg"),p=e3.defaultView,f=typeof window!="undefined"&&p===window;for(let e4 of m){let t4=parseInt(e4.getAttribute("width")||"0"),n3=parseInt(e4.getAttribute("height")||"0"),m2=0,g=0;if(e4.tagName.toLowerCase()==="svg"){let t5=e4.getAttribute("viewBox");if(t5){let e5=t5.split(/[\s,]+/);e5.length===4&&(m2=parseFloat(e5[2])||0,g=parseFloat(e5[3])||0)}}let b=e4.getAttribute("style")||"",x=parseInt(((r3=b.match(s))===null||r3===void 0?void 0:r3[1])||"0"),v=parseInt(((o2=b.match(l))===null||o2===void 0?void 0:o2[1])||"0"),y=0,w=0;if(f){try{let t5=p.getComputedStyle(e4);y=parseInt(t5.width)||0,w=parseInt(t5.height)||0}catch(e5){}try{let t5=e4.getBoundingClientRect();t5.width>0&&(y=y||t5.width),t5.height>0&&(w=w||t5.height)}catch(e5){}}let A=[t4,x,y,m2].filter((e5=>e5>0)),C=[n3,v,w,g].filter((e5=>e5>0));if(A.length===0&&C.length===0&&e4.tagName.toLowerCase()==="img"){let t5=(e4.getAttribute("srcset")||"").match(/(\S+)\s+1x/);if(t5){let e5=parseInt(((i2=t5[1].match(c2))===null||i2===void 0?void 0:i2[1])||"0");e5>0&&A.push(e5)}}if(A.length>0||C.length>0){let t5=A.length>0?Math.min(...A):1/0,r4=C.length>0?Math.min(...C):1/0;if(t5<33||r4<33){if(e4.tagName.toLowerCase()==="img"){let t7=e4.getAttribute("alt")||"";if(a.LOOKS_LIKE_LATEX_RE.test(t7)||e4.classList.contains("latex")||e4.classList.contains("tex")||e4.getAttribute("data-latex")||e4.getAttribute("data-math"))continue}let t6=u(e4);t6&&(d.add(t6),h2++)}}}return(0,n2.logDebug)(t3,"Found small elements:",h2),d},t2.removeSmallImages=function(e3,t3,r3){let o2=0;["img","svg"].forEach((r4=>{let n3=e3.getElementsByTagName(r4);Array.from(n3).forEach((e4=>{if(r4==="img"){let t4=e4.getAttribute("src")||"",r5=e4.getAttribute("srcset")||e4.getAttribute("data-src")||e4.getAttribute("data-srcset")||e4.getAttribute("data-lazy-src")||e4.getAttribute("data-original");if(!t4&&!r5||!r5&&!e4.closest("picture")&&(0,i.isBase64Placeholder)(t4))return e4.remove(),void o2++}let n4=u(e4);n4&&t3.has(n4)&&(e4.remove(),o2++)}))})),(0,n2.logDebug)(r3,"Removed small elements:",o2)};let n2=r2(2552),o=r2(639),i=r2(2649),a=r2(7282),s=/width\s*:\s*(\d+)/,l=/height\s*:\s*(\d+)/,c2=/(?:width[=:/]|[/,?&]w[_:=])(\d+)/;function u(e3){if(e3.tagName.toLowerCase()==="img"){let t4=e3.getAttribute("data-src");if(t4)return`src:${t4}`;let r4=e3.getAttribute("src")||"",n4=e3.getAttribute("srcset")||"",o2=e3.getAttribute("data-srcset");if(r4)return`src:${r4}`;if(n4)return`srcset:${n4}`;if(o2)return`srcset:${o2}`}let t3=e3.id||"",r3=(0,o.getClassName)(e3),n3=e3.tagName.toLowerCase()==="svg"&&e3.getAttribute("viewBox")||"";return t3?`id:${t3}`:n3?`viewBox:${n3}`:r3?`class:${r3}`:null}},4840(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.standardizeContent=function(e3,t3,r3,a2=!1,l2){d=a2;let C2=l2?(e4,t4)=>{var r4;let n3=performance.now(),o2=t4();return l2[e4]=((r4=l2[e4])!==null&&r4!==void 0?r4:0)+Math.round(performance.now()-n3),o2}:(e4,t4)=>t4();C2("standardizeDropCaps",(()=>(function(e4){let t4=Array.from(e4.querySelectorAll('span[data-caps="initial"]')),r4=0;for(let e5 of t4){if(!e5.parentNode)continue;let t5=e5.nextElementSibling;if(t5&&t5.tagName==="SMALL"){let r5=e5.textContent||"",n3=t5.textContent||"",o2=e5.ownerDocument.createTextNode(r5+n3);e5.parentNode.insertBefore(o2,e5),t5.remove(),e5.remove()}else g(e5);r4++}r4>0&&e4.normalize(),(0,c2.logDebug)(d,"Standardized drop caps:",r4)})(e3))),C2("standardizeSpaces",(()=>(function(e4){let t4=e5=>{if((0,c2.isElement)(e5)){let t5=e5.tagName.toLowerCase();if(t5==="pre"||t5==="code"||(0,c2.isSVGElement)(e5))return}if((0,c2.isTextNode)(e5)){let t5=e5.textContent||"",r4=t5.replace(/\xA0/g," ");r4!==t5&&(e5.textContent=r4)}e5.hasChildNodes()&&Array.from(e5.childNodes).forEach(t4)};t4(e4)})(e3))),C2("removeHtmlComments",(()=>(function(e4){var t4;let r4=0,n3=e4.ownerDocument,o2=n3.createTreeWalker(e4,128),i2=[];for(;o2.nextNode();)i2.push(o2.currentNode);for(let e5 of i2)(t4=e5.parentNode)===null||t4===void 0||t4.removeChild(e5),r4++;(0,c2.logDebug)(d,"Removed HTML comments:",r4)})(e3))),C2("standardizeHeadings",(()=>(function(e4,t4,r4){let o2=e4.getElementsByTagName("h1");Array.from(o2).forEach((e5=>{var t5;let o3=r4.createElement("h2");(0,u.transferContent)(e5,o3),Array.from(e5.attributes).forEach((e6=>{n2.ALLOWED_ATTRIBUTES.has(e6.name)&&o3.setAttribute(e6.name,e6.value)})),(t5=e5.parentNode)===null||t5===void 0||t5.replaceChild(o3,e5)}));let i2=e4.getElementsByTagName("h2");if(i2.length>0){let e5=i2[0],r5="";for(let t5 of e5.querySelectorAll("a"))(0,s.isPermalinkAnchor)(t5)&&(r5+=t5.textContent||"");let n3=(0,c2.normalizeText)((e5.textContent||"").replace(r5,"")),o3=(0,c2.normalizeText)(t4);o3&&o3===n3&&e5.remove()}})(e3,t3.title,r3))),C2("wrapPreformattedCode",(()=>(function(e4,t4){var r4;let n3=Array.from(e4.querySelectorAll("code"));for(let e5 of n3){if(e5.closest("pre"))continue;let n4=e5.getAttribute("style")||"";if(!/white-space\s*:\s*pre/.test(n4))continue;let o2=t4.createElement("pre");(r4=e5.parentNode)===null||r4===void 0||r4.insertBefore(o2,e5),o2.appendChild(e5)}})(e3,r3))),C2("standardizeElements",(()=>(function(e4,t4,r4){let n3=0,a3=r4?(e5,t5)=>{var n4;let o2=performance.now(),i2=t5();return r4["se:"+e5]=((n4=r4["se:"+e5])!==null&&n4!==void 0?n4:0)+Math.round(performance.now()-o2),i2}:(e5,t5)=>t5();a3("wrapRawLatexDelimiters",(()=>(0,i.wrapRawLatexDelimiters)(e4,t4))),a3("convertLatexImages",(()=>{var r5;for(let a4 of Array.from(e4.querySelectorAll("img[src]"))){let e5=a4.getAttribute("src");if(!e5)continue;let s3=(0,i.extractLatexFromImageSrc)(e5);if(!s3){let e6=a4.getAttribute("alt")||"";i.LOOKS_LIKE_LATEX_RE.test(e6)&&(s3=e6)}if(!s3)continue;let l4=/\\begin\{/.test(s3)||((r5=a4.parentElement)===null||r5===void 0?void 0:r5.tagName.toLowerCase())==="p"&&a4.parentElement.childNodes.length===1,c3=(0,o.createCleanMathEl)(null,s3,l4,t4);a4.replaceWith(c3),n3++}})),h2.forEach((r5=>{let o2=r5.selector.substring(0,30);a3(o2,(()=>{if(r5.fastCheck&&!e4.querySelector(r5.fastCheck))return;let o3;try{o3=e4.querySelectorAll(r5.selector)}catch(e5){return}o3.forEach((e5=>{if(r5.transform){let o4=r5.transform(e5,t4);e5.replaceWith(o4),n3++}}))}))})),Array.from(e4.querySelectorAll("code > pre")).forEach((e5=>{let t5=e5.parentElement;t5&&t5.tagName==="CODE"&&t5.replaceWith(e5)})),Array.from(e4.querySelectorAll("table.ltx_equation, table.ltx_eqn_table, table.ltx_equationgroup")).forEach((e5=>{let r5=e5.querySelectorAll("math");if(r5.length===0)return;let o2=t4.createDocumentFragment();r5.forEach((r6=>{var n4;let i2=r6.getAttribute("alttext"),a4=r6.querySelector('annotation[encoding="application/x-tex"]'),s3=i2||((n4=a4==null?void 0:a4.textContent)===null||n4===void 0?void 0:n4.trim())||"";if(!s3)return;let l4=r6.getAttribute("display")==="block"||e5.classList.contains("ltx_equation")||e5.classList.contains("ltx_equationgroup"),c3=t4.createElement("math");c3.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),c3.setAttribute("display",l4?"block":"inline"),c3.setAttribute("data-latex",s3),c3.textContent=s3,o2.appendChild(c3)})),o2.childNodes.length>0&&(e5.replaceWith(o2),n3++)})),Array.from(e4.querySelectorAll("span.ltx_note_outer")).forEach((e5=>{e5.remove(),n3++})),Array.from(e4.querySelectorAll("a.ltx_ref")).forEach((e5=>{if(e5.querySelector("span.ltx_ref_tag, span.ltx_text.ltx_ref_tag")){let r5=t4.createTextNode(e5.textContent||"");e5.replaceWith(r5),n3++}}));for(let t5 of Array.from(e4.querySelectorAll("table"))){if(!t5.parentNode)continue;let e5=t5.querySelectorAll("td, th");e5.length>0&&Array.from(e5).every((e6=>!(e6.textContent||"").trim()))&&!t5.querySelector("img, picture, video, audio, iframe, svg, math")&&(t5.remove(),n3++)}Array.from(e4.querySelectorAll("table")).forEach((e5=>{if(!e5.parentNode)return;let r5=Array.from(e5.querySelectorAll("td, th")).filter((t5=>(0,u.isDirectTableChild)(t5,e5)));if(r5.some((e6=>e6.tagName==="TH")))return;let o2=Array.from(e5.querySelectorAll("tr")).filter((t5=>(0,u.isDirectTableChild)(t5,e5)));if(o2.length===0||!o2.every((e6=>r5.filter((t5=>t5.parentNode===e6)).length<=1)))return;let i2=t4.createDocumentFragment();r5.forEach((e6=>{for(;e6.firstChild;)i2.appendChild(e6.firstChild)})),e5.replaceWith(i2),n3++})),e4.querySelectorAll("video:not([controls])").forEach((e5=>{e5.setAttribute("controls","")})),e4.querySelectorAll("lite-youtube").forEach((e5=>{let r5=e5.getAttribute("videoid");if(!r5)return;let o2=t4.createElement("iframe");o2.width="560",o2.height="315",o2.src=`https://www.youtube.com/embed/${r5}`,o2.title=e5.getAttribute("videotitle")||"YouTube video player",o2.frameBorder="0",o2.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",o2.setAttribute("allowfullscreen",""),e5.replaceWith(o2),n3++})),(0,c2.logDebug)(d,"Converted embedded elements:",n3),(function(e5){var t5;let r5=e6=>{let t6=null;for(let r6 of e6.children){if(r6.tagName.toLowerCase()!=="code"||t6)return null;t6=r6}return t6},n4=e6=>{var t6;let r6=(e6.getAttribute("data-lang")||"").toLowerCase();if(r6)return r6;let n5=(e6.getAttribute("class")||"").match(/(?:^|\s)language-([a-z0-9_+-]+)(?:\s|$)/i);return((t6=n5==null?void 0:n5[1])===null||t6===void 0?void 0:t6.toLowerCase())||""},o2=e5.querySelectorAll('pre[data-verso-code="true"]'),i2=new Set;for(let e6 of o2){let t6=e6.parentElement;t6&&i2.add(t6)}for(let e6 of i2){let o3=Array.from(e6.childNodes);for(let e7=0;e7<o3.length;e7++){let i3=o3[e7];if(!(0,c2.isElement)(i3)||i3.tagName.toLowerCase()!=="pre"||i3.getAttribute("data-verso-code")!=="true")continue;let a4=r5(i3);if(!a4)continue;let s3=n4(a4);if(s3!=="lean"&&s3!=="lean4")continue;let l4=[{pre:i3,code:a4}],u2=[],d2=e7+1;for(;d2<o3.length;){let e8=o3[d2];if((0,c2.isTextNode)(e8)&&!(e8.textContent||"").trim()){u2.push(e8),d2++;continue}if(!(0,c2.isElement)(e8)||e8.tagName.toLowerCase()!=="pre")break;let t6=e8;if(t6.getAttribute("data-verso-code")!=="true")break;let i4=r5(t6);if(!i4||n4(i4)!==s3)break;l4.push({pre:t6,code:i4}),d2++}if(l4.length<=1)continue;let h3=l4.map((({code:e8})=>(e8.textContent||"").replace(/\r?\n$/,""))).join(`
`).replace(/\n{3,}/g,`
`).replace(/^\n+|\n+$/g,"");a4.textContent=h3;for(let e8=1;e8<l4.length;e8++)l4[e8].pre.remove();for(let e8 of u2)(t5=e8.parentNode)===null||t5===void 0||t5.removeChild(e8);e7=d2-1}}})(e4)})(e3,r3,l2))),C2("resolveSvgColors",(()=>(function(e4,t4){let r4=e4.querySelectorAll("svg");if(r4.length===0)return;let o2=t4.defaultView,i2=typeof window!="undefined"&&o2===window,a3=new Map,s2=(e5,r5)=>{var s3,l3;if(!(e5=e5.replace(y,((e6,t5)=>t5.trim()))).includes("var("))return e5;if(i2){let n3=a3.get(e5);if(n3)return n3;let i3=r5||t4.documentElement;try{let r6=t4.createElement("div");r6.style.color=e5,i3.appendChild(r6);let n4=o2.getComputedStyle(r6).color;if(r6.remove(),n4&&!n4.includes("var("))return a3.set(e5,n4),n4}catch(e6){}}let c3=e5.match(w);if(c3){let e6=(s3=c3[2])===null||s3===void 0?void 0:s3.trim();if(e6&&!e6.includes("var("))return e6;let t5=c3[1].toLowerCase(),r6=t5.match(/(?:^|-)([a-z]+)-(\d{2,3})$/);if(r6){let e7=(l3=n2.TAILWIND_COLORS[r6[1]])===null||l3===void 0?void 0:l3[r6[2]];if(e7)return e7}if(t5.endsWith("-black"))return"#000";if(t5.endsWith("-white"))return"#fff";if(t5.includes("background")||t5.includes("card")||t5.includes("surface")||t5.includes("bg"))return"Canvas";if(t5.includes("border")||t5.includes("divider")||t5.includes("separator"))return"#ccc";if(t5.includes("muted")||t5.includes("subtle")||t5.includes("secondary")||t5.includes("placeholder"))return"#888"}return"currentColor"};for(let e5 of Array.from(r4)){let t5=e5.parentElement,r5=[e5,...Array.from(e5.querySelectorAll("*"))];for(let e6 of r5){for(let r7 of A){let n3=e6.getAttribute(r7);n3&&(n3.includes("var(")||n3.includes("light-dark("))&&e6.setAttribute(r7,s2(n3,t5))}let r6=e6.getAttribute("style");if(r6&&(r6.includes("var(")||r6.includes("light-dark("))){let n3=r6.replace(y,((e7,t6)=>t6.trim()));n3=n3.replace(/var\(--[^,)]+(?:,\s*[^)]+)?\)/g,(e7=>s2(e7,t5))),e6.setAttribute("style",n3)}k(e6)}q(e5)}})(e3,r3))),a2?(C2("stripUnwantedAttributes",(()=>f(e3,a2))),C2("removeTrailingHeadings",(()=>m(e3))),C2("stripExtraBrElements",(()=>N(e3))),(0,c2.logDebug)(d,"Debug mode: Skipping div flattening to preserve structure")):(C2("replaceCustomElements",(()=>(function(e4,t4){let r4=Array.from(e4.querySelectorAll("*")).filter((e5=>e5.tagName.includes("-")&&!n2.INLINE_ELEMENTS.has(e5.tagName.toLowerCase())&&!(0,c2.isSVGElement)(e5))).reverse(),o2=0;for(let e5 of r4){if(!e5.parentNode)continue;let r5=t4.createElement("div");for(;e5.firstChild;)r5.appendChild(e5.firstChild);e5.replaceWith(r5),o2++}(0,c2.logDebug)(d,"Replaced custom elements with divs:",o2)})(e3,r3))),C2("convertDataAsSpans",(()=>(function(e4,t4){let r4=0,n3=Array.from(e4.querySelectorAll("span[data-as]"));for(let e5 of n3){if(!e5.parentNode)continue;let n4=e5.getAttribute("data-as").toLowerCase();if(!v.has(n4))continue;let o2=t4.createElement(n4);(0,u.transferContent)(e5,o2),e5.replaceWith(o2),r4++}(0,c2.logDebug)(d,"Converted data-as spans:",r4)})(e3,r3))),C2("convertBlockSpans",(()=>(function(e4,t4){var r4;let n3=0,o2=Array.from(e4.querySelectorAll('span[class*="block"], span[style*="block"]'));for(let e5 of o2){if(!e5.parentNode||!(b.test((0,u.getClassName)(e5))||x.test(e5.getAttribute("style")||""))||!(!((r4=e5.textContent)===null||r4===void 0)&&r4.trim()))continue;let o3=t4.createElement("p");(0,u.transferContent)(e5,o3),e5.replaceWith(o3),n3++}(0,c2.logDebug)(d,"Converted block spans to paragraphs:",n3)})(e3,r3))),C2("unwrapLayoutTables",(()=>(function(e4){let t4=Array.from(e4.querySelectorAll("table")),r4=0;for(let e5 of t4){if(!e5.parentNode||e5.querySelector("thead, tfoot, th, caption"))continue;let t5=Array.from(e5.querySelectorAll(":scope > tbody > tr > td, :scope > tr > td")).filter((e6=>{var t6;return(t6=e6.textContent)===null||t6===void 0?void 0:t6.trim()}));if(t5.length!==1)continue;let o2=t5[0],i2=Array.from(o2.children).filter((e6=>{var t6;return(t6=e6.textContent)===null||t6===void 0?void 0:t6.trim()}));i2.length===1&&n2.BLOCK_LEVEL_ELEMENTS.has(i2[0].tagName.toLowerCase())&&(e5.replaceWith(i2[0]),r4++)}(0,c2.logDebug)(d,"Unwrapped layout tables:",r4)})(e3))),C2("flattenWrapperElements[1]",(()=>D(e3,r3))),C2("removePermalinkAnchors",(()=>(0,s.removePermalinkAnchors)(e3))),C2("stripUnwantedAttributes",(()=>f(e3,a2))),C2("unwrapBareSpans",(()=>(function(e4){let t4=Array.from(e4.querySelectorAll("span")).reverse(),r4=0;for(let e5 of t4){if(!e5.parentNode||e5.attributes.length>0)continue;let t5=e5.parentNode;if(t5){for(;e5.firstChild;)t5.insertBefore(e5.firstChild,e5);e5.remove(),r4++}}r4>0&&e4.normalize(),(0,c2.logDebug)(d,"Unwrapped bare spans:",r4)})(e3))),C2("unwrapSpecialLinks",(()=>{Array.from(e3.querySelectorAll("code a")).forEach(g),Array.from(e3.querySelectorAll('a[href^="javascript:"]')).forEach(g),Array.from(e3.querySelectorAll("a")).forEach((e4=>{let t4=e4.getAttribute("href");if(!t4||t4.startsWith("#"))return;let n3=Array.from(e4.children).find((e5=>/^H[1-6]$/.test(e5.nodeName)));if(!n3)return;let o2=r3.createElement("a");for(o2.setAttribute("href",t4);n3.firstChild;)o2.appendChild(n3.firstChild);n3.appendChild(o2),g(e4)})),Array.from(e3.querySelectorAll('a[href^="#"]')).forEach((e4=>{e4.querySelector("h1, h2, h3, h4, h5, h6")&&g(e4)}))})),C2("removeObsoleteElements",(()=>e3.querySelectorAll("object, embed, applet").forEach((e4=>e4.remove())))),C2("removeEmptyElements",(()=>(function(e4){let t4=0,r4=e5=>{var t5;if(n2.ALLOWED_EMPTY_ELEMENTS.has(e5.tagName.toLowerCase()))return!1;if(e5.tagName==="DIV"){let r6=e5.children;if(r6.length>0){let e6=!0;for(let n3=0;n3<r6.length;n3++){let o4=r6[n3];if(o4.tagName!=="SPAN"){e6=!1;break}let i2=((t5=o4.textContent)===null||t5===void 0?void 0:t5.trim())||"";if(i2!==","&&i2!==""&&i2!==" "){e6=!1;break}}if(e6)return!0}}let r5=e5.textContent||"";if(r5.trim().length>0||r5.includes("\xA0"))return!1;if(!e5.hasChildNodes())return!0;let o3=e5.childNodes;for(let e6=0;e6<o3.length;e6++){let t6=o3[e6];if((0,c2.isElement)(t6)&&t6.tagName.toLowerCase()==="br")continue;if(!(0,c2.isTextNode)(t6))return!1;let r6=t6.textContent||"";if(r6.trim().length>0||r6.includes("\xA0"))return!1}return!0},o2=Array.from(e4.querySelectorAll("*")).reverse();for(let e5 of o2)e5.parentNode&&r4(e5)&&(e5.remove(),t4++);(0,c2.logDebug)(d,"Removed empty elements:",t4)})(e3))),C2("removeTrailingHeadings",(()=>m(e3))),C2("removeOrphanedDividers[1]",(()=>p(e3))),C2("flattenWrapperElements[2]",(()=>D(e3,r3))),C2("removeOrphanedDividers[2]",(()=>p(e3))),C2("stripExtraBrElements",(()=>N(e3))),C2("removeEmptyLines",(()=>(function(e4,t4){let r4=0,o2=Date.now(),i2=e5=>{var t5;if((0,c2.isElement)(e5)){let t6=e5.tagName.toLowerCase();if(t6==="pre"||t6==="code")return}if(Array.from(e5.childNodes).forEach(i2),(0,c2.isTextNode)(e5)){let n3=e5.textContent||"";if(!n3||/^[\u200C\u200B\u200D\u200E\u200F\uFEFF]*$/.test(n3))(t5=e5.parentNode)===null||t5===void 0||t5.removeChild(e5),r4++;else{let t6=n3.replace(/[\n\r]+/g," ").replace(/\t+/g," ").replace(/ {2,}/g," ").replace(/^[ ]+$/," ").replace(/\s+([,.!?:;])/g,"$1").replace(/[\u200B\u200D\u200E\u200F\uFEFF]+/g,"").replace(/(?:\xA0){2,}/g,"\xA0");t6!==n3&&(e5.textContent=t6,r4+=n3.length-t6.length)}}},a3=e5=>{var o3;if(!(0,c2.isElement)(e5))return;let i3=e5.tagName.toLowerCase();if(i3==="pre"||i3==="code")return;Array.from(e5.childNodes).filter(c2.isElement).forEach(a3),e5.normalize();let s3=((o3=(0,c2.getComputedStyle)(e5))===null||o3===void 0?void 0:o3.display)==="block",l3=s3?/^[\n\r\t \u200C\u200B\u200D\u200E\u200F\uFEFF\xA0]*$/:/^[\n\r\t\u200C\u200B\u200D\u200E\u200F\uFEFF]*$/;for(;e5.firstChild&&(0,c2.isTextNode)(e5.firstChild)&&(e5.firstChild.textContent||"").match(l3);)e5.removeChild(e5.firstChild),r4++;for(;e5.lastChild&&(0,c2.isTextNode)(e5.lastChild)&&(e5.lastChild.textContent||"").match(l3);)e5.removeChild(e5.lastChild),r4++;if(!s3&&n2.INLINE_ELEMENTS.has(i3)&&e5.parentNode&&(r4+=O(e5,t4,"leading"),r4+=O(e5,t4,"trailing")),!s3){let r5=Array.from(e5.childNodes);for(let n3=0;n3<r5.length-1;n3++){let o4=r5[n3],i4=r5[n3+1];if((0,c2.isElement)(o4)||(0,c2.isElement)(i4)){let r6=i4.textContent||"",n4=o4.textContent||"",a4=r6.match(/^[,.!?:;)\]]/),s4=n4.match(/[,.!?:;(\[]\s*$/),l4=(0,c2.isTextNode)(o4)&&(o4.textContent||"").endsWith(" ")||(0,c2.isTextNode)(i4)&&(i4.textContent||"").startsWith(" ");if(!a4&&!s4&&!l4){let r7=t4.createTextNode(" ");e5.insertBefore(r7,i4)}}}}};i2(e4),a3(e4);let s2=Date.now();(0,c2.logDebug)(d,"Removed empty lines:",{charactersRemoved:r4,processingTime:`${(s2-o2).toFixed(2)}ms`})})(e3,r3))))},t2.removeOrphanedDividers=p;let n2=r2(2640),o=r2(3974),i=r2(7282),a=r2(754),s=r2(7864),l=r2(2649),c2=r2(2552),u=r2(639),d=!1,h2=[...o.mathRules,...a.codeBlockRules,...s.headingRules,...l.imageRules,{selector:'div[data-testid^="paragraph"], div[role="paragraph"]',element:"p",transform:(e3,t3)=>{let r3=t3.createElement("p");return(0,u.transferContent)(e3,r3),Array.from(e3.attributes).forEach((e4=>{n2.ALLOWED_ATTRIBUTES.has(e4.name)&&r3.setAttribute(e4.name,e4.value)})),r3}},{selector:'div[role="list"]',element:"ul",transform:(e3,t3)=>{var r3;let n3=e3.querySelector('div[role="listitem"] .label'),o2=(((r3=n3==null?void 0:n3.textContent)===null||r3===void 0?void 0:r3.trim())||"").match(/^\d+\)/),i2=t3.createElement(o2?"ol":"ul");return e3.querySelectorAll('div[role="listitem"]').forEach((e4=>{let r4=t3.createElement("li"),n4=e4.querySelector(".content");n4&&(n4.querySelectorAll('div[role="paragraph"]').forEach((e5=>{let r5=t3.createElement("p");(0,u.transferContent)(e5,r5),e5.replaceWith(r5)})),n4.querySelectorAll('div[role="list"]').forEach((e5=>{var r5;let n5=e5.querySelector('div[role="listitem"] .label'),o3=(((r5=n5==null?void 0:n5.textContent)===null||r5===void 0?void 0:r5.trim())||"").match(/^\d+\)/),i3=t3.createElement(o3?"ol":"ul");e5.querySelectorAll('div[role="listitem"]').forEach((e6=>{let r6=t3.createElement("li"),n6=e6.querySelector(".content");n6&&(n6.querySelectorAll('div[role="paragraph"]').forEach((e7=>{let r7=t3.createElement("p");(0,u.transferContent)(e7,r7),e7.replaceWith(r7)})),(0,u.transferContent)(n6,r6)),i3.appendChild(r6)})),e5.replaceWith(i3)})),(0,u.transferContent)(n4,r4)),i2.appendChild(r4)})),i2}},{selector:'div[role="listitem"]',element:"li",transform:(e3,t3)=>{let r3=e3.querySelector(".content");return r3?(r3.querySelectorAll('div[role="paragraph"]').forEach((e4=>{let r4=t3.createElement("p");(0,u.transferContent)(e4,r4),e4.replaceWith(r4)})),r3):e3}}];function m(e3){let t3=0,r3=t4=>{let n4="",o2=t4.nextSibling;for(;o2;)((0,c2.isTextNode)(o2)||(0,c2.isElement)(o2))&&(n4+=o2.textContent||""),o2=o2.nextSibling;if(n4.trim())return!0;let i2=t4.parentElement;return!(!i2||i2===e3)&&r3(i2)},n3=Array.from(e3.querySelectorAll("h1, h2, h3, h4, h5, h6")).reverse();for(let e4 of n3){if(r3(e4))break;e4.remove(),t3++}t3>0&&(0,c2.logDebug)(d,"Removed trailing headings:",t3)}function p(e3){for(;;){let t3=e3.firstChild;for(;t3&&(0,c2.isTextNode)(t3)&&!(t3.textContent||"").trim();)t3=t3.nextSibling;if(!t3||!(0,c2.isElement)(t3)||t3.tagName.toLowerCase()!=="hr")break;t3.remove()}for(;;){let t3=e3.lastChild;for(;t3&&(0,c2.isTextNode)(t3)&&!(t3.textContent||"").trim();)t3=t3.previousSibling;if(!t3||!(0,c2.isElement)(t3)||t3.tagName.toLowerCase()!=="hr")break;t3.remove()}for(let t3 of e3.querySelectorAll("hr")){if(!t3.parentNode)continue;let e4=t3.nextSibling;for(;e4;)if(!(0,c2.isTextNode)(e4)||(e4.textContent||"").trim()){if(!(0,c2.isElement)(e4)||e4.tagName!=="HR")break;{let t4=e4.nextSibling;e4.remove(),e4=t4}}else e4=e4.nextSibling}}function f(e3,t3){let r3=0,o2=e4=>{if((0,c2.isSVGElement)(e4))return void(!t3&&e4.hasAttribute("class")&&(e4.removeAttribute("class"),r3++));let o3=Array.from(e4.attributes),i2=e4.tagName.toLowerCase();o3.forEach((o4=>{let a2=o4.name.toLowerCase(),s2=o4.value;a2==="id"&&(s2.startsWith("fnref:")||s2.startsWith("fn:")||s2==="footnotes")||a2==="class"&&(i2==="code"&&s2.startsWith("language-")||s2==="footnote-backref"||/^callout(?:-|$)/.test(s2))||(t3?n2.ALLOWED_ATTRIBUTES.has(a2)||n2.ALLOWED_ATTRIBUTES_DEBUG.has(a2)||a2.startsWith("data-")||(e4.removeAttribute(o4.name),r3++):n2.ALLOWED_ATTRIBUTES.has(a2)||(e4.removeAttribute(o4.name),r3++))}))};o2(e3),e3.querySelectorAll("*").forEach(o2),(0,c2.logDebug)(d,"Stripped attributes:",r3)}function g(e3){for(var t3;e3.firstChild;)(t3=e3.parentNode)===null||t3===void 0||t3.insertBefore(e3.firstChild,e3);e3.remove()}let b=/(?:^|\s)block(?:\s|$)/,x=/display\s*:\s*block/i,v=new Set(["p","h1","h2","h3","h4","h5","h6","li","blockquote"]),y=/light-dark\(\s*([^,]+?)\s*,\s*[^)]+?\)/g,w=/var\(--([^,)]+)(?:,\s*([^)]+))?\)/,A=["fill","stroke","color","stop-color","flood-color","lighting-color"],C=new Set(["path","rect","circle","ellipse","polygon"]),E=new Set(["line","polyline"]),S=new Set(["text","tspan"]),_="defs, clipPath, mask, pattern, marker";function T(e3,t3){let r3=e3.getAttribute("style");return!!r3&&new RegExp(`(?:^|;)\\s*${t3}\\s*:`).test(r3)}function q(e3){if(e3.querySelector("style"))return;let t3=Array.from(e3.querySelectorAll("*")),r3=!1;for(let e4 of t3){let t4=e4.tagName.toLowerCase();if(C.has(t4)&&e4.getAttribute("class")&&!e4.closest(_)&&!e4.hasAttribute("fill")&&!T(e4,"fill")){r3=!0;break}}if(r3)for(let e4 of t3){let t4=e4.tagName.toLowerCase(),r4=C.has(t4),n3=E.has(t4),o2=S.has(t4);if(!r4&&!n3&&!o2||!e4.getAttribute("class")||e4.closest(_))continue;if(o2){e4.hasAttribute("fill")||T(e4,"fill")||e4.setAttribute("fill","currentColor");continue}let i2=e4.hasAttribute("fill")&&e4.getAttribute("fill")!=="none",a2=e4.hasAttribute("stroke")||T(e4,"stroke");if(!r4||e4.hasAttribute("fill")||T(e4,"fill")||e4.setAttribute("fill","none"),!a2){if(n3)e4.setAttribute("stroke","currentColor"),e4.hasAttribute("stroke-opacity")||e4.setAttribute("stroke-opacity","0.2");else if(r4&&!i2){let t5=e4.getAttribute("d")||"";/Z\s*$/i.test(t5.trim())||e4.setAttribute("stroke","currentColor")}}}}function k(e3){var t3;let r3=e3.getAttribute("class");if(!r3)return;let o2=r3.split(/\s+/),i2=[],a2=[];for(let r4 of o2){let o3=r4.match(n2.TW_COLOR_CLASS_RE);if(o3){let[,r5,i3,a3,s2]=o3,l2=(t3=n2.TAILWIND_COLORS[i3])===null||t3===void 0?void 0:t3[a3];if(l2){if(s2){let t4=parseInt(s2)/100,n3=parseInt(l2.slice(1,3),16),o4=parseInt(l2.slice(3,5),16),i4=parseInt(l2.slice(5,7),16);e3.setAttribute(r5,`rgba(${n3},${o4},${i4},${t4})`)}else e3.setAttribute(r5,l2);continue}}o3=r4.match(n2.TW_SPECIAL_CLASS_RE),o3?e3.setAttribute(o3[1],n2.TAILWIND_SPECIAL[o3[2]]):(o3=r4.match(n2.TW_ARBITRARY_RE),!o3||o3[1].startsWith("#")||o3[1].startsWith("rgb")||o3[1].startsWith("hsl")?r4!=="font-semibold"?r4!=="font-bold"?r4!=="font-medium"?r4!=="font-mono"?i2.push(r4):a2.push("font-family:monospace"):a2.push("font-weight:500"):a2.push("font-weight:700"):a2.push("font-weight:600"):a2.push(`font-size:${o3[1]}`))}if(i2.length!==o2.length&&(i2.length>0?e3.setAttribute("class",i2.join(" ")):e3.removeAttribute("class"),a2.length>0)){let t4=e3.getAttribute("style")||"",r4=t4&&!t4.endsWith(";")?";":"";e3.setAttribute("style",t4+r4+a2.join(";"))}}function N(e3){let t3=0,r3=Date.now(),o2=Array.from(e3.getElementsByTagName("br")),i2=[],a2=()=>{if(i2.length>2)for(let e4=2;e4<i2.length;e4++)i2[e4].remove(),t3++;i2=[]};o2.forEach((e4=>{let t4=!1;if(i2.length>0){let r4=i2[i2.length-1];L(e4,"previous")===r4&&(t4=!0)}t4?i2.push(e4):(a2(),i2=[e4])})),a2();let s2=Array.from(e3.getElementsByTagName("br"));for(let e4 of s2){let r4=e4.parentElement;if(!r4||e4.closest("pre, code"))continue;let o3=r4.tagName.toLowerCase();if(n2.BLOCK_LEVEL_ELEMENTS.has(o3)||o3==="body"){let r5=[e4],o4=L(e4,"next");for(;o4&&(0,c2.isElement)(o4)&&o4.tagName.toLowerCase()==="br";)r5.push(o4),o4=L(o4,"next");let i3=L(r5[0],"previous"),a3=L(r5[r5.length-1],"next"),s3=i3&&(0,c2.isElement)(i3)&&n2.BLOCK_LEVEL_ELEMENTS.has(i3.tagName.toLowerCase()),l3=a3&&(0,c2.isElement)(a3)&&n2.BLOCK_LEVEL_ELEMENTS.has(a3.tagName.toLowerCase());if(s3&&l3||s3&&!a3||!i3){for(let e5 of r5)e5.remove(),t3++;continue}}n2.BLOCK_LEVEL_ELEMENTS.has(o3)&&(L(e4,"next")||(e4.remove(),t3++))}let l2=Date.now();(0,c2.logDebug)(d,"Standardized br elements:",{removed:t3,processingTime:`${(l2-r3).toFixed(2)}ms`})}function L(e3,t3){var r3;let n3=t3==="previous"?"previousSibling":"nextSibling",o2=e3[n3];for(;o2&&(0,c2.isTextNode)(o2)&&!(!((r3=o2.textContent)===null||r3===void 0)&&r3.trim());)o2=o2[n3];return o2}function O(e3,t3,r3){let n3=r3==="leading"?e3.firstChild:e3.lastChild;if(!n3||!(0,c2.isTextNode)(n3))return 0;let o2=n3.textContent||"",i2=r3==="leading"?o2.replace(/^\s+/,""):o2.replace(/\s+$/,"");if(i2===o2||!e3.parentNode)return 0;n3.textContent=i2;let a2=r3==="leading"?e3.previousSibling:e3.nextSibling;if(!(a2&&(0,c2.isTextNode)(a2)&&(r3==="leading"?(a2.textContent||"").endsWith(" "):(a2.textContent||"").startsWith(" ")))){let n4=r3==="leading"?e3:e3.nextSibling;e3.parentNode.insertBefore(t3.createTextNode(" "),n4)}return 1}function D(e3,t3){let r3=0,o2=Date.now(),i2=!0;function a2(e4){var t4;for(let r4 of e4.childNodes)if((0,c2.isTextNode)(r4)&&(!((t4=r4.textContent)===null||t4===void 0)&&t4.trim())||(0,c2.isElement)(r4)&&n2.INLINE_ELEMENTS.has(r4.nodeName.toLowerCase()))return!0;return!1}let s2=e4=>{var t4;let r4=e4.tagName.toLowerCase();if((0,c2.isSVGElement)(e4)||n2.PRESERVE_ELEMENTS.has(r4)||e4.getAttribute("data-callout")||!((t4=e4.closest)===null||t4===void 0)&&t4.call(e4,"[data-callout]"))return!0;let o3=e4.getAttribute("role");if(o3&&["article","main","navigation","banner","contentinfo"].includes(o3))return!0;let i3=(0,u.getClassName)(e4);return i3&&i3.toLowerCase().match(/(?:article|main|content|footnote|reference|bibliography)/)?!0:!!Array.from(e4.children).some((e5=>n2.PRESERVE_ELEMENTS.has(e5.tagName.toLowerCase())||e5.getAttribute("role")==="article"||!!(0,u.getClassName)(e5)&&(0,u.getClassName)(e5).toLowerCase().match(/(?:article|main|content|footnote|reference|bibliography)/)))},l2=e4=>{var t4;if(a2(e4))return!1;if(!(!((t4=e4.textContent)===null||t4===void 0)&&t4.trim()))return!0;let r4=Array.from(e4.children);if(r4.length===0||r4.every((e5=>n2.BLOCK_LEVEL_ELEMENTS.has(e5.tagName.toLowerCase()))))return!0;let o3=(0,u.getClassName)(e4).toLowerCase();return/(?:wrapper|container|layout|row|col|grid|flex|outer|inner|content-area)/i.test(o3)||Array.from(e4.childNodes).filter((e5=>{var t5;return(0,c2.isTextNode)(e5)&&((t5=e5.textContent)===null||t5===void 0?void 0:t5.trim())})).length===0?!0:!(!(r4.length>0)||r4.some((e5=>{let t5=e5.tagName.toLowerCase();return n2.INLINE_ELEMENTS.has(t5)})))},h3=o3=>{var i3,u2;if(!o3.parentNode||s2(o3))return!1;let d2=o3.tagName.toLowerCase();if(!n2.ALLOWED_EMPTY_ELEMENTS.has(d2)&&!o3.children.length&&!(!((i3=o3.textContent)===null||i3===void 0)&&i3.trim()))return o3.remove(),r3++,!0;if(o3.parentElement===e3){let e4=Array.from(o3.children);if(e4.length>0&&!e4.some((e5=>{let t4=e5.tagName.toLowerCase();return n2.INLINE_ELEMENTS.has(t4)}))){let e5=t3.createDocumentFragment();for(;o3.firstChild;)e5.appendChild(o3.firstChild);return o3.replaceWith(e5),r3++,!0}}if(l2(o3)){let e4=t3.createDocumentFragment();for(;o3.firstChild;)e4.appendChild(o3.firstChild);return o3.replaceWith(e4),r3++,!0}let h4=Array.from(o3.childNodes);if(h4.length>0&&h4.every((e4=>(0,c2.isTextNode)(e4)||(0,c2.isElement)(e4)&&n2.INLINE_ELEMENTS.has(e4.nodeName.toLowerCase())))&&(!((u2=o3.textContent)===null||u2===void 0)&&u2.trim())){let e4=t3.createElement("p");for(;o3.firstChild;)e4.appendChild(o3.firstChild);return o3.replaceWith(e4),r3++,!0}if(o3.children.length===1){let e4=o3.firstElementChild,t4=e4.tagName.toLowerCase();if(n2.BLOCK_ELEMENTS_SET.has(t4)&&!s2(e4))return o3.replaceWith(e4),r3++,!0}let m3=0,p3=o3.parentElement;for(;p3;){let e4=p3.tagName.toLowerCase();n2.BLOCK_ELEMENTS_SET.has(e4)&&m3++,p3=p3.parentElement}if(m3>0&&!a2(o3)){let e4=t3.createDocumentFragment();for(;o3.firstChild;)e4.appendChild(o3.firstChild);return o3.replaceWith(e4),r3++,!0}return!1},m2=()=>{let t4=Array.from(e3.children).filter((e4=>n2.BLOCK_ELEMENTS_SET.has(e4.tagName.toLowerCase()))),r4=!1;return t4.forEach((e4=>{h3(e4)&&(r4=!0)})),r4},p2=()=>{let t4=Array.from(e3.querySelectorAll(n2.BLOCK_ELEMENTS_SELECTOR)).sort(((e4,t5)=>{let r5=e5=>{let t6=0,r6=e5.parentElement;for(;r6;){let e6=r6.tagName.toLowerCase();n2.BLOCK_ELEMENTS_SET.has(e6)&&t6++,r6=r6.parentElement}return t6};return r5(t5)-r5(e4)})),r4=!1;return t4.forEach((e4=>{h3(e4)&&(r4=!0)})),r4},f2=()=>{let o3=Array.from(e3.querySelectorAll(n2.BLOCK_ELEMENTS_SELECTOR)),i3=!1;return o3.forEach((e4=>{let n3=Array.from(e4.children);if(n3.length>0&&n3.every((e5=>e5.tagName.toLowerCase()==="p"))||!s2(e4)&&l2(e4)){let n4=t3.createDocumentFragment();for(;e4.firstChild;)n4.appendChild(e4.firstChild);e4.replaceWith(n4),r3++,i3=!0}})),i3};do i2=!1,m2()&&(i2=!0),p2()&&(i2=!0),f2()&&(i2=!0);while(i2);let g2=Date.now();(0,c2.logDebug)(d,"Flattened wrapper elements:",{count:r3,processingTime:`${(g2-o2).toFixed(2)}ms`})}},2552(e2,t2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.CJK_CHAR_RANGES=void 0,t2.isElement=function(e3){return e3.nodeType===r2},t2.isTextNode=function(e3){return e3.nodeType===n2},t2.isCommentNode=function(e3){return e3.nodeType===o},t2.isSVGElement=function(e3){var t3;return((t3=e3.closest)===null||t3===void 0?void 0:t3.call(e3,"svg"))!==null||e3.namespaceURI==="http://www.w3.org/2000/svg"},t2.getComputedStyle=function(e3){let t3=i(e3.ownerDocument);return t3&&typeof t3.getComputedStyle=="function"?t3.getComputedStyle(e3):null},t2.getWindow=i,t2.textPreview=function(e3){return(e3.textContent||"").trim().substring(0,200)},t2.logDebug=function(e3,t3,...r3){e3&&console.log("Defuddle:",t3,...r3)},t2.normalizeText=function(e3){return e3.replace(/\u00A0/g," ").replace(/[\u2018\u2019\u201A\u201B]/g,"'").replace(/[\u2012\u2013\u2014\u2015]/g,"-").replace(/[\u201C\u201D\u201E\u201F]/g,'"').replace(/\u2026/g,"...").replace(/\s+/g," ").trim().toLowerCase()},t2.countWords=function(e3){if(!e3)return 0;let t3=0,r3=0,n3=!1;for(let o2=0;o2<e3.length;o2++){let i2=e3.charCodeAt(o2);i2>=12352&&i2<=12447||i2>=12448&&i2<=12543||i2>=13312&&i2<=19903||i2>=19968&&i2<=40959||i2>=63744&&i2<=64255||i2>=44032&&i2<=55215?(t3++,n3=!1):i2<=32?n3=!1:n3||(r3++,n3=!0)}return t3+r3};let r2=1,n2=3,o=8;function i(e3){return e3.defaultView?e3.defaultView:e3.ownerWindow?e3.ownerWindow:e3.window?e3.window:null}t2.CJK_CHAR_RANGES="\\u3040-\\u309f\\u30a0-\\u30ff\\u3400-\\u4dbf\\u4e00-\\u9fff\\uf900-\\ufaff\\uac00-\\ud7af"},6618(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.bbcodeToHtml=function(e3){let t3=e3;return t3=t3.replace(/\[h1\]([\s\S]*?)\[\/h1\]/gi,"<h1>$1</h1>"),t3=t3.replace(/\[h2\]([\s\S]*?)\[\/h2\]/gi,"<h2>$1</h2>"),t3=t3.replace(/\[h3\]([\s\S]*?)\[\/h3\]/gi,"<h3>$1</h3>"),t3=t3.replace(/\[b\]([\s\S]*?)\[\/b\]/gi,"<strong>$1</strong>"),t3=t3.replace(/\[i\]([\s\S]*?)\[\/i\]/gi,"<em>$1</em>"),t3=t3.replace(/\[u\]([\s\S]*?)\[\/u\]/gi,"<u>$1</u>"),t3=t3.replace(/\[s\]([\s\S]*?)\[\/s\]/gi,"<s>$1</s>"),t3=t3.replace(/\[url=["']?([^"'\]]+)["']?\]([\s\S]*?)\[\/url\]/gi,((e4,t4,r3)=>(0,n2.isDangerousUrl)(t4)?r3:`<a href="${t4}">${r3}</a>`)),t3=t3.replace(/\[img\]([\s\S]*?)\[\/img\]/gi,'<img src="$1">'),t3=t3.replace(/\[previewyoutube=["']?([^;'"]+)[^"'\]]*["']?\]\[\/previewyoutube\]/gi,'<img src="https://www.youtube.com/watch?v=$1">'),t3=t3.replace(/\[list\]([\s\S]*?)\[\/list\]/gi,((e4,t4)=>`<ul>${t4.replace(/\[\*\]([\s\S]*?)(?=\[\*\]|\[\/list\]|$)/gi,"<li>$1</li>")}</ul>`)),t3=t3.replace(/\[olist\]([\s\S]*?)\[\/olist\]/gi,((e4,t4)=>`<ol>${t4.replace(/\[\*\]([\s\S]*?)(?=\[\*\]|\[\/olist\]|$)/gi,"<li>$1</li>")}</ol>`)),t3=t3.replace(/\[quote(?:=[^\]]+)?\]([\s\S]*?)\[\/quote\]/gi,"<blockquote>$1</blockquote>"),t3=t3.replace(/\[code\]([\s\S]*?)\[\/code\]/gi,"<pre><code>$1</code></pre>"),t3=t3.replace(/\[spoiler\]([\s\S]*?)\[\/spoiler\]/gi,"<details><summary>Spoiler</summary>$1</details>"),t3=t3.replace(/\[p\]([\s\S]*?)\[\/p\]/gi,((e4,t4)=>`<p>${t4.replace(/\n/g,"<br>")}</p>`)),t3=t3.replace(/\n/g,"<br>"),t3=t3.replace(/\[[^\]]+\]/g,""),t3};let n2=r2(639)},6077(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.buildContentHtml=function(e3,t3,r3){return`
<article data-defuddle>
<div class="${e3} post">
<div class="post-content">
${t3}
</div>
</div>
${r3?`
<hr>
<div class="${e3} comments">
<h2>Comments</h2>
${r3}
</div>
`:""}
</article>
`.trim()},t2.buildCommentTree=function(e3){var t3,r3,n3;let i=[],a=[];for(let s of e3){let e4=(t3=s.depth)!==null&&t3!==void 0?t3:0;if(e4===0){for(;a.length>0;)i.push("</blockquote>"),a.pop();i.push("<blockquote>"),a.push(0)}else{if(e4<((r3=a[a.length-1])!==null&&r3!==void 0?r3:-1))for(;a.length>0&&a[a.length-1]>=e4;)i.push("</blockquote>"),a.pop();e4>((n3=a[a.length-1])!==null&&n3!==void 0?n3:-1)&&(i.push("<blockquote>"),a.push(e4))}i.push(o(s))}for(;a.length>0;)i.push("</blockquote>"),a.pop();return i.join("")},t2.buildComment=o,t2.buildQuotedPost=function(e3){let t3="";e3.author&&(t3+=`<p><strong>${(0,n2.escapeHtml)(e3.author)}</strong>`,e3.date&&(t3+=` \xB7 ${(0,n2.escapeHtml)(e3.date)}`),t3+="</p>");let r3="";if(e3.url){let t4=(0,n2.isDangerousUrl)(e3.url)?"":e3.url;t4&&(r3=`
<p><a href="${(0,n2.escapeHtml)(t4)}">${(0,n2.escapeHtml)(t4)}</a></p>`)}return`<blockquote class="quoted-post">${t3}${e3.content}${r3}</blockquote>`};let n2=r2(639);function o(e3){let t3=`<span class="comment-author"><strong>${(0,n2.escapeHtml)(e3.author)}</strong></span>`,r3=e3.url&&!(0,n2.isDangerousUrl)(e3.url)?e3.url:"";return`<div class="comment">
<div class="comment-metadata">
${t3} \xB7 ${r3?`<a href="${(0,n2.escapeHtml)(r3)}" class="comment-link">${(0,n2.escapeHtml)(e3.date)}</a>`:`<span class="comment-date">${(0,n2.escapeHtml)(e3.date)}</span>`}${e3.score?` \xB7 <span class="comment-points">${(0,n2.escapeHtml)(e3.score)}</span>`:""}
</div>
<div class="comment-content">${e3.content}</div>
</div>`}},639(e2,t2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.transferContent=function(e3,t3){if("replaceChildren"in t3)t3.replaceChildren();else for(;t3.firstChild;)t3.removeChild(t3.firstChild);for(;e3.firstChild;)t3.appendChild(e3.firstChild)},t2.serializeHTML=function(e3){return e3.innerHTML},t2.decodeHTMLEntities=function(e3,t3){let r3=e3.createElement("textarea");return r3.innerHTML=t3,r3.value},t2.escapeHtml=function(e3){return e3.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},t2.getClassName=function(e3){return typeof e3.className=="string"?e3.className:e3.getAttribute("class")||""},t2.hasResponsiveShowClass=function(e3){return e3.split(/\s+/).some((e4=>r2.test(e4)))},t2.isDangerousUrl=function(e3){let t3=e3.replace(/[\s\u0000-\u001F]+/g,"").toLowerCase();return t3.startsWith("javascript:")||t3.startsWith("data:text/html")},t2.isDirectTableChild=function(e3,t3){let r3=e3.parentNode;for(;r3&&r3!==t3;){if(r3.nodeName==="TABLE")return!1;r3=r3.parentNode}return r3===t3},t2.parseHTML=function(e3,t3){if(!t3)return e3.createDocumentFragment();let r3=e3.createElement("template");if(r3.innerHTML=t3,r3.content)return r3.content;let n2=e3.createElement("div");n2.innerHTML=t3;let o=e3.createDocumentFragment();for(;n2.firstChild;)o.appendChild(n2.firstChild);return o};let r2=/^(sm|md|lg|xl|2xl|min-\[|max-\[):(?:block|flex|grid|inline|table|contents)/},1497(e2,t2,r2){"use strict";Object.defineProperty(t2,"__esModule",{value:!0}),t2.formatTimestamp=o,t2.buildTranscript=function(e3,t3,r3=[]){let i=[...r3].sort(((e4,t4)=>e4.start-t4.start)),a=0,s=[],l=[];for(let e4 of t3){for(;a<i.length&&i[a].start<=e4.start;){let e5=i[a].title;s.push(`<h3>${(0,n2.escapeHtml)(e5)}</h3>`),l.length>0&&l.push(""),l.push(`### ${e5}`),l.push(""),a++}let t4=o(e4.start),r4=e4.speaker!==void 0?` speaker-${e4.speaker}`:"",c2=`<strong><span class="timestamp" data-timestamp="${e4.start}">${t4}</span></strong>`;s.push(`<p class="transcript-segment${r4}">${c2} \xB7 ${(0,n2.escapeHtml)(e4.text)}</p>`),e4.speakerChange&&l.length>0&&l.push(""),l.push(`**${t4}** \xB7 ${e4.text}`)}return{html:`<div class="${e3} transcript">
<h2>Transcript</h2>
${s.join(`
`)}
</div>`,text:l.join(`
`)}};let n2=r2(639);function o(e3){let t3=Math.floor(e3/3600),r3=Math.floor(e3%3600/60),n3=Math.floor(e3%60);return t3>0?`${t3}:${String(r3).padStart(2,"0")}:${String(n3).padStart(2,"0")}`:`${r3}:${String(n3).padStart(2,"0")}`}},8431(e2,t2,r2){"use strict";function n2(e3,t3){return Array(t3+1).join(e3)}r2.r(t2),r2.d(t2,{default:()=>D});var o=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function i(e3){return c2(e3,o)}var a=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function s(e3){return c2(e3,a)}var l=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function c2(e3,t3){return t3.indexOf(e3.nodeName)>=0}function u(e3,t3){return e3.getElementsByTagName&&t3.some((function(t4){return e3.getElementsByTagName(t4).length}))}var d={};function h2(e3){return e3?e3.replace(/(\n+\s*)+/g,`
`):""}function m(e3){for(var t3 in this.options=e3,this._keep=[],this._remove=[],this.blankRule={replacement:e3.blankReplacement},this.keepReplacement=e3.keepReplacement,this.defaultRule={replacement:e3.defaultReplacement},this.array=[],e3.rules)this.array.push(e3.rules[t3])}function p(e3,t3,r3){for(var n3=0;n3<e3.length;n3++){var o2=e3[n3];if(f(o2,t3,r3))return o2}}function f(e3,t3,r3){var n3=e3.filter;if(typeof n3=="string"){if(n3===t3.nodeName.toLowerCase())return!0}else if(Array.isArray(n3)){if(n3.indexOf(t3.nodeName.toLowerCase())>-1)return!0}else{if(typeof n3!="function")throw new TypeError("`filter` needs to be a string, array, or function");if(n3.call(e3,t3,r3))return!0}}function g(e3){var t3=e3.nextSibling||e3.parentNode;return e3.parentNode.removeChild(e3),t3}function b(e3,t3,r3){return e3&&e3.parentNode===t3||r3(t3)?t3.nextSibling||t3.parentNode:t3.firstChild||t3.nextSibling||t3.parentNode}d.paragraph={filter:"p",replacement:function(e3){return`
`+e3+`
`}},d.lineBreak={filter:"br",replacement:function(e3,t3,r3){return r3.br+`
`}},d.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e3,t3,r3){var o2=Number(t3.nodeName.charAt(1));return r3.headingStyle==="setext"&&o2<3?`
`+e3+`
`+n2(o2===1?"=":"-",e3.length)+`
`:`
`+n2("#",o2)+" "+e3+`
`}},d.blockquote={filter:"blockquote",replacement:function(e3){return`
`+(e3=(e3=e3.replace(/^\n+|\n+$/g,"")).replace(/^/gm,"> "))+`
`}},d.list={filter:["ul","ol"],replacement:function(e3,t3){var r3=t3.parentNode;return r3.nodeName==="LI"&&r3.lastElementChild===t3?`
`+e3:`
`+e3+`
`}},d.listItem={filter:"li",replacement:function(e3,t3,r3){e3=e3.replace(/^\n+/,"").replace(/\n+$/,`
`).replace(/\n/gm,`
`);var n3=r3.bulletListMarker+" ",o2=t3.parentNode;if(o2.nodeName==="OL"){var i2=o2.getAttribute("start"),a2=Array.prototype.indexOf.call(o2.children,t3);n3=(i2?Number(i2)+a2:a2+1)+". "}return n3+e3+(t3.nextSibling&&!/\n$/.test(e3)?`
`:"")}},d.indentedCodeBlock={filter:function(e3,t3){return t3.codeBlockStyle==="indented"&&e3.nodeName==="PRE"&&e3.firstChild&&e3.firstChild.nodeName==="CODE"},replacement:function(e3,t3,r3){return`
`+t3.firstChild.textContent.replace(/\n/g,`
`)+`
`}},d.fencedCodeBlock={filter:function(e3,t3){return t3.codeBlockStyle==="fenced"&&e3.nodeName==="PRE"&&e3.firstChild&&e3.firstChild.nodeName==="CODE"},replacement:function(e3,t3,r3){for(var o2,i2=((t3.firstChild.getAttribute("class")||"").match(/language-(\S+)/)||[null,""])[1],a2=t3.firstChild.textContent,s2=r3.fence.charAt(0),l2=3,c3=new RegExp("^"+s2+"{3,}","gm");o2=c3.exec(a2);)o2[0].length>=l2&&(l2=o2[0].length+1);var u2=n2(s2,l2);return`
`+u2+i2+`
`+a2.replace(/\n$/,"")+`
`+u2+`
`}},d.horizontalRule={filter:"hr",replacement:function(e3,t3,r3){return`
`+r3.hr+`
`}},d.inlineLink={filter:function(e3,t3){return t3.linkStyle==="inlined"&&e3.nodeName==="A"&&e3.getAttribute("href")},replacement:function(e3,t3){var r3=t3.getAttribute("href");r3&&(r3=r3.replace(/([()])/g,"\\$1"));var n3=h2(t3.getAttribute("title"));return n3&&(n3=' "'+n3.replace(/"/g,'\\"')+'"'),"["+e3+"]("+r3+n3+")"}},d.referenceLink={filter:function(e3,t3){return t3.linkStyle==="referenced"&&e3.nodeName==="A"&&e3.getAttribute("href")},replacement:function(e3,t3,r3){var n3,o2,i2=t3.getAttribute("href"),a2=h2(t3.getAttribute("title"));switch(a2&&(a2=' "'+a2+'"'),r3.linkReferenceStyle){case"collapsed":n3="["+e3+"][]",o2="["+e3+"]: "+i2+a2;break;case"shortcut":n3="["+e3+"]",o2="["+e3+"]: "+i2+a2;break;default:var s2=this.references.length+1;n3="["+e3+"]["+s2+"]",o2="["+s2+"]: "+i2+a2}return this.references.push(o2),n3},references:[],append:function(e3){var t3="";return this.references.length&&(t3=`
`+this.references.join(`
`)+`
`,this.references=[]),t3}},d.emphasis={filter:["em","i"],replacement:function(e3,t3,r3){return e3.trim()?r3.emDelimiter+e3+r3.emDelimiter:""}},d.strong={filter:["strong","b"],replacement:function(e3,t3,r3){return e3.trim()?r3.strongDelimiter+e3+r3.strongDelimiter:""}},d.code={filter:function(e3){var t3=e3.previousSibling||e3.nextSibling,r3=e3.parentNode.nodeName==="PRE"&&!t3;return e3.nodeName==="CODE"&&!r3},replacement:function(e3){if(!e3)return"";e3=e3.replace(/\r?\n|\r/g," ");for(var t3=/^`|^ .*?[^ ].* $|`$/.test(e3)?" ":"",r3="`",n3=e3.match(/`+/gm)||[];n3.indexOf(r3)!==-1;)r3+="`";return r3+t3+e3+t3+r3}},d.image={filter:"img",replacement:function(e3,t3){var r3=h2(t3.getAttribute("alt")),n3=t3.getAttribute("src")||"",o2=h2(t3.getAttribute("title"));return n3?"!["+r3+"]("+n3+(o2?' "'+o2+'"':"")+")":""}},m.prototype={add:function(e3,t3){this.array.unshift(t3)},keep:function(e3){this._keep.unshift({filter:e3,replacement:this.keepReplacement})},remove:function(e3){this._remove.unshift({filter:e3,replacement:function(){return""}})},forNode:function(e3){return e3.isBlank?this.blankRule:(t3=p(this.array,e3,this.options))||(t3=p(this._keep,e3,this.options))||(t3=p(this._remove,e3,this.options))?t3:this.defaultRule;var t3},forEach:function(e3){for(var t3=0;t3<this.array.length;t3++)e3(this.array[t3],t3)}};var x=typeof window!="undefined"?window:{},v,y,w=(function(){var e3=x.DOMParser,t3=!1;try{new e3().parseFromString("","text/html")&&(t3=!0)}catch(e4){}return t3})()?x.DOMParser:(v=function(){},(function(){var e3=!1;try{document.implementation.createHTMLDocument("").open()}catch(t3){x.ActiveXObject&&(e3=!0)}return e3})()?v.prototype.parseFromString=function(e3){var t3=new window.ActiveXObject("htmlfile");return t3.designMode="on",t3.open(),t3.write(e3),t3.close(),t3}:v.prototype.parseFromString=function(e3){var t3=document.implementation.createHTMLDocument("");return t3.open(),t3.write(e3),t3.close(),t3},v);function A(e3,t3){var r3;return typeof e3=="string"?r3=(y=y||new w).parseFromString('<x-turndown id="turndown-root">'+e3+"</x-turndown>","text/html").getElementById("turndown-root"):r3=e3.cloneNode(!0),(function(e4){var t4=e4.element,r4=e4.isBlock,n3=e4.isVoid,o2=e4.isPre||function(e5){return e5.nodeName==="PRE"};if(t4.firstChild&&!o2(t4)){for(var i2=null,a2=!1,s2=null,l2=b(s2,t4,o2);l2!==t4;){if(l2.nodeType===3||l2.nodeType===4){var c3=l2.data.replace(/[ \r\n\t]+/g," ");if(i2&&!/ $/.test(i2.data)||a2||c3[0]!==" "||(c3=c3.substr(1)),!c3){l2=g(l2);continue}l2.data=c3,i2=l2}else{if(l2.nodeType!==1){l2=g(l2);continue}r4(l2)||l2.nodeName==="BR"?(i2&&(i2.data=i2.data.replace(/ $/,"")),i2=null,a2=!1):n3(l2)||o2(l2)?(i2=null,a2=!0):i2&&(a2=!1)}var u2=b(s2,l2,o2);s2=l2,l2=u2}i2&&(i2.data=i2.data.replace(/ $/,""),i2.data||g(i2))}})({element:r3,isBlock:i,isVoid:s,isPre:t3.preformattedCode?C:null}),r3}function C(e3){return e3.nodeName==="PRE"||e3.nodeName==="CODE"}function E(e3,t3){return e3.isBlock=i(e3),e3.isCode=e3.nodeName==="CODE"||e3.parentNode.isCode,e3.isBlank=(function(e4){return!s(e4)&&!(function(e5){return c2(e5,l)})(e4)&&/^\s*$/i.test(e4.textContent)&&!(function(e5){return u(e5,a)})(e4)&&!(function(e5){return u(e5,l)})(e4)})(e3),e3.flankingWhitespace=(function(e4,t4){if(e4.isBlock||t4.preformattedCode&&e4.isCode)return{leading:"",trailing:""};var r3=(n3=e4.textContent,o2=n3.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/),{leading:o2[1],leadingAscii:o2[2],leadingNonAscii:o2[3],trailing:o2[4],trailingNonAscii:o2[5],trailingAscii:o2[6]}),n3,o2;return r3.leadingAscii&&S("left",e4,t4)&&(r3.leading=r3.leadingNonAscii),r3.trailingAscii&&S("right",e4,t4)&&(r3.trailing=r3.trailingNonAscii),{leading:r3.leading,trailing:r3.trailing}})(e3,t3),e3}function S(e3,t3,r3){var n3,o2,a2;return e3==="left"?(n3=t3.previousSibling,o2=/ $/):(n3=t3.nextSibling,o2=/^ /),n3&&(n3.nodeType===3?a2=o2.test(n3.nodeValue):r3.preformattedCode&&n3.nodeName==="CODE"?a2=!1:n3.nodeType!==1||i(n3)||(a2=o2.test(n3.textContent))),a2}var _=Array.prototype.reduce,T=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function q(e3){if(!(this instanceof q))return new q(e3);var t3={rules:d,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(e4,t4){return t4.isBlock?`
`:""},keepReplacement:function(e4,t4){return t4.isBlock?`
`+t4.outerHTML+`
`:t4.outerHTML},defaultReplacement:function(e4,t4){return t4.isBlock?`
`+e4+`
`:e4}};this.options=(function(e4){for(var t4=1;t4<arguments.length;t4++){var r3=arguments[t4];for(var n3 in r3)r3.hasOwnProperty(n3)&&(e4[n3]=r3[n3])}return e4})({},t3,e3),this.rules=new m(this.options)}function k(e3){var t3=this;return _.call(e3.childNodes,(function(e4,r3){var n3="";return(r3=new E(r3,t3.options)).nodeType===3?n3=r3.isCode?r3.nodeValue:t3.escape(r3.nodeValue):r3.nodeType===1&&(n3=L.call(t3,r3)),O(e4,n3)}),"")}function N(e3){var t3=this;return this.rules.forEach((function(r3){typeof r3.append=="function"&&(e3=O(e3,r3.append(t3.options)))})),e3.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function L(e3){var t3=this.rules.forNode(e3),r3=k.call(this,e3),n3=e3.flankingWhitespace;return(n3.leading||n3.trailing)&&(r3=r3.trim()),n3.leading+t3.replacement(r3,e3,this.options)+n3.trailing}function O(e3,t3){var r3=(function(e4){for(var t4=e4.length;t4>0&&e4[t4-1]===`
`;)t4--;return e4.substring(0,t4)})(e3),n3=t3.replace(/^\n*/,""),o2=Math.max(e3.length-r3.length,t3.length-n3.length);return r3+`
`.substring(0,o2)+n3}q.prototype={turndown:function(e3){if(!(function(e4){return e4!=null&&(typeof e4=="string"||e4.nodeType&&(e4.nodeType===1||e4.nodeType===9||e4.nodeType===11))})(e3))throw new TypeError(e3+" is not a string, or an element/document/fragment node.");if(e3==="")return"";var t3=k.call(this,new A(e3,this.options));return N.call(this,t3)},use:function(e3){if(Array.isArray(e3))for(var t3=0;t3<e3.length;t3++)this.use(e3[t3]);else{if(typeof e3!="function")throw new TypeError("plugin must be a Function or an Array of Functions");e3(this)}return this},addRule:function(e3,t3){return this.rules.add(e3,t3),this},keep:function(e3){return this.rules.keep(e3),this},remove:function(e3){return this.rules.remove(e3),this},escape:function(e3){return T.reduce((function(e4,t3){return e4.replace(t3[0],t3[1])}),e3)}};let D=q},5914(e2){"use strict";class t2{constructor(e3,r3){let n3,o2=" "+e3,i2=r3&&r3.loc;if(i2&&i2.start<=i2.end){let e4=i2.lexer.input;n3=i2.start;let t3=i2.end;n3===e4.length?o2+=" at end of input: ":o2+=" at position "+(n3+1)+`:
`;let r4=e4.slice(n3,t3).replace(/[^]/g,"$&\u0332"),a3,s2;a3=n3>15?"\u2026"+e4.slice(n3-15,n3):e4.slice(0,n3),s2=t3+15<e4.length?e4.slice(t3,t3+15)+"\u2026":e4.slice(t3),o2+=a3+r4+s2}let a2=new Error(o2);return a2.name="ParseError",a2.__proto__=t2.prototype,a2.position=n3,a2}}t2.prototype.__proto__=Error.prototype;let r2=function(e3,t3){return e3===void 0?t3:e3},n2=/([A-Z])/g,o=function(e3){return e3.replace(n2,"-$1").toLowerCase()},i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a=/[&><"']/g;function s(e3){return String(e3).replace(a,(e4=>i[e4]))}let l=function(e3){return e3.type==="ordgroup"||e3.type==="color"?e3.body.length===1?l(e3.body[0]):e3:e3.type==="font"?l(e3.body):e3},c2=function(e3){let t3=l(e3);return t3.type==="mathord"||t3.type==="textord"||t3.type==="atom"},u=function(e3){return+e3.toFixed(4)},d="aceg\u0131\u0237mnopqrsuvwxyz\u03B1\u03B3\u03B5\u03B7\u03B9\u03BA\u03BC\u03BD\u03BF\u03C0\u03C1\u03C2\u03C3\u03C4\u03C5\u03C7\u03C9\u03D5\u{1D41A}\u{1D41C}\u{1D41E}\u{1D420}\u{1D426}\u{1D427}\u{1D428}\u{1D429}\u{1D42A}\u{1D42B}\u{1D42C}\u{1D42E}\u{1D42F}\u{1D430}\u{1D431}\u{1D432}\u{1D433}";class h2{constructor(e3){e3=e3||{},this.displayMode=r2(e3.displayMode,!1),this.annotate=r2(e3.annotate,!1),this.leqno=r2(e3.leqno,!1),this.throwOnError=r2(e3.throwOnError,!1),this.errorColor=r2(e3.errorColor,"#b22222"),this.macros=e3.macros||{},this.wrap=r2(e3.wrap,"none"),this.xml=r2(e3.xml,!1),this.colorIsTextColor=r2(e3.colorIsTextColor,!1),this.strict=r2(e3.strict,!1),this.trust=r2(e3.trust,!1),this.maxSize=e3.maxSize===void 0?[1/0,1/0]:Array.isArray(e3.maxSize)?e3.maxSize:[1/0,1/0],this.maxExpand=Math.max(0,r2(e3.maxExpand,1e3))}isTrusted(e3){if(e3.url&&!e3.protocol){let t4=(function(e4){let t5=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e4);return t5?t5[2]!==":"?null:/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t5[1])?t5[1].toLowerCase():null:"_relative"})(e3.url);if(t4==null)return!1;e3.protocol=t4}return!!(typeof this.trust=="function"?this.trust(e3):this.trust)}}let m={},p={};function f({type:e3,names:t3,props:r3,handler:n3,mathmlBuilder:o2}){let i2={type:e3,numArgs:r3.numArgs,argTypes:r3.argTypes,allowedInArgument:!!r3.allowedInArgument,allowedInText:!!r3.allowedInText,allowedInMath:r3.allowedInMath===void 0||r3.allowedInMath,numOptionalArgs:r3.numOptionalArgs||0,infix:!!r3.infix,primitive:!!r3.primitive,handler:n3};for(let e4=0;e4<t3.length;++e4)m[t3[e4]]=i2;e3&&o2&&(p[e3]=o2)}function g({type:e3,mathmlBuilder:t3}){f({type:e3,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},mathmlBuilder:t3})}let b=function(e3){return e3.type==="ordgroup"&&e3.body.length===1?e3.body[0]:e3},x=function(e3){return e3.type==="ordgroup"?e3.body:[e3]};class v{constructor(e3){this.children=e3,this.classes=[],this.style={}}hasClass(e3){return this.classes.includes(e3)}toNode(){let e3=document.createDocumentFragment();for(let t3=0;t3<this.children.length;t3++)e3.appendChild(this.children[t3].toNode());return e3}toMarkup(){let e3="";for(let t3=0;t3<this.children.length;t3++)e3+=this.children[t3].toMarkup();return e3}toText(){return this.children.map((e3=>e3.toText())).join("")}}let y=function(e3){return e3.filter((e4=>e4)).join(" ")},w=function(e3,t3){this.classes=e3||[],this.attributes={},this.style=t3||{}},A=function(e3){let t3=document.createElement(e3);t3.className=y(this.classes);for(let e4 in this.style)Object.prototype.hasOwnProperty.call(this.style,e4)&&(t3.style[e4]=this.style[e4]);for(let e4 in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e4)&&t3.setAttribute(e4,this.attributes[e4]);for(let e4=0;e4<this.children.length;e4++)t3.appendChild(this.children[e4].toNode());return t3},C=function(e3){let t3=`<${e3}`;this.classes.length&&(t3+=` class="${s(y(this.classes))}"`);let r3="";for(let e4 in this.style)Object.prototype.hasOwnProperty.call(this.style,e4)&&(r3+=`${o(e4)}:${this.style[e4]};`);r3&&(t3+=` style="${r3}"`);for(let e4 in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e4)&&(t3+=` ${e4}="${s(this.attributes[e4])}"`);t3+=">";for(let e4=0;e4<this.children.length;e4++)t3+=this.children[e4].toMarkup();return t3+=`</${e3}>`,t3};class E{constructor(e3,t3,r3){w.call(this,e3,r3),this.children=t3||[]}setAttribute(e3,t3){this.attributes[e3]=t3}toNode(){return A.call(this,"span")}toMarkup(){return C.call(this,"span")}}let S=class{constructor(e3){this.text=e3}toNode(){return document.createTextNode(this.text)}toMarkup(){return s(this.text)}};class _{constructor(e3,t3,r3){this.href=e3,this.classes=t3,this.children=r3||[]}toNode(){let e3=document.createElement("a");e3.setAttribute("href",this.href),this.classes.length>0&&(e3.className=y(this.classes));for(let t3=0;t3<this.children.length;t3++)e3.appendChild(this.children[t3].toNode());return e3}toMarkup(){let e3=`<a href='${s(this.href)}'`;this.classes.length>0&&(e3+=` class="${s(y(this.classes))}"`),e3+=">";for(let t3=0;t3<this.children.length;t3++)e3+=this.children[t3].toMarkup();return e3+="</a>",e3}}class T{constructor(e3,t3,r3){this.alt=t3,this.src=e3,this.classes=["mord"],this.style=r3}hasClass(e3){return this.classes.includes(e3)}toNode(){let e3=document.createElement("img");e3.src=this.src,e3.alt=this.alt,e3.className="mord";for(let t3 in this.style)Object.prototype.hasOwnProperty.call(this.style,t3)&&(e3.style[t3]=this.style[t3]);return e3}toMarkup(){let e3=`<img src='${this.src}' alt='${this.alt}'`,t3="";for(let e4 in this.style)Object.prototype.hasOwnProperty.call(this.style,e4)&&(t3+=`${o(e4)}:${this.style[e4]};`);return t3&&(e3+=` style="${s(t3)}"`),e3+=">",e3}}function q(e3){return new v(e3)}class k{constructor(e3,t3,r3,n3){this.type=e3,this.attributes={},this.children=t3||[],this.classes=r3||[],this.style=n3||{},this.label=""}setAttribute(e3,t3){this.attributes[e3]=t3}getAttribute(e3){return this.attributes[e3]}setLabel(e3){this.label=e3}toNode(){let e3=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(let t3 in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t3)&&e3.setAttribute(t3,this.attributes[t3]);this.classes.length>0&&(e3.className=y(this.classes));for(let t3 in this.style)Object.prototype.hasOwnProperty.call(this.style,t3)&&(e3.style[t3]=this.style[t3]);for(let t3=0;t3<this.children.length;t3++)e3.appendChild(this.children[t3].toNode());return e3}toMarkup(){let e3="<"+this.type;for(let t4 in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t4)&&(e3+=" "+t4+'="',e3+=s(this.attributes[t4]),e3+='"');this.classes.length>0&&(e3+=` class="${s(y(this.classes))}"`);let t3="";for(let e4 in this.style)Object.prototype.hasOwnProperty.call(this.style,e4)&&(t3+=`${o(e4)}:${this.style[e4]};`);t3&&(e3+=` style="${t3}"`),e3+=">";for(let t4=0;t4<this.children.length;t4++)e3+=this.children[t4].toMarkup();return e3+="</"+this.type+">",e3}toText(){return this.children.map((e3=>e3.toText())).join("")}}class N{constructor(e3){this.text=e3}toNode(){return document.createTextNode(this.text)}toMarkup(){return s(this.toText())}toText(){return this.text}}let L=e3=>{let t3;return e3.length===1&&e3[0].type==="mrow"?(t3=e3.pop(),t3.type="mstyle"):t3=new k("mstyle",e3),t3},O=e3=>{let t3=0;if(e3.body&&Array.isArray(e3.body))for(let r3 of e3.body)t3+=O(r3);else if(e3.body)t3+=O(e3.body);else if(e3.type==="supsub")t3+=O(e3.base),e3.sub&&(t3+=.7*O(e3.sub)),e3.sup&&(t3+=.7*O(e3.sup));else if(e3.type==="mathord"||e3.type==="textord")for(let r3 of e3.text.split("")){let e4=r3.codePointAt(0);t3+=96<e4&&e4<123||944<e4&&e4<970?.56:47<e4&&e4<58?.5:.92}else t3+=1;return t3},D={widehat:"^",widecheck:"\u02C7",widetilde:"~",wideparen:"\u23DC",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overbracket:"\u23B4",underbracket:"\u23B5",overgroup:"\u23E0",overparen:"\u23DC",undergroup:"\u23E1",underparen:"\u23DD",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xrightleftarrows:"\u21C4",xtofrom:"\u21C4",xleftrightharpoons:"\u21CB",xrightleftharpoons:"\u21CC",yields:"\u2192",yieldsLeft:"\u2190",mesomerism:"\u2194",longrightharpoonup:"\u21C0",longleftharpoondown:"\u21BD",eqrightharpoonup:"\u21C0",eqleftharpoondown:"\u21BD","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"=",yieldsLeftRight:"\u21C4",chemequilibrium:"\u21CC"},M=function(e3){let t3=new N(D[e3.slice(1)]),r3=new k("mo",[t3]);return r3.setAttribute("stretchy","true"),r3},$=["\\widetilde","\\widehat","\\widecheck","\\utilde"],B=e3=>{let t3=M(e3.label);if($.includes(e3.label)){let r3=O(e3.base);1<r3&&r3<1.6?t3.classes.push("tml-crooked-2"):1.6<=r3&&r3<2.5?t3.classes.push("tml-crooked-3"):2.5<=r3&&t3.classes.push("tml-crooked-4")}return t3},P={bin:1,close:1,inner:1,open:1,punct:1,rel:1},I={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},R={math:{},text:{}};function F(e3,t3,r3,n3,o2){R[e3][n3]={group:t3,replace:r3},o2&&r3&&(R[e3][r3]=R[e3][n3])}let j="math",H="text",z2="accent-token",U="bin",W="close",G2="inner",V="mathord",X="op-token",J="open",Z="punct",K="rel",Y="spacing",Q="textord";F(j,K,"\u2261","\\equiv",!0),F(j,K,"\u227A","\\prec",!0),F(j,K,"\u227B","\\succ",!0),F(j,K,"\u223C","\\sim",!0),F(j,K,"\u27C2","\\perp",!0),F(j,K,"\u2AAF","\\preceq",!0),F(j,K,"\u2AB0","\\succeq",!0),F(j,K,"\u2243","\\simeq",!0),F(j,K,"\u224C","\\backcong",!0),F(j,K,"|","\\mid",!0),F(j,K,"\u226A","\\ll",!0),F(j,K,"\u226B","\\gg",!0),F(j,K,"\u224D","\\asymp",!0),F(j,K,"\u2225","\\parallel"),F(j,K,"\u2323","\\smile",!0),F(j,K,"\u2291","\\sqsubseteq",!0),F(j,K,"\u2292","\\sqsupseteq",!0),F(j,K,"\u2250","\\doteq",!0),F(j,K,"\u2322","\\frown",!0),F(j,K,"\u220B","\\ni",!0),F(j,K,"\u220C","\\notni",!0),F(j,K,"\u221D","\\propto",!0),F(j,K,"\u22A2","\\vdash",!0),F(j,K,"\u22A3","\\dashv",!0),F(j,K,"\u220B","\\owns"),F(j,K,"\u2258","\\arceq",!0),F(j,K,"\u2259","\\wedgeq",!0),F(j,K,"\u225A","\\veeeq",!0),F(j,K,"\u225B","\\stareq",!0),F(j,K,"\u225D","\\eqdef",!0),F(j,K,"\u225E","\\measeq",!0),F(j,K,"\u225F","\\questeq",!0),F(j,K,"\u2260","\\ne",!0),F(j,K,"\u2260","\\neq"),F(j,K,"\u2A75","\\eqeq",!0),F(j,K,"\u2A76","\\eqeqeq",!0),F(j,K,"\u2237","\\dblcolon",!0),F(j,K,"\u2254","\\coloneqq",!0),F(j,K,"\u2255","\\eqqcolon",!0),F(j,K,"\u2239","\\eqcolon",!0),F(j,K,"\u2A74","\\Coloneqq",!0),F(j,Z,".","\\ldotp"),F(j,Z,"\xB7","\\cdotp"),F(j,Q,"#","\\#"),F(H,Q,"#","\\#"),F(j,Q,"&","\\&"),F(H,Q,"&","\\&"),F(j,Q,"\u2135","\\aleph",!0),F(j,Q,"\u2200","\\forall",!0),F(j,Q,"\u210F","\\hbar",!0),F(j,Q,"\u2203","\\exists",!0),F(j,U,"\u2207","\\nabla",!0),F(j,Q,"\u266D","\\flat",!0),F(j,Q,"\u2113","\\ell",!0),F(j,Q,"\u266E","\\natural",!0),F(j,Q,"\u212B","\\Angstrom",!0),F(H,Q,"\u212B","\\Angstrom",!0),F(j,Q,"\u2663","\\clubsuit",!0),F(j,Q,"\u2667","\\varclubsuit",!0),F(j,Q,"\u2118","\\wp",!0),F(j,Q,"\u266F","\\sharp",!0),F(j,Q,"\u2662","\\diamondsuit",!0),F(j,Q,"\u2666","\\vardiamondsuit",!0),F(j,Q,"\u211C","\\Re",!0),F(j,Q,"\u2661","\\heartsuit",!0),F(j,Q,"\u2665","\\varheartsuit",!0),F(j,Q,"\u2111","\\Im",!0),F(j,Q,"\u2660","\\spadesuit",!0),F(j,Q,"\u2664","\\varspadesuit",!0),F(j,Q,"\u2640","\\female",!0),F(j,Q,"\u2642","\\male",!0),F(j,Q,"\xA7","\\S",!0),F(H,Q,"\xA7","\\S"),F(j,Q,"\xB6","\\P",!0),F(H,Q,"\xB6","\\P"),F(H,Q,"\u263A","\\smiley",!0),F(j,Q,"\u263A","\\smiley",!0),F(j,Q,"\u2020","\\dag"),F(H,Q,"\u2020","\\dag"),F(H,Q,"\u2020","\\textdagger"),F(j,Q,"\u2021","\\ddag"),F(H,Q,"\u2021","\\ddag"),F(H,Q,"\u2021","\\textdaggerdbl"),F(j,W,"\u23B1","\\rmoustache",!0),F(j,J,"\u23B0","\\lmoustache",!0),F(j,W,"\u27EF","\\rgroup",!0),F(j,J,"\u27EE","\\lgroup",!0),F(j,U,"\u2213","\\mp",!0),F(j,U,"\u2296","\\ominus",!0),F(j,U,"\u228E","\\uplus",!0),F(j,U,"\u2293","\\sqcap",!0),F(j,U,"\u2217","\\ast"),F(j,U,"\u2294","\\sqcup",!0),F(j,U,"\u25EF","\\bigcirc",!0),F(j,U,"\u2219","\\bullet",!0),F(j,U,"\u2021","\\ddagger"),F(j,U,"\u2240","\\wr",!0),F(j,U,"\u2A3F","\\amalg"),F(j,U,"&","\\And"),F(j,U,"\u2AFD","\\sslash",!0),F(j,K,"\u27F5","\\longleftarrow",!0),F(j,K,"\u21D0","\\Leftarrow",!0),F(j,K,"\u27F8","\\Longleftarrow",!0),F(j,K,"\u27F6","\\longrightarrow",!0),F(j,K,"\u21D2","\\Rightarrow",!0),F(j,K,"\u27F9","\\Longrightarrow",!0),F(j,K,"\u2194","\\leftrightarrow",!0),F(j,K,"\u27F7","\\longleftrightarrow",!0),F(j,K,"\u21D4","\\Leftrightarrow",!0),F(j,K,"\u27FA","\\Longleftrightarrow",!0),F(j,K,"\u21A4","\\mapsfrom",!0),F(j,K,"\u21A6","\\mapsto",!0),F(j,K,"\u27FC","\\longmapsto",!0),F(j,K,"\u2197","\\nearrow",!0),F(j,K,"\u21A9","\\hookleftarrow",!0),F(j,K,"\u21AA","\\hookrightarrow",!0),F(j,K,"\u2198","\\searrow",!0),F(j,K,"\u21BC","\\leftharpoonup",!0),F(j,K,"\u21C0","\\rightharpoonup",!0),F(j,K,"\u2199","\\swarrow",!0),F(j,K,"\u21BD","\\leftharpoondown",!0),F(j,K,"\u21C1","\\rightharpoondown",!0),F(j,K,"\u2196","\\nwarrow",!0),F(j,K,"\u21CC","\\rightleftharpoons",!0),F(j,V,"\u21AF","\\lightning",!0),F(j,V,"\u220E","\\QED",!0),F(j,V,"\u2030","\\permil",!0),F(H,Q,"\u2030","\\permil"),F(j,V,"\u2609","\\astrosun",!0),F(j,V,"\u263C","\\sun",!0),F(j,V,"\u263E","\\leftmoon",!0),F(j,V,"\u263D","\\rightmoon",!0),F(j,V,"\u2295","\\Earth"),F(j,K,"\u226E","\\nless",!0),F(j,K,"\u2A87","\\lneq",!0),F(j,K,"\u2268","\\lneqq",!0),F(j,K,"\u2268\uFE00","\\lvertneqq"),F(j,K,"\u22E6","\\lnsim",!0),F(j,K,"\u2A89","\\lnapprox",!0),F(j,K,"\u2280","\\nprec",!0),F(j,K,"\u22E0","\\npreceq",!0),F(j,K,"\u22E8","\\precnsim",!0),F(j,K,"\u2AB9","\\precnapprox",!0),F(j,K,"\u2241","\\nsim",!0),F(j,K,"\u2224","\\nmid",!0),F(j,K,"\u2224","\\nshortmid"),F(j,K,"\u22AC","\\nvdash",!0),F(j,K,"\u22AD","\\nvDash",!0),F(j,K,"\u22EA","\\ntriangleleft"),F(j,K,"\u22EC","\\ntrianglelefteq",!0),F(j,K,"\u2284","\\nsubset",!0),F(j,K,"\u2285","\\nsupset",!0),F(j,K,"\u228A","\\subsetneq",!0),F(j,K,"\u228A\uFE00","\\varsubsetneq"),F(j,K,"\u2ACB","\\subsetneqq",!0),F(j,K,"\u2ACB\uFE00","\\varsubsetneqq"),F(j,K,"\u226F","\\ngtr",!0),F(j,K,"\u2A88","\\gneq",!0),F(j,K,"\u2269","\\gneqq",!0),F(j,K,"\u2269\uFE00","\\gvertneqq"),F(j,K,"\u22E7","\\gnsim",!0),F(j,K,"\u2A8A","\\gnapprox",!0),F(j,K,"\u2281","\\nsucc",!0),F(j,K,"\u22E1","\\nsucceq",!0),F(j,K,"\u22E9","\\succnsim",!0),F(j,K,"\u2ABA","\\succnapprox",!0),F(j,K,"\u2246","\\ncong",!0),F(j,K,"\u2226","\\nparallel",!0),F(j,K,"\u2226","\\nshortparallel"),F(j,K,"\u22AF","\\nVDash",!0),F(j,K,"\u22EB","\\ntriangleright"),F(j,K,"\u22ED","\\ntrianglerighteq",!0),F(j,K,"\u228B","\\supsetneq",!0),F(j,K,"\u228B","\\varsupsetneq"),F(j,K,"\u2ACC","\\supsetneqq",!0),F(j,K,"\u2ACC\uFE00","\\varsupsetneqq"),F(j,K,"\u22AE","\\nVdash",!0),F(j,K,"\u2AB5","\\precneqq",!0),F(j,K,"\u2AB6","\\succneqq",!0),F(j,U,"\u22B4","\\unlhd"),F(j,U,"\u22B5","\\unrhd"),F(j,K,"\u219A","\\nleftarrow",!0),F(j,K,"\u219B","\\nrightarrow",!0),F(j,K,"\u21CD","\\nLeftarrow",!0),F(j,K,"\u21CF","\\nRightarrow",!0),F(j,K,"\u21AE","\\nleftrightarrow",!0),F(j,K,"\u21CE","\\nLeftrightarrow",!0),F(j,K,"\u25B3","\\vartriangle"),F(j,Q,"\u210F","\\hslash"),F(j,Q,"\u25BD","\\triangledown"),F(j,Q,"\u25CA","\\lozenge"),F(j,Q,"\u24C8","\\circledS"),F(j,Q,"\xAE","\\circledR",!0),F(H,Q,"\xAE","\\circledR"),F(H,Q,"\xAE","\\textregistered"),F(j,Q,"\u2221","\\measuredangle",!0),F(j,Q,"\u2204","\\nexists"),F(j,Q,"\u2127","\\mho"),F(j,Q,"\u2132","\\Finv",!0),F(j,Q,"\u2141","\\Game",!0),F(j,Q,"\u2035","\\backprime"),F(j,Q,"\u2036","\\backdprime"),F(j,Q,"\u2037","\\backtrprime"),F(j,Q,"\u25B2","\\blacktriangle"),F(j,Q,"\u25BC","\\blacktriangledown"),F(j,Q,"\u25A0","\\blacksquare"),F(j,Q,"\u29EB","\\blacklozenge"),F(j,Q,"\u2605","\\bigstar"),F(j,Q,"\u2222","\\sphericalangle",!0),F(j,Q,"\u2201","\\complement",!0),F(j,Q,"\u2571","\\diagup"),F(j,Q,"\u2572","\\diagdown"),F(j,Q,"\u25A1","\\square"),F(j,Q,"\u25A1","\\Box"),F(j,Q,"\u25CA","\\Diamond"),F(j,Q,"\xA5","\\yen",!0),F(H,Q,"\xA5","\\yen",!0),F(j,Q,"\u2713","\\checkmark",!0),F(H,Q,"\u2713","\\checkmark"),F(j,Q,"\u2717","\\ballotx",!0),F(H,Q,"\u2717","\\ballotx"),F(H,Q,"\u2022","\\textbullet"),F(j,Q,"\u2136","\\beth",!0),F(j,Q,"\u2138","\\daleth",!0),F(j,Q,"\u2137","\\gimel",!0),F(j,Q,"\u03DD","\\digamma",!0),F(j,Q,"\u03F0","\\varkappa"),F(j,J,"\u231C","\\ulcorner",!0),F(j,W,"\u231D","\\urcorner",!0),F(j,J,"\u231E","\\llcorner",!0),F(j,W,"\u231F","\\lrcorner",!0),F(j,K,"\u2266","\\leqq",!0),F(j,K,"\u2A7D","\\leqslant",!0),F(j,K,"\u2A95","\\eqslantless",!0),F(j,K,"\u2272","\\lesssim",!0),F(j,K,"\u2A85","\\lessapprox",!0),F(j,K,"\u224A","\\approxeq",!0),F(j,U,"\u22D6","\\lessdot"),F(j,K,"\u22D8","\\lll",!0),F(j,K,"\u2276","\\lessgtr",!0),F(j,K,"\u22DA","\\lesseqgtr",!0),F(j,K,"\u2A8B","\\lesseqqgtr",!0),F(j,K,"\u2251","\\doteqdot"),F(j,K,"\u2253","\\risingdotseq",!0),F(j,K,"\u2252","\\fallingdotseq",!0),F(j,K,"\u223D","\\backsim",!0),F(j,K,"\u22CD","\\backsimeq",!0),F(j,K,"\u2AC5","\\subseteqq",!0),F(j,K,"\u22D0","\\Subset",!0),F(j,K,"\u228F","\\sqsubset",!0),F(j,K,"\u227C","\\preccurlyeq",!0),F(j,K,"\u22DE","\\curlyeqprec",!0),F(j,K,"\u227E","\\precsim",!0),F(j,K,"\u2AB7","\\precapprox",!0),F(j,K,"\u22B2","\\vartriangleleft"),F(j,K,"\u22B4","\\trianglelefteq"),F(j,K,"\u22A8","\\vDash",!0),F(j,K,"\u22AB","\\VDash",!0),F(j,K,"\u22AA","\\Vvdash",!0),F(j,K,"\u2323","\\smallsmile"),F(j,K,"\u2322","\\smallfrown"),F(j,K,"\u224F","\\bumpeq",!0),F(j,K,"\u224E","\\Bumpeq",!0),F(j,K,"\u2267","\\geqq",!0),F(j,K,"\u2A7E","\\geqslant",!0),F(j,K,"\u2A96","\\eqslantgtr",!0),F(j,K,"\u2273","\\gtrsim",!0),F(j,K,"\u2A86","\\gtrapprox",!0),F(j,U,"\u22D7","\\gtrdot"),F(j,K,"\u22D9","\\ggg",!0),F(j,K,"\u2277","\\gtrless",!0),F(j,K,"\u22DB","\\gtreqless",!0),F(j,K,"\u2A8C","\\gtreqqless",!0),F(j,K,"\u2256","\\eqcirc",!0),F(j,K,"\u2257","\\circeq",!0),F(j,K,"\u225C","\\triangleq",!0),F(j,K,"\u223C","\\thicksim"),F(j,K,"\u2248","\\thickapprox"),F(j,K,"\u2AC6","\\supseteqq",!0),F(j,K,"\u22D1","\\Supset",!0),F(j,K,"\u2290","\\sqsupset",!0),F(j,K,"\u227D","\\succcurlyeq",!0),F(j,K,"\u22DF","\\curlyeqsucc",!0),F(j,K,"\u227F","\\succsim",!0),F(j,K,"\u2AB8","\\succapprox",!0),F(j,K,"\u22B3","\\vartriangleright"),F(j,K,"\u22B5","\\trianglerighteq"),F(j,K,"\u22A9","\\Vdash",!0),F(j,K,"\u2223","\\shortmid"),F(j,K,"\u2225","\\shortparallel"),F(j,K,"\u226C","\\between",!0),F(j,K,"\u22D4","\\pitchfork",!0),F(j,K,"\u221D","\\varpropto"),F(j,K,"\u25C0","\\blacktriangleleft"),F(j,K,"\u2234","\\therefore",!0),F(j,K,"\u220D","\\backepsilon"),F(j,K,"\u25B6","\\blacktriangleright"),F(j,K,"\u2235","\\because",!0),F(j,K,"\u22D8","\\llless"),F(j,K,"\u22D9","\\gggtr"),F(j,U,"\u22B2","\\lhd"),F(j,U,"\u22B3","\\rhd"),F(j,K,"\u2242","\\eqsim",!0),F(j,K,"\u2251","\\Doteq",!0),F(j,K,"\u297D","\\strictif",!0),F(j,K,"\u297C","\\strictfi",!0),F(j,U,"\u2214","\\dotplus",!0),F(j,U,"\u2216","\\smallsetminus"),F(j,U,"\u22D2","\\Cap",!0),F(j,U,"\u22D3","\\Cup",!0),F(j,U,"\u2A5E","\\doublebarwedge",!0),F(j,U,"\u229F","\\boxminus",!0),F(j,U,"\u229E","\\boxplus",!0),F(j,U,"\u29C4","\\boxslash",!0),F(j,U,"\u22C7","\\divideontimes",!0),F(j,U,"\u22C9","\\ltimes",!0),F(j,U,"\u22CA","\\rtimes",!0),F(j,U,"\u22CB","\\leftthreetimes",!0),F(j,U,"\u22CC","\\rightthreetimes",!0),F(j,U,"\u22CF","\\curlywedge",!0),F(j,U,"\u22CE","\\curlyvee",!0),F(j,U,"\u229D","\\circleddash",!0),F(j,U,"\u229B","\\circledast",!0),F(j,U,"\u22BA","\\intercal",!0),F(j,U,"\u22D2","\\doublecap"),F(j,U,"\u22D3","\\doublecup"),F(j,U,"\u22A0","\\boxtimes",!0),F(j,U,"\u22C8","\\bowtie",!0),F(j,U,"\u22C8","\\Join"),F(j,U,"\u27D5","\\leftouterjoin",!0),F(j,U,"\u27D6","\\rightouterjoin",!0),F(j,U,"\u27D7","\\fullouterjoin",!0),F(j,U,"\u2238","\\dotminus",!0),F(j,U,"\u27D1","\\wedgedot",!0),F(j,U,"\u27C7","\\veedot",!0),F(j,U,"\u2A62","\\doublebarvee",!0),F(j,U,"\u2A63","\\veedoublebar",!0),F(j,U,"\u2A5F","\\wedgebar",!0),F(j,U,"\u2A60","\\wedgedoublebar",!0),F(j,U,"\u2A54","\\Vee",!0),F(j,U,"\u2A53","\\Wedge",!0),F(j,U,"\u2A43","\\barcap",!0),F(j,U,"\u2A42","\\barcup",!0),F(j,U,"\u2A48","\\capbarcup",!0),F(j,U,"\u2A40","\\capdot",!0),F(j,U,"\u2A47","\\capovercup",!0),F(j,U,"\u2A46","\\cupovercap",!0),F(j,U,"\u2A4D","\\closedvarcap",!0),F(j,U,"\u2A4C","\\closedvarcup",!0),F(j,U,"\u2A2A","\\minusdot",!0),F(j,U,"\u2A2B","\\minusfdots",!0),F(j,U,"\u2A2C","\\minusrdots",!0),F(j,U,"\u22BB","\\Xor",!0),F(j,U,"\u22BC","\\Nand",!0),F(j,U,"\u22BD","\\Nor",!0),F(j,U,"\u22BD","\\barvee"),F(j,U,"\u2AF4","\\interleave",!0),F(j,U,"\u29E2","\\shuffle",!0),F(j,U,"\u2AF6","\\threedotcolon",!0),F(j,U,"\u2982","\\typecolon",!0),F(j,U,"\u223E","\\invlazys",!0),F(j,U,"\u2A4B","\\twocaps",!0),F(j,U,"\u2A4A","\\twocups",!0),F(j,U,"\u2A4E","\\Sqcap",!0),F(j,U,"\u2A4F","\\Sqcup",!0),F(j,U,"\u2A56","\\veeonvee",!0),F(j,U,"\u2A55","\\wedgeonwedge",!0),F(j,U,"\u29D7","\\blackhourglass",!0),F(j,U,"\u29C6","\\boxast",!0),F(j,U,"\u29C8","\\boxbox",!0),F(j,U,"\u29C7","\\boxcircle",!0),F(j,U,"\u229C","\\circledequal",!0),F(j,U,"\u29B7","\\circledparallel",!0),F(j,U,"\u29B6","\\circledvert",!0),F(j,U,"\u29B5","\\circlehbar",!0),F(j,U,"\u27E1","\\concavediamond",!0),F(j,U,"\u27E2","\\concavediamondtickleft",!0),F(j,U,"\u27E3","\\concavediamondtickright",!0),F(j,U,"\u22C4","\\diamond",!0),F(j,U,"\u29D6","\\hourglass",!0),F(j,U,"\u27E0","\\lozengeminus",!0),F(j,U,"\u233D","\\obar",!0),F(j,U,"\u29B8","\\obslash",!0),F(j,U,"\u2A38","\\odiv",!0),F(j,U,"\u29C1","\\ogreaterthan",!0),F(j,U,"\u29C0","\\olessthan",!0),F(j,U,"\u29B9","\\operp",!0),F(j,U,"\u2A37","\\Otimes",!0),F(j,U,"\u2A36","\\otimeshat",!0),F(j,U,"\u22C6","\\star",!0),F(j,U,"\u25B3","\\triangle",!0),F(j,U,"\u2A3A","\\triangleminus",!0),F(j,U,"\u2A39","\\triangleplus",!0),F(j,U,"\u2A3B","\\triangletimes",!0),F(j,U,"\u27E4","\\whitesquaretickleft",!0),F(j,U,"\u27E5","\\whitesquaretickright",!0),F(j,U,"\u2A33","\\smashtimes",!0),F(j,K,"\u21E2","\\dashrightarrow",!0),F(j,K,"\u21E0","\\dashleftarrow",!0),F(j,K,"\u21C7","\\leftleftarrows",!0),F(j,K,"\u21C6","\\leftrightarrows",!0),F(j,K,"\u21DA","\\Lleftarrow",!0),F(j,K,"\u219E","\\twoheadleftarrow",!0),F(j,K,"\u21A2","\\leftarrowtail",!0),F(j,K,"\u21AB","\\looparrowleft",!0),F(j,K,"\u21CB","\\leftrightharpoons",!0),F(j,K,"\u21B6","\\curvearrowleft",!0),F(j,K,"\u21BA","\\circlearrowleft",!0),F(j,K,"\u21B0","\\Lsh",!0),F(j,K,"\u21C8","\\upuparrows",!0),F(j,K,"\u21BF","\\upharpoonleft",!0),F(j,K,"\u21C3","\\downharpoonleft",!0),F(j,K,"\u22B6","\\origof",!0),F(j,K,"\u22B7","\\imageof",!0),F(j,K,"\u22B8","\\multimap",!0),F(j,K,"\u21AD","\\leftrightsquigarrow",!0),F(j,K,"\u21C9","\\rightrightarrows",!0),F(j,K,"\u21C4","\\rightleftarrows",!0),F(j,K,"\u21A0","\\twoheadrightarrow",!0),F(j,K,"\u21A3","\\rightarrowtail",!0),F(j,K,"\u21AC","\\looparrowright",!0),F(j,K,"\u21B7","\\curvearrowright",!0),F(j,K,"\u21BB","\\circlearrowright",!0),F(j,K,"\u21B1","\\Rsh",!0),F(j,K,"\u21CA","\\downdownarrows",!0),F(j,K,"\u21BE","\\upharpoonright",!0),F(j,K,"\u21C2","\\downharpoonright",!0),F(j,K,"\u21DD","\\rightsquigarrow",!0),F(j,K,"\u21DD","\\leadsto"),F(j,K,"\u21DB","\\Rrightarrow",!0),F(j,K,"\u21BE","\\restriction"),F(j,Q,"\u2018","`"),F(j,Q,"$","\\$"),F(H,Q,"$","\\$"),F(H,Q,"$","\\textdollar"),F(j,Q,"\xA2","\\cent"),F(H,Q,"\xA2","\\cent"),F(j,Q,"%","\\%"),F(H,Q,"%","\\%"),F(j,Q,"_","\\_"),F(H,Q,"_","\\_"),F(H,Q,"_","\\textunderscore"),F(H,Q,"\u2423","\\textvisiblespace",!0),F(j,Q,"\u2220","\\angle",!0),F(j,Q,"\u221E","\\infty",!0),F(j,Q,"\u2032","\\prime"),F(j,Q,"\u2033","\\dprime"),F(j,Q,"\u2034","\\trprime"),F(j,Q,"\u2057","\\qprime"),F(j,Q,"\u25B3","\\triangle"),F(H,Q,"\u0391","\\Alpha",!0),F(H,Q,"\u0392","\\Beta",!0),F(H,Q,"\u0393","\\Gamma",!0),F(H,Q,"\u0394","\\Delta",!0),F(H,Q,"\u0395","\\Epsilon",!0),F(H,Q,"\u0396","\\Zeta",!0),F(H,Q,"\u0397","\\Eta",!0),F(H,Q,"\u0398","\\Theta",!0),F(H,Q,"\u0399","\\Iota",!0),F(H,Q,"\u039A","\\Kappa",!0),F(H,Q,"\u039B","\\Lambda",!0),F(H,Q,"\u039C","\\Mu",!0),F(H,Q,"\u039D","\\Nu",!0),F(H,Q,"\u039E","\\Xi",!0),F(H,Q,"\u039F","\\Omicron",!0),F(H,Q,"\u03A0","\\Pi",!0),F(H,Q,"\u03A1","\\Rho",!0),F(H,Q,"\u03A3","\\Sigma",!0),F(H,Q,"\u03A4","\\Tau",!0),F(H,Q,"\u03A5","\\Upsilon",!0),F(H,Q,"\u03A6","\\Phi",!0),F(H,Q,"\u03A7","\\Chi",!0),F(H,Q,"\u03A8","\\Psi",!0),F(H,Q,"\u03A9","\\Omega",!0),F(j,V,"\u0391","\\Alpha",!0),F(j,V,"\u0392","\\Beta",!0),F(j,V,"\u0393","\\Gamma",!0),F(j,V,"\u0394","\\Delta",!0),F(j,V,"\u0395","\\Epsilon",!0),F(j,V,"\u0396","\\Zeta",!0),F(j,V,"\u0397","\\Eta",!0),F(j,V,"\u0398","\\Theta",!0),F(j,V,"\u0399","\\Iota",!0),F(j,V,"\u039A","\\Kappa",!0),F(j,V,"\u039B","\\Lambda",!0),F(j,V,"\u039C","\\Mu",!0),F(j,V,"\u039D","\\Nu",!0),F(j,V,"\u039E","\\Xi",!0),F(j,V,"\u039F","\\Omicron",!0),F(j,V,"\u03A0","\\Pi",!0),F(j,V,"\u03A1","\\Rho",!0),F(j,V,"\u03A3","\\Sigma",!0),F(j,V,"\u03A4","\\Tau",!0),F(j,V,"\u03A5","\\Upsilon",!0),F(j,V,"\u03A6","\\Phi",!0),F(j,V,"\u03A7","\\Chi",!0),F(j,V,"\u03A8","\\Psi",!0),F(j,V,"\u03A9","\\Omega",!0),F(j,J,"\xAC","\\neg",!0),F(j,J,"\xAC","\\lnot"),F(j,Q,"\u22A4","\\top"),F(j,Q,"\u22A5","\\bot"),F(j,Q,"\u2205","\\emptyset"),F(j,Q,"\u2300","\\varnothing"),F(j,V,"\u03B1","\\alpha",!0),F(j,V,"\u03B2","\\beta",!0),F(j,V,"\u03B3","\\gamma",!0),F(j,V,"\u03B4","\\delta",!0),F(j,V,"\u03F5","\\epsilon",!0),F(j,V,"\u03B6","\\zeta",!0),F(j,V,"\u03B7","\\eta",!0),F(j,V,"\u03B8","\\theta",!0),F(j,V,"\u03B9","\\iota",!0),F(j,V,"\u03BA","\\kappa",!0),F(j,V,"\u03BB","\\lambda",!0),F(j,V,"\u03BC","\\mu",!0),F(j,V,"\u03BD","\\nu",!0),F(j,V,"\u03BE","\\xi",!0),F(j,V,"\u03BF","\\omicron",!0),F(j,V,"\u03C0","\\pi",!0),F(j,V,"\u03C1","\\rho",!0),F(j,V,"\u03C3","\\sigma",!0),F(j,V,"\u03C4","\\tau",!0),F(j,V,"\u03C5","\\upsilon",!0),F(j,V,"\u03D5","\\phi",!0),F(j,V,"\u03C7","\\chi",!0),F(j,V,"\u03C8","\\psi",!0),F(j,V,"\u03C9","\\omega",!0),F(j,V,"\u03B5","\\varepsilon",!0),F(j,V,"\u03D1","\\vartheta",!0),F(j,V,"\u03D6","\\varpi",!0),F(j,V,"\u03F1","\\varrho",!0),F(j,V,"\u03C2","\\varsigma",!0),F(j,V,"\u03C6","\\varphi",!0),F(j,V,"\u03D8","\\Coppa",!0),F(j,V,"\u03D9","\\coppa",!0),F(j,V,"\u03D9","\\varcoppa",!0),F(j,V,"\u03DE","\\Koppa",!0),F(j,V,"\u03DF","\\koppa",!0),F(j,V,"\u03E0","\\Sampi",!0),F(j,V,"\u03E1","\\sampi",!0),F(j,V,"\u03DA","\\Stigma",!0),F(j,V,"\u03DB","\\stigma",!0),F(j,V,"\u2AEB","\\Bot"),F(j,Q,"\xF0","\\eth",!0),F(H,Q,"\xF0","\xF0"),F(j,Q,"\xC5","\\AA"),F(H,Q,"\xC5","\\AA",!0),F(j,Q,"\xC6","\\AE",!0),F(H,Q,"\xC6","\\AE",!0),F(j,Q,"\xD0","\\DH",!0),F(H,Q,"\xD0","\\DH",!0),F(j,Q,"\xDE","\\TH",!0),F(H,Q,"\xDE","\\TH",!0),F(j,Q,"\xDF","\\ss",!0),F(H,Q,"\xDF","\\ss",!0),F(j,Q,"\xE5","\\aa"),F(H,Q,"\xE5","\\aa",!0),F(j,Q,"\xE6","\\ae",!0),F(H,Q,"\xE6","\\ae",!0),F(j,Q,"\xF0","\\dh"),F(H,Q,"\xF0","\\dh",!0),F(j,Q,"\xFE","\\th",!0),F(H,Q,"\xFE","\\th",!0),F(j,Q,"\u0110","\\DJ",!0),F(H,Q,"\u0110","\\DJ",!0),F(j,Q,"\u0111","\\dj",!0),F(H,Q,"\u0111","\\dj",!0),F(j,Q,"\u0141","\\L",!0),F(H,Q,"\u0141","\\L",!0),F(j,Q,"\u0141","\\l",!0),F(H,Q,"\u0141","\\l",!0),F(j,Q,"\u014A","\\NG",!0),F(H,Q,"\u014A","\\NG",!0),F(j,Q,"\u014B","\\ng",!0),F(H,Q,"\u014B","\\ng",!0),F(j,Q,"\u0152","\\OE",!0),F(H,Q,"\u0152","\\OE",!0),F(j,Q,"\u0153","\\oe",!0),F(H,Q,"\u0153","\\oe",!0),F(j,U,"\u2217","\u2217",!0),F(j,U,"+","+"),F(j,U,"\u2217","*"),F(j,U,"\u2044","/",!0),F(j,U,"\u2044","\u2044"),F(j,U,"\u2212","-",!0),F(j,U,"\u22C5","\\cdot",!0),F(j,U,"\u2218","\\circ",!0),F(j,U,"\xF7","\\div",!0),F(j,U,"\xB1","\\pm",!0),F(j,U,"\xD7","\\times",!0),F(j,U,"\u2229","\\cap",!0),F(j,U,"\u222A","\\cup",!0),F(j,U,"\u2216","\\setminus",!0),F(j,U,"\u2227","\\land"),F(j,U,"\u2228","\\lor"),F(j,U,"\u2227","\\wedge",!0),F(j,U,"\u2228","\\vee",!0),F(j,J,"\u27E6","\\llbracket",!0),F(j,W,"\u27E7","\\rrbracket",!0),F(j,J,"\u27E8","\\langle",!0),F(j,J,"\u27EA","\\lAngle",!0),F(j,J,"\u2989","\\llangle",!0),F(j,J,"|","\\lvert"),F(j,J,"\u2016","\\lVert",!0),F(j,Q,"!","\\oc"),F(j,Q,"?","\\wn"),F(j,Q,"\u2193","\\shpos"),F(j,Q,"\u2195","\\shift"),F(j,Q,"\u2191","\\shneg"),F(j,W,"?","?"),F(j,W,"!","!"),F(j,W,"\u203C","\u203C"),F(j,W,"\u27E9","\\rangle",!0),F(j,W,"\u27EB","\\rAngle",!0),F(j,W,"\u298A","\\rrangle",!0),F(j,W,"|","\\rvert"),F(j,W,"\u2016","\\rVert"),F(j,J,"\u2983","\\lBrace",!0),F(j,W,"\u2984","\\rBrace",!0),F(j,K,"=","\\equal",!0),F(j,K,":",":"),F(j,K,"\u2248","\\approx",!0),F(j,K,"\u2245","\\cong",!0),F(j,K,"\u2265","\\ge"),F(j,K,"\u2265","\\geq",!0),F(j,K,"\u2190","\\gets"),F(j,K,">","\\gt",!0),F(j,K,"\u2208","\\in",!0),F(j,K,"\u2209","\\notin",!0),F(j,K,"\uE020","\\@not"),F(j,K,"\u2282","\\subset",!0),F(j,K,"\u2283","\\supset",!0),F(j,K,"\u2286","\\subseteq",!0),F(j,K,"\u2287","\\supseteq",!0),F(j,K,"\u2288","\\nsubseteq",!0),F(j,K,"\u2288","\\nsubseteqq"),F(j,K,"\u2289","\\nsupseteq",!0),F(j,K,"\u2289","\\nsupseteqq"),F(j,K,"\u22A8","\\models"),F(j,K,"\u2190","\\leftarrow",!0),F(j,K,"\u2264","\\le"),F(j,K,"\u2264","\\leq",!0),F(j,K,"<","\\lt",!0),F(j,K,"\u2192","\\rightarrow",!0),F(j,K,"\u2192","\\to"),F(j,K,"\u2271","\\ngeq",!0),F(j,K,"\u2271","\\ngeqq"),F(j,K,"\u2271","\\ngeqslant"),F(j,K,"\u2270","\\nleq",!0),F(j,K,"\u2270","\\nleqq"),F(j,K,"\u2270","\\nleqslant"),F(j,K,"\u2AEB","\\Perp",!0),F(j,Y,"\xA0","\\ "),F(j,Y,"\xA0","\\space"),F(j,Y,"\xA0","\\nobreakspace"),F(H,Y,"\xA0","\\ "),F(H,Y,"\xA0"," "),F(H,Y,"\xA0","\\space"),F(H,Y,"\xA0","\\nobreakspace"),F(j,Y,null,"\\nobreak"),F(j,Y,null,"\\allowbreak"),F(j,Z,",",","),F(H,Z,":",":"),F(j,Z,";",";"),F(j,U,"\u22BC","\\barwedge"),F(j,U,"\u22BB","\\veebar"),F(j,U,"\u2299","\\odot",!0),F(j,U,"\u2295\uFE0E","\\oplus"),F(j,U,"\u2297","\\otimes",!0),F(j,Q,"\u2202","\\partial",!0),F(j,U,"\u2298","\\oslash",!0),F(j,U,"\u229A","\\circledcirc",!0),F(j,U,"\u22A1","\\boxdot",!0),F(j,U,"\u25B3","\\bigtriangleup"),F(j,U,"\u25BD","\\bigtriangledown"),F(j,U,"\u2020","\\dagger"),F(j,U,"\u22C4","\\diamond"),F(j,U,"\u25C3","\\triangleleft"),F(j,U,"\u25B9","\\triangleright"),F(j,J,"{","\\{"),F(H,Q,"{","\\{"),F(H,Q,"{","\\textbraceleft"),F(j,W,"}","\\}"),F(H,Q,"}","\\}"),F(H,Q,"}","\\textbraceright"),F(j,J,"{","\\lbrace"),F(j,W,"}","\\rbrace"),F(j,J,"[","\\lbrack",!0),F(H,Q,"[","\\lbrack",!0),F(j,W,"]","\\rbrack",!0),F(H,Q,"]","\\rbrack",!0),F(j,J,"(","\\lparen",!0),F(j,W,")","\\rparen",!0),F(j,J,"\u2987","\\llparenthesis",!0),F(j,W,"\u2988","\\rrparenthesis",!0),F(H,Q,"<","\\textless",!0),F(H,Q,">","\\textgreater",!0),F(j,J,"\u230A","\\lfloor",!0),F(j,W,"\u230B","\\rfloor",!0),F(j,J,"\u2308","\\lceil",!0),F(j,W,"\u2309","\\rceil",!0),F(j,Q,"\\","\\backslash"),F(j,Q,"|","|"),F(j,Q,"|","\\vert"),F(H,Q,"|","\\textbar",!0),F(j,Q,"\u2016","\\|"),F(j,Q,"\u2016","\\Vert"),F(H,Q,"\u2016","\\textbardbl"),F(H,Q,"~","\\textasciitilde"),F(H,Q,"\\","\\textbackslash"),F(H,Q,"^","\\textasciicircum"),F(j,K,"\u2191","\\uparrow",!0),F(j,K,"\u21D1","\\Uparrow",!0),F(j,K,"\u2193","\\downarrow",!0),F(j,K,"\u21D3","\\Downarrow",!0),F(j,K,"\u2195","\\updownarrow",!0),F(j,K,"\u21D5","\\Updownarrow",!0),F(j,X,"\u2210","\\coprod"),F(j,X,"\u22C1","\\bigvee"),F(j,X,"\u22C0","\\bigwedge"),F(j,X,"\u2A04","\\biguplus"),F(j,X,"\u2A04","\\bigcupplus"),F(j,X,"\u2A03","\\bigcupdot"),F(j,X,"\u2A07","\\bigdoublevee"),F(j,X,"\u2A08","\\bigdoublewedge"),F(j,X,"\u22C2","\\bigcap"),F(j,X,"\u22C3","\\bigcup"),F(j,X,"\u222B","\\int"),F(j,X,"\u222B","\\intop"),F(j,X,"\u222C","\\iint"),F(j,X,"\u222D","\\iiint"),F(j,X,"\u220F","\\prod"),F(j,X,"\u2211","\\sum"),F(j,X,"\u2A02","\\bigotimes"),F(j,X,"\u2A01","\\bigoplus"),F(j,X,"\u2A00","\\bigodot"),F(j,X,"\u2A09","\\bigtimes"),F(j,X,"\u222E","\\oint"),F(j,X,"\u222F","\\oiint"),F(j,X,"\u2230","\\oiiint"),F(j,X,"\u2231","\\intclockwise"),F(j,X,"\u2232","\\varointclockwise"),F(j,X,"\u2A0C","\\iiiint"),F(j,X,"\u2A0D","\\intbar"),F(j,X,"\u2A0E","\\intBar"),F(j,X,"\u2A0F","\\fint"),F(j,X,"\u2A12","\\rppolint"),F(j,X,"\u2A13","\\scpolint"),F(j,X,"\u2A15","\\pointint"),F(j,X,"\u2A16","\\sqint"),F(j,X,"\u2A17","\\intlarhk"),F(j,X,"\u2A18","\\intx"),F(j,X,"\u2A19","\\intcap"),F(j,X,"\u2A1A","\\intcup"),F(j,X,"\u2A05","\\bigsqcap"),F(j,X,"\u2A06","\\bigsqcup"),F(j,X,"\u222B","\\smallint"),F(H,G2,"\u2026","\\textellipsis"),F(j,G2,"\u2026","\\mathellipsis"),F(H,G2,"\u2026","\\ldots",!0),F(j,G2,"\u2026","\\ldots",!0),F(j,G2,"\u22F0","\\iddots",!0),F(j,G2,"\u22EF","\\@cdots",!0),F(j,G2,"\u22F1","\\ddots",!0),F(j,Q,"\u22EE","\\varvdots"),F(H,Q,"\u22EE","\\varvdots"),F(j,z2,"\xB4","\\acute"),F(j,z2,"`","\\grave"),F(j,z2,"\xA8","\\ddot"),F(j,z2,"\u2026","\\dddot"),F(j,z2,"\u2026.","\\ddddot"),F(j,z2,"~","\\tilde"),F(j,z2,"\u203E","\\bar"),F(j,z2,"\u02D8","\\breve"),F(j,z2,"\u02C7","\\check"),F(j,z2,"^","\\hat"),F(j,z2,"\u2192","\\vec"),F(j,z2,"\u02D9","\\dot"),F(j,z2,"\u02DA","\\mathring"),F(j,V,"\u0131","\\imath",!0),F(j,V,"\u0237","\\jmath",!0),F(j,Q,"\u0131","\u0131"),F(j,Q,"\u0237","\u0237"),F(H,Q,"\u0131","\\i",!0),F(H,Q,"\u0237","\\j",!0),F(H,Q,"\xF8","\\o",!0),F(j,V,"\xF8","\\o",!0),F(H,Q,"\xD8","\\O",!0),F(j,V,"\xD8","\\O",!0),F(H,z2,"\u02CA","\\'"),F(H,z2,"\u02CB","\\`"),F(H,z2,"\u02C6","\\^"),F(H,z2,"~","\\~"),F(H,z2,"\u02C9","\\="),F(H,z2,"\u02D8","\\u"),F(H,z2,"\u02D9","\\."),F(H,z2,"\xB8","\\c"),F(H,z2,"\u02DA","\\r"),F(H,z2,"\u02C7","\\v"),F(H,z2,"\xA8",'\\"'),F(H,z2,"\u02DD","\\H"),F(j,z2,"\u02CA","\\'"),F(j,z2,"\u02CB","\\`"),F(j,z2,"\u02C6","\\^"),F(j,z2,"~","\\~"),F(j,z2,"\u02C9","\\="),F(j,z2,"\u02D8","\\u"),F(j,z2,"\u02D9","\\."),F(j,z2,"\xB8","\\c"),F(j,z2,"\u02DA","\\r"),F(j,z2,"\u02C7","\\v"),F(j,z2,"\xA8",'\\"'),F(j,z2,"\u02DD","\\H");let ee={"--":!0,"---":!0,"``":!0,"''":!0};F(H,Q,"\u2013","--",!0),F(H,Q,"\u2013","\\textendash"),F(H,Q,"\u2014","---",!0),F(H,Q,"\u2014","\\textemdash"),F(H,Q,"\u2018","`",!0),F(H,Q,"\u2018","\\textquoteleft"),F(H,Q,"\u2019","'",!0),F(H,Q,"\u2019","\\textquoteright"),F(H,Q,"\u201C","``",!0),F(H,Q,"\u201C","\\textquotedblleft"),F(H,Q,"\u201D","''",!0),F(H,Q,"\u201D","\\textquotedblright"),F(j,Q,"\xB0","\\degree",!0),F(H,Q,"\xB0","\\degree"),F(H,Q,"\xB0","\\textdegree",!0),F(j,Q,"\xA3","\\pounds"),F(j,Q,"\xA3","\\mathsterling",!0),F(H,Q,"\xA3","\\pounds"),F(H,Q,"\xA3","\\textsterling",!0),F(j,Q,"\u2720","\\maltese"),F(H,Q,"\u2720","\\maltese"),F(j,Q,"\u20AC","\\euro",!0),F(H,Q,"\u20AC","\\euro",!0),F(H,Q,"\u20AC","\\texteuro"),F(j,Q,"\xA9","\\copyright",!0),F(H,Q,"\xA9","\\textcopyright"),F(j,Q,"\u2300","\\diameter",!0),F(H,Q,"\u2300","\\diameter"),F(j,Q,"\u{1D6E4}","\\varGamma"),F(j,Q,"\u{1D6E5}","\\varDelta"),F(j,Q,"\u{1D6E9}","\\varTheta"),F(j,Q,"\u{1D6EC}","\\varLambda"),F(j,Q,"\u{1D6EF}","\\varXi"),F(j,Q,"\u{1D6F1}","\\varPi"),F(j,Q,"\u{1D6F4}","\\varSigma"),F(j,Q,"\u{1D6F6}","\\varUpsilon"),F(j,Q,"\u{1D6F7}","\\varPhi"),F(j,Q,"\u{1D6F9}","\\varPsi"),F(j,Q,"\u{1D6FA}","\\varOmega"),F(H,Q,"\u{1D6E4}","\\varGamma"),F(H,Q,"\u{1D6E5}","\\varDelta"),F(H,Q,"\u{1D6E9}","\\varTheta"),F(H,Q,"\u{1D6EC}","\\varLambda"),F(H,Q,"\u{1D6EF}","\\varXi"),F(H,Q,"\u{1D6F1}","\\varPi"),F(H,Q,"\u{1D6F4}","\\varSigma"),F(H,Q,"\u{1D6F6}","\\varUpsilon"),F(H,Q,"\u{1D6F7}","\\varPhi"),F(H,Q,"\u{1D6F9}","\\varPsi"),F(H,Q,"\u{1D6FA}","\\varOmega");let te='0123456789/@."';for(let e3=0;e3<14;e3++){let t3=te.charAt(e3);F(j,Q,t3,t3)}let re='0123456789!@*()-=+";:?/.,';for(let e3=0;e3<25;e3++){let t3=re.charAt(e3);F(H,Q,t3,t3)}let ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(let e3=0;e3<52;e3++){let t3=ne.charAt(e3);F(j,V,t3,t3),F(H,Q,t3,t3)}let oe="\xC7\xD0\xDE\xE7\xFE\u2102\u210D\u2115\u2119\u211A\u211D\u2124\u210E\u210F\u210A\u210B\u210C\u2110\u2111\u2112\u2113\u2118\u211B\u211C\u212C\u2130\u2131\u2133\u212D\u2128";for(let e3=0;e3<30;e3++){let t3=oe.charAt(e3);F(j,V,t3,t3),F(H,Q,t3,t3)}let ie="";for(let e3=0;e3<52;e3++){ie=String.fromCharCode(55349,56320+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,56372+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,56424+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,56580+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,56736+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,56788+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,56840+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,56944+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,56632+e3),F(j,V,ie,ie),F(H,Q,ie,ie);let t3=ne.charAt(e3);ie=String.fromCharCode(55349,56476+e3),F(j,V,t3,ie),F(H,Q,t3,ie)}for(let e3=0;e3<10;e3++)ie=String.fromCharCode(55349,57294+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,57314+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,57324+e3),F(j,V,ie,ie),F(H,Q,ie,ie),ie=String.fromCharCode(55349,57334+e3),F(j,V,ie,ie),F(H,Q,ie,ie);let ae=function(e3,t3,r3){return!R[t3][e3]||!R[t3][e3].replace||e3.charCodeAt(0)===55349||Object.prototype.hasOwnProperty.call(ee,e3)&&r3&&(r3.fontFamily&&r3.fontFamily.slice(4,6)==="tt"||r3.font&&r3.font.slice(4,6)==="tt")||(e3=R[t3][e3].replace),new N(e3)},se=(e3,t3)=>{if(e3.children.length===0||e3.children[e3.children.length-1].type!=="mtext"){let r3=new k("mtext",[new N(t3.children[0].text)]);e3.children.push(r3)}else e3.children[e3.children.length-1].children[0].text+=t3.children[0].text},le=e3=>{if(e3.type!=="mrow"&&e3.type!=="mstyle"||e3.children.length===0)return e3;let t3=new k("mrow");for(let r3=0;r3<e3.children.length;r3++){let n3=e3.children[r3];if(n3.type==="mtext"&&Object.keys(n3.attributes).length===0)se(t3,n3);else if(n3.type==="mrow"){let e4=!0;for(let t4=0;t4<n3.children.length;t4++)if(n3.children[t4].type!=="mtext"||Object.keys(n3.attributes).length!==0){e4=!1;break}if(e4)for(let e5=0;e5<n3.children.length;e5++){let r4=n3.children[e5];se(t3,r4)}else t3.children.push(n3)}else t3.children.push(n3)}for(let r3=0;r3<t3.children.length;r3++)if(t3.children[r3].type==="mtext"){let n3=t3.children[r3];n3.children[0].text.charAt(0)===" "&&(n3.children[0].text="\xA0"+n3.children[0].text.slice(1));let o2=n3.children[0].text.length;o2>0&&n3.children[0].text.charAt(o2-1)===" "&&(n3.children[0].text=n3.children[0].text.slice(0,-1)+"\xA0");for(let[t4,r4]of Object.entries(e3.attributes))n3.attributes[t4]=r4}return t3.children.length===1&&t3.children[0].type==="mtext"?t3.children[0]:t3},ce=function(e3,t3=!1){if(!(e3.length!==1||e3[0]instanceof v))return e3[0];if(!t3){e3[0]instanceof k&&e3[0].type==="mo"&&!e3[0].attributes.fence&&(e3[0].attributes.lspace="0em",e3[0].attributes.rspace="0em");let t4=e3.length-1;e3[t4]instanceof k&&e3[t4].type==="mo"&&!e3[t4].attributes.fence&&(e3[t4].attributes.lspace="0em",e3[t4].attributes.rspace="0em")}return new k("mrow",e3)};function ue(e3){if(!e3)return!1;if(e3.type==="mi"&&e3.children.length===1){let t3=e3.children[0];return t3 instanceof N&&t3.text==="."}if(e3.type==="mtext"&&e3.children.length===1){let t3=e3.children[0];return t3 instanceof N&&t3.text==="\u2008"}if(e3.type==="mo"&&e3.children.length===1&&e3.getAttribute("separator")==="true"&&e3.getAttribute("lspace")==="0em"&&e3.getAttribute("rspace")==="0em"){let t3=e3.children[0];return t3 instanceof N&&t3.text===","}return!1}let de=(e3,t3)=>{let r3=e3[t3],n3=e3[t3+1];return r3.type==="atom"&&r3.text===","&&r3.loc&&n3.loc&&r3.loc.end===n3.loc.start},he=e3=>e3.type==="atom"&&e3.family==="rel"||e3.type==="mclass"&&e3.mclass==="mrel",me=function(e3,t3,r3=!1){if(!r3&&e3.length===1){let r4=fe(e3[0],t3);return r4 instanceof k&&r4.type==="mo"&&(r4.setAttribute("lspace","0em"),r4.setAttribute("rspace","0em")),[r4]}let n3=[],o2=[],i2;for(let r4=0;r4<e3.length;r4++)o2.push(fe(e3[r4],t3));for(let t4=0;t4<o2.length;t4++){let r4=o2[t4];if(t4<e3.length-1&&he(e3[t4])&&he(e3[t4+1])&&r4.setAttribute("rspace","0em"),t4>0&&he(e3[t4])&&he(e3[t4-1])&&r4.setAttribute("lspace","0em"),r4.type==="mn"&&i2&&i2.type==="mn")i2.children.push(...r4.children);else if(ue(r4)&&i2&&i2.type==="mn")i2.children.push(...r4.children);else if(i2&&i2.type==="mn"&&t4<o2.length-1&&o2[t4+1].type==="mn"&&de(e3,t4))i2.children.push(...r4.children);else{if(r4.type==="mn"&&ue(i2))r4.children=[...i2.children,...r4.children],n3.pop();else if((r4.type==="msup"||r4.type==="msub")&&r4.children.length>=1&&i2&&(i2.type==="mn"||ue(i2))){let e4=r4.children[0];e4 instanceof k&&e4.type==="mn"&&i2&&(e4.children=[...i2.children,...e4.children],n3.pop())}n3.push(r4),i2=r4}}return n3},pe=function(e3,t3,r3=!1){return ce(me(e3,t3,r3),r3)},fe=function(e3,r3){if(!e3)return new k("mrow");if(p[e3.type])return p[e3.type](e3,r3);throw new t2("Got group of unknown type: '"+e3.type+"'")},ge=e3=>new k("mtd",[],[],{padding:"0",width:"50%"}),be=["mrow","mtd","mtable","mtr"],xe=e3=>{for(let t3 of e3.children)if(t3.type&&be.includes(t3.type)){if(t3.classes&&t3.classes[0]==="tml-label")return t3.label;{let e4=xe(t3);if(e4)return e4}}else if(!t3.type){let e4=xe(t3);if(e4)return e4}};function ve(e3,t3,r3,n3){let o2=null;e3.length===1&&e3[0].type==="tag"&&(o2=e3[0].tag,e3=e3[0].body);let i2=me(e3,r3);if(i2.length===1&&i2[0]instanceof _)return i2[0];let a2=n3.displayMode||n3.annotate?"none":n3.wrap,s2=i2.length===0?null:i2[0],l2=i2.length===1&&o2===null&&s2 instanceof k?i2[0]:(function(e4,t4,r4){let n4=[],o3=[],i3=[],a3=0,s3=0,l3=0;for(;s3<e4.length;){for(;e4[s3]instanceof v;)e4.splice(s3,1,...e4[s3].children);let r5=e4[s3];if(r5.attributes&&r5.attributes.linebreak&&r5.attributes.linebreak==="newline"){i3.length>0&&o3.push(new k("mrow",i3)),o3.push(r5),i3=[];let e5=new k("mtd",o3);e5.style.textAlign="left",n4.push(new k("mtr",[e5])),o3=[],s3+=1}else{if(i3.push(r5),r5.type&&r5.type==="mo"&&r5.children.length===1&&!Object.prototype.hasOwnProperty.call(r5.attributes,"movablelimits")){let n5=r5.children[0].text;if("([{\u230A\u2308\u27E8\u27EE\u23B0\u27E6\u2983".indexOf(n5)>-1)l3+=1;else if(")]}\u230B\u2309\u27E9\u27EF\u23B1\u27E6\u2984".indexOf(n5)>-1)l3-=1;else if(l3===0&&t4==="="&&n5==="="){if(a3+=1,a3>1){i3.pop();let e5=new k("mrow",i3);o3.push(e5),i3=[r5]}}else if(l3===0&&t4==="tex"&&n5!=="\u2207"){let t5=s3<e4.length-1?e4[s3+1]:null,r6=!0;if(!t5||t5.type!=="mtext"||!t5.attributes.linebreak||t5.attributes.linebreak!=="nobreak")for(let t6=s3+1;t6<e4.length;t6++){let n6=e4[t6];if(!n6.type||n6.type!=="mspace"||n6.attributes.linebreak&&n6.attributes.linebreak==="newline")break;i3.push(n6),s3+=1,n6.attributes&&n6.attributes.linebreak&&n6.attributes.linebreak==="nobreak"&&(r6=!1)}if(r6){let e5=new k("mrow",i3);o3.push(e5),i3=[]}}}s3+=1}}if(i3.length>0){let e5=new k("mrow",i3);o3.push(e5)}if(n4.length>0){let e5=new k("mtd",o3);e5.style.textAlign="left";let t5=new k("mtr",[e5]);n4.push(t5);let i4=new k("mtable",n4);return r4||(i4.setAttribute("columnalign","left"),i4.setAttribute("rowspacing","0em")),i4}return q(o3)})(i2,a2,n3.displayMode);if(o2&&(l2=((e4,t4,r4,n4)=>{t4=pe(t4[0].body,r4),(t4=le(t4)).classes.push("tml-tag");let o3=xe(e4);e4=new k("mtd",[e4]);let i3=[ge(),e4,ge()];i3[n4?0:2].children.push(t4);let a3=new k("mtr",i3,["tml-tageqn"]);o3&&a3.setAttribute("id",o3);let s3=new k("mtable",[a3]);return s3.style.width="100%",s3.setAttribute("displaystyle","true"),s3})(l2,o2,r3,n3.leqno)),n3.annotate){let e4=new k("annotation",[new N(t3)]);e4.setAttribute("encoding","application/x-tex"),l2=new k("semantics",[l2,e4])}let c3=new k("math",[l2]);return n3.xml&&c3.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n3.displayMode&&(c3.setAttribute("display","block"),c3.style.display="block math",c3.classes=["tml-display"]),c3}let ye=(e3,t3)=>{let r3=e3.isStretchy?B(e3):new k("mo",[ae(e3.label,e3.mode)]);e3.isStretchy||r3.setAttribute("stretchy","false"),e3.label!=="\\vec"&&(r3.style.mathDepth="0");let n3=e3.label==="\\c"?"munder":"mover",o2=Ae.has(e3.label);if(n3==="mover"&&e3.mode==="math"&&!e3.isStretchy&&e3.base.text&&e3.base.text.length===1){let t4=e3.base.text,n4=e3.label==="\\vec",i2=n4==="\\vec"?"-vec":"";n4&&r3.classes.push("tml-vec");let a2=n4?"-vec":o2?"-acc":"";"DHKLUcegorsuvxyz\u03A0\u03A5\u03A8\u03B1\u03B4\u03B7\u03B9\u03BC\u03BD\u03BF\u03C4\u03C5\u03C7\u03F5".indexOf(t4)>-1?(r3.classes.push(`chr-sml${i2}`),r3.classes.push(`wbk-sml${a2}`)):"BCEGIMNOPQRSTXZlpqtw\u0393\u0398\u039E\u03A3\u03A6\u03A9\u03B2\u03B5\u03B6\u03B8\u03BE\u03C1\u03C2\u03C6\u03C8\u03D1\u03D5\u03F1".indexOf(t4)>-1?(r3.classes.push(`chr-med${i2}`),r3.classes.push(`wbk-med${a2}`)):"AFJdf\u0394\u039B".indexOf(t4)>-1?(r3.classes.push(`chr-lrg${i2}`),r3.classes.push(`wbk-lrg${a2}`)):n4?r3.classes.push("wbk-vec"):o2&&r3.classes.push("wbk-acc")}else o2&&r3.classes.push("wbk-acc");return new k(n3,[fe(e3.base,t3),r3])},we=new Set(["\\acute","\\check","\\grave","\\ddot","\\dddot","\\ddddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"]),Ae=new Set(["\\acute","\\bar","\\breve","\\check","\\dot","\\ddot","\\grave","\\hat","\\mathring","\\`","\\'","\\^","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v"]),Ce={"\\`":"\u0300","\\'":"\u0301","\\^":"\u0302","\\~":"\u0303","\\=":"\u0304","\\u":"\u0306","\\.":"\u0307",'\\"':"\u0308","\\r":"\u030A","\\H":"\u030B","\\v":"\u030C","\\c":"\u0327"};f({type:"accent",names:["\\acute","\\grave","\\ddot","\\dddot","\\ddddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\overparen","\\widecheck","\\widehat","\\wideparen","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e3,t3)=>{let r3=b(t3[0]),n3=!we.has(e3.funcName);return{type:"accent",mode:e3.parser.mode,label:e3.funcName,isStretchy:n3,base:r3}},mathmlBuilder:ye}),f({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\c","\\u","\\.",'\\"',"\\r","\\H","\\v"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e3,t3)=>{let r3=b(t3[0]),n3=e3.parser.mode;return n3==="math"&&e3.parser.settings.strict&&console.log(`Temml parse error: Command ${e3.funcName} is invalid in math mode.`),n3==="text"&&r3.text&&r3.text.length===1&&e3.funcName in Ce&&d.indexOf(r3.text)>-1?{type:"textord",mode:"text",text:r3.text+Ce[e3.funcName]}:e3.funcName==="\\c"&&n3==="text"&&r3.text&&r3.text.length===1?{type:"textord",mode:"text",text:r3.text+"\u0327"}:{type:"accent",mode:n3,label:e3.funcName,isStretchy:!1,base:r3}},mathmlBuilder:ye}),f({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underparen","\\utilde"],props:{numArgs:1},handler:({parser:e3,funcName:t3},r3)=>{let n3=r3[0];return{type:"accentUnder",mode:e3.mode,label:t3,base:n3}},mathmlBuilder:(e3,t3)=>{let r3=B(e3);return r3.style["math-depth"]=0,new k("munder",[fe(e3.base,t3),r3])}});let Ee={pt:800/803,pc:9600/803,dd:1238/1157*800/803,cc:12.792133216944668,nd:685/642*800/803,nc:1370/107*800/803,sp:1/65536*800/803,mm:25.4/72,cm:2.54/72,in:1/72,px:96/72},Se=["em","ex","mu","pt","mm","cm","in","px","bp","pc","dd","cc","nd","nc","sp"],_e=function(e3){return typeof e3!="string"&&(e3=e3.unit),Se.indexOf(e3)>-1},Te=e3=>[1,.7,.5][Math.max(e3-1,0)],qe=function(e3,r3){let n3=e3.number;if(r3.maxSize[0]<0&&n3>0)return{number:0,unit:"em"};let o2=e3.unit;switch(o2){case"mm":case"cm":case"in":case"px":return n3*Ee[o2]>r3.maxSize[1]?{number:r3.maxSize[1],unit:"pt"}:{number:n3,unit:o2};case"em":case"ex":return o2==="ex"&&(n3*=.431),n3=Math.min(n3/Te(r3.level),r3.maxSize[0]),{number:u(n3),unit:"em"};case"bp":return n3>r3.maxSize[1]&&(n3=r3.maxSize[1]),{number:n3,unit:"pt"};case"pt":case"pc":case"dd":case"cc":case"nd":case"nc":case"sp":return n3=Math.min(n3*Ee[o2],r3.maxSize[1]),{number:u(n3),unit:"pt"};case"mu":return n3=Math.min(n3/18,r3.maxSize[0]),{number:u(n3),unit:"em"};default:throw new t2("Invalid unit: '"+o2+"'")}},ke=e3=>{let t3=new k("mspace");return t3.setAttribute("width",e3+"em"),t3},Ne=(e3,t3=.3,r3=0,n3=!1)=>{if(e3==null&&r3===0)return ke(t3);let o2=e3?[e3]:[];if(t3!==0&&o2.unshift(ke(t3)),r3>0&&o2.push(ke(r3)),n3){let e4=new k("mpadded",o2);return e4.setAttribute("height","0.1px"),e4}return new k("mrow",o2)},Le=(e3,t3)=>Number(e3)/Te(t3),Oe=(e3,t3,r3,n3)=>{let o2=M(e3),i2=e3.slice(1,3)==="eq",a2=e3.charAt(1)==="x"?"1.75":e3.slice(2,4)==="cd"?"3.0":i2?"1.0":"2.0";o2.setAttribute("lspace","0"),o2.setAttribute("rspace",i2?"0.5em":"0");let s2=n3.withLevel(n3.level<2?2:3),l2=Le(a2,s2.level),c3=Le(a2,3),u2=Ne(null,l2.toFixed(4),0),d2=Ne(null,c3.toFixed(4),0),h3=Le(i2?0:.3,s2.level).toFixed(4),m2,p2,f2=t3&&t3.body&&(t3.body.body||t3.body.length>0);if(f2){let r4=fe(t3,s2);r4=Ne(r4,h3,h3,e3==="\\\\cdrightarrow"||e3==="\\\\cdleftarrow"),m2=new k("mover",[r4,d2])}let g2=r3&&r3.body&&(r3.body.body||r3.body.length>0);if(g2){let e4=fe(r3,s2);e4=Ne(e4,h3,h3),p2=new k("munder",[e4,d2])}let b2;return b2=f2||g2?f2&&g2?new k("munderover",[o2,p2,m2]):f2?new k("mover",[o2,m2]):new k("munder",[o2,p2]):new k("mover",[o2,u2]),a2==="3.0"&&(b2.style.height="1em"),b2.setAttribute("accent","false"),b2};f({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xleftrightharpoons","\\xrightleftharpoons","\\yields","\\yieldsLeft","\\mesomerism","\\longrightharpoonup","\\longleftharpoondown","\\yieldsLeftRight","\\chemequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:({parser:e3,funcName:t3},r3,n3)=>({type:"xArrow",mode:e3.mode,name:t3,body:r3[0],below:n3[0]}),mathmlBuilder(e3,t3){let r3=[Oe(e3.name,e3.body,e3.below,t3)];return r3.unshift(ke(.2778)),r3.push(ke(.2778)),new k("mrow",r3)}});let De={"\\equilibriumRight":["\\longrightharpoonup","\\eqleftharpoondown"],"\\equilibriumLeft":["\\eqrightharpoonup","\\longleftharpoondown"]};f({type:"stackedArrow",names:["\\equilibriumRight","\\equilibriumLeft"],props:{numArgs:1,numOptionalArgs:1},handler({parser:e3,funcName:t3},r3,n3){let o2=r3[0]?{type:"hphantom",mode:e3.mode,body:r3[0]}:null,i2=n3[0]?{type:"hphantom",mode:e3.mode,body:n3[0]}:null;return{type:"stackedArrow",mode:e3.mode,name:t3,body:r3[0],upperArrowBelow:i2,lowerArrowBody:o2,below:n3[0]}},mathmlBuilder(e3,t3){let r3=De[e3.name][0],n3=De[e3.name][1],o2=Oe(r3,e3.body,e3.upperArrowBelow,t3),i2=Oe(n3,e3.lowerArrowBody,e3.below,t3),a2,s2=new k("mpadded",[o2]);if(s2.setAttribute("voffset","0.3em"),s2.setAttribute("height","+0.3em"),s2.setAttribute("depth","-0.3em"),e3.name==="\\equilibriumLeft"){let e4=new k("mpadded",[i2]);e4.setAttribute("width","0.5em"),a2=new k("mpadded",[ke(.2778),e4,s2,ke(.2778)])}else s2.setAttribute("width",e3.name==="\\equilibriumRight"?"0.5em":"0"),a2=new k("mpadded",[ke(.2778),s2,i2,ke(.2778)]);return a2.setAttribute("voffset","-0.18em"),a2.setAttribute("height","-0.18em"),a2.setAttribute("depth","+0.18em"),a2}});let Me={};function $e({type:e3,names:t3,props:r3,handler:n3,mathmlBuilder:o2}){let i2={type:e3,numArgs:r3.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n3};for(let e4=0;e4<t3.length;++e4)Me[t3[e4]]=i2;o2&&(p[e3]=o2)}function Be(e3,t3){if(!e3||e3.type!==t3)throw new Error(`Expected node of type ${t3}, but got `+(e3?`node of type ${e3.type}`:String(e3)));return e3}function Pe(e3){let t3=Ie(e3);if(!t3)throw new Error("Expected node of symbol group type, but got "+(e3?`node of type ${e3.type}`:String(e3)));return t3}function Ie(e3){return e3&&(e3.type==="atom"||Object.prototype.hasOwnProperty.call(I,e3.type))?e3:null}let Re={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Fe=e3=>e3.type==="textord"&&e3.text==="@";function je(e3,t3,r3){let n3=Re[e3];switch(n3){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return r3.callFunction(n3,[t3[0]],[t3[1]]);case"\\uparrow":case"\\downarrow":{let e4={type:"atom",text:n3,mode:"math",family:"rel"},o2={type:"ordgroup",mode:"math",body:[r3.callFunction("\\\\cdleft",[t3[0]],[]),r3.callFunction("\\Big",[e4],[]),r3.callFunction("\\\\cdright",[t3[1]],[])],semisimple:!0};return r3.callFunction("\\\\cdparent",[o2],[])}case"\\\\cdlongequal":return r3.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{let e4={type:"textord",text:"\\Vert",mode:"math"};return r3.callFunction("\\Big",[e4],[])}default:return{type:"textord",text:" ",mode:"math"}}}f({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:({parser:e3,funcName:t3},r3)=>({type:"cdlabel",mode:e3.mode,side:t3.slice(4),label:r3[0]}),mathmlBuilder(e3,t3){if(e3.label.body.length===0)return new k("mrow",t3);let r3=fe(e3.label,t3);e3.side==="left"&&r3.classes.push("tml-shift-left");let n3=new k("mtd",[r3]);n3.style.padding="0";let o2=new k("mtr",[n3]),i2=new k("mtable",[o2]),a2=new k("mpadded",[i2]);return a2.setAttribute("width","0.1px"),a2.setAttribute("displaystyle","false"),a2.setAttribute("scriptlevel","1"),a2}}),f({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:({parser:e3},t3)=>({type:"cdlabelparent",mode:e3.mode,fragment:t3[0]}),mathmlBuilder:(e3,t3)=>new k("mrow",[fe(e3.fragment,t3)])});let He=e3=>({type:"ordgroup",mode:"math",body:e3,semisimple:!0}),ze=(e3,t3)=>({type:t3,mode:"math",body:He(e3)});class Ue{constructor(e3,t3,r3){this.lexer=e3,this.start=t3,this.end=r3}static range(e3,t3){return t3?e3&&e3.loc&&t3.loc&&e3.loc.lexer===t3.loc.lexer?new Ue(e3.loc.lexer,e3.loc.start,t3.loc.end):null:e3&&e3.loc}}class We{constructor(e3,t3){this.text=e3,this.loc=t3}range(e3,t3){return new We(t3,Ue.range(this,e3))}}let Ge=0,Ve=1,Xe=2,Je=3,Ze={};function Ke(e3,t3){Ze[e3]=t3}let Ye=Ze;Ke("\\noexpand",(function(e3){let t3=e3.popToken();return e3.isExpandable(t3.text)&&(t3.noexpand=!0,t3.treatAsRelax=!0),{tokens:[t3],numArgs:0}})),Ke("\\expandafter",(function(e3){let t3=e3.popToken();return e3.expandOnce(!0),{tokens:[t3],numArgs:0}})),Ke("\\@firstoftwo",(function(e3){return{tokens:e3.consumeArgs(2)[0],numArgs:0}})),Ke("\\@secondoftwo",(function(e3){return{tokens:e3.consumeArgs(2)[1],numArgs:0}})),Ke("\\@ifnextchar",(function(e3){let t3=e3.consumeArgs(3);e3.consumeSpaces();let r3=e3.future();return t3[0].length===1&&t3[0][0].text===r3.text?{tokens:t3[1],numArgs:0}:{tokens:t3[2],numArgs:0}})),Ke("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Ke("\\TextOrMath",(function(e3){let t3=e3.consumeArgs(2);return e3.mode==="text"?{tokens:t3[0],numArgs:0}:{tokens:t3[1],numArgs:0}}));let Qe=e3=>{let t3="";for(let r3=e3.length-1;r3>-1;r3--)t3+=e3[r3].text;return t3},et={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15},tt=e3=>{let t3=e3.future().text;return t3==="EOF"?[null,""]:[et[t3.charAt(0)],t3]},rt=(e3,t3,r3)=>{for(let n3=1;n3<t3.length;n3++)e3*=r3,e3+=et[t3.charAt(n3)];return e3};function nt(e3){let t3=e3.consumeArgs(1)[0],r3="",n3=t3[t3.length-1].loc.start;for(let e4=t3.length-1;e4>=0;e4--){let o2=t3[e4].loc.start;o2>n3&&(r3+=" ",n3=o2),r3+=t3[e4].text,n3+=t3[e4].text.length}return r3}Ke("\\char",(function(e3){let r3,n3=e3.popToken(),o2="";if(n3.text==="'")r3=8,n3=e3.popToken();else if(n3.text==='"')r3=16,n3=e3.popToken();else if(n3.text==="`")if(n3=e3.popToken(),n3.text[0]==="\\")o2=n3.text.charCodeAt(1);else{if(n3.text==="EOF")throw new t2("\\char` missing argument");o2=n3.text.charCodeAt(0)}else r3=10;if(r3){let i2,a2=n3.text;if(o2=et[a2.charAt(0)],o2==null||o2>=r3)throw new t2(`Invalid base-${r3} digit ${n3.text}`);for(o2=rt(o2,a2,r3),[i2,a2]=tt(e3);i2!=null&&i2<r3;)o2*=r3,o2+=i2,o2=rt(o2,a2,r3),e3.popToken(),[i2,a2]=tt(e3)}return`\\@char{${o2}}`})),Ke("\\surd","\\sqrt{\\vphantom{|}}"),Ke("\u2295","\\oplus"),Ke("\\long",""),Ke("\\bgroup","{"),Ke("\\egroup","}"),Ke("~","\\nobreakspace"),Ke("\\lq","`"),Ke("\\rq","'"),Ke("\\aa","\\r a"),Ke("\\Bbbk","\\Bbb{k}"),Ke("\\mathstrut","\\vphantom{(}"),Ke("\\underbar","\\underline{\\text{#1}}"),Ke("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),Ke("\u22EE","\\vdots"),Ke("\\arraystretch","1"),Ke("\\arraycolsep","6pt"),Ke("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),Ke("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),Ke("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),Ke("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");let ot={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcap":"\\dotsb","\\bigsqcup":"\\dotsb","\\bigtimes":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\DOTSX":"\\dotsx"};Ke("\\dots",(function(e3){let t3="\\dotso",r3=e3.expandAfterFuture().text;return r3 in ot?t3=ot[r3]:(r3.slice(0,4)==="\\not"||r3 in R.math&&["bin","rel"].includes(R.math[r3].group))&&(t3="\\dotsb"),t3}));let it={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};Ke("\\dotso",(function(e3){return e3.future().text in it?"\\ldots\\,":"\\ldots"})),Ke("\\dotsc",(function(e3){let t3=e3.future().text;return t3 in it&&t3!==","?"\\ldots\\,":"\\ldots"})),Ke("\\cdots",(function(e3){return e3.future().text in it?"\\@cdots\\,":"\\@cdots"})),Ke("\\dotsb","\\cdots"),Ke("\\dotsm","\\cdots"),Ke("\\dotsi","\\!\\cdots"),Ke("\\idotsint","\\int\\!\\cdots\\!\\int"),Ke("\\dotsx","\\ldots\\,"),Ke("\\DOTSI","\\relax"),Ke("\\DOTSB","\\relax"),Ke("\\DOTSX","\\relax"),Ke("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Ke("\\,","{\\tmspace+{3mu}{.1667em}}"),Ke("\\thinspace","\\,"),Ke("\\>","\\mskip{4mu}"),Ke("\\:","{\\tmspace+{4mu}{.2222em}}"),Ke("\\medspace","\\:"),Ke("\\;","{\\tmspace+{5mu}{.2777em}}"),Ke("\\thickspace","\\;"),Ke("\\!","{\\tmspace-{3mu}{.1667em}}"),Ke("\\negthinspace","\\!"),Ke("\\negmedspace","{\\tmspace-{4mu}{.2222em}}"),Ke("\\negthickspace","{\\tmspace-{5mu}{.277em}}"),Ke("\\enspace","\\kern.5em "),Ke("\\enskip","\\hskip.5em\\relax"),Ke("\\quad","\\hskip1em\\relax"),Ke("\\qquad","\\hskip2em\\relax"),Ke("\\AA","\\TextOrMath{\\Angstrom}{\\mathring{A}}\\relax"),Ke("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Ke("\\tag@paren","\\tag@literal{({#1})}"),Ke("\\tag@literal",(e3=>{if(e3.macros.get("\\df@tag"))throw new t2("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),Ke("\\notag","\\nonumber"),Ke("\\nonumber","\\gdef\\@eqnsw{0}"),Ke("\\bmod","\\mathbin{\\text{mod}}"),Ke("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Ke("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Ke("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Ke("\\newline","\\\\\\relax"),Ke("\\TeX","\\textrm{T}\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125em\\textrm{X}"),Ke("\\LaTeX","\\textrm{L}\\kern-.35em\\raisebox{0.2em}{\\scriptstyle A}\\kern-.15em\\TeX"),Ke("\\Temml","\\textrm{T}\\kern-0.2em\\lower{0.2em}{\\textrm{E}}\\kern-0.08em{\\textrm{M}\\kern-0.08em\\raise{0.2em}\\textrm{M}\\kern-0.08em\\textrm{L}}"),Ke("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Ke("\\@hspace","\\hskip #1\\relax"),Ke("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Ke("\\colon",'\\mathpunct{\\char"3a}'),Ke("\\prescript","\\pres@cript{_{#1}^{#2}}{}{#3}"),Ke("\\ordinarycolon",'\\char"3a'),Ke("\\vcentcolon","\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}}"),Ke("\\coloneq",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"2212}'),Ke("\\Coloneq",'\\mathrel{\\char"2237\\char"2212}'),Ke("\\Eqqcolon",'\\mathrel{\\char"3d\\char"2237}'),Ke("\\Eqcolon",'\\mathrel{\\char"2212\\char"2237}'),Ke("\\colonapprox",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"2248}'),Ke("\\Colonapprox",'\\mathrel{\\char"2237\\char"2248}'),Ke("\\colonsim",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"223c}'),Ke("\\Colonsim",'\\mathrel{\\raisebox{0.035em}{\\ordinarycolon}\\char"223c}'),Ke("\\ratio","\\vcentcolon"),Ke("\\coloncolon","\\dblcolon"),Ke("\\colonequals","\\coloneqq"),Ke("\\coloncolonequals","\\Coloneqq"),Ke("\\equalscolon","\\eqqcolon"),Ke("\\equalscoloncolon","\\Eqqcolon"),Ke("\\colonminus","\\coloneq"),Ke("\\coloncolonminus","\\Coloneq"),Ke("\\minuscolon","\\eqcolon"),Ke("\\minuscoloncolon","\\Eqcolon"),Ke("\\coloncolonapprox","\\Colonapprox"),Ke("\\coloncolonsim","\\Colonsim"),Ke("\\notni","\\mathrel{\\char`\u220C}"),Ke("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Ke("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Ke("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),Ke("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),Ke("\\varlimsup","\\DOTSB\\operatorname*{\\overline{\\text{lim}}}"),Ke("\\varliminf","\\DOTSB\\operatorname*{\\underline{\\text{lim}}}"),Ke("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{\\text{lim}}}"),Ke("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{\\text{lim}}}"),Ke("\\centerdot","{\\medspace\\rule{0.167em}{0.189em}\\medspace}"),Ke("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Ke("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Ke("\\plim","\\DOTSB\\operatorname*{plim}"),Ke("\\leftmodels","\\mathop{\\reflectbox{$\\models$}}"),Ke("\\bra","\\mathinner{\\langle{#1}|}"),Ke("\\ket","\\mathinner{|{#1}\\rangle}"),Ke("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Ke("\\Bra","\\left\\langle#1\\right|"),Ke("\\Ket","\\left|#1\\right\\rangle");let at=(e3,t3)=>{let r3=`}\\,\\middle${t3[0]==="|"?"\\vert":"\\Vert"}\\,{`;return e3.slice(0,t3.index)+r3+e3.slice(t3.index+t3[0].length)};Ke("\\Braket",(function(e3){let t3=nt(e3),r3=/\|\||\||\\\|/g,n3;for(;(n3=r3.exec(t3))!==null;)t3=at(t3,n3);return"\\left\\langle{"+t3+"}\\right\\rangle"})),Ke("\\Set",(function(e3){let t3=nt(e3),r3=/\|\||\||\\\|/.exec(t3);return r3&&(t3=at(t3,r3)),"\\left\\{\\:{"+t3+"}\\:\\right\\}"})),Ke("\\set",(function(e3){return"\\{{"+nt(e3).replace(/\|/,"}\\mid{")+"}\\}"})),Ke("\\angln","{\\angl n}"),Ke("\\odv","\\@ifstar\\odv@next\\odv@numerator"),Ke("\\odv@numerator","\\frac{\\mathrm{d}#1}{\\mathrm{d}#2}"),Ke("\\odv@next","\\frac{\\mathrm{d}}{\\mathrm{d}#2}#1"),Ke("\\pdv","\\@ifstar\\pdv@next\\pdv@numerator");let st=e3=>{let t3=e3[0][0].text,r3=Qe(e3[1]).split(","),n3=String(r3.length),o2=n3==="1"?"\\partial":`\\partial^${n3}`,i2="";return r3.map((e4=>{i2+="\\partial "+e4.trim()+"\\,"})),[t3,o2,i2.replace(/\\,$/,"")]};Ke("\\pdv@numerator",(function(e3){let[t3,r3,n3]=st(e3.consumeArgs(2));return`\\frac{${r3} ${t3}}{${n3}}`})),Ke("\\pdv@next",(function(e3){let[t3,r3,n3]=st(e3.consumeArgs(2));return`\\frac{${r3}}{${n3}} ${t3}`})),Ke("\\upalpha","\\up@greek{\\alpha}"),Ke("\\upbeta","\\up@greek{\\beta}"),Ke("\\upgamma","\\up@greek{\\gamma}"),Ke("\\updelta","\\up@greek{\\delta}"),Ke("\\upepsilon","\\up@greek{\\epsilon}"),Ke("\\upzeta","\\up@greek{\\zeta}"),Ke("\\upeta","\\up@greek{\\eta}"),Ke("\\uptheta","\\up@greek{\\theta}"),Ke("\\upiota","\\up@greek{\\iota}"),Ke("\\upkappa","\\up@greek{\\kappa}"),Ke("\\uplambda","\\up@greek{\\lambda}"),Ke("\\upmu","\\up@greek{\\mu}"),Ke("\\upnu","\\up@greek{\\nu}"),Ke("\\upxi","\\up@greek{\\xi}"),Ke("\\upomicron","\\up@greek{\\omicron}"),Ke("\\uppi","\\up@greek{\\pi}"),Ke("\\upalpha","\\up@greek{\\alpha}"),Ke("\\uprho","\\up@greek{\\rho}"),Ke("\\upsigma","\\up@greek{\\sigma}"),Ke("\\uptau","\\up@greek{\\tau}"),Ke("\\upupsilon","\\up@greek{\\upsilon}"),Ke("\\upphi","\\up@greek{\\phi}"),Ke("\\upchi","\\up@greek{\\chi}"),Ke("\\uppsi","\\up@greek{\\psi}"),Ke("\\upomega","\\up@greek{\\omega}"),Ke("\\invamp",'\\mathbin{\\char"214b}'),Ke("\\parr",'\\mathbin{\\char"214b}'),Ke("\\with",'\\mathbin{\\char"26}'),Ke("\\multimapinv",'\\mathrel{\\char"27dc}'),Ke("\\multimapboth",'\\mathrel{\\char"29df}'),Ke("\\scoh",'{\\mkern5mu\\char"2322\\mkern5mu}'),Ke("\\sincoh",'{\\mkern5mu\\char"2323\\mkern5mu}'),Ke("\\coh",`{\\mkern5mu\\rule{}{0.7em}\\mathrlap{\\smash{\\raise2mu{\\char"2322}}}
{\\smash{\\lower4mu{\\char"2323}}}\\mkern5mu}`),Ke("\\incoh",`{\\mkern5mu\\rule{}{0.7em}\\mathrlap{\\smash{\\raise2mu{\\char"2323}}}
{\\smash{\\lower4mu{\\char"2322}}}\\mkern5mu}`),Ke("\\standardstate","\\text{\\tiny\\char`\u29B5}"),Ke("\\ce",(function(e3){return lt(e3.consumeArgs(1)[0],"ce")})),Ke("\\pu",(function(e3){return lt(e3.consumeArgs(1)[0],"pu")})),Ke("\\uniDash","{\\rule{0.672em}{0.06em}}"),Ke("\\triDash","{\\rule{0.15em}{0.06em}\\kern2mu\\rule{0.15em}{0.06em}\\kern2mu\\rule{0.15em}{0.06em}}"),Ke("\\tripleDash","\\kern0.075em\\raise0.25em{\\triDash}\\kern0.075em"),Ke("\\tripleDashOverLine","\\kern0.075em\\mathrlap{\\raise0.125em{\\uniDash}}\\raise0.34em{\\triDash}\\kern0.075em"),Ke("\\tripleDashOverDoubleLine","\\kern0.075em\\mathrlap{\\mathrlap{\\raise0.48em{\\triDash}}\\raise0.27em{\\uniDash}}{\\raise0.05em{\\uniDash}}\\kern0.075em"),Ke("\\tripleDashBetweenDoubleLine","\\kern0.075em\\mathrlap{\\mathrlap{\\raise0.48em{\\uniDash}}\\raise0.27em{\\triDash}}{\\raise0.05em{\\uniDash}}\\kern0.075em");var lt=function(e3,t3){for(var r3="",n3=e3.length&&e3[e3.length-1].loc.start,o2=e3.length-1;o2>=0;o2--)e3[o2].loc.start>n3&&(r3+=" ",n3=e3[o2].loc.start),r3+=e3[o2].text,n3+=e3[o2].text.length;return ut.go(ct.go(r3,t3))},ct={go:function(e3,t3){if(!e3)return[];t3===void 0&&(t3="ce");var r3,n3="0",o2={};o2.parenthesisLevel=0,e3=(e3=(e3=e3.replace(/\n/g," ")).replace(/[\u2212\u2013\u2014\u2010]/g,"-")).replace(/[\u2026]/g,"...");for(var i2=10,a2=[];;){r3!==e3?(i2=10,r3=e3):i2--;var s2=ct.stateMachines[t3],l2=s2.transitions[n3]||s2.transitions["*"];e:for(var c3=0;c3<l2.length;c3++){var u2=ct.patterns.match_(l2[c3].pattern,e3);if(u2){for(var d2=l2[c3].task,h3=0;h3<d2.action_.length;h3++){var m2;if(s2.actions[d2.action_[h3].type_])m2=s2.actions[d2.action_[h3].type_](o2,u2.match_,d2.action_[h3].option);else{if(!ct.actions[d2.action_[h3].type_])throw["MhchemBugA","mhchem bug A. Please report. ("+d2.action_[h3].type_+")"];m2=ct.actions[d2.action_[h3].type_](o2,u2.match_,d2.action_[h3].option)}ct.concatArray(a2,m2)}if(n3=d2.nextState||n3,!(e3.length>0))return a2;if(d2.revisit||(e3=u2.remainder),!d2.toContinue)break e}}if(i2<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e3,t3){if(t3)if(Array.isArray(t3))for(var r3=0;r3<t3.length;r3++)e3.push(t3[r3]);else e3.push(t3)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e3){var t3=e3.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:([eE]|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t3&&t3[0]?{match_:t3.splice(1),remainder:e3.substr(t3[0].length)}:null},"(-)(9)^(-9)":function(e3){var t3=e3.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return t3&&t3[0]?{match_:t3.splice(1),remainder:e3.substr(t3[0].length)}:null},"state of aggregation $":function(e3){var t3=ct.patterns.findObserveGroups(e3,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t3&&t3.remainder.match(/^($|[\s,;\)\]\}])/))return t3;var r3=e3.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r3?{match_:r3[0],remainder:e3.substr(r3[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(e3){return ct.patterns.findObserveGroups(e3,"^{","","","}")},"^($...$)":function(e3){return ct.patterns.findObserveGroups(e3,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e3){return ct.patterns.findObserveGroups(e3,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e3){return ct.patterns.findObserveGroups(e3,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e3){return ct.patterns.findObserveGroups(e3,"_{","","","}")},"_($...$)":function(e3){return ct.patterns.findObserveGroups(e3,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e3){return ct.patterns.findObserveGroups(e3,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e3){return ct.patterns.findObserveGroups(e3,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e3){return ct.patterns.findObserveGroups(e3,"","{","}","")},"{(...)}":function(e3){return ct.patterns.findObserveGroups(e3,"{","","","}")},"$...$":function(e3){return ct.patterns.findObserveGroups(e3,"","$","$","")},"${(...)}$":function(e3){return ct.patterns.findObserveGroups(e3,"${","","","}$")},"$(...)$":function(e3){return ct.patterns.findObserveGroups(e3,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e3){return ct.patterns.findObserveGroups(e3,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e3){return ct.patterns.findObserveGroups(e3,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e3){return ct.patterns.findObserveGroups(e3,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e3){return ct.patterns.findObserveGroups(e3,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e3){return ct.patterns.findObserveGroups(e3,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e3){return ct.patterns.findObserveGroups(e3,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e3){return ct.patterns.findObserveGroups(e3,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e3){return ct.patterns.findObserveGroups(e3,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e3){return ct.patterns.findObserveGroups(e3,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e3){return ct.patterns.findObserveGroups(e3,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e3){return ct.patterns.findObserveGroups(e3,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e3){return ct.patterns.findObserveGroups(e3,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e3){var t3;if(t3=e3.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/))return{match_:t3[0],remainder:e3.substr(t3[0].length)};var r3=ct.patterns.findObserveGroups(e3,"","$","$","");return r3&&(t3=r3.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/))?{match_:t3[0],remainder:e3.substr(t3[0].length)}:null},amount2:function(e3){return this.amount(e3)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e3){if(e3.match(/^\([a-z]+\)$/))return null;var t3=e3.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t3?{match_:t3[0],remainder:e3.substr(t3[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e3,t3,r3,n3,o2,i2,a2,s2,l2,c3){var u2=function(e4,t4){if(typeof t4=="string")return e4.indexOf(t4)!==0?null:t4;var r4=e4.match(t4);return r4?r4[0]:null},d2=u2(e3,t3);if(d2===null||(e3=e3.substr(d2.length),(d2=u2(e3,r3))===null))return null;var h3=(function(e4,t4,r4){for(var n4=0;t4<e4.length;){var o3=e4.charAt(t4),i3=u2(e4.substr(t4),r4);if(i3!==null&&n4===0)return{endMatchBegin:t4,endMatchEnd:t4+i3.length};if(o3==="{")n4++;else if(o3==="}"){if(n4===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];n4--}t4++}return null})(e3,d2.length,n3||o2);if(h3===null)return null;var m2=e3.substring(0,n3?h3.endMatchEnd:h3.endMatchBegin);if(i2||a2){var p2=this.findObserveGroups(e3.substr(h3.endMatchEnd),i2,a2,s2,l2);if(p2===null)return null;var f2=[m2,p2.match_];return{match_:c3?f2.join(""):f2,remainder:p2.remainder}}return{match_:m2,remainder:e3.substr(h3.endMatchEnd)}},match_:function(e3,t3){var r3=ct.patterns.patterns[e3];if(r3===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e3+")"];if(typeof r3=="function")return ct.patterns.patterns[e3](t3);var n3=t3.match(r3);return n3?{match_:n3[2]?[n3[1],n3[2]]:n3[1]?n3[1]:n3[0],remainder:t3.substr(n3[0].length)}:null}},actions:{"a=":function(e3,t3){e3.a=(e3.a||"")+t3},"b=":function(e3,t3){e3.b=(e3.b||"")+t3},"p=":function(e3,t3){e3.p=(e3.p||"")+t3},"o=":function(e3,t3){e3.o=(e3.o||"")+t3},"q=":function(e3,t3){e3.q=(e3.q||"")+t3},"d=":function(e3,t3){e3.d=(e3.d||"")+t3},"rm=":function(e3,t3){e3.rm=(e3.rm||"")+t3},"text=":function(e3,t3){e3.text_=(e3.text_||"")+t3},insert:function(e3,t3,r3){return{type_:r3}},"insert+p1":function(e3,t3,r3){return{type_:r3,p1:t3}},"insert+p1+p2":function(e3,t3,r3){return{type_:r3,p1:t3[0],p2:t3[1]}},copy:function(e3,t3){return t3},rm:function(e3,t3){return{type_:"rm",p1:t3||""}},text:function(e3,t3){return ct.go(t3,"text")},"{text}":function(e3,t3){var r3=["{"];return ct.concatArray(r3,ct.go(t3,"text")),r3.push("}"),r3},"tex-math":function(e3,t3){return ct.go(t3,"tex-math")},"tex-math tight":function(e3,t3){return ct.go(t3,"tex-math tight")},bond:function(e3,t3,r3){return{type_:"bond",kind_:r3||t3}},"color0-output":function(e3,t3){return{type_:"color0",color:t3[0]}},ce:function(e3,t3){return ct.go(t3)},"1/2":function(e3,t3){var r3=[];t3.match(/^[+\-]/)&&(r3.push(t3.substr(0,1)),t3=t3.substr(1));var n3=t3.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return n3[1]=n3[1].replace(/\$/g,""),r3.push({type_:"frac",p1:n3[1],p2:n3[2]}),n3[3]&&(n3[3]=n3[3].replace(/\$/g,""),r3.push({type_:"tex-math",p1:n3[3]})),r3},"9,9":function(e3,t3){return ct.go(t3,"9,9")}},createTransitions:function(e3){var t3,r3,n3,o2,i2={};for(t3 in e3)for(r3 in e3[t3])for(n3=r3.split("|"),e3[t3][r3].stateArray=n3,o2=0;o2<n3.length;o2++)i2[n3[o2]]=[];for(t3 in e3)for(r3 in e3[t3])for(n3=e3[t3][r3].stateArray||[],o2=0;o2<n3.length;o2++){var a2=e3[t3][r3];if(a2.action_){a2.action_=[].concat(a2.action_);for(var s2=0;s2<a2.action_.length;s2++)typeof a2.action_[s2]=="string"&&(a2.action_[s2]={type_:a2.action_[s2]})}else a2.action_=[];for(var l2=t3.split("|"),c3=0;c3<l2.length;c3++)if(n3[o2]==="*")for(var u2 in i2)i2[u2].push({pattern:l2[c3],task:a2});else i2[n3[o2]].push({pattern:l2[c3],task:a2})}return i2},stateMachines:{}};ct.stateMachines={ce:{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e3,t3){var r3;if((e3.d||"").match(/^[0-9]+$/)){var n3=e3.d;e3.d=void 0,r3=this.output(e3),e3.b=n3}else r3=this.output(e3);return ct.actions["o="](e3,t3),r3},"d= kv":function(e3,t3){e3.d=t3,e3.dType="kv"},"charge or bond":function(e3,t3){if(e3.beginsWithBond){var r3=[];return ct.concatArray(r3,this.output(e3)),ct.concatArray(r3,ct.actions.bond(e3,t3,"-")),r3}e3.d=t3},"- after o/d":function(e3,t3,r3){var n3=ct.patterns.match_("orbital",e3.o||""),o2=ct.patterns.match_("one lowercase greek letter $",e3.o||""),i2=ct.patterns.match_("one lowercase latin letter $",e3.o||""),a2=ct.patterns.match_("$one lowercase latin letter$ $",e3.o||""),s2=t3==="-"&&(n3&&n3.remainder===""||o2||i2||a2);!s2||e3.a||e3.b||e3.p||e3.d||e3.q||n3||!i2||(e3.o="$"+e3.o+"$");var l2=[];return s2?(ct.concatArray(l2,this.output(e3)),l2.push({type_:"hyphen"})):(n3=ct.patterns.match_("digits",e3.d||""),r3&&n3&&n3.remainder===""?(ct.concatArray(l2,ct.actions["d="](e3,t3)),ct.concatArray(l2,this.output(e3))):(ct.concatArray(l2,this.output(e3)),ct.concatArray(l2,ct.actions.bond(e3,t3,"-")))),l2},"a to o":function(e3){e3.o=e3.a,e3.a=void 0},"sb=true":function(e3){e3.sb=!0},"sb=false":function(e3){e3.sb=!1},"beginsWithBond=true":function(e3){e3.beginsWithBond=!0},"beginsWithBond=false":function(e3){e3.beginsWithBond=!1},"parenthesisLevel++":function(e3){e3.parenthesisLevel++},"parenthesisLevel--":function(e3){e3.parenthesisLevel--},"state of aggregation":function(e3,t3){return{type_:"state of aggregation",p1:ct.go(t3,"o")}},comma:function(e3,t3){var r3=t3.replace(/\s*$/,"");return r3!==t3&&e3.parenthesisLevel===0?{type_:"comma enumeration L",p1:r3}:{type_:"comma enumeration M",p1:r3}},output:function(e3,t3,r3){var n3,o2,i2;e3.r?(o2=e3.rdt==="M"?ct.go(e3.rd,"tex-math"):e3.rdt==="T"?[{type_:"text",p1:e3.rd||""}]:ct.go(e3.rd),i2=e3.rqt==="M"?ct.go(e3.rq,"tex-math"):e3.rqt==="T"?[{type_:"text",p1:e3.rq||""}]:ct.go(e3.rq),n3={type_:"arrow",r:e3.r,rd:o2,rq:i2}):(n3=[],(e3.a||e3.b||e3.p||e3.o||e3.q||e3.d||r3)&&(e3.sb&&n3.push({type_:"entitySkip"}),e3.o||e3.q||e3.d||e3.b||e3.p||r3===2?e3.o||e3.q||e3.d||!e3.b&&!e3.p?e3.o&&e3.dType==="kv"&&ct.patterns.match_("d-oxidation$",e3.d||"")?e3.dType="oxidation":e3.o&&e3.dType==="kv"&&!e3.q&&(e3.dType=void 0):(e3.o=e3.a,e3.d=e3.b,e3.q=e3.p,e3.a=e3.b=e3.p=void 0):(e3.o=e3.a,e3.a=void 0),n3.push({type_:"chemfive",a:ct.go(e3.a,"a"),b:ct.go(e3.b,"bd"),p:ct.go(e3.p,"pq"),o:ct.go(e3.o,"o"),q:ct.go(e3.q,"pq"),d:ct.go(e3.d,e3.dType==="oxidation"?"oxidation":"bd"),dType:e3.dType})));for(var a2 in e3)a2!=="parenthesisLevel"&&a2!=="beginsWithBond"&&delete e3[a2];return n3},"oxidation-output":function(e3,t3){var r3=["{"];return ct.concatArray(r3,ct.go(t3,"oxidation")),r3.push("}"),r3},"frac-output":function(e3,t3){return{type_:"frac-ce",p1:ct.go(t3[0]),p2:ct.go(t3[1])}},"overset-output":function(e3,t3){return{type_:"overset",p1:ct.go(t3[0]),p2:ct.go(t3[1])}},"underset-output":function(e3,t3){return{type_:"underset",p1:ct.go(t3[0]),p2:ct.go(t3[1])}},"underbrace-output":function(e3,t3){return{type_:"underbrace",p1:ct.go(t3[0]),p2:ct.go(t3[1])}},"color-output":function(e3,t3){return{type_:"color",color1:t3[0],color2:ct.go(t3[1])}},"r=":function(e3,t3){e3.r=t3},"rdt=":function(e3,t3){e3.rdt=t3},"rd=":function(e3,t3){e3.rd=t3},"rqt=":function(e3,t3){e3.rqt=t3},"rq=":function(e3,t3){e3.rq=t3},operator:function(e3,t3,r3){return{type_:"operator",kind_:r3||t3}}}},a:{transitions:ct.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:ct.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e3){if(e3.text_){var t3={type_:"text",p1:e3.text_};for(var r3 in e3)delete e3[r3];return t3}}}},pq:{transitions:ct.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e3,t3){return{type_:"state of aggregation subscript",p1:ct.go(t3,"o")}},"color-output":function(e3,t3){return{type_:"color",color1:t3[0],color2:ct.go(t3[1],"pq")}}}},bd:{transitions:ct.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e3,t3){return{type_:"color",color1:t3[0],color2:ct.go(t3[1],"bd")}}}},oxidation:{transitions:ct.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e3,t3){return{type_:"roman numeral",p1:t3||""}}}},"tex-math":{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e3){if(e3.o){var t3={type_:"tex-math",p1:e3.o};for(var r3 in e3)delete e3[r3];return t3}}}},"tex-math tight":{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e3,t3){e3.o=(e3.o||"")+"{"+t3+"}"},output:function(e3){if(e3.o){var t3={type_:"tex-math",p1:e3.o};for(var r3 in e3)delete e3[r3];return t3}}}},"9,9":{transitions:ct.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e3,t3){var r3=[];return t3[0]==="+-"||t3[0]==="+/-"?r3.push("\\pm "):t3[0]&&r3.push(t3[0]),t3[1]&&(ct.concatArray(r3,ct.go(t3[1],"pu-9,9")),t3[2]&&(t3[2].match(/[,.]/)?ct.concatArray(r3,ct.go(t3[2],"pu-9,9")):r3.push(t3[2])),t3[3]=t3[4]||t3[3],t3[3]&&(t3[3]=t3[3].trim(),t3[3]==="e"||t3[3].substr(0,1)==="*"?r3.push({type_:"cdot"}):r3.push({type_:"times"}))),t3[3]&&r3.push("10^{"+t3[5]+"}"),r3},"number^":function(e3,t3){var r3=[];return t3[0]==="+-"||t3[0]==="+/-"?r3.push("\\pm "):t3[0]&&r3.push(t3[0]),ct.concatArray(r3,ct.go(t3[1],"pu-9,9")),r3.push("^{"+t3[2]+"}"),r3},operator:function(e3,t3,r3){return{type_:"operator",kind_:r3||t3}},space:function(){return{type_:"pu-space-1"}},output:function(e3){var t3,r3=ct.patterns.match_("{(...)}",e3.d||"");r3&&r3.remainder===""&&(e3.d=r3.match_);var n3=ct.patterns.match_("{(...)}",e3.q||"");if(n3&&n3.remainder===""&&(e3.q=n3.match_),e3.d&&(e3.d=e3.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e3.d=e3.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e3.q){e3.q=e3.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e3.q=e3.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var o2={d:ct.go(e3.d,"pu"),q:ct.go(e3.q,"pu")};e3.o==="//"?t3={type_:"pu-frac",p1:o2.d,p2:o2.q}:(t3=o2.d,o2.d.length>1||o2.q.length>1?t3.push({type_:" / "}):t3.push({type_:"/"}),ct.concatArray(t3,o2.q))}else t3=ct.go(e3.d,"pu-2");for(var i2 in e3)delete e3[i2];return t3}}},"pu-2":{transitions:ct.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e3,t3){e3.rm+="^{"+t3+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e3){var t3=[];if(e3.rm){var r3=ct.patterns.match_("{(...)}",e3.rm||"");t3=r3&&r3.remainder===""?ct.go(r3.match_,"pu"):{type_:"rm",p1:e3.rm}}for(var n3 in e3)delete e3[n3];return t3}}},"pu-9,9":{transitions:ct.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e3){var t3=[];if(e3.text_=e3.text_||"",e3.text_.length>4){var r3=e3.text_.length%3;r3===0&&(r3=3);for(var n3=e3.text_.length-3;n3>0;n3-=3)t3.push(e3.text_.substr(n3,3)),t3.push({type_:"1000 separator"});t3.push(e3.text_.substr(0,r3)),t3.reverse()}else t3.push(e3.text_);for(var o2 in e3)delete e3[o2];return t3},"output-o":function(e3){var t3=[];if(e3.text_=e3.text_||"",e3.text_.length>4){for(var r3=e3.text_.length-3,n3=0;n3<r3;n3+=3)t3.push(e3.text_.substr(n3,3)),t3.push({type_:"1000 separator"});t3.push(e3.text_.substr(n3))}else t3.push(e3.text_);for(var o2 in e3)delete e3[o2];return t3}}}};var ut={go:function(e3,t3){if(!e3)return"";for(var r3="",n3=!1,o2=0;o2<e3.length;o2++){var i2=e3[o2];typeof i2=="string"?r3+=i2:(r3+=ut._go2(i2),i2.type_==="1st-level escape"&&(n3=!0))}return t3||n3||!r3||(r3="{"+r3+"}"),r3},_goInner:function(e3){return e3&&ut.go(e3,!0)},_go2:function(e3){var t3;switch(e3.type_){case"chemfive":t3="";var r3={a:ut._goInner(e3.a),b:ut._goInner(e3.b),p:ut._goInner(e3.p),o:ut._goInner(e3.o),q:ut._goInner(e3.q),d:ut._goInner(e3.d)};r3.a&&(r3.a.match(/^[+\-]/)&&(r3.a="{"+r3.a+"}"),t3+=r3.a+"\\,"),(r3.b||r3.p)&&(t3+="{\\vphantom{X}}",t3+="^{\\hphantom{"+(r3.b||"")+"}}_{\\hphantom{"+(r3.p||"")+"}}",t3+="{\\vphantom{X}}",t3+="^{\\vphantom{2}\\mathllap{"+(r3.b||"")+"}}",t3+="_{\\vphantom{2}\\mathllap{"+(r3.p||"")+"}}"),r3.o&&(r3.o.match(/^[+\-]/)&&(r3.o="{"+r3.o+"}"),t3+=r3.o),e3.dType==="kv"?((r3.d||r3.q)&&(t3+="{\\vphantom{X}}"),r3.d&&(t3+="^{"+r3.d+"}"),r3.q&&(t3+="_{"+r3.q+"}")):e3.dType==="oxidation"?(r3.d&&(t3+="{\\vphantom{X}}",t3+="^{"+r3.d+"}"),r3.q&&(t3+="{{}}",t3+="_{"+r3.q+"}")):(r3.q&&(t3+="{{}}",t3+="_{"+r3.q+"}"),r3.d&&(t3+="{{}}",t3+="^{"+r3.d+"}"));break;case"rm":case"roman numeral":t3="\\mathrm{"+e3.p1+"}";break;case"text":e3.p1.match(/[\^_]/)?(e3.p1=e3.p1.replace(" ","~").replace("-","\\text{-}"),t3="\\mathrm{"+e3.p1+"}"):t3="\\text{"+e3.p1+"}";break;case"state of aggregation":t3="\\mskip2mu "+ut._goInner(e3.p1);break;case"state of aggregation subscript":t3="\\mskip1mu "+ut._goInner(e3.p1);break;case"bond":if(!(t3=ut._getBond(e3.kind_)))throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e3.kind_+")"];break;case"frac":var n3="\\frac{"+e3.p1+"}{"+e3.p2+"}";t3="\\mathchoice{\\textstyle"+n3+"}{"+n3+"}{"+n3+"}{"+n3+"}";break;case"pu-frac":var o2="\\frac{"+ut._goInner(e3.p1)+"}{"+ut._goInner(e3.p2)+"}";t3="\\mathchoice{\\textstyle"+o2+"}{"+o2+"}{"+o2+"}{"+o2+"}";break;case"tex-math":case"1st-level escape":t3=e3.p1+" ";break;case"frac-ce":t3="\\frac{"+ut._goInner(e3.p1)+"}{"+ut._goInner(e3.p2)+"}";break;case"overset":t3="\\overset{"+ut._goInner(e3.p1)+"}{"+ut._goInner(e3.p2)+"}";break;case"underset":t3="\\underset{"+ut._goInner(e3.p1)+"}{"+ut._goInner(e3.p2)+"}";break;case"underbrace":t3="\\underbrace{"+ut._goInner(e3.p1)+"}_{"+ut._goInner(e3.p2)+"}";break;case"color":t3="{\\color{"+e3.color1+"}{"+ut._goInner(e3.color2)+"}}";break;case"color0":t3="\\color{"+e3.color+"}";break;case"arrow":var i2={rd:ut._goInner(e3.rd),rq:ut._goInner(e3.rq)},a2=ut._getArrow(e3.r);i2.rq&&(a2+="[{\\rm "+i2.rq+"}]"),t3=a2+=i2.rd?"{\\rm "+i2.rd+"}":"{}";break;case"operator":t3=ut._getOperator(e3.kind_);break;case"space":t3=" ";break;case"entitySkip":case"pu-space-1":t3="~";break;case"pu-space-2":t3="\\mkern3mu ";break;case"1000 separator":t3="\\mkern2mu ";break;case"commaDecimal":t3="{,}";break;case"comma enumeration L":t3="{"+e3.p1+"}\\mkern6mu ";break;case"comma enumeration M":t3="{"+e3.p1+"}\\mkern3mu ";break;case"comma enumeration S":t3="{"+e3.p1+"}\\mkern1mu ";break;case"hyphen":t3="\\text{-}";break;case"addition compound":t3="\\,{\\cdot}\\,";break;case"electron dot":t3="\\mkern1mu \\text{\\textbullet}\\mkern1mu ";break;case"KV x":t3="{\\times}";break;case"prime":t3="\\prime ";break;case"cdot":t3="\\cdot ";break;case"tight cdot":t3="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t3="\\times ";break;case"circa":t3="{\\sim}";break;case"^":t3="uparrow";break;case"v":t3="downarrow";break;case"ellipsis":t3="\\ldots ";break;case"/":t3="/";break;case" / ":t3="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t3},_getArrow:function(e3){switch(e3){case"->":case"\u2192":case"\u27F6":return"\\yields";case"<-":return"\\yieldsLeft";case"<->":return"\\mesomerism";case"<-->":return"\\yieldsLeftRight";case"<=>":case"\u21CC":return"\\chemequilibrium";case"<=>>":return"\\equilibriumRight";case"<<=>":return"\\equilibriumLeft";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e3){switch(e3){case"-":case"1":return"{-}";case"=":case"2":return"{=}";case"#":case"3":return"{\\equiv}";case"~":return"{\\tripleDash}";case"~-":return"{\\tripleDashOverLine}";case"~=":case"~--":return"{\\tripleDashOverDoubleLine}";case"-~-":return"{\\tripleDashBetweenDoubleLine}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e3){switch(e3){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":case"$\\approx$":return" {}\\approx{} ";case"v":case"(v)":return" \\downarrow{} ";case"^":case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function dt(e3){let t3=[];e3.consumeSpaces();let r3=e3.fetch().text;for(r3==="\\relax"&&(e3.consume(),e3.consumeSpaces(),r3=e3.fetch().text);r3==="\\hline"||r3==="\\hdashline";)e3.consume(),t3.push(r3==="\\hdashline"),e3.consumeSpaces(),r3=e3.fetch().text;return t3}Ke("\\darr","\\downarrow"),Ke("\\dArr","\\Downarrow"),Ke("\\Darr","\\Downarrow"),Ke("\\lang","\\langle"),Ke("\\rang","\\rangle"),Ke("\\uarr","\\uparrow"),Ke("\\uArr","\\Uparrow"),Ke("\\Uarr","\\Uparrow"),Ke("\\N","\\mathbb{N}"),Ke("\\R","\\mathbb{R}"),Ke("\\Z","\\mathbb{Z}"),Ke("\\alef","\\aleph"),Ke("\\alefsym","\\aleph"),Ke("\\bull","\\bullet"),Ke("\\clubs","\\clubsuit"),Ke("\\cnums","\\mathbb{C}"),Ke("\\Complex","\\mathbb{C}"),Ke("\\Dagger","\\ddagger"),Ke("\\diamonds","\\diamondsuit"),Ke("\\empty","\\emptyset"),Ke("\\exist","\\exists"),Ke("\\harr","\\leftrightarrow"),Ke("\\hArr","\\Leftrightarrow"),Ke("\\Harr","\\Leftrightarrow"),Ke("\\hearts","\\heartsuit"),Ke("\\image","\\Im"),Ke("\\infin","\\infty"),Ke("\\isin","\\in"),Ke("\\larr","\\leftarrow"),Ke("\\lArr","\\Leftarrow"),Ke("\\Larr","\\Leftarrow"),Ke("\\lrarr","\\leftrightarrow"),Ke("\\lrArr","\\Leftrightarrow"),Ke("\\Lrarr","\\Leftrightarrow"),Ke("\\natnums","\\mathbb{N}"),Ke("\\plusmn","\\pm"),Ke("\\rarr","\\rightarrow"),Ke("\\rArr","\\Rightarrow"),Ke("\\Rarr","\\Rightarrow"),Ke("\\real","\\Re"),Ke("\\reals","\\mathbb{R}"),Ke("\\Reals","\\mathbb{R}"),Ke("\\sdot","\\cdot"),Ke("\\sect","\\S"),Ke("\\spades","\\spadesuit"),Ke("\\sub","\\subset"),Ke("\\sube","\\subseteq"),Ke("\\supe","\\supseteq"),Ke("\\thetasym","\\vartheta"),Ke("\\weierp","\\wp"),Ke("\\quantity","{\\left\\{ #1 \\right\\}}"),Ke("\\qty","{\\left\\{ #1 \\right\\}}"),Ke("\\pqty","{\\left( #1 \\right)}"),Ke("\\bqty","{\\left[ #1 \\right]}"),Ke("\\vqty","{\\left\\vert #1 \\right\\vert}"),Ke("\\Bqty","{\\left\\{ #1 \\right\\}}"),Ke("\\absolutevalue","{\\left\\vert #1 \\right\\vert}"),Ke("\\abs","{\\left\\vert #1 \\right\\vert}"),Ke("\\norm","{\\left\\Vert #1 \\right\\Vert}"),Ke("\\evaluated","{\\left.#1 \\right\\vert}"),Ke("\\eval","{\\left.#1 \\right\\vert}"),Ke("\\order","{\\mathcal{O} \\left( #1 \\right)}"),Ke("\\commutator","{\\left[ #1 , #2 \\right]}"),Ke("\\comm","{\\left[ #1 , #2 \\right]}"),Ke("\\anticommutator","{\\left\\{ #1 , #2 \\right\\}}"),Ke("\\acomm","{\\left\\{ #1 , #2 \\right\\}}"),Ke("\\poissonbracket","{\\left\\{ #1 , #2 \\right\\}}"),Ke("\\pb","{\\left\\{ #1 , #2 \\right\\}}"),Ke("\\vectorbold","{\\boldsymbol{ #1 }}"),Ke("\\vb","{\\boldsymbol{ #1 }}"),Ke("\\vectorarrow","{\\vec{\\boldsymbol{ #1 }}}"),Ke("\\va","{\\vec{\\boldsymbol{ #1 }}}"),Ke("\\vectorunit","{{\\boldsymbol{\\hat{ #1 }}}}"),Ke("\\vu","{{\\boldsymbol{\\hat{ #1 }}}}"),Ke("\\dotproduct","\\mathbin{\\boldsymbol\\cdot}"),Ke("\\vdot","{\\boldsymbol\\cdot}"),Ke("\\crossproduct","\\mathbin{\\boldsymbol\\times}"),Ke("\\cross","\\mathbin{\\boldsymbol\\times}"),Ke("\\cp","\\mathbin{\\boldsymbol\\times}"),Ke("\\gradient","{\\boldsymbol\\nabla}"),Ke("\\grad","{\\boldsymbol\\nabla}"),Ke("\\divergence","{\\grad\\vdot}"),Ke("\\curl","{\\grad\\cross}"),Ke("\\laplacian","\\nabla^2"),Ke("\\tr","{\\operatorname{tr}}"),Ke("\\Tr","{\\operatorname{Tr}}"),Ke("\\rank","{\\operatorname{rank}}"),Ke("\\erf","{\\operatorname{erf}}"),Ke("\\Res","{\\operatorname{Res}}"),Ke("\\principalvalue","{\\mathcal{P}}"),Ke("\\pv","{\\mathcal{P}}"),Ke("\\PV","{\\operatorname{P.V.}}"),Ke("\\qqtext","{\\quad\\text{ #1 }\\quad}"),Ke("\\qq","{\\quad\\text{ #1 }\\quad}"),Ke("\\qcomma","{\\text{,}\\quad}"),Ke("\\qc","{\\text{,}\\quad}"),Ke("\\qcc","{\\quad\\text{c.c.}\\quad}"),Ke("\\qif","{\\quad\\text{if}\\quad}"),Ke("\\qthen","{\\quad\\text{then}\\quad}"),Ke("\\qelse","{\\quad\\text{else}\\quad}"),Ke("\\qotherwise","{\\quad\\text{otherwise}\\quad}"),Ke("\\qunless","{\\quad\\text{unless}\\quad}"),Ke("\\qgiven","{\\quad\\text{given}\\quad}"),Ke("\\qusing","{\\quad\\text{using}\\quad}"),Ke("\\qassume","{\\quad\\text{assume}\\quad}"),Ke("\\qsince","{\\quad\\text{since}\\quad}"),Ke("\\qlet","{\\quad\\text{let}\\quad}"),Ke("\\qfor","{\\quad\\text{for}\\quad}"),Ke("\\qall","{\\quad\\text{all}\\quad}"),Ke("\\qeven","{\\quad\\text{even}\\quad}"),Ke("\\qodd","{\\quad\\text{odd}\\quad}"),Ke("\\qinteger","{\\quad\\text{integer}\\quad}"),Ke("\\qand","{\\quad\\text{and}\\quad}"),Ke("\\qor","{\\quad\\text{or}\\quad}"),Ke("\\qas","{\\quad\\text{as}\\quad}"),Ke("\\qin","{\\quad\\text{in}\\quad}"),Ke("\\differential","{\\text{d}}"),Ke("\\dd","{\\text{d}}"),Ke("\\derivative","{\\frac{\\text{d}{ #1 }}{\\text{d}{ #2 }}}"),Ke("\\dv","{\\frac{\\text{d}{ #1 }}{\\text{d}{ #2 }}}"),Ke("\\partialderivative","{\\frac{\\partial{ #1 }}{\\partial{ #2 }}}"),Ke("\\variation","{\\delta}"),Ke("\\var","{\\delta}"),Ke("\\functionalderivative","{\\frac{\\delta{ #1 }}{\\delta{ #2 }}}"),Ke("\\fdv","{\\frac{\\delta{ #1 }}{\\delta{ #2 }}}"),Ke("\\innerproduct","{\\left\\langle {#1} \\mid { #2} \\right\\rangle}"),Ke("\\outerproduct","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Ke("\\dyad","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Ke("\\ketbra","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Ke("\\op","{\\left\\vert { #1 } \\right\\rangle\\left\\langle { #2} \\right\\vert}"),Ke("\\expectationvalue","{\\left\\langle {#1 } \\right\\rangle}"),Ke("\\expval","{\\left\\langle {#1 } \\right\\rangle}"),Ke("\\ev","{\\left\\langle {#1 } \\right\\rangle}"),Ke("\\matrixelement","{\\left\\langle{ #1 }\\right\\vert{ #2 }\\left\\vert{#3}\\right\\rangle}"),Ke("\\matrixel","{\\left\\langle{ #1 }\\right\\vert{ #2 }\\left\\vert{#3}\\right\\rangle}"),Ke("\\mel","{\\left\\langle{ #1 }\\right\\vert{ #2 }\\left\\vert{#3}\\right\\rangle}");let ht=e3=>{if(!e3.parser.settings.displayMode)throw new t2(`{${e3.envName}} can be used only in display mode.`)},mt=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/,pt=e3=>{let t3=e3.get("\\arraystretch");typeof t3!="string"&&(t3=Qe(t3.tokens)),t3=isNaN(t3)?null:Number(t3);let r3=e3.get("\\arraycolsep");typeof r3!="string"&&(r3=Qe(r3.tokens));let n3=mt.exec(r3);return[t3,n3?{number:+(n3[1]+n3[2]),unit:n3[3]}:null]},ft=e3=>{let r3="";for(let n3=0;n3<e3.length;n3++)if(e3[n3].type==="label"){if(r3)throw new t2("Multiple \\labels in one row");r3=e3[n3].string}return r3};function gt(e3){if(e3.indexOf("ed")===-1)return e3.indexOf("*")===-1}function bt(e3,{cols:r3,envClasses:n3,autoTag:o2,singleRow:i2,emptySingleRow:a2,maxNumCols:s2,leqno:l2,arraystretch:c3,arraycolsep:u2},d2){let h3=n3&&n3.includes("bordermatrix")?"}":"\\end";e3.gullet.beginGroup(),i2||e3.gullet.macros.set("\\cr","\\\\\\relax"),e3.gullet.beginGroup();let m2=[],p2=[m2],f2=[],g2=[],b2=[],x2=o2!=null?[]:void 0;function v2(){o2&&e3.gullet.macros.set("\\@eqnsw","1",!0)}function y2(){x2&&(e3.gullet.macros.get("\\df@tag")?(x2.push(e3.subparse([new We("\\df@tag")])),e3.gullet.macros.set("\\df@tag",void 0,!0)):x2.push(!!o2&&e3.gullet.macros.get("\\@eqnsw")==="1"))}for(v2(),b2.push(dt(e3));;){let r4=e3.parseExpression(!1,i2?"\\end":"\\\\");e3.gullet.endGroup(),e3.gullet.beginGroup(),r4={type:"ordgroup",mode:e3.mode,body:r4,semisimple:!0},m2.push(r4);let o3=e3.fetch().text;if(o3==="&"){if(s2&&m2.length===s2){if(!n3.includes("array"))throw new t2(s2===2?"The split environment accepts no more than two columns":"The equation environment accepts only one column",e3.nextToken);if(e3.settings.strict)throw new t2("Too few columns specified in the {array} column argument.",e3.nextToken)}e3.consume()}else{if(o3===h3){y2(),m2.length===1&&r4.body.length===0&&(p2.length>1||!a2)&&p2.pop(),g2.push(ft(r4.body)),b2.length<p2.length+1&&b2.push([]);break}if(o3!=="\\\\")throw new t2("Expected & or \\\\ or \\cr or "+h3,e3.nextToken);{let t3;e3.consume(),e3.gullet.future().text!==" "&&(t3=e3.parseSizeGroup(!0)),f2.push(t3?t3.value:null),y2(),g2.push(ft(r4.body)),b2.push(dt(e3)),m2=[],p2.push(m2),v2()}}}return e3.gullet.endGroup(),e3.gullet.endGroup(),{type:"array",mode:e3.mode,body:p2,cols:r3,rowGaps:f2,hLinesBeforeRow:b2,envClasses:n3,autoTag:o2,scriptLevel:d2,tags:x2,labels:g2,leqno:l2,arraystretch:c3,arraycolsep:u2}}function xt(e3){return e3.slice(0,1)==="d"?"display":"text"}let vt={c:"center ",l:"left ",r:"right "},yt=e3=>{let t3=new k("mtd",[]);return t3.style={padding:"0",width:"50%"},e3.envClasses.includes("multline")&&(t3.style.width="7.5%"),t3},wt=function(e3,t3){let r3=[],n3=e3.body.length,o2=e3.hLinesBeforeRow,i2=e3.tags&&e3.tags.some((e4=>e4));for(let a3=0;a3<n3;a3++){let s3=e3.body[a3],l3=[],c3=e3.scriptLevel==="text"?Ve:e3.scriptLevel==="script"?Xe:Ge;for(let r4=0;r4<s3.length;r4++){let o3=new k("mtd",[fe(s3[r4],t3.withLevel(c3))]);if(e3.envClasses.includes("multline")){let e4=a3===0?"left":a3===n3-1?"right":"center";e4!=="center"&&o3.classes.push("tml-"+e4)}l3.push(o3)}let u2=e3.body[0].length;for(let e4=0;e4<u2-s3.length;e4++)l3.push(new k("mtd",[],[],t3));if(i2){let r4=e3.tags[a3],n4;r4===!0?n4=new k("mtext",[new E(["tml-eqn"])]):r4===!1?n4=new k("mtext",[],[]):(n4=pe(r4[0].body,t3.withLevel(c3),!0),n4=le(n4),n4.classes=["tml-tag"]),n4&&(l3.unshift(yt(e3)),l3.push(yt(e3)),e3.leqno?l3[0].children.push(n4):l3[l3.length-1].children.push(n4))}let d2=new k("mtr",l3,[]),h3=e3.labels.shift();h3&&e3.tags&&e3.tags[a3]&&(d2.setAttribute("id",h3),Array.isArray(e3.tags[a3])&&d2.classes.push("tml-tageqn")),a3===0&&o2[0].length>0&&(o2[0].length===2?d2.children.forEach((e4=>{e4.style.borderTop="0.15em double"})):d2.children.forEach((e4=>{e4.style.borderTop=o2[0][0]?"0.06em dashed":"0.06em solid"}))),o2[a3+1].length>0&&(o2[a3+1].length===2?d2.children.forEach((e4=>{e4.style.borderBottom="0.15em double"})):d2.children.forEach((e4=>{e4.style.borderBottom=o2[a3+1][0]?"0.06em dashed":"0.06em solid"})));let m2=!0;for(let e4=0;e4<d2.children.length;e4++){let t4=d2.children[e4].children[0];if(!t4||t4.type!=="mpadded"||t4.attributes.height!=="0px"){m2=!1;break}}if(m2)for(let e4=0;e4<d2.children.length;e4++)d2.children[e4].style.display="block",d2.children[e4].style.height="0",d2.children[e4].style.paddingTop="0",d2.children[e4].style.paddingBottom="0";r3.push(d2)}if(e3.arraystretch&&e3.arraystretch!==1){let t4=String(1.4*e3.arraystretch-.8)+"ex";for(let e4=0;e4<r3.length;e4++)for(let n4=0;n4<r3[e4].children.length;n4++)r3[e4].children[n4].style.paddingTop=t4,r3[e4].children[n4].style.paddingBottom=t4}let a2,s2;if(e3.envClasses.length>0&&(a2=e3.envClasses.includes("abut")||e3.envClasses.includes("cases")?"0":e3.envClasses.includes("small")?"0.1389":e3.envClasses.includes("cd")?"0.25":"0.4",s2="em"),e3.arraycolsep){let r4=qe(e3.arraycolsep,t3);a2=r4.number.toFixed(4),s2=r4.unit}if(a2){let t4=r3.length===0?0:r3[0].children.length,n4=(r4,n5)=>r4===0&&n5===0||r4===t4-1&&n5===1?"0":e3.envClasses[0]!=="align"?a2:n5===1?"0":i2?r4%2?"1":"0":r4%2?"0":"1";for(let e4=0;e4<r3.length;e4++)for(let t5=0;t5<r3[e4].children.length;t5++)r3[e4].children[t5].style.paddingLeft=`${n4(t5,0)}${s2}`,r3[e4].children[t5].style.paddingRight=`${n4(t5,1)}${s2}`}if(e3.envClasses.length===0)for(let e4=0;e4<r3.length;e4++)r3[e4].children[0].style.paddingLeft="0em",r3[e4].children.length===r3[0].children.length&&(r3[e4].children[r3[e4].children.length-1].style.paddingRight="0em");if(e3.envClasses.length>0){let t4=e3.envClasses.includes("align")||e3.envClasses.includes("alignat");for(let n4=0;n4<r3.length;n4++){let o3=r3[n4];if(t4){for(let e4=0;e4<o3.children.length;e4++)o3.children[e4].classes=["tml-"+(e4%2?"left":"right")];if(i2){let t5=e3.leqno?0:o3.children.length-1;o3.children[t5].classes=[]}}if(o3.children.length>1&&e3.envClasses.includes("cases")&&(o3.children[1].style.paddingLeft="1em"),e3.envClasses.includes("cases")||e3.envClasses.includes("subarray"))for(let e4 of o3.children)e4.classes.push("tml-left")}}let l2=new k("mtable",r3);if(e3.envClasses.length>0&&(e3.envClasses.includes("jot")?l2.classes.push("tml-jot"):e3.envClasses.includes("small")&&l2.classes.push("tml-small")),e3.scriptLevel==="display"&&l2.setAttribute("displaystyle","true"),(e3.autoTag||e3.envClasses.includes("multline"))&&(l2.style.width="100%"),e3.cols&&e3.cols.length>0){let t4=e3.cols,r4=!1,n4=0,o3=t4.length;for(;t4[n4].type==="separator";)n4+=1;for(;t4[o3-1].type==="separator";)o3-=1;if(t4[0].type==="separator"){let e4=t4[1].type==="separator"?"0.15em double":t4[0].separator==="|"?"0.06em solid ":"0.06em dashed ";for(let t5 of l2.children)t5.children[0].style.borderLeft=e4}let a3=i2?0:-1;for(let e4=n4;e4<o3;e4++)if(t4[e4].type==="align"){let n5=vt[t4[e4].align];a3+=1;for(let e5 of l2.children)n5.trim()!=="center"&&a3<e5.children.length&&(e5.children[a3].classes=["tml-"+n5.trim()]);r4=!0}else if(t4[e4].type==="separator"){if(r4){let r5=t4[e4+1].type==="separator"?"0.15em double":t4[e4].separator==="|"?"0.06em solid":"0.06em dashed";for(let e5 of l2.children)a3<e5.children.length&&(e5.children[a3].style.borderRight=r5)}r4=!1}if(t4[t4.length-1].type==="separator"){let e4=t4[t4.length-2].type==="separator"?"0.15em double":t4[t4.length-1].separator==="|"?"0.06em solid":"0.06em dashed";for(let t5 of l2.children)t5.children[t5.children.length-1].style.borderRight=e4,t5.children[t5.children.length-1].style.paddingRight="0.4em"}}return e3.envClasses.includes("small")&&(l2=new k("mstyle",[l2]),l2.setAttribute("scriptlevel","1")),l2},At=function(e3,r3){e3.envName.indexOf("ed")===-1&&ht(e3);let n3=e3.envName==="split",o2=[],i2=bt(e3.parser,{cols:o2,emptySingleRow:!0,autoTag:n3?void 0:gt(e3.envName),envClasses:["abut","jot"],maxNumCols:e3.envName==="split"?2:void 0,leqno:e3.parser.settings.leqno},"display"),a2,s2=0,l2=e3.envName.indexOf("at")>-1;if(r3[0]&&l2){let e4="";for(let t3=0;t3<r3[0].body.length;t3++)e4+=Be(r3[0].body[t3],"textord").text;if(isNaN(e4))throw new t2("The alignat enviroment requires a numeric first argument.");a2=Number(e4),s2=2*a2}i2.body.forEach((function(e4){if(l2){let r4=e4.length/2;if(a2<r4)throw new t2(`Too many math in a row: expected ${a2}, but got ${r4}`,e4[0])}else s2<e4.length&&(s2=e4.length)}));for(let e4=0;e4<s2;++e4){let t3="r";e4%2==1&&(t3="l"),o2[e4]={type:"align",align:t3}}return e3.envName==="split"||(l2?i2.envClasses.push("alignat"):i2.envClasses[0]="align"),i2};$e({type:"array",names:["array","darray"],props:{numArgs:1},handler(e3,r3){let n3=(Ie(r3[0])?[r3[0]]:Be(r3[0],"ordgroup").body).map((function(e4){let r4=Pe(e4).text;if("lcr".indexOf(r4)!==-1)return{type:"align",align:r4};if(r4==="|")return{type:"separator",separator:"|"};if(r4===":")return{type:"separator",separator:":"};throw new t2("Unknown column alignment: "+r4,e4)})),[o2,i2]=pt(e3.parser.gullet.macros),a2={cols:n3,envClasses:["array"],maxNumCols:n3.length,arraystretch:o2,arraycolsep:i2};return bt(e3.parser,a2,xt(e3.envName))},mathmlBuilder:wt}),$e({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e3){let r3={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e3.envName.replace("*","")],n3="c",o2={envClasses:[],cols:[]};if(e3.envName.charAt(e3.envName.length-1)==="*"){let r4=e3.parser;if(r4.consumeSpaces(),r4.fetch().text==="["){if(r4.consume(),r4.consumeSpaces(),n3=r4.fetch().text,"lcr".indexOf(n3)===-1)throw new t2("Expected l or c or r",r4.nextToken);r4.consume(),r4.consumeSpaces(),r4.expect("]"),r4.consume(),o2.cols=[]}}let i2=bt(e3.parser,o2,"text");i2.cols=i2.body.length>0?new Array(i2.body[0].length).fill({type:"align",align:n3}):[];let[a2,s2]=pt(e3.parser.gullet.macros);return i2.arraystretch=a2,!s2||s2===6&&s2==="pt"||(i2.arraycolsep=s2),r3?{type:"leftright",mode:e3.mode,body:[i2],left:r3[0],right:r3[1],rightColor:void 0}:i2},mathmlBuilder:wt}),$e({type:"array",names:["bordermatrix"],props:{numArgs:0},handler(e3){let t3=bt(e3.parser,{cols:[],envClasses:["bordermatrix"]},"text");return t3.cols=t3.body.length>0?new Array(t3.body[0].length).fill({type:"align",align:"c"}):[],t3.envClasses=[],t3.arraystretch=1,e3.envName==="matrix"?t3:((e4,t4)=>{let r3=e4.body;r3[0].shift();let n3=new Array(r3.length-1).fill().map((()=>[]));for(let e5=1;e5<r3.length;e5++){n3[e5-1].push(r3[e5].shift());let t5=[];for(let n4=0;n4<r3[e5].length;n4++)t5.push(r3[e5][n4]);n3[e5-1].push(ze(t5,"vphantom"))}let o2=new Array(r3.length).fill().map((()=>[]));for(let e5=0;e5<r3[0].length;e5++)o2[0].push(r3[0][e5]);for(let e5=1;e5<r3.length;e5++)for(let t5=0;t5<r3[0].length;t5++)o2[e5].push(ze(r3[e5][t5].body,"hphantom"));for(let e5=0;e5<r3[0].length;e5++)r3[0][e5]=ze(r3[0][e5].body,"hphantom");let i2={type:"array",mode:"math",body:n3,cols:[{type:"align",align:"c"}],rowGaps:new Array(n3.length-1).fill(null),hLinesBeforeRow:new Array(n3.length+1).fill().map((()=>[])),envClasses:[],scriptLevel:"text",arraystretch:1,labels:new Array(n3.length).fill(""),arraycolsep:{number:.04,unit:"em"}},a2={type:"styling",mode:"math",scriptLevel:"text",body:[{type:"array",mode:"math",body:o2,cols:new Array(o2.length).fill({type:"align",align:"c"}),rowGaps:new Array(o2.length-1).fill(null),hLinesBeforeRow:new Array(o2.length+1).fill().map((()=>[])),envClasses:[],scriptLevel:"text",arraystretch:1,labels:new Array(o2.length).fill(""),arraycolsep:null}]},s2={type:"leftright",mode:"math",body:[e4],left:t4?t4[0]:"(",right:t4?t4[1]:")",rightColor:void 0};return He([i2,{type:"supsub",mode:"math",stack:!0,base:{type:"op",mode:"math",limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!0,symbol:!1,suppressBaseShift:!0,body:[s2]},sup:a2,sub:null}])})(t3,e3.delimiters)},mathmlBuilder:wt}),$e({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:e3=>bt(e3.parser,{envClasses:["small"]},"script"),mathmlBuilder:wt}),$e({type:"array",names:["subarray"],props:{numArgs:1},handler(e3,r3){let n3=(Ie(r3[0])?[r3[0]]:Be(r3[0],"ordgroup").body).map((function(e4){let r4=Pe(e4).text;if("lc".indexOf(r4)!==-1)return{type:"align",align:r4};throw new t2("Unknown column alignment: "+r4,e4)}));if(n3.length>1)throw new t2("{subarray} can contain only one column");let o2={cols:n3,envClasses:["small"]};if(o2=bt(e3.parser,o2,"script"),o2.body.length>0&&o2.body[0].length>1)throw new t2("{subarray} can contain only one column");return o2},mathmlBuilder:wt}),$e({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e3){let t3=bt(e3.parser,{cols:[],envClasses:["cases"]},xt(e3.envName));return{type:"leftright",mode:e3.mode,body:[t3],left:e3.envName.indexOf("r")>-1?".":"\\{",right:e3.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},mathmlBuilder:wt}),$e({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:At,mathmlBuilder:wt}),$e({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:At,mathmlBuilder:wt}),$e({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e3){e3.envName!=="gathered"&&ht(e3);let t3={cols:[],envClasses:["abut","jot"],autoTag:gt(e3.envName),emptySingleRow:!0,leqno:e3.parser.settings.leqno};return bt(e3.parser,t3,"display")},mathmlBuilder:wt}),$e({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e3){ht(e3);let t3={autoTag:gt(e3.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,envClasses:["align"],leqno:e3.parser.settings.leqno};return bt(e3.parser,t3,"display")},mathmlBuilder:wt}),$e({type:"array",names:["multline","multline*"],props:{numArgs:0},handler(e3){ht(e3);let t3={autoTag:e3.envName==="multline",maxNumCols:1,envClasses:["jot","multline"],leqno:e3.parser.settings.leqno};return bt(e3.parser,t3,"display")},mathmlBuilder:wt}),$e({type:"array",names:["CD"],props:{numArgs:0},handler:e3=>(ht(e3),(function(e4){let r3=[];for(e4.gullet.beginGroup(),e4.gullet.macros.set("\\cr","\\\\\\relax"),e4.gullet.beginGroup();;){r3.push(e4.parseExpression(!1,"\\\\")),e4.gullet.endGroup(),e4.gullet.beginGroup();let n4=e4.fetch().text;if(n4!=="&"&&n4!=="\\\\"){if(n4==="\\end"){r3[r3.length-1].length===0&&r3.pop();break}throw new t2("Expected \\\\ or \\cr or \\end",e4.nextToken)}e4.consume()}let n3=[],o2=[n3];for(let s2=0;s2<r3.length;s2++){let l2=r3[s2],c3={type:"styling",body:[],mode:"math",scriptLevel:"display"};for(let r4=0;r4<l2.length;r4++)if(Fe(l2[r4])){n3.push(c3),r4+=1;let o3=Pe(l2[r4]).text,s3=new Array(2);if(s3[0]={type:"ordgroup",mode:"math",body:[]},s3[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(o3)>-1)){if(!("<>AV".indexOf(o3)>-1))throw new t2('Expected one of "<>AV=|." after @.');for(let e5=0;e5<2;e5++){let n4=!0;for(let c4=r4+1;c4<l2.length;c4++){if(a2=o3,((i2=l2[c4]).type==="mathord"||i2.type==="atom")&&i2.text===a2){n4=!1,r4=c4;break}if(Fe(l2[c4]))throw new t2("Missing a "+o3+" character to complete a CD arrow.",l2[c4]);s3[e5].body.push(l2[c4])}if(n4)throw new t2("Missing a "+o3+" character to complete a CD arrow.",l2[r4])}}let u2=je(o3,s3,e4);n3.push(u2),c3={type:"styling",body:[],mode:"math",scriptLevel:"display"}}else c3.body.push(l2[r4]);s2%2==0?n3.push(c3):n3.shift(),n3=[],o2.push(n3)}var i2,a2;return o2.pop(),e4.gullet.endGroup(),e4.gullet.endGroup(),{type:"array",mode:"math",body:o2,tags:null,labels:new Array(o2.length+1).fill(""),envClasses:["jot","cd"],cols:[],hLinesBeforeRow:new Array(o2.length+1).fill([])}})(e3.parser)),mathmlBuilder:wt}),f({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e3,r3){throw new t2(`${e3.funcName} valid only within array environment`)}});let Ct=Me;f({type:"bordermatrix",names:["\\bordermatrix","\\matrix"],props:{numArgs:0,numOptionalArgs:1},handler:({parser:e3,funcName:t3},r3,n3)=>{let o2=["(",")"];if(t3==="\\bordermatrix"&&n3[0]&&n3[0].body){let e4=n3[0].body;e4.length===2&&e4[0].type==="atom"&&e4[1].type==="atom"&&e4[0].family==="open"&&e4[1].family==="close"&&(o2=[e4[0].text,e4[1].text])}e3.consumeSpaces(),e3.consume();let i2=Ct.bordermatrix,a2={mode:e3.mode,envName:t3.slice(1),delimiters:o2,parser:e3},s2=i2.handler(a2);return e3.expect("}",!0),s2}}),f({type:"cancelto",names:["\\cancelto"],props:{numArgs:2},handler({parser:e3},t3){let r3=t3[0],n3=t3[1];return{type:"cancelto",mode:e3.mode,body:n3,to:r3,isCharacterBox:c2(n3)}},mathmlBuilder(e3,t3){let r3=new k("mrow",[fe(e3.body,t3)],["ff-narrow"]),n3=new k("mphantom",[fe(e3.body,t3)]),o2=new k("mrow",[n3],["tml-cancelto"]);e3.isCharacterBox&&d.indexOf(e3.body.body[0].text)>-1&&(o2.style.left="0.1em",o2.style.width="90%");let i2=new k("mrow",[r3,o2],["menclose"]);if(!e3.isCharacterBox||/[f\u222b\u2211]/.test(e3.body.body[0].text))n3.style.paddingRight="0.2em";else{n3.style.padding="0.5ex 0.1em 0 0";let e4=new k("mspace",[]);e4.setAttribute("height","0.85em"),r3.children.push(e4)}let a2;if(e3.isCharacterBox)a2=new k("mspace",[]),a2.setAttribute("height","1em");else{let r4=fe(e3.body,t3),n4=new k("mpadded",[r4]);n4.setAttribute("width","0.1px"),a2=new k("mphantom",[n4])}let s2=fe(e3.to,t3),l2=new k("mpadded",[s2]);if(!e3.isCharacterBox||/[f\u222b\u2211]/.test(e3.body.body[0].text)){let e4=new k("mspace",[]);e4.setAttribute("width","0.2em"),l2.children.unshift(e4)}l2.setAttribute("width","0.1px");let c3=new k("mover",[a2,l2]),u2=new k("mrow",[],["ff-nudge-left"]);return q([ce([i2,c3]),u2])}}),f({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler({parser:e3,token:r3},n3){let o2=Be(n3[0],"ordgroup").body,i2="";for(let e4=0;e4<o2.length;e4++)i2+=Be(o2[e4],"textord").text;let a2=parseInt(i2);if(isNaN(a2))throw new t2(`\\@char has non-numeric argument ${i2}`,r3);return{type:"textord",mode:e3.mode,text:String.fromCodePoint(a2)}}});let Et=/^(#[a-f0-9]{3}|#?[a-f0-9]{6})$/i,St=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i,_t=/^ *\d{1,3} *(?:, *\d{1,3} *){2}$/,Tt=/^ *[10](?:\.\d*)? *(?:, *[10](?:\.\d*)? *){2}$/,qt=/^[a-f0-9]{6}$/i,kt=e3=>{let t3=e3.toString(16);return t3.length===1&&(t3="0"+t3),t3},Nt=JSON.parse(`{
"Apricot": "#ffb484",
"Aquamarine": "#08b4bc",
"Bittersweet": "#c84c14",
"blue": "#0000FF",
"Blue": "#303494",
"BlueGreen": "#08b4bc",
"BlueViolet": "#503c94",
"BrickRed": "#b8341c",
"brown": "#BF8040",
"Brown": "#802404",
"BurntOrange": "#f8941c",
"CadetBlue": "#78749c",
"CarnationPink": "#f884b4",
"Cerulean": "#08a4e4",
"CornflowerBlue": "#40ace4",
"cyan": "#00FFFF",
"Cyan": "#08acec",
"Dandelion": "#ffbc44",
"darkgray": "#404040",
"DarkOrchid": "#a8548c",
"Emerald": "#08ac9c",
"ForestGreen": "#089c54",
"Fuchsia": "#90348c",
"Goldenrod": "#ffdc44",
"gray": "#808080",
"Gray": "#98949c",
"green": "#00FF00",
"Green": "#08a44c",
"GreenYellow": "#e0e474",
"JungleGreen": "#08ac9c",
"Lavender": "#f89cc4",
"lightgray": "#c0c0c0",
"lime": "#BFFF00",
"LimeGreen": "#90c43c",
"magenta": "#FF00FF",
"Magenta": "#f0048c",
"Mahogany": "#b0341c",
"Maroon": "#b03434",
"Melon": "#f89c7c",
"MidnightBlue": "#086494",
"Mulberry": "#b03c94",
"NavyBlue": "#086cbc",
"olive": "#7F7F00",
"OliveGreen": "#407c34",
"orange": "#FF8000",
"Orange": "#f8843c",
"OrangeRed": "#f0145c",
"Orchid": "#b074ac",
"Peach": "#f8945c",
"Periwinkle": "#8074bc",
"PineGreen": "#088c74",
"pink": "#ff7f7f",
"Plum": "#98248c",
"ProcessBlue": "#08b4ec",
"purple": "#BF0040",
"Purple": "#a0449c",
"RawSienna": "#983c04",
"red": "#ff0000",
"Red": "#f01c24",
"RedOrange": "#f86434",
"RedViolet": "#a0246c",
"Rhodamine": "#f0549c",
"Royallue": "#0874bc",
"RoyalPurple": "#683c9c",
"RubineRed": "#f0047c",
"Salmon": "#f8948c",
"SeaGreen": "#30bc9c",
"Sepia": "#701404",
"SkyBlue": "#48c4dc",
"SpringGreen": "#c8dc64",
"Tan": "#e09c74",
"teal": "#007F7F",
"TealBlue": "#08acb4",
"Thistle": "#d884b4",
"Turquoise": "#08b4cc",
"violet": "#800080",
"Violet": "#60449c",
"VioletRed": "#f054a4",
"WildStrawberry": "#f0246c",
"yellow": "#FFFF00",
"Yellow": "#fff404",
"YellowGreen": "#98cc6c",
"YellowOrange": "#ffa41c"
}`),Lt=(e3,r3)=>{let n3="";if(e3==="HTML"){if(!Et.test(r3))throw new t2("Invalid HTML input.");n3=r3}else if(e3==="RGB"){if(!_t.test(r3))throw new t2("Invalid RGB input.");r3.split(",").map((e4=>{n3+=kt(Number(e4.trim()))}))}else{if(!Tt.test(r3))throw new t2("Invalid rbg input.");r3.split(",").map((e4=>{let r4=Number(e4.trim());if(r4>1)throw new t2("Color rgb input must be < 1.");n3+=kt(Number((255*r4).toFixed(0)))}))}return n3.charAt(0)!=="#"&&(n3="#"+n3),n3},Ot=(e3,r3,n3)=>{let o2=`\\\\color@${e3}`;if(!St.exec(e3))throw new t2("Invalid color: '"+e3+"'",n3);return qt.test(e3)?"#"+e3:(e3.charAt(0)==="#"||(r3.has(o2)?e3=r3.get(o2).tokens[0].text:Nt[e3]&&(e3=Nt[e3])),e3)},Dt=(e3,t3)=>{let r3=me(e3.body,t3.withColor(e3.color));return r3.length===0&&r3.push(new k("mrow")),r3=r3.map((t4=>(t4.style.color=e3.color,t4))),q(r3)};f({type:"color",names:["\\textcolor"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","original"]},handler({parser:e3,token:t3},r3,n3){let o2=n3[0]&&Be(n3[0],"raw").string,i2="";if(o2){let e4=Be(r3[0],"raw").string;i2=Lt(o2,e4)}else i2=Ot(Be(r3[0],"raw").string,e3.gullet.macros,t3);let a2=r3[1];return{type:"color",mode:e3.mode,color:i2,isTextColor:!0,body:x(a2)}},mathmlBuilder:Dt}),f({type:"color",names:["\\color"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw"]},handler({parser:e3,breakOnTokenText:t3,token:r3},n3,o2){let i2=o2[0]&&Be(o2[0],"raw").string,a2="";if(i2){let e4=Be(n3[0],"raw").string;a2=Lt(i2,e4)}else a2=Ot(Be(n3[0],"raw").string,e3.gullet.macros,r3);let s2=e3.parseExpression(!0,t3,!0);return{type:"color",mode:e3.mode,color:a2,isTextColor:!1,body:s2}},mathmlBuilder:Dt}),f({type:"color",names:["\\definecolor"],props:{numArgs:3,allowedInText:!0,argTypes:["raw","raw","raw"]},handler({parser:e3,funcName:r3,token:n3},o2){let i2=Be(o2[0],"raw").string;if(!/^[A-Za-z]+$/.test(i2))throw new t2("Color name must be latin letters.",n3);let a2=Be(o2[1],"raw").string;if(!["HTML","RGB","rgb"].includes(a2))throw new t2("Color model must be HTML, RGB, or rgb.",n3);let s2=Be(o2[2],"raw").string,l2=Lt(a2,s2);return e3.gullet.macros.set(`\\\\color@${i2}`,{tokens:[{text:l2}],numArgs:0}),{type:"internal",mode:e3.mode}}}),f({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler({parser:e3},t3,r3){let n3=e3.gullet.future().text==="["?e3.parseSizeGroup(!0):null,o2=!e3.settings.displayMode;return{type:"cr",mode:e3.mode,newLine:o2,size:n3&&Be(n3,"size").value}},mathmlBuilder(e3,t3){let r3=new k("mo");if(e3.newLine&&(r3.setAttribute("linebreak","newline"),e3.size)){let n3=qe(e3.size,t3);r3.setAttribute("height",n3.number+n3.unit)}return r3}});let Mt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},$t=e3=>{let r3=e3.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r3))throw new t2("Expected a control sequence",e3);return r3},Bt=(e3,t3,r3,n3)=>{let o2=e3.gullet.macros.get(r3.text);o2==null&&(r3.noexpand=!0,o2={tokens:[r3],numArgs:0,unexpandable:!e3.gullet.isExpandable(r3.text)}),e3.gullet.macros.set(t3,o2,n3)};f({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler({parser:e3,funcName:r3}){e3.consumeSpaces();let n3=e3.fetch();if(Mt[n3.text])return r3!=="\\global"&&r3!=="\\\\globallong"||(n3.text=Mt[n3.text]),Be(e3.parseFunction(),"internal");throw new t2("Invalid token after macro prefix",n3)}}),f({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e3,funcName:r3}){let n3=e3.gullet.popToken(),o2=n3.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(o2))throw new t2("Expected a control sequence",n3);let i2,a2=0,s2=[[]];for(;e3.gullet.future().text!=="{";)if(n3=e3.gullet.popToken(),n3.text==="#"){if(e3.gullet.future().text==="{"){i2=e3.gullet.future(),s2[a2].push("{");break}if(n3=e3.gullet.popToken(),!/^[1-9]$/.test(n3.text))throw new t2(`Invalid argument number "${n3.text}"`);if(parseInt(n3.text)!==a2+1)throw new t2(`Argument number "${n3.text}" out of order`);a2++,s2.push([])}else{if(n3.text==="EOF")throw new t2("Expected a macro definition");s2[a2].push(n3.text)}let{tokens:l2}=e3.gullet.consumeArg();if(i2&&l2.unshift(i2),r3==="\\edef"||r3==="\\xdef"){if(l2=e3.gullet.expandTokens(l2),l2.length>e3.gullet.settings.maxExpand)throw new t2("Too many expansions in an "+r3);l2.reverse()}return e3.gullet.macros.set(o2,{tokens:l2,numArgs:a2,delimiters:s2},r3===Mt[r3]),{type:"internal",mode:e3.mode}}}),f({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e3,funcName:t3}){let r3=$t(e3.gullet.popToken());e3.gullet.consumeSpaces();let n3=(e4=>{let t4=e4.gullet.popToken();return t4.text==="="&&(t4=e4.gullet.popToken(),t4.text===" "&&(t4=e4.gullet.popToken())),t4})(e3);return Bt(e3,r3,n3,t3==="\\\\globallet"),{type:"internal",mode:e3.mode}}}),f({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e3,funcName:t3}){let r3=$t(e3.gullet.popToken()),n3=e3.gullet.popToken(),o2=e3.gullet.popToken();return Bt(e3,r3,o2,t3==="\\\\globalfuture"),e3.gullet.pushToken(o2),e3.gullet.pushToken(n3),{type:"internal",mode:e3.mode}}}),f({type:"internal",names:["\\newcommand","\\renewcommand","\\providecommand"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({parser:e3,funcName:r3}){let n3="",o2=e3.gullet.popToken();o2.text==="{"?(n3=$t(e3.gullet.popToken()),e3.gullet.popToken()):n3=$t(o2);let i2=e3.gullet.isDefined(n3);if(i2&&r3==="\\newcommand")throw new t2(`\\newcommand{${n3}} attempting to redefine ${n3}; use \\renewcommand`);if(!i2&&r3==="\\renewcommand")throw new t2(`\\renewcommand{${n3}} when command ${n3} does not yet exist; use \\newcommand`);let a2=0;if(e3.gullet.future().text==="["){let r4=e3.gullet.popToken();if(r4=e3.gullet.popToken(),!/^[0-9]$/.test(r4.text))throw new t2(`Invalid number of arguments: "${r4.text}"`);if(a2=parseInt(r4.text),r4=e3.gullet.popToken(),r4.text!=="]")throw new t2(`Invalid argument "${r4.text}"`)}let{tokens:s2}=e3.gullet.consumeArg();return r3==="\\providecommand"&&e3.gullet.macros.has(n3)||e3.gullet.macros.set(n3,{tokens:s2,numArgs:a2}),{type:"internal",mode:e3.mode}}});let Pt={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},It=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\u2987","\\llparenthesis","\u2988","\\rrparenthesis","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lAngle","\u27EA","\\rAngle","\u27EB","\\llangle","\u2989","\\rrangle","\u298A","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","\\llbracket","\\rrbracket","\u27E6","\u27E6","\\lBrace","\\rBrace","\u2983","\u2984","/","\\backslash","|","\\vert","\\|","\\Vert","\u2016","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],Rt=["}","\\left","\\middle","\\right"],Ft=e3=>e3.length>0&&(It.includes(e3)||Pt[e3]||Rt.includes(e3)),jt=[0,1.2,1.8,2.4,3];function Ht(e3,r3){e3.type==="ordgroup"&&e3.body.length===1&&(e3=e3.body[0]);let n3=Ie(e3);if(n3&&It.includes(n3.text))return["<","\\lt"].includes(n3.text)&&(n3.text="\u27E8"),[">","\\gt"].includes(n3.text)&&(n3.text="\u27E9"),n3;throw new t2(n3?`Invalid delimiter '${n3.text}' after '${r3.funcName}'`:`Invalid delimiter type '${e3.type}'`,e3)}let zt=["/","\\","\\backslash","\\vert","|"];f({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e3,t3)=>{let r3=Ht(t3[0],e3),n3={type:"delimsizing",mode:e3.parser.mode,size:Pt[e3.funcName].size,mclass:Pt[e3.funcName].mclass,delim:r3.text},o2=e3.parser.fetch().text;return o2!=="^"&&o2!=="_"?n3:{type:"ordgroup",mode:"math",body:[n3,{type:"ordgroup",mode:"math",body:[]}]}},mathmlBuilder:e3=>{let t3=[];e3.delim==="."&&(e3.delim=""),t3.push(ae(e3.delim,e3.mode));let r3=new k("mo",t3);return e3.mclass==="mopen"||e3.mclass==="mclose"?r3.setAttribute("fence","true"):r3.setAttribute("fence","false"),(zt.includes(e3.delim)||e3.delim.indexOf("arrow")>-1)&&r3.setAttribute("stretchy","true"),r3.setAttribute("symmetric","true"),r3.setAttribute("minsize",jt[e3.size]+"em"),r3.setAttribute("maxsize",jt[e3.size]+"em"),r3}}),f({type:"leftright-right",names:["\\right"],props:{numArgs:1,argTypes:["primitive"]},handler:(e3,t3)=>({type:"leftright-right",mode:e3.parser.mode,delim:Ht(t3[0],e3).text})}),f({type:"leftright",names:["\\left"],props:{numArgs:1,argTypes:["primitive"]},handler:(e3,r3)=>{let n3=Ht(r3[0],e3),o2=e3.parser;++o2.leftrightDepth;let i2=o2.parseExpression(!1,null,!0),a2=o2.fetch();for(;a2.text==="\\middle";){o2.consume();let e4=o2.fetch().text;if(!R.math[e4])throw new t2(`Invalid delimiter '${e4}' after '\\middle'`);Ht({type:"atom",mode:"math",text:e4},{funcName:"\\middle"}),i2.push({type:"middle",mode:"math",delim:e4}),o2.consume(),i2=i2.concat(o2.parseExpression(!1,null,!0)),a2=o2.fetch()}--o2.leftrightDepth,o2.expect("\\right",!1);let s2=Be(o2.parseFunction(),"leftright-right");return{type:"leftright",mode:o2.mode,body:i2,left:n3.text,right:s2.delim}},mathmlBuilder:(e3,t3)=>{(function(e4){if(!e4.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")})(e3);let r3=me(e3.body,t3);e3.left==="."&&(e3.left="");let n3=new k("mo",[ae(e3.left,e3.mode)]);n3.setAttribute("fence","true"),n3.setAttribute("form","prefix"),(e3.left==="/"||e3.left==="\\"||e3.left.indexOf("arrow")>-1)&&n3.setAttribute("stretchy","true"),r3.unshift(n3),e3.right==="."&&(e3.right="");let o2=new k("mo",[ae(e3.right,e3.mode)]);if(o2.setAttribute("fence","true"),o2.setAttribute("form","postfix"),(e3.right==="\u2216"||e3.right.indexOf("arrow")>-1)&&o2.setAttribute("stretchy","true"),e3.body.length>0){let t4=e3.body[e3.body.length-1];t4.type!=="color"||t4.isTextColor||o2.setAttribute("mathcolor",t4.color)}return r3.push(o2),ce(r3)}}),f({type:"middle",names:["\\middle"],props:{numArgs:1,argTypes:["primitive"]},handler:(e3,r3)=>{let n3=Ht(r3[0],e3);if(!e3.parser.leftrightDepth)throw new t2("\\middle without preceding \\left",n3);return{type:"middle",mode:e3.parser.mode,delim:n3.text}},mathmlBuilder:(e3,t3)=>{let r3=ae(e3.delim,e3.mode),n3=new k("mo",[r3]);return n3.setAttribute("fence","true"),e3.delim.indexOf("arrow")>-1&&n3.setAttribute("stretchy","true"),n3.setAttribute("form","prefix"),n3.setAttribute("lspace","0.05em"),n3.setAttribute("rspace","0.05em"),n3}});let Ut=["\\boxed","\\fcolorbox","\\colorbox"],Wt=(e3,t3)=>{let r3=Ut.includes(e3.label)?"mrow":"menclose",n3=new k(r3,[fe(e3.body,t3)]);switch(e3.label){case"\\overline":n3.setAttribute("notation","top"),n3.classes.push("tml-overline");break;case"\\underline":n3.setAttribute("notation","bottom"),n3.classes.push("tml-underline");break;case"\\cancel":n3.setAttribute("notation","updiagonalstrike"),n3.children.push(new k("mrow",[],["tml-cancel","upstrike"]));break;case"\\bcancel":n3.setAttribute("notation","downdiagonalstrike"),n3.children.push(new k("mrow",[],["tml-cancel","downstrike"]));break;case"\\sout":n3.setAttribute("notation","horizontalstrike"),n3.children.push(new k("mrow",[],["tml-cancel","sout"]));break;case"\\xcancel":n3.setAttribute("notation","updiagonalstrike downdiagonalstrike"),n3.classes.push("tml-xcancel");break;case"\\longdiv":n3.setAttribute("notation","longdiv"),n3.classes.push("longdiv-top"),n3.children.push(new k("mrow",[],["longdiv-arc"]));break;case"\\phase":n3.setAttribute("notation","phasorangle"),n3.classes.push("phasor-bottom"),n3.children.push(new k("mrow",[],["phasor-angle"]));break;case"\\textcircled":n3.setAttribute("notation","circle"),n3.classes.push("circle-pad"),n3.children.push(new k("mrow",[],["textcircle"]));break;case"\\angl":n3.setAttribute("notation","actuarial"),n3.classes.push("actuarial");break;case"\\boxed":n3.style.padding="3pt",n3.style.border="1px solid",n3.setAttribute("scriptlevel","0"),n3.setAttribute("displaystyle","true");break;case"\\fbox":n3.setAttribute("notation","box"),n3.classes.push("tml-fbox");break;case"\\fcolorbox":case"\\colorbox":n3.style.padding="0.3em",e3.label==="\\fcolorbox"&&(n3.style.border="0.0667em solid "+String(e3.borderColor))}return e3.backgroundColor&&n3.setAttribute("mathbackground",e3.backgroundColor),n3};f({type:"enclose",names:["\\colorbox"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","text"]},handler({parser:e3,funcName:t3},r3,n3){let o2=n3[0]&&Be(n3[0],"raw").string,i2="";if(o2){let e4=Be(r3[0],"raw").string;i2=Lt(o2,e4)}else i2=Ot(Be(r3[0],"raw").string,e3.gullet.macros);let a2=r3[1];return{type:"enclose",mode:e3.mode,label:t3,backgroundColor:i2,body:a2}},mathmlBuilder:Wt}),f({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,numOptionalArgs:1,allowedInText:!0,argTypes:["raw","raw","raw","text"]},handler({parser:e3,funcName:t3},r3,n3){let o2=n3[0]&&Be(n3[0],"raw").string,i2,a2="";if(o2){let e4=Be(r3[0],"raw").string,t4=Be(r3[0],"raw").string;a2=Lt(o2,e4),i2=Lt(o2,t4)}else a2=Ot(Be(r3[0],"raw").string,e3.gullet.macros),i2=Ot(Be(r3[1],"raw").string,e3.gullet.macros);let s2=r3[2];return{type:"enclose",mode:e3.mode,label:t3,backgroundColor:i2,borderColor:a2,body:s2}},mathmlBuilder:Wt}),f({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:({parser:e3},t3)=>({type:"enclose",mode:e3.mode,label:"\\fbox",body:t3[0]})}),f({type:"enclose",names:["\\angl","\\cancel","\\bcancel","\\xcancel","\\sout","\\overline","\\boxed","\\longdiv","\\phase"],props:{numArgs:1},handler({parser:e3,funcName:t3},r3){let n3=r3[0];return{type:"enclose",mode:e3.mode,label:t3,body:n3}},mathmlBuilder:Wt}),f({type:"enclose",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler({parser:e3,funcName:t3},r3){let n3=r3[0];return{type:"enclose",mode:e3.mode,label:t3,body:n3}},mathmlBuilder:Wt}),f({type:"enclose",names:["\\textcircled"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler({parser:e3,funcName:t3},r3){let n3=r3[0];return{type:"enclose",mode:e3.mode,label:t3,body:n3}},mathmlBuilder:Wt}),f({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler({parser:e3,funcName:r3},n3){let o2=n3[0];if(o2.type!=="ordgroup")throw new t2("Invalid environment name",o2);let i2="";for(let e4=0;e4<o2.body.length;++e4)i2+=Be(o2.body[e4],"textord").text;if(r3==="\\begin"){if(!Object.prototype.hasOwnProperty.call(Ct,i2))throw new t2("No such environment: "+i2,o2);let r4=Ct[i2],{args:n4,optArgs:a2}=e3.parseArguments("\\begin{"+i2+"}",r4),s2={mode:e3.mode,envName:i2,parser:e3},l2=r4.handler(s2,n4,a2);e3.expect("\\end",!1);let c3=e3.nextToken,u2=Be(e3.parseFunction(),"environment");if(u2.name!==i2)throw new t2(`Mismatch: \\begin{${i2}} matched by \\end{${u2.name}}`,c3);return l2}return{type:"environment",mode:e3.mode,name:i2,nameGroup:o2}}}),f({type:"envTag",names:["\\env@tag"],props:{numArgs:1,argTypes:["math"]},handler:({parser:e3},t3)=>({type:"envTag",mode:e3.mode,body:t3[0]}),mathmlBuilder:(e3,t3)=>new k("mrow")}),f({type:"noTag",names:["\\env@notag"],props:{numArgs:0},handler:({parser:e3})=>({type:"noTag",mode:e3.mode}),mathmlBuilder:(e3,t3)=>new k("mrow")});let Gt=(e3,t3)=>{let r3=e3.font,n3=t3.withFont(r3),o2=fe(e3.body,n3);if(o2.children.length===0)return o2;if(r3==="boldsymbol"&&["mo","mpadded","mrow"].includes(o2.type))return o2.style.fontWeight="bold",o2;if(((e4,t4)=>{if(t4!=="mathrm"||e4.body.type!=="ordgroup"||e4.body.body.length===1||e4.body.body[0].type!=="mathord")return!1;for(let t5=1;t5<e4.body.body.length;t5++){let r4=e4.body.body[t5].type;if(r4!=="mathord"&&(r4!=="textord"||isNaN(e4.body.body[t5].text)))return!1}return!0})(e3,r3)){let e4=o2.children[0].children[0].children?o2.children[0].children[0]:o2.children[0];delete e4.attributes.mathvariant;for(let t5=1;t5<o2.children.length;t5++)e4.children[0].text+=o2.children[t5].children[0].children?o2.children[t5].children[0].children[0].text:o2.children[t5].children[0].text;let t4=new k("mpadded",[e4]);return t4.setAttribute("lspace","0"),t4}let i2=o2.children[0].type==="mo";for(let e4=1;e4<o2.children.length;e4++)o2.children[e4].type==="mo"&&r3==="boldsymbol"&&(o2.children[e4].style.fontWeight="bold"),o2.children[e4].type!=="mi"&&(i2=!1),(o2.children[e4].attributes&&o2.children[e4].attributes.mathvariant||"")!=="normal"&&(i2=!1);if(!i2)return o2;let a2=o2.children[0];for(let e4=1;e4<o2.children.length;e4++)a2.children.push(o2.children[e4].children[0]);if(a2.attributes.mathvariant&&a2.attributes.mathvariant==="normal"){let e4=new k("mtext",new N("\u200B"));return new k("mrow",[e4,a2])}return a2},Vt={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};f({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\up@greek","\\boldsymbol","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathsfit","\\mathtt","\\Bbb","\\bm","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:({parser:e3,funcName:t3},r3)=>{let n3=b(r3[0]),o2=t3;return o2 in Vt&&(o2=Vt[o2]),{type:"font",mode:e3.mode,font:o2.slice(1),body:n3}},mathmlBuilder:Gt}),f({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:({parser:e3,funcName:t3,breakOnTokenText:r3},n3)=>{let{mode:o2}=e3,i2=e3.parseExpression(!0,r3,!0);return{type:"font",mode:o2,font:`math${t3.slice(1)}`,body:{type:"ordgroup",mode:e3.mode,body:i2}}},mathmlBuilder:Gt});let Xt=["display","text","script","scriptscript"],Jt={auto:-1,display:0,text:0,script:1,scriptscript:2},Zt=(e3,t3)=>{let r3=e3.scriptLevel==="auto"?t3.incrementLevel():e3.scriptLevel==="display"?t3.withLevel(Ve):e3.scriptLevel==="text"?t3.withLevel(Xe):t3.withLevel(Je),n3=fe(e3.numer,r3),o2=fe(e3.denom,r3);t3.level===3&&(n3.style.mathDepth="2",n3.setAttribute("scriptlevel","2"),o2.style.mathDepth="2",o2.setAttribute("scriptlevel","2"));let i2=new k("mfrac",[n3,o2]);if(e3.hasBarLine){if(e3.barSize){let r4=qe(e3.barSize,t3);i2.setAttribute("linethickness",r4.number+r4.unit)}}else i2.setAttribute("linethickness","0px");if(e3.leftDelim!=null||e3.rightDelim!=null){let t4=[];if(e3.leftDelim!=null){let r4=new k("mo",[new N(e3.leftDelim.replace("\\",""))]);r4.setAttribute("fence","true"),t4.push(r4)}if(t4.push(i2),e3.rightDelim!=null){let r4=new k("mo",[new N(e3.rightDelim.replace("\\",""))]);r4.setAttribute("fence","true"),t4.push(r4)}i2=ce(t4)}return e3.scriptLevel!=="auto"&&(i2=new k("mstyle",[i2]),i2.setAttribute("displaystyle",String(e3.scriptLevel==="display")),i2.setAttribute("scriptlevel",Jt[e3.scriptLevel])),i2};f({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:({parser:e3,funcName:t3},r3)=>{let n3=r3[0],o2=r3[1],i2=!1,a2=null,s2=null,l2="auto";switch(t3){case"\\dfrac":case"\\frac":case"\\tfrac":i2=!0;break;case"\\\\atopfrac":i2=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":a2="(",s2=")";break;case"\\\\bracefrac":a2="\\{",s2="\\}";break;case"\\\\brackfrac":a2="[",s2="]";break;default:throw new Error("Unrecognized genfrac command")}switch(t3){case"\\dfrac":case"\\dbinom":l2="display";break;case"\\tfrac":case"\\tbinom":l2="text"}return{type:"genfrac",mode:e3.mode,continued:!1,numer:n3,denom:o2,hasBarLine:i2,leftDelim:a2,rightDelim:s2,scriptLevel:l2,barSize:null}},mathmlBuilder:Zt}),f({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:({parser:e3,funcName:t3},r3)=>{let n3=r3[0],o2=r3[1];return{type:"genfrac",mode:e3.mode,continued:!0,numer:n3,denom:o2,hasBarLine:!0,leftDelim:null,rightDelim:null,scriptLevel:"display",barSize:null}}}),f({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler({parser:e3,funcName:t3,token:r3}){let n3;switch(t3){case"\\over":n3="\\frac";break;case"\\choose":n3="\\binom";break;case"\\atop":n3="\\\\atopfrac";break;case"\\brace":n3="\\\\bracefrac";break;case"\\brack":n3="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e3.mode,replaceWith:n3,token:r3}}});let Kt=function(e3){let t3=null;return e3.length>0&&(t3=e3,t3=t3==="."?null:t3),t3};f({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler({parser:e3},t3){let r3=t3[4],n3=t3[5],o2=b(t3[0]),i2=o2.type==="atom"&&o2.family==="open"?Kt(o2.text):null,a2=b(t3[1]),s2=a2.type==="atom"&&a2.family==="close"?Kt(a2.text):null,l2=Be(t3[2],"size"),c3,u2=null;l2.isBlank?c3=!0:(u2=l2.value,c3=u2.number>0);let d2="auto",h3=t3[3];if(h3.type==="ordgroup"){if(h3.body.length>0){let e4=Be(h3.body[0],"textord");d2=Xt[Number(e4.text)]}}else h3=Be(h3,"textord"),d2=Xt[Number(h3.text)];return{type:"genfrac",mode:e3.mode,numer:r3,denom:n3,continued:!1,hasBarLine:c3,barSize:u2,leftDelim:i2,rightDelim:s2,scriptLevel:d2}},mathmlBuilder:Zt}),f({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:({parser:e3,funcName:t3,token:r3},n3)=>({type:"infix",mode:e3.mode,replaceWith:"\\\\abovefrac",barSize:Be(n3[0],"size").value,token:r3})}),f({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:({parser:e3,funcName:t3},r3)=>{let n3=r3[0],o2=(function(e4){if(!e4)throw new Error("Expected non-null, but got "+String(e4));return e4})(Be(r3[1],"infix").barSize),i2=r3[2],a2=o2.number>0;return{type:"genfrac",mode:e3.mode,numer:n3,denom:i2,continued:!1,hasBarLine:a2,barSize:o2,leftDelim:null,rightDelim:null,scriptLevel:"auto"}},mathmlBuilder:Zt}),f({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["hbox"],allowedInArgument:!0,allowedInText:!1},handler:({parser:e3},t3)=>({type:"hbox",mode:e3.mode,body:x(t3[0])}),mathmlBuilder(e3,t3){let r3=t3.withLevel(Ve),n3=pe(e3.body,r3);return le(n3)}}),f({type:"horizBracket",names:["\\overbrace","\\underbrace","\\overbracket","\\underbracket"],props:{numArgs:1},handler:({parser:e3,funcName:t3},r3)=>({type:"horizBracket",mode:e3.mode,label:t3,isOver:/^\\over/.test(t3),base:r3[0]}),mathmlBuilder:(e3,t3)=>{let r3=M(e3.label);return r3.style["math-depth"]=0,new k(e3.isOver?"mover":"munder",[fe(e3.base,t3),r3])}}),f({type:"html",names:["\\class","\\id","\\style","\\data"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:({parser:e3,funcName:r3,token:n3},o2)=>{let i2=Be(o2[0],"raw").string,a2=o2[1];if(e3.settings.strict)throw new t2(`Function "${r3}" is disabled in strict mode`,n3);let s2,l2={};switch(r3){case"\\class":l2.class=i2,s2={command:"\\class",class:i2};break;case"\\id":l2.id=i2,s2={command:"\\id",id:i2};break;case"\\style":l2.style=i2,s2={command:"\\style",style:i2};break;case"\\data":{let e4=i2.split(",");for(let r4=0;r4<e4.length;r4++){let n4=e4[r4].split("=");if(n4.length!==2)throw new t2("Error parsing key-value for \\data");l2["data-"+n4[0].trim()]=n4[1].trim()}s2={command:"\\data",attributes:l2};break}default:throw new Error("Unrecognized html command")}if(!e3.settings.isTrusted(s2))throw new t2(`Function "${r3}" is not trusted`,n3);return{type:"html",mode:e3.mode,attributes:l2,body:x(a2)}},mathmlBuilder:(e3,t3)=>{let r3=pe(e3.body,t3),n3=[];e3.attributes.class&&n3.push(...e3.attributes.class.trim().split(/\s+/)),r3.classes=n3;for(let t4 in e3.attributes)t4!=="class"&&Object.prototype.hasOwnProperty.call(e3.attributes,t4)&&r3.setAttribute(t4,e3.attributes[t4]);return r3}});let Yt=function(e3){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e3))return{number:+e3,unit:"bp"};{let r3=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e3);if(!r3)throw new t2("Invalid size: '"+e3+"' in \\includegraphics");let n3={number:+(r3[1]+r3[2]),unit:r3[3]};if(!_e(n3))throw new t2("Invalid unit: '"+n3.unit+"' in \\includegraphics.");return n3}};f({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:({parser:e3,token:r3},n3,o2)=>{let i2={number:0,unit:"em"},a2={number:.9,unit:"em"},s2={number:0,unit:"em"},l2="";if(o2[0]){let e4=Be(o2[0],"raw").string.split(",");for(let r4=0;r4<e4.length;r4++){let n4=e4[r4].split("=");if(n4.length===2){let e5=n4[1].trim();switch(n4[0].trim()){case"alt":l2=e5;break;case"width":i2=Yt(e5);break;case"height":a2=Yt(e5);break;case"totalheight":s2=Yt(e5);break;default:throw new t2("Invalid key: '"+n4[0]+"' in \\includegraphics.")}}}}let c3=Be(n3[0],"url").url;if(l2===""&&(l2=c3,l2=l2.replace(/^.*[\\/]/,""),l2=l2.substring(0,l2.lastIndexOf("."))),!e3.settings.isTrusted({command:"\\includegraphics",url:c3}))throw new t2('Function "\\includegraphics" is not trusted',r3);return{type:"includegraphics",mode:e3.mode,alt:l2,width:i2,height:a2,totalheight:s2,src:c3}},mathmlBuilder:(e3,t3)=>{let r3=qe(e3.height,t3),n3={number:0,unit:"em"};e3.totalheight.number>0&&e3.totalheight.unit===r3.unit&&e3.totalheight.number>r3.number&&(n3.number=e3.totalheight.number-r3.number,n3.unit=r3.unit);let o2=0;e3.width.number>0&&(o2=qe(e3.width,t3));let i2={height:r3.number+n3.number+"em"};o2.number>0&&(i2.width=o2.number+o2.unit),n3.number>0&&(i2.verticalAlign=-n3.number+n3.unit);let a2=new T(e3.src,e3.alt,i2);return a2.height=r3,a2.depth=n3,new k("mtext",[a2])}}),f({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler({parser:e3,funcName:r3,token:n3},o2){let i2=Be(o2[0],"size");if(e3.settings.strict){let o3=r3[1]==="m",a2=i2.value.unit==="mu";if(o3){if(!a2)throw new t2(`LaTeX's ${r3} supports only mu units, not ${i2.value.unit} units`,n3);if(e3.mode!=="math")throw new t2(`LaTeX's ${r3} works only in math mode`,n3)}else if(a2)throw new t2(`LaTeX's ${r3} doesn't support mu units`,n3)}return{type:"kern",mode:e3.mode,dimension:i2.value}},mathmlBuilder(e3,t3){let r3=qe(e3.dimension,t3),n3=r3.number>0&&r3.unit==="em"?Qt(r3.number):"";if(e3.mode==="text"&&n3.length>0){let e4=new N(n3);return new k("mtext",[e4])}if(r3.number>=0){let e4=new k("mspace");return e4.setAttribute("width",r3.number+r3.unit),e4}{let e4=new k("mrow");return e4.style.marginLeft=r3.number+r3.unit,e4}}});let Qt=function(e3){return e3>=.05555&&e3<=.05556?"\u200A":e3>=.1666&&e3<=.1667?"\u2009":e3>=.2222&&e3<=.2223?"\u2005":e3>=.2777&&e3<=.2778?"\u2005\u200A":""},er=/[^A-Za-z_0-9-]/g;f({type:"label",names:["\\label"],props:{numArgs:1,argTypes:["raw"]},handler:({parser:e3},t3)=>({type:"label",mode:e3.mode,string:t3[0].string.replace(er,"")}),mathmlBuilder(e3,t3){let r3=new k("mrow",[],["tml-label"]);return e3.string.length>0&&r3.setLabel(e3.string),r3}});let tr=["\\clap","\\llap","\\rlap"];f({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap","\\clap","\\llap","\\rlap"],props:{numArgs:1,allowedInText:!0},handler:({parser:e3,funcName:r3,token:n3},o2)=>{if(tr.includes(r3)){if(e3.settings.strict&&e3.mode!=="text")throw new t2(`{${r3}} can be used only in text mode.
Try \\math${r3.slice(1)}`,n3);r3=r3.slice(1)}else r3=r3.slice(5);let i2=o2[0];return{type:"lap",mode:e3.mode,alignment:r3,body:i2}},mathmlBuilder:(e3,t3)=>{let r3;if(e3.alignment==="llap"){let n4=me(x(e3.body),t3),o3=new k("mphantom",n4);r3=new k("mpadded",[o3]),r3.setAttribute("width","0.1px")}let n3=fe(e3.body,t3),o2;if(e3.alignment==="llap"?(n3.style.position="absolute",n3.style.right="0",n3.style.bottom="0",o2=new k("mpadded",[r3,n3])):o2=new k("mpadded",[n3]),e3.alignment==="rlap")e3.body.body.length>0&&e3.body.body[0].type==="genfrac"&&o2.setAttribute("lspace","0.16667em");else{let t4=e3.alignment==="llap"?"-1":"-0.5";o2.setAttribute("lspace",t4+"width"),e3.alignment==="llap"?o2.style.position="relative":(o2.style.display="flex",o2.style.justifyContent="center")}return o2.setAttribute("width","0.1px"),o2}}),f({type:"ordgroup",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler({funcName:e3,parser:t3},r3){let n3=t3.mode;t3.switchMode("math");let o2=e3==="\\("?"\\)":"$",i2=t3.parseExpression(!1,o2);return t3.expect(o2),t3.switchMode(n3),{type:"ordgroup",mode:t3.mode,body:i2}}}),f({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e3,r3){throw new t2(`Mismatched ${e3.funcName}`,r3)}}),f({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:({parser:e3},t3)=>({type:"mathchoice",mode:e3.mode,display:x(t3[0]),text:x(t3[1]),script:x(t3[2]),scriptscript:x(t3[3])}),mathmlBuilder:(e3,t3)=>{let r3=((e4,t4)=>{switch(t4.level){case Ge:return e4.display;case Ve:return e4.text;case Xe:return e4.script;case Je:return e4.scriptscript;default:return e4.text}})(e3,t3);return pe(r3,t3)}});let rr=["text","textord","mathord","atom"];function nr(e3,t3){let r3,n3=me(e3.body,t3);if(e3.mclass==="minner")r3=new k("mpadded",n3);else if(e3.mclass==="mord")e3.isCharacterBox||n3[0].type==="mathord"?(r3=n3[0],r3.type="mi",r3.children.length===1&&r3.children[0].text&&r3.children[0].text==="\u2207"&&r3.setAttribute("mathvariant","normal")):r3=new k("mi",n3);else{r3=new k("mrow",n3),e3.mustPromote?(r3=n3[0],r3.type="mo",e3.isCharacterBox&&e3.body[0].text&&/[A-Za-z]/.test(e3.body[0].text)&&r3.setAttribute("mathvariant","italic")):r3=new k("mrow",n3);let o2=t3.level<2;r3.type==="mrow"?o2&&(e3.mclass==="mbin"?(r3.children.unshift(ke(.2222)),r3.children.push(ke(.2222))):e3.mclass==="mrel"?(r3.children.unshift(ke(.2778)),r3.children.push(ke(.2778))):e3.mclass==="mpunct"?r3.children.push(ke(.1667)):e3.mclass==="minner"&&(r3.children.unshift(ke(.0556)),r3.children.push(ke(.0556)))):e3.mclass==="mbin"?(r3.attributes.lspace=o2?"0.2222em":"0",r3.attributes.rspace=o2?"0.2222em":"0"):e3.mclass==="mrel"?(r3.attributes.lspace=o2?"0.2778em":"0",r3.attributes.rspace=o2?"0.2778em":"0"):e3.mclass==="mpunct"?(r3.attributes.lspace="0em",r3.attributes.rspace=o2?"0.1667em":"0"):e3.mclass==="mopen"||e3.mclass==="mclose"?(r3.attributes.lspace="0em",r3.attributes.rspace="0em"):e3.mclass==="minner"&&o2&&(r3.attributes.lspace="0.0556em",r3.attributes.width="+0.1111em"),e3.mclass!=="mopen"&&e3.mclass!=="mclose"&&(delete r3.attributes.stretchy,delete r3.attributes.form)}return r3}f({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler({parser:e3,funcName:t3},r3){let n3=r3[0],o2=c2(n3),i2=!0,a2={type:"mathord",text:"",mode:e3.mode},s2=n3.body?n3.body:[n3];for(let t4 of s2){if(!rr.includes(t4.type)){i2=!1;break}R[e3.mode][t4.text]?a2.text+=R[e3.mode][t4.text].replace:t4.text?a2.text+=t4.text:t4.body&&t4.body.map((e4=>{a2.text+=e4.text}))}return i2&&t3==="\\mathord"&&a2.type==="mathord"&&a2.text.length>1?a2:{type:"mclass",mode:e3.mode,mclass:"m"+t3.slice(5),body:x(i2?a2:n3),isCharacterBox:o2,mustPromote:i2}},mathmlBuilder:nr});let or=e3=>{let t3=e3.type==="ordgroup"&&e3.body.length&&e3.body.length===1?e3.body[0]:e3;return t3.type!=="atom"||t3.family!=="bin"&&t3.family!=="rel"?"mord":"m"+t3.family};f({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:({parser:e3},t3)=>({type:"mclass",mode:e3.mode,mclass:or(t3[0]),body:x(t3[1]),isCharacterBox:c2(t3[1])})}),f({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler({parser:e3,funcName:t3},r3){let n3=r3[1],o2=r3[0],i2;i2=t3!=="\\stackrel"?or(n3):"mrel";let a2={type:i2==="mrel"||i2==="mbin"?"op":"ordgroup",mode:n3.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:t3!=="\\stackrel",body:x(n3)};return{type:"supsub",mode:o2.mode,stack:!0,base:a2,sup:t3==="\\underset"?null:o2,sub:t3==="\\underset"?o2:null}},mathmlBuilder:nr});let ir=(e3,t3,r3)=>{if(!e3)return r3;let n3=fe(e3,t3);return n3.type==="mrow"&&n3.children.length===0?r3:n3};f({type:"multiscript",names:["\\sideset","\\pres@cript"],props:{numArgs:3},handler({parser:e3,funcName:r3,token:n3},o2){if(o2[2].body.length===0)throw new t2(r3+"cannot parse an empty base.");let i2=o2[2].body[0];if(e3.settings.strict&&r3==="\\sideset"&&!i2.symbol)throw new t2("The base of \\sideset must be a big operator. Try \\prescript.");if(o2[0].body.length>0&&o2[0].body[0].type!=="supsub"||o2[1].body.length>0&&o2[1].body[0].type!=="supsub")throw new t2("\\sideset can parse only subscripts and superscripts in its first two arguments",n3);let a2=o2[0].body.length>0?o2[0].body[0]:null,s2=o2[1].body.length>0?o2[1].body[0]:null;return a2||s2?a2?{type:"multiscript",mode:e3.mode,isSideset:r3==="\\sideset",prescripts:a2,postscripts:s2,base:i2}:{type:"styling",mode:e3.mode,scriptLevel:"text",body:[{type:"supsub",mode:e3.mode,base:i2,sup:s2.sup,sub:s2.sub}]}:i2},mathmlBuilder(e3,t3){let r3=fe(e3.base,t3),n3=new k("mprescripts"),o2=new k("none"),i2=[],a2=ir(e3.prescripts.sub,t3,o2),s2=ir(e3.prescripts.sup,t3,o2);return e3.isSideset&&(a2.setAttribute("style","text-align: left;"),s2.setAttribute("style","text-align: left;")),e3.postscripts?i2=[r3,ir(e3.postscripts.sub,t3,o2),ir(e3.postscripts.sup,t3,o2),n3,a2,s2]:i2=[r3,n3,a2,s2],new k("mmultiscripts",i2)}}),f({type:"not",names:["\\not"],props:{numArgs:1,primitive:!0,allowedInText:!1},handler({parser:e3},t3){let r3=c2(t3[0]),n3;return r3?(n3=x(t3[0]),n3[0].text.charAt(0)==="\\"&&(n3[0].text=R.math[n3[0].text].replace),n3[0].text=n3[0].text.slice(0,1)+"\u0338"+n3[0].text.slice(1)):n3=[{type:"textord",mode:"math",text:"\u0338"},{type:"kern",mode:"math",dimension:{number:-.6,unit:"em"}},t3[0]],{type:"not",mode:e3.mode,body:n3,isCharacterBox:r3}},mathmlBuilder(e3,t3){return e3.isCharacterBox?me(e3.body,t3,!0)[0]:pe(e3.body,t3)}});let ar=["textord","mathord","atom"],sr=["\\smallint"],lr=["textord","mathord","ordgroup","close","leftright","font"],cr=e3=>{e3.attributes.lspace="0.1667em",e3.attributes.rspace="0.1667em"},ur=(e3,t3)=>{let r3;if(e3.symbol)r3=new k("mo",[ae(e3.name,e3.mode)]),sr.includes(e3.name)?r3.setAttribute("largeop","false"):r3.setAttribute("movablelimits","false"),e3.fromMathOp&&cr(r3);else if(e3.body)r3=new k("mo",me(e3.body,t3)),e3.fromMathOp&&cr(r3);else if(r3=new k("mi",[new N(e3.name.slice(1))]),!e3.parentIsSupSub){let t4=[r3,new k("mo",[ae("\u2061","text")])];if(e3.needsLeadingSpace){let e4=new k("mspace");e4.setAttribute("width","0.1667em"),t4.unshift(e4)}if(!e3.isFollowedByDelimiter){let e4=new k("mspace");e4.setAttribute("width","0.1667em"),t4.push(e4)}r3=new k("mrow",t4)}return r3},dr={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A05":"\\bigsqcap","\u2A06":"\\bigsqcup","\u2A03":"\\bigcupdot","\u2A07":"\\bigdoublevee","\u2A08":"\\bigdoublewedge","\u2A09":"\\bigtimes"};f({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcupplus","\\bigcupdot","\\bigcap","\\bigcup","\\bigdoublevee","\\bigdoublewedge","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcap","\\bigsqcup","\\bigtimes","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A03","\u2A04","\u2A05","\u2A06","\u2A07","\u2A08","\u2A09"],props:{numArgs:0},handler:({parser:e3,funcName:t3},r3)=>{let n3=t3;return n3.length===1&&(n3=dr[n3]),{type:"op",mode:e3.mode,limits:!0,parentIsSupSub:!1,symbol:!0,stack:!1,name:n3}},mathmlBuilder:ur}),f({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:({parser:e3},t3)=>{let r3=t3[0],n3=r3.body?r3.body:[r3],o2=n3.length===1&&ar.includes(n3[0].type);return{type:"op",mode:e3.mode,limits:!0,parentIsSupSub:!1,symbol:o2,fromMathOp:!0,stack:!1,name:o2?n3[0].text:null,body:o2?null:x(r3)}},mathmlBuilder:ur});let hr={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint","\u2231":"\\intclockwise","\u2232":"\\varointclockwise","\u2A0C":"\\iiiint","\u2A0D":"\\intbar","\u2A0E":"\\intBar","\u2A0F":"\\fint","\u2A12":"\\rppolint","\u2A13":"\\scpolint","\u2A15":"\\pointint","\u2A16":"\\sqint","\u2A17":"\\intlarhk","\u2A18":"\\intx","\u2A19":"\\intcap","\u2A1A":"\\intcup"};f({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\sgn","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler({parser:e3,funcName:t3}){let r3=e3.prevAtomType,n3=e3.gullet.future().text;return{type:"op",mode:e3.mode,limits:!1,parentIsSupSub:!1,symbol:!1,stack:!1,isFollowedByDelimiter:Ft(n3),needsLeadingSpace:r3.length>0&&lr.includes(r3),name:t3}},mathmlBuilder:ur}),f({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler({parser:e3,funcName:t3}){let r3=e3.prevAtomType,n3=e3.gullet.future().text;return{type:"op",mode:e3.mode,limits:!0,parentIsSupSub:!1,symbol:!1,stack:!1,isFollowedByDelimiter:Ft(n3),needsLeadingSpace:r3.length>0&&lr.includes(r3),name:t3}},mathmlBuilder:ur}),f({type:"op",names:["\\int","\\iint","\\iiint","\\iiiint","\\oint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\intbar","\\intBar","\\fint","\\rppolint","\\scpolint","\\pointint","\\sqint","\\intlarhk","\\intx","\\intcap","\\intcup","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230","\u2231","\u2232","\u2A0C","\u2A0D","\u2A0E","\u2A0F","\u2A12","\u2A13","\u2A15","\u2A16","\u2A17","\u2A18","\u2A19","\u2A1A"],props:{numArgs:0,allowedInArgument:!0},handler({parser:e3,funcName:t3}){let r3=t3;return r3.length===1&&(r3=hr[r3]),{type:"op",mode:e3.mode,limits:!1,parentIsSupSub:!1,symbol:!0,stack:!1,name:r3}},mathmlBuilder:ur}),f({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1,allowedInArgument:!0},handler:({parser:e3,funcName:t3},r3)=>{let n3=r3[0],o2=e3.prevAtomType,i2=e3.gullet.future().text;return{type:"operatorname",mode:e3.mode,body:x(n3),alwaysHandleSupSub:t3==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1,isFollowedByDelimiter:Ft(i2),needsLeadingSpace:o2.length>0&&lr.includes(o2)}},mathmlBuilder:(e3,t3)=>{let r3,n3=me(e3.body,t3.withFont("mathrm")),o2=!0;for(let e4=0;e4<n3.length;e4++){let t4=n3[e4];if(t4 instanceof k)switch((t4.type==="mrow"||t4.type==="mpadded")&&t4.children.length===1&&t4.children[0]instanceof k&&(t4=t4.children[0]),t4.type){case"mi":case"mn":case"ms":case"mtext":break;case"mspace":if(t4.attributes.width){let r4=t4.attributes.width.replace("em",""),i2=Qt(Number(r4));i2===""?o2=!1:n3[e4]=new k("mtext",[new N(i2)])}break;case"mo":{let e5=t4.children[0];t4.children.length===1&&e5 instanceof N?e5.text=e5.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):o2=!1;break}default:o2=!1}else o2=!1}if(o2){let e4=n3.map((e5=>e5.toText())).join("");n3=[new N(e4)]}else if(n3.length===1&&["mover","munder"].includes(n3[0].type)&&(n3[0].children[0].type==="mi"||n3[0].children[0].type==="mtext")){if(n3[0].children[0].type="mi",e3.parentIsSupSub)return new k("mrow",n3);{let e4=new k("mo",[ae("\u2061","text")]);return q([n3[0],e4])}}if(o2?(r3=new k("mi",n3),n3[0].text.length===1&&r3.setAttribute("mathvariant","normal")):r3=new k("mrow",n3),!e3.parentIsSupSub){let t4=[r3,new k("mo",[ae("\u2061","text")])];if(e3.needsLeadingSpace){let e4=new k("mspace");e4.setAttribute("width","0.1667em"),t4.unshift(e4)}if(!e3.isFollowedByDelimiter){let e4=new k("mspace");e4.setAttribute("width","0.1667em"),t4.push(e4)}return q(t4)}return r3}}),Ke("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),g({type:"ordgroup",mathmlBuilder:(e3,t3)=>pe(e3.body,t3,e3.semisimple)}),f({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e3},t3)=>{let r3=t3[0];return{type:"phantom",mode:e3.mode,body:x(r3)}},mathmlBuilder:(e3,t3)=>{let r3=me(e3.body,t3);return new k("mphantom",r3)}}),f({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e3},t3)=>{let r3=t3[0];return{type:"hphantom",mode:e3.mode,body:r3}},mathmlBuilder:(e3,t3)=>{let r3=me(x(e3.body),t3),n3=new k("mphantom",r3),o2=new k("mpadded",[n3]);return o2.setAttribute("height","0px"),o2.setAttribute("depth","0px"),o2}}),f({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:({parser:e3},t3)=>{let r3=t3[0];return{type:"vphantom",mode:e3.mode,body:r3}},mathmlBuilder:(e3,t3)=>{let r3=me(x(e3.body),t3),n3=new k("mphantom",r3),o2=new k("mpadded",[n3]);return o2.setAttribute("width","0px"),o2}}),f({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler:({parser:e3},t3)=>({type:"pmb",mode:e3.mode,body:x(t3[0])}),mathmlBuilder(e3,t3){let r3=me(e3.body,t3),n3=L(r3);return n3.setAttribute("style","font-weight:bold"),n3}});let mr=(e3,t3)=>{let r3=t3.withLevel(Ve),n3=new k("mpadded",[fe(e3.body,r3)]),o2=qe(e3.dy,t3);return n3.setAttribute("voffset",o2.number+o2.unit),o2.number>0?n3.style.padding=o2.number+o2.unit+" 0 0 0":n3.style.padding="0 0 "+Math.abs(o2.number)+o2.unit+" 0",n3};f({type:"raise",names:["\\raise","\\lower"],props:{numArgs:2,argTypes:["size","primitive"],primitive:!0},handler({parser:e3,funcName:t3},r3){let n3=Be(r3[0],"size").value;t3==="\\lower"&&(n3.number*=-1);let o2=r3[1];return{type:"raise",mode:e3.mode,dy:n3,body:o2}},mathmlBuilder:mr}),f({type:"raise",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler({parser:e3,funcName:t3},r3){let n3=Be(r3[0],"size").value,o2=r3[1];return{type:"raise",mode:e3.mode,dy:n3,body:o2}},mathmlBuilder:mr}),f({type:"ref",names:["\\ref","\\eqref"],props:{numArgs:1,argTypes:["raw"]},handler:({parser:e3,funcName:t3},r3)=>({type:"ref",mode:e3.mode,funcName:t3,string:r3[0].string.replace(er,"")}),mathmlBuilder(e3,t3){let r3=e3.funcName==="\\ref"?["tml-ref"]:["tml-ref","tml-eqref"];return new _("#"+e3.string,r3,null)}}),f({type:"reflect",names:["\\reflectbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:({parser:e3},t3)=>({type:"reflect",mode:e3.mode,body:t3[0]}),mathmlBuilder(e3,t3){let r3=fe(e3.body,t3);return r3.style.transform="scaleX(-1)",r3}}),f({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler:({parser:e3})=>({type:"internal",mode:e3.mode})}),f({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler({parser:e3},t3,r3){let n3=r3[0],o2=Be(t3[0],"size"),i2=Be(t3[1],"size");return{type:"rule",mode:e3.mode,shift:n3&&Be(n3,"size").value,width:o2.value,height:i2.value}},mathmlBuilder(e3,t3){let r3=qe(e3.width,t3),n3=qe(e3.height,t3),o2=e3.shift?qe(e3.shift,t3):{number:0,unit:"em"},i2=t3.color&&t3.getColor()||"black",a2=new k("mspace");if(r3.number>0&&n3.number>0&&a2.setAttribute("mathbackground",i2),a2.setAttribute("width",r3.number+r3.unit),a2.setAttribute("height",n3.number+n3.unit),o2.number===0)return a2;let s2=new k("mpadded",[a2]);return o2.number>=0?s2.setAttribute("height","+"+o2.number+o2.unit):(s2.setAttribute("height",o2.number+o2.unit),s2.setAttribute("depth","+"+-o2.number+o2.unit)),s2.setAttribute("voffset",o2.number+o2.unit),s2}});let pr=/^[0-9]$/,fr={0:"\u2080",1:"\u2081",2:"\u2082",3:"\u2083",4:"\u2084",5:"\u2085",6:"\u2086",7:"\u2087",8:"\u2088",9:"\u2089"},gr={0:"\u2070",1:"\xB9",2:"\xB2",3:"\xB3",4:"\u2074",5:"\u2075",6:"\u2076",7:"\u2077",8:"\u2078",9:"\u2079"};f({type:"sfrac",names:["\\sfrac"],props:{numArgs:2,allowedInText:!0,allowedInMath:!0},handler({parser:e3},r3){let n3="";for(let e4 of r3[0].body){if(e4.type!=="textord"||!pr.test(e4.text))throw new t2("Numerator must be an integer.",e4);n3+=e4.text}let o2="";for(let e4 of r3[1].body){if(e4.type!=="textord"||!pr.test(e4.text))throw new t2("Denominator must be an integer.",e4);o2+=e4.text}return{type:"sfrac",mode:e3.mode,numerator:n3,denominator:o2}},mathmlBuilder(e3,t3){let r3=e3.numerator.split("").map((e4=>gr[e4])).join(""),n3=e3.denominator.split("").map((e4=>fr[e4])).join(""),o2=new N(r3+"\u2044"+n3,e3.mode,t3);return new k("mn",[o2],["special-fraction"])}});let br={"\\tiny":.5,"\\sixptsize":.6,"\\Tiny":.6,"\\scriptsize":.7,"\\footnotesize":.8,"\\small":.9,"\\normalsize":1,"\\large":1.2,"\\Large":1.44,"\\LARGE":1.728,"\\huge":2.074,"\\Huge":2.488};f({type:"sizing",names:["\\tiny","\\sixptsize","\\Tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],props:{numArgs:0,allowedInText:!0},handler:({breakOnTokenText:e3,funcName:t3,parser:r3},n3)=>{r3.settings.strict&&r3.mode==="math"&&console.log(`Temml strict-mode warning: Command ${t3} is invalid in math mode.`);let o2=r3.parseExpression(!1,e3,!0);return{type:"sizing",mode:r3.mode,funcName:t3,body:o2}},mathmlBuilder:(e3,t3)=>{let r3=t3.withFontSize(br[e3.funcName]),n3=me(e3.body,r3),o2=L(n3),i2=(br[e3.funcName]/t3.fontSize).toFixed(4);return o2.setAttribute("mathsize",i2+"em"),o2}}),f({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:({parser:e3},t3,r3)=>{let n3=!1,o2=!1,i2=r3[0]&&Be(r3[0],"ordgroup");if(i2){let e4="";for(let t4=0;t4<i2.body.length;++t4)if(e4=i2.body[t4].text,e4==="t")n3=!0;else{if(e4!=="b"){n3=!1,o2=!1;break}o2=!0}}else n3=!0,o2=!0;let a2=t3[0];return{type:"smash",mode:e3.mode,body:a2,smashHeight:n3,smashDepth:o2}},mathmlBuilder:(e3,t3)=>{let r3=new k("mpadded",[fe(e3.body,t3)]);return e3.smashHeight&&r3.setAttribute("height","0px"),e3.smashDepth&&r3.setAttribute("depth","0px"),r3}});let xr=["a","c","e","\u0131","m","n","o","r","s","u","v","w","x","z","\u03B1","\u03B5","\u03B9","\u03BA","\u03BD","\u03BF","\u03C0","\u03C3","\u03C4","\u03C5","\u03C9","\\alpha","\\epsilon","\\iota","\\kappa","\\nu","\\omega","\\pi","\\tau","\\omega"];f({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler({parser:e3},t3,r3){let n3=r3[0],o2=t3[0];return o2.body&&o2.body.length===1&&o2.body[0].text&&xr.includes(o2.body[0].text)&&o2.body.push({type:"rule",mode:"math",shift:null,width:{number:0,unit:"pt"},height:{number:.5,unit:"em"}}),{type:"sqrt",mode:e3.mode,body:o2,index:n3}},mathmlBuilder(e3,t3){let{body:r3,index:n3}=e3;return n3?new k("mroot",[fe(r3,t3),fe(n3,t3.incrementLevel())]):new k("msqrt",[fe(r3,t3)])}});let vr={display:0,text:1,script:2,scriptscript:3},yr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]};f({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler({breakOnTokenText:e3,funcName:t3,parser:r3},n3){let o2=r3.parseExpression(!0,e3,!0),i2=t3.slice(1,t3.length-5);return{type:"styling",mode:r3.mode,scriptLevel:i2,body:o2}},mathmlBuilder(e3,t3){let r3=t3.withLevel(vr[e3.scriptLevel]),n3=me(e3.body,r3),o2=L(n3),i2=yr[e3.scriptLevel];return o2.setAttribute("scriptlevel",i2[0]),o2.setAttribute("displaystyle",i2[1]),o2}});let wr=/^m(over|under|underover)$/;g({type:"supsub",mathmlBuilder(e3,t3){let r3,n3,o2=!1,i2=!1,a2=!1,s2=!1;e3.base&&e3.base.type==="horizBracket"&&(n3=!!e3.sup,n3===e3.base.isOver&&(o2=!0,r3=e3.base.isOver)),!e3.base||e3.stack||e3.base.type!=="op"&&e3.base.type!=="operatorname"||(e3.base.parentIsSupSub=!0,i2=!e3.base.symbol,a2=i2&&!e3.isFollowedByDelimiter,s2=e3.base.needsLeadingSpace);let l2=e3.stack&&e3.base.body.length===1?[fe(e3.base.body[0],t3)]:[fe(e3.base,t3)],c3=t3.inSubOrSup();if(e3.sub){let r4=fe(e3.sub,c3);t3.level===3&&r4.setAttribute("scriptlevel","2"),l2.push(r4)}if(e3.sup){let r4=fe(e3.sup,c3);if(t3.level===3&&r4.setAttribute("scriptlevel","2"),e3.base&&e3.base.text&&e3.base.text.length===1){let t4=e3.base.text;"DHKLUcegorsuvxyz\u03A0\u03A5\u03A8\u03B1\u03B4\u03B7\u03B9\u03BC\u03BD\u03BF\u03C4\u03C5\u03C7\u03F5".indexOf(t4)>-1?r4.classes.push("tml-sml-pad"):"BCEFGIMNOPQRSTXZlpqtw\u0393\u0398\u039E\u03A3\u03A6\u03A9\u03B2\u03B5\u03B6\u03B8\u03BE\u03C1\u03C2\u03C6\u03C8\u03D1\u03D5\u03F1".indexOf(t4)>-1?r4.classes.push("tml-med-pad"):"AJdf\u0394\u039B".indexOf(t4)>-1&&r4.classes.push("tml-lrg-pad")}l2.push(r4)}let u2;if(o2)u2=r3?"mover":"munder";else if(e3.sub)if(e3.sup){let r4=e3.base;u2=r4&&(r4.type==="op"&&r4.limits||r4.type==="multiscript")&&(t3.level===Ge||r4.alwaysHandleSupSub)||r4&&r4.type==="operatorname"&&r4.alwaysHandleSupSub&&(t3.level===Ge||r4.limits)?"munderover":"msubsup"}else{let r4=e3.base;u2=e3.stack||r4&&r4.type==="op"&&r4.limits&&(t3.level===Ge||r4.alwaysHandleSupSub)||r4&&r4.type==="operatorname"&&r4.alwaysHandleSupSub&&(r4.limits||t3.level===Ge)?"munder":"msub"}else{let r4=e3.base;u2=r4&&r4.type==="op"&&r4.limits&&(t3.level===Ge||r4.alwaysHandleSupSub)||r4&&r4.type==="operatorname"&&r4.alwaysHandleSupSub&&(r4.limits||t3.level===Ge)?"mover":"msup"}let d2=new k(u2,l2);if(i2){let e4=new k("mo",[ae("\u2061","text")]);if(s2){let t4=new k("mspace");t4.setAttribute("width","0.1667em"),d2=q([t4,d2,e4])}else d2=q([d2,e4]);if(a2){let e5=new k("mspace");e5.setAttribute("width","0.1667em"),d2.children.push(e5)}}else wr.test(u2)&&(d2=new k("mrow",[d2]));return d2}});let Ar=["\\shortmid","\\nshortmid","\\shortparallel","\\nshortparallel","\\smallsetminus"],Cr=["\\Rsh","\\Lsh","\\restriction"];g({type:"atom",mathmlBuilder(e3,t3){let r3=new k("mo",[ae(e3.text,e3.mode)]);if(e3.family==="punct")r3.setAttribute("separator","true");else if(e3.family==="open"||e3.family==="close")e3.family==="open"?(r3.setAttribute("form","prefix"),r3.setAttribute("stretchy","false")):e3.family==="close"&&(r3.setAttribute("form","postfix"),r3.setAttribute("stretchy","false"));else if(e3.text==="\\mid")r3.setAttribute("lspace","0.22em"),r3.setAttribute("rspace","0.22em"),r3.setAttribute("stretchy","false");else if(e3.family==="rel"&&(e4=>{if(e4.length===1){let t4=e4.codePointAt(0);return 8591<t4&&t4<8704}return e4.indexOf("arrow")>-1||e4.indexOf("harpoon")>-1||Cr.includes(e4)})(e3.text))r3.setAttribute("stretchy","false");else if(Ar.includes(e3.text))r3.setAttribute("mathsize","70%");else if(e3.text===":")r3.attributes.lspace="0.2222em",r3.attributes.rspace="0.2222em";else if(e3.needsSpacing)return e3.family==="bin"?new k("mrow",[ke(.222),r3,ke(.222)]):new k("mrow",[ke(.2778),r3,ke(.2778)]);return r3}});let Er={mathbf:"bold",mathrm:"normal",textit:"italic",mathit:"italic",mathnormal:"italic",mathbb:"double-struck",mathcal:"script",mathfrak:"fraktur",mathscr:"script",mathsf:"sans-serif",mathtt:"monospace"},Sr=function(e3,t3){if(t3.fontFamily==="texttt")return"monospace";if(t3.fontFamily==="textsc")return"normal";if(t3.fontFamily==="textsf")return t3.fontShape==="textit"&&t3.fontWeight==="textbf"?"sans-serif-bold-italic":t3.fontShape==="textit"?"sans-serif-italic":t3.fontWeight==="textbf"?"sans-serif-bold":"sans-serif";if(t3.fontShape==="textit"&&t3.fontWeight==="textbf")return"bold-italic";if(t3.fontShape==="textit")return"italic";if(t3.fontWeight==="textbf")return"bold";let r3=t3.font;if(!r3||r3==="mathnormal")return null;let n3=e3.mode;switch(r3){case"mathit":case"greekItalic":return"italic";case"mathrm":{let t4=e3.text.codePointAt(0);return 939<t4&&t4<975?"italic":"normal"}case"up@greek":return"normal";case"boldsymbol":case"mathboldsymbol":return"bold-italic";case"mathbf":return"bold";case"mathbb":return"double-struck";case"mathfrak":return"fraktur";case"mathscr":case"mathcal":return"script";case"mathsf":return"sans-serif";case"mathsfit":return"sans-serif-italic";case"mathtt":return"monospace"}let o2=e3.text;return R[n3][o2]&&R[n3][o2].replace&&(o2=R[n3][o2].replace),Object.prototype.hasOwnProperty.call(Er,r3)?Er[r3]:null},_r=Object.freeze({B:8426,E:8427,F:8427,H:8387,I:8391,L:8390,M:8422,R:8393,e:8394,g:8355,o:8389}),Tr=Object.freeze({C:8426,H:8388,I:8392,R:8394,Z:8398}),qr=Object.freeze({C:8383,H:8389,N:8391,P:8393,Q:8393,R:8395,Z:8394}),kr=Object.freeze({"\u03F5":119527,\u03D1:119564,\u03F0:119534,\u03C6:119577,\u03F1:119535,\u03D6:119563}),Nr=Object.freeze({"\u03F5":119643,\u03D1:119680,\u03F0:119650,\u03C6:119693,\u03F1:119651,\u03D6:119679}),Lr=Object.freeze({"\u03F5":119701,\u03D1:119738,\u03F0:119708,\u03C6:119751,\u03F1:119709,\u03D6:119737}),Or=Object.freeze({"\u03F5":119759,\u03D1:119796,\u03F0:119766,\u03C6:119809,\u03F1:119767,\u03D6:119795}),Dr=Object.freeze({upperCaseLatin:{normal:e3=>0,bold:e3=>119743,italic:e3=>119795,"bold-italic":e3=>119847,script:e3=>_r[e3]||119899,"script-bold":e3=>119951,fraktur:e3=>Tr[e3]||120003,"fraktur-bold":e3=>120107,"double-struck":e3=>qr[e3]||120055,"sans-serif":e3=>120159,"sans-serif-bold":e3=>120211,"sans-serif-italic":e3=>120263,"sans-serif-bold-italic":e3=>120380,monospace:e3=>120367},lowerCaseLatin:{normal:e3=>0,bold:e3=>119737,italic:e3=>e3==="h"?8358:119789,"bold-italic":e3=>119841,script:e3=>_r[e3]||119893,"script-bold":e3=>119945,fraktur:e3=>119997,"fraktur-bold":e3=>120101,"double-struck":e3=>120049,"sans-serif":e3=>120153,"sans-serif-bold":e3=>120205,"sans-serif-italic":e3=>120257,"sans-serif-bold-italic":e3=>120309,monospace:e3=>120361},upperCaseGreek:{normal:e3=>0,bold:e3=>119575,italic:e3=>119633,"bold-italic":e3=>119575,script:e3=>0,"script-bold":e3=>0,fraktur:e3=>0,"fraktur-bold":e3=>0,"double-struck":e3=>0,"sans-serif":e3=>119749,"sans-serif-bold":e3=>119749,"sans-serif-italic":e3=>0,"sans-serif-bold-italic":e3=>119807,monospace:e3=>0},lowerCaseGreek:{normal:e3=>0,bold:e3=>119569,italic:e3=>119627,"bold-italic":e3=>e3==="\u03D5"?119678:119685,script:e3=>0,"script-bold":e3=>0,fraktur:e3=>0,"fraktur-bold":e3=>0,"double-struck":e3=>0,"sans-serif":e3=>119743,"sans-serif-bold":e3=>119743,"sans-serif-italic":e3=>0,"sans-serif-bold-italic":e3=>119801,monospace:e3=>0},varGreek:{normal:e3=>0,bold:e3=>kr[e3]||-51,italic:e3=>0,"bold-italic":e3=>Nr[e3]||58,script:e3=>0,"script-bold":e3=>0,fraktur:e3=>0,"fraktur-bold":e3=>0,"double-struck":e3=>0,"sans-serif":e3=>Lr[e3]||116,"sans-serif-bold":e3=>Lr[e3]||116,"sans-serif-italic":e3=>0,"sans-serif-bold-italic":e3=>Or[e3]||174,monospace:e3=>0},numeral:{normal:e3=>0,bold:e3=>120734,italic:e3=>0,"bold-italic":e3=>0,script:e3=>0,"script-bold":e3=>0,fraktur:e3=>0,"fraktur-bold":e3=>0,"double-struck":e3=>120744,"sans-serif":e3=>120754,"sans-serif-bold":e3=>120764,"sans-serif-italic":e3=>0,"sans-serif-bold-italic":e3=>0,monospace:e3=>120774}}),Mr=(e3,t3)=>{let r3=e3.codePointAt(0),n3=64<r3&&r3<91?"upperCaseLatin":96<r3&&r3<123?"lowerCaseLatin":912<r3&&r3<938?"upperCaseGreek":944<r3&&r3<970||e3==="\u03D5"?"lowerCaseGreek":120545<r3&&r3<120572||kr[e3]?"varGreek":47<r3&&r3<58?"numeral":"other";return n3==="other"?e3:String.fromCodePoint(r3+Dr[n3][t3](e3))},$r=Object.freeze({a:"\u1D00",b:"\u0299",c:"\u1D04",d:"\u1D05",e:"\u1D07",f:"\uA730",g:"\u0262",h:"\u029C",i:"\u026A",j:"\u1D0A",k:"\u1D0B",l:"\u029F",m:"\u1D0D",n:"\u0274",o:"\u1D0F",p:"\u1D18",q:"\u01EB",r:"\u0280",s:"s",t:"\u1D1B",u:"\u1D1C",v:"\u1D20",w:"\u1D21",x:"x",y:"\u028F",z:"\u1D22"}),Br=/^\d(?:[\d,.]*\d)?$/,Pr=/[A-Ba-z]/,Ir=new Set(["\\prime","\\dprime","\\trprime","\\qprime","\\backprime","\\backdprime","\\backtrprime"]);g({type:"mathord",mathmlBuilder(e3,t3){let r3=ae(e3.text,e3.mode,t3),n3=r3.text.codePointAt(0),o2=912<n3&&n3<938?"normal":"italic",i2=Sr(e3,t3)||o2;if(i2==="script")return r3.text=Mr(r3.text,i2),new k("mi",[r3],[t3.font]);i2!=="italic"&&(r3.text=Mr(r3.text,i2));let a2=new k("mi",[r3]);return i2==="normal"&&(a2.setAttribute("mathvariant","normal"),r3.text.length===1&&(a2=new k("mpadded",[a2]),a2.setAttribute("lspace","0"))),a2}}),g({type:"textord",mathmlBuilder(e3,t3){let r3=e3.text,n3=r3.codePointAt(0);t3.fontFamily==="textsc"&&96<n3&&n3<123&&(r3=$r[r3]);let o2=ae(r3,e3.mode,t3),i2=Sr(e3,t3)||"normal",a2;if(Br.test(e3.text)){let t4=e3.mode==="text"?"mtext":"mn";if(i2==="italic"||i2==="bold-italic")return((e4,t5,r4)=>{let n4=new k(r4,[e4]),o3=new k("mstyle",[n4]);return o3.style["font-style"]="italic",o3.style["font-family"]="Cambria, 'Times New Roman', serif",t5==="bold-italic"&&(o3.style["font-weight"]="bold"),o3})(o2,i2,t4);i2!=="normal"&&(o2.text=o2.text.split("").map((e4=>Mr(e4,i2))).join("")),a2=new k(t4,[o2])}else if(e3.mode==="text")i2!=="normal"&&(o2.text=Mr(o2.text,i2)),a2=new k("mtext",[o2]);else if(Ir.has(e3.text))a2=new k("mo",[o2]),a2.classes.push("tml-prime");else{let e4=o2.text;i2!=="italic"&&(o2.text=Mr(o2.text,i2)),a2=new k("mi",[o2]),o2.text===e4&&Pr.test(e4)&&a2.setAttribute("mathvariant","italic")}return a2}});let Rr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Fr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};g({type:"spacing",mathmlBuilder(e3,r3){let n3;if(Object.prototype.hasOwnProperty.call(Fr,e3.text))n3=new k("mtext",[new N("\xA0")]);else{if(!Object.prototype.hasOwnProperty.call(Rr,e3.text))throw new t2(`Unknown type of space "${e3.text}"`);n3=new k("mo"),e3.text==="\\nobreak"&&n3.setAttribute("linebreak","nobreak")}return n3}}),g({type:"tag"});let jr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm","\\textsc":"textsc"},Hr={"\\textbf":"textbf","\\textmd":"textmd"},zr={"\\textit":"textit","\\textup":"textup"};f({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textsc","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler({parser:e3,funcName:t3},r3){let n3=r3[0];return{type:"text",mode:e3.mode,body:x(n3),font:t3}},mathmlBuilder(e3,t3){let r3=((e4,t4)=>{let r4=e4.font;return r4?jr[r4]?t4.withTextFontFamily(jr[r4]):Hr[r4]?t4.withTextFontWeight(Hr[r4]):r4==="\\emph"?t4.fontShape==="textit"?t4.withTextFontShape("textup"):t4.withTextFontShape("textit"):t4.withTextFontShape(zr[r4]):t4})(e3,t3),n3=pe(e3.body,r3);return le(n3)}}),f({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:({parser:e3},t3)=>({type:"vcenter",mode:e3.mode,body:t3[0]}),mathmlBuilder(e3,t3){let r3=new k("mtd",[fe(e3.body,t3)]);r3.style.padding="0";let n3=new k("mtr",[r3]);return new k("mtable",[n3])}}),f({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e3,r3,n3){throw new t2("\\verb ended by end of line instead of matching delimiter")},mathmlBuilder(e3,t3){let r3=new N(Ur(e3)),n3=new k("mtext",[r3]);return n3.setAttribute("mathvariant","monospace"),n3}});let Ur=e3=>e3.body.replace(/ /g,e3.star?"\u2423":"\xA0"),Wr=m,Gr=`[ \r
]`,Vr=`(\\\\[a-zA-Z@]+)${Gr}*`,Xr="[\u0300-\u036F]",Jr=new RegExp(`${Xr}+$`),Zr=`(${Gr}+)|\\\\(
|[ \r ]+
?)[ \r ]*|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]${Xr}*|[\uD800-\uDBFF][\uDC00-\uDFFF]${Xr}*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|${Vr}|\\\\[^\uD800-\uDFFF])`;class Kr{constructor(e3,t3){this.input=e3,this.settings=t3,this.tokenRegex=new RegExp(Zr,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e3,t3){this.catcodes[e3]=t3}lex(){let e3=this.input,r3=this.tokenRegex.lastIndex;if(r3===e3.length)return new We("EOF",new Ue(this,r3,r3));let n3=this.tokenRegex.exec(e3);if(n3===null||n3.index!==r3)throw new t2(`Unexpected character: '${e3[r3]}'`,new We(e3[r3],new Ue(this,r3,r3+1)));let o2=n3[6]||n3[3]||(n3[2]?"\\ ":" ");if(this.catcodes[o2]===14){let r4=e3.indexOf(`
`,this.tokenRegex.lastIndex);if(r4===-1){if(this.tokenRegex.lastIndex=e3.length,this.settings.strict)throw new t2("% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode")}else this.tokenRegex.lastIndex=r4+1;return this.lex()}return new We(o2,new Ue(this,r3,this.tokenRegex.lastIndex))}}class Yr{constructor(e3={},t3={}){this.current=t3,this.builtins=e3,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new t2("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");let e3=this.undefStack.pop();for(let t3 in e3)Object.prototype.hasOwnProperty.call(e3,t3)&&(e3[t3]===void 0?delete this.current[t3]:this.current[t3]=e3[t3])}has(e3){return Object.prototype.hasOwnProperty.call(this.current,e3)||Object.prototype.hasOwnProperty.call(this.builtins,e3)}get(e3){return Object.prototype.hasOwnProperty.call(this.current,e3)?this.current[e3]:this.builtins[e3]}set(e3,t3,r3=!1){if(r3){for(let t4=0;t4<this.undefStack.length;t4++)delete this.undefStack[t4][e3];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e3]=t3)}else{let t4=this.undefStack[this.undefStack.length-1];t4&&!Object.prototype.hasOwnProperty.call(t4,e3)&&(t4[e3]=this.current[e3])}this.current[e3]=t3}}let Qr={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class en{constructor(e3,t3,r3){this.settings=t3,this.expansionCount=0,this.feed(e3),this.macros=new Yr(Ye,t3.macros),this.mode=r3,this.stack=[]}feed(e3){this.lexer=new Kr(e3,this.settings)}switchMode(e3){this.mode=e3}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e3){this.stack.push(e3)}pushTokens(e3){this.stack.push(...e3)}scanArgument(e3){let t3,r3,n3;if(e3){if(this.consumeSpaces(),this.future().text!=="[")return null;t3=this.popToken(),{tokens:n3,end:r3}=this.consumeArg(["]"])}else({tokens:n3,start:t3,end:r3}=this.consumeArg());return this.pushToken(new We("EOF",r3.loc)),this.pushTokens(n3),t3.range(r3,"")}consumeSpaces(){for(;this.future().text===" ";)this.stack.pop()}consumeArg(e3){let r3=[],n3=e3&&e3.length>0;n3||this.consumeSpaces();let o2=this.future(),i2,a2=0,s2=0;do{if(i2=this.popToken(),r3.push(i2),i2.text==="{")++a2;else if(i2.text==="}"){if(--a2,a2===-1)throw new t2("Extra }",i2)}else if(i2.text==="EOF")throw new t2("Unexpected end of input in a macro argument, expected '"+(e3&&n3?e3[s2]:"}")+"'",i2);if(e3&&n3)if((a2===0||a2===1&&e3[s2]==="{")&&i2.text===e3[s2]){if(++s2,s2===e3.length){r3.splice(-s2,s2);break}}else s2=0}while(a2!==0||n3);return o2.text==="{"&&r3[r3.length-1].text==="}"&&(r3.pop(),r3.shift()),r3.reverse(),{tokens:r3,start:o2,end:i2}}consumeArgs(e3,r3){if(r3){if(r3.length!==e3+1)throw new t2("The length of delimiters doesn't match the number of args!");let n4=r3[0];for(let e4=0;e4<n4.length;e4++){let r4=this.popToken();if(n4[e4]!==r4.text)throw new t2("Use of the macro doesn't match its definition",r4)}}let n3=[];for(let t3=0;t3<e3;t3++)n3.push(this.consumeArg(r3&&r3[t3+1]).tokens);return n3}expandOnce(e3){let r3=this.popToken(),n3=r3.text,o2=r3.noexpand?null:this._getExpansion(n3);if(o2==null||e3&&o2.unexpandable){if(e3&&o2==null&&n3[0]==="\\"&&!this.isDefined(n3))throw new t2("Undefined control sequence: "+n3);return this.pushToken(r3),!1}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new t2("Too many expansions: infinite loop or need to increase maxExpand setting");let i2=o2.tokens,a2=this.consumeArgs(o2.numArgs,o2.delimiters);if(o2.numArgs){i2=i2.slice();for(let e4=i2.length-1;e4>=0;--e4){let r4=i2[e4];if(r4.text==="#"){if(e4===0)throw new t2("Incomplete placeholder at end of macro body",r4);if(r4=i2[--e4],r4.text==="#")i2.splice(e4+1,1);else{if(!/^[1-9]$/.test(r4.text))throw new t2("Not a valid argument number",r4);i2.splice(e4,2,...a2[+r4.text-1])}}}}return this.pushTokens(i2),i2.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){let e3=this.stack.pop();return e3.treatAsRelax&&(e3.text="\\relax"),e3}throw new Error}expandMacro(e3){return this.macros.has(e3)?this.expandTokens([new We(e3)]):void 0}expandTokens(e3){let t3=[],r3=this.stack.length;for(this.pushTokens(e3);this.stack.length>r3;)if(this.expandOnce(!0)===!1){let e4=this.stack.pop();e4.treatAsRelax&&(e4.noexpand=!1,e4.treatAsRelax=!1),t3.push(e4)}return t3}expandMacroAsText(e3){let t3=this.expandMacro(e3);return t3&&t3.map((e4=>e4.text)).join("")}_getExpansion(e3){let t3=this.macros.get(e3);if(t3==null)return t3;if(e3.length===1){let t4=this.lexer.catcodes[e3];if(t4!=null&&t4!==13)return}let r3=typeof t3=="function"?t3(this):t3;if(typeof r3=="string"){let e4=0;if(r3.indexOf("#")!==-1){let t5=r3.replace(/##/g,"");for(;t5.indexOf("#"+(e4+1))!==-1;)++e4}let t4=new Kr(r3,this.settings),n3=[],o2=t4.lex();for(;o2.text!=="EOF";)n3.push(o2),o2=t4.lex();return n3.reverse(),{tokens:n3,numArgs:e4}}return r3}isDefined(e3){return this.macros.has(e3)||Object.prototype.hasOwnProperty.call(Wr,e3)||Object.prototype.hasOwnProperty.call(R.math,e3)||Object.prototype.hasOwnProperty.call(R.text,e3)||Object.prototype.hasOwnProperty.call(Qr,e3)}isExpandable(e3){let t3=this.macros.get(e3);return t3!=null?typeof t3=="string"||typeof t3=="function"||!t3.unexpandable:Object.prototype.hasOwnProperty.call(Wr,e3)&&!Wr[e3].primitive}}let tn=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,rn=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),nn=Object.freeze({"\u{1D49C}":"A",\u212C:"B","\u{1D49E}":"C","\u{1D49F}":"D",\u2130:"E",\u2131:"F","\u{1D4A2}":"G",\u210B:"H",\u2110:"I","\u{1D4A5}":"J","\u{1D4A6}":"K",\u2112:"L",\u2133:"M","\u{1D4A9}":"N","\u{1D4AA}":"O","\u{1D4AB}":"P","\u{1D4AC}":"Q",\u211B:"R","\u{1D4AE}":"S","\u{1D4AF}":"T","\u{1D4B0}":"U","\u{1D4B1}":"V","\u{1D4B2}":"W","\u{1D4B3}":"X","\u{1D4B4}":"Y","\u{1D4B5}":"Z"});var on2={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},an={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u010F:"d\u030C",\u1E0B:"d\u0307",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u013A:"l\u0301",\u013E:"l\u030C",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u010E:"D\u030C",\u1E0A:"D\u0307",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0139:"L\u0301",\u013D:"L\u030C",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u0164:"T\u030C",\u1E6A:"T\u0307",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"};let sn=["bin","op","open","punct","rel"],ln=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/,cn=/^ *\\text/;class un{constructor(e3,t3,r3=!1){this.mode="math",this.gullet=new en(e3,t3,this.mode),this.settings=t3,this.isPreamble=r3,this.leftrightDepth=0,this.prevAtomType=""}expect(e3,r3=!0){if(this.fetch().text!==e3)throw new t2(`Expected '${e3}', got '${this.fetch().text}'`,this.fetch());r3&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e3){this.mode=e3,this.gullet.switchMode(e3)}parse(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");let e3=this.parseExpression(!1);if(this.expect("EOF"),this.isPreamble){let e4=Object.create(null);return Object.entries(this.gullet.macros.current).forEach((([t4,r3])=>{e4[t4]=r3})),this.gullet.endGroup(),e4}let t3=this.gullet.macros.get("\\df@tag");return this.gullet.endGroup(),t3&&(this.gullet.macros.current["\\df@tag"]=t3),e3}static get endOfExpression(){return["}","\\endgroup","\\end","\\right","\\endtoggle","&"]}subparse(e3){let t3=this.nextToken;this.consume(),this.gullet.pushToken(new We("}")),this.gullet.pushTokens(e3);let r3=this.parseExpression(!1);return this.expect("}"),this.nextToken=t3,r3}parseExpression(e3,t3,r3){let n3=[];for(this.prevAtomType="";;){this.mode==="math"&&this.consumeSpaces();let o2=this.fetch();if(un.endOfExpression.indexOf(o2.text)!==-1||t3&&o2.text===t3||r3&&o2.text==="\\middle"||e3&&Wr[o2.text]&&Wr[o2.text].infix)break;let i2=this.parseAtom(t3);if(!i2)break;i2.type!=="internal"&&(n3.push(i2),this.prevAtomType=i2.type==="atom"?i2.family:i2.type)}return this.mode==="text"&&this.formLigatures(n3),this.handleInfixNodes(n3)}handleInfixNodes(e3){let r3,n3=-1;for(let o2=0;o2<e3.length;o2++)if(e3[o2].type==="infix"){if(n3!==-1)throw new t2("only one infix operator per group",e3[o2].token);n3=o2,r3=e3[o2].replaceWith}if(n3!==-1&&r3){let t3,o2,i2=e3.slice(0,n3),a2=e3.slice(n3+1),s2;return t3=i2.length===1&&i2[0].type==="ordgroup"?i2[0]:{type:"ordgroup",mode:this.mode,body:i2},o2=a2.length===1&&a2[0].type==="ordgroup"?a2[0]:{type:"ordgroup",mode:this.mode,body:a2},s2=r3==="\\\\abovefrac"?this.callFunction(r3,[t3,e3[n3],o2],[]):this.callFunction(r3,[t3,o2],[]),[s2]}return e3}handleSupSubscript(e3){let r3=this.fetch(),n3=r3.text,o2;this.consume(),this.consumeSpaces();do o2=this.parseGroup(e3);while(o2.type&&o2.type==="internal");if(!o2)throw new t2("Expected group after '"+n3+"'",r3);return o2}formatUnsupportedCmd(e3){let t3=[];for(let r4=0;r4<e3.length;r4++)t3.push({type:"textord",mode:"text",text:e3[r4]});let r3={type:"text",mode:this.mode,body:t3};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r3]}}parseAtom(e3){let r3=this.parseGroup("atom",e3);if(r3&&r3.type==="internal"||this.mode==="text")return r3;let n3,o2;for(;;){this.consumeSpaces();let e4=this.fetch();if(e4.text==="\\limits"||e4.text==="\\nolimits"){if(r3&&r3.type==="op"){let t3=e4.text==="\\limits";r3.limits=t3,r3.alwaysHandleSupSub=!0}else{if(!r3||r3.type!=="operatorname")throw new t2("Limit controls must follow a math operator",e4);r3.alwaysHandleSupSub&&(r3.limits=e4.text==="\\limits")}this.consume()}else if(e4.text==="^"){if(n3)throw new t2("Double superscript",e4);n3=this.handleSupSubscript("superscript")}else if(e4.text==="_"){if(o2)throw new t2("Double subscript",e4);o2=this.handleSupSubscript("subscript")}else if(e4.text==="'"){if(n3)throw new t2("Double superscript",e4);let r4={type:"textord",mode:this.mode,text:"\\prime"},o3=[r4];for(this.consume();this.fetch().text==="'";)o3.push(r4),this.consume();this.fetch().text==="^"&&o3.push(this.handleSupSubscript("superscript")),n3={type:"ordgroup",mode:this.mode,body:o3}}else{if(!rn[e4.text])break;{let t3=tn.test(e4.text),r4=[];for(r4.push(new We(rn[e4.text])),this.consume();;){let e5=this.fetch().text;if(!rn[e5]||tn.test(e5)!==t3)break;r4.unshift(new We(rn[e5])),this.consume()}let i2=this.subparse(r4);t3?o2={type:"ordgroup",mode:"math",body:i2}:n3={type:"ordgroup",mode:"math",body:i2}}}}if(n3||o2){if(r3&&r3.type==="multiscript"&&!r3.postscripts)return r3.postscripts={sup:n3,sub:o2},r3;{let e4=!r3||r3.type!=="op"&&r3.type!=="operatorname"?void 0:Ft(this.nextToken.text);return{type:"supsub",mode:this.mode,base:r3,sup:n3,sub:o2,isFollowedByDelimiter:e4}}}return r3}parseFunction(e3,r3){let n3=this.fetch(),o2=n3.text,i2=Wr[o2];if(!i2)return null;if(this.consume(),r3&&r3!=="atom"&&!i2.allowedInArgument)throw new t2("Got function '"+o2+"' with no arguments"+(r3?" as "+r3:""),n3);if(this.mode==="text"&&!i2.allowedInText)throw new t2("Can't use function '"+o2+"' in text mode",n3);if(this.mode==="math"&&i2.allowedInMath===!1)throw new t2("Can't use function '"+o2+"' in math mode",n3);let a2=this.prevAtomType,{args:s2,optArgs:l2}=this.parseArguments(o2,i2);return this.prevAtomType=a2,this.callFunction(o2,s2,l2,n3,e3)}callFunction(e3,r3,n3,o2,i2){let a2={funcName:e3,parser:this,token:o2,breakOnTokenText:i2},s2=Wr[e3];if(s2&&s2.handler)return s2.handler(a2,r3,n3);throw new t2(`No function handler for ${e3}`)}parseArguments(e3,r3){let n3=r3.numArgs+r3.numOptionalArgs;if(n3===0)return{args:[],optArgs:[]};let o2=[],i2=[];for(let a2=0;a2<n3;a2++){let n4=r3.argTypes&&r3.argTypes[a2],s2=a2<r3.numOptionalArgs;(r3.primitive&&n4==null||r3.type==="sqrt"&&a2===1&&i2[0]==null)&&(n4="primitive");let l2=this.parseGroupOfType(`argument to '${e3}'`,n4,s2);if(s2)i2.push(l2);else{if(l2==null)throw new t2("Null argument, please report this as a bug");o2.push(l2)}}return{args:o2,optArgs:i2}}parseGroupOfType(e3,r3,n3){switch(r3){case"size":return this.parseSizeGroup(n3);case"url":return this.parseUrlGroup(n3);case"math":case"text":return this.parseArgumentGroup(n3,r3);case"hbox":{let e4=this.parseArgumentGroup(n3,"text");return e4!=null?{type:"styling",mode:e4.mode,body:[e4],scriptLevel:"text"}:null}case"raw":{let e4=this.parseStringGroup("raw",n3);return e4!=null?{type:"raw",mode:"text",string:e4.text}:null}case"primitive":{if(n3)throw new t2("A primitive argument cannot be optional");let r4=this.parseGroup(e3);if(r4==null)throw new t2("Expected group as "+e3,this.fetch());return r4}case"original":case null:case void 0:return this.parseArgumentGroup(n3);default:throw new t2("Unknown group type as "+e3,this.fetch())}}consumeSpaces(){for(;;){let e3=this.fetch().text;if(e3!==" "&&e3!=="\xA0"&&e3!=="\uFE0E")break;this.consume()}}parseStringGroup(e3,t3){let r3=this.gullet.scanArgument(t3);if(r3==null)return null;let n3,o2="";for(;(n3=this.fetch()).text!=="EOF";)o2+=n3.text,this.consume();return this.consume(),r3.text=o2,r3}parseRegexGroup(e3,r3){let n3=this.fetch(),o2,i2=n3,a2="";for(;(o2=this.fetch()).text!=="EOF"&&e3.test(a2+o2.text);)i2=o2,a2+=i2.text,this.consume();if(a2==="")throw new t2("Invalid "+r3+": '"+n3.text+"'",n3);return n3.range(i2,a2)}parseSizeGroup(e3){let r3,n3=!1;if(this.gullet.consumeSpaces(),r3=e3||this.gullet.future().text==="{"?this.parseStringGroup("size",e3):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"),!r3)return null;e3||r3.text.length!==0||(r3.text="0pt",n3=!0);let o2=ln.exec(r3.text);if(!o2)throw new t2("Invalid size: '"+r3.text+"'",r3);let i2={number:+(o2[1]+o2[2]),unit:o2[3]};if(!_e(i2))throw new t2("Invalid unit: '"+i2.unit+"'",r3);return{type:"size",mode:this.mode,value:i2,isBlank:n3}}parseUrlGroup(e3){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);let t3=this.parseStringGroup("url",e3);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),t3==null)return null;let r3=t3.text.replace(/\\([#$%&~_^{}])/g,"$1");return r3=t3.text.replace(/{\u2044}/g,"/"),{type:"url",mode:this.mode,url:r3}}parseArgumentGroup(e3,t3){let r3=this.gullet.scanArgument(e3);if(r3==null)return null;let n3=this.mode;t3&&this.switchMode(t3),this.gullet.beginGroup();let o2=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();let i2={type:"ordgroup",mode:this.mode,loc:r3.loc,body:o2};return t3&&this.switchMode(n3),i2}parseGroup(e3,r3){let n3=this.fetch(),o2=n3.text,i2;if(o2==="{"||o2==="\\begingroup"||o2==="\\toggle"){this.consume();let e4=o2==="{"?"}":o2==="\\begingroup"?"\\endgroup":"\\endtoggle";this.gullet.beginGroup();let t3=this.parseExpression(!1,e4),r4=this.fetch();this.expect(e4),this.gullet.endGroup(),i2={type:r4.text==="\\endtoggle"?"toggle":"ordgroup",mode:this.mode,loc:Ue.range(n3,r4),body:t3,semisimple:o2==="\\begingroup"||void 0}}else if(i2=this.parseFunction(r3,e3)||this.parseSymbol(),i2==null&&o2[0]==="\\"&&!Object.prototype.hasOwnProperty.call(Qr,o2)){if(this.settings.throwOnError)throw new t2("Unsupported function name: "+o2,n3);i2=this.formatUnsupportedCmd(o2),this.consume()}return i2}formLigatures(e3){let t3=e3.length-1;for(let r3=0;r3<t3;++r3){let n3=e3[r3],o2=n3.text;o2==="-"&&e3[r3+1].text==="-"&&(r3+1<t3&&e3[r3+2].text==="-"?(e3.splice(r3,3,{type:"textord",mode:"text",loc:Ue.range(n3,e3[r3+2]),text:"---"}),t3-=2):(e3.splice(r3,2,{type:"textord",mode:"text",loc:Ue.range(n3,e3[r3+1]),text:"--"}),t3-=1)),o2!=="'"&&o2!=="`"||e3[r3+1].text!==o2||(e3.splice(r3,2,{type:"textord",mode:"text",loc:Ue.range(n3,e3[r3+1]),text:o2+o2}),t3-=1)}}parseSymbol(){let e3=this.fetch(),r3=e3.text;if(/^\\verb[^a-zA-Z]/.test(r3)){this.consume();let e4=r3.slice(5),n4=e4.charAt(0)==="*";if(n4&&(e4=e4.slice(1)),e4.length<2||e4.charAt(0)!==e4.slice(-1))throw new t2(`\\verb assertion failed --
please report what input caused this bug`);return e4=e4.slice(1,-1),{type:"verb",mode:"text",body:e4,star:n4}}if(Object.prototype.hasOwnProperty.call(an,r3[0])&&this.mode==="math"&&!R[this.mode][r3[0]]){if(this.settings.strict&&this.mode==="math")throw new t2(`Accented Unicode text character "${r3[0]}" used in math mode`,e3);r3=an[r3[0]]+r3.slice(1)}let n3=this.mode==="math"?Jr.exec(r3):null,o2;if(n3&&(r3=r3.substring(0,n3.index),r3==="i"?r3="\u0131":r3==="j"&&(r3="\u0237")),R[this.mode][r3]){let t3=R[this.mode][r3].group;t3==="bin"&&sn.includes(this.prevAtomType)&&(t3="open");let n4=Ue.range(e3),i2;if(Object.prototype.hasOwnProperty.call(P,t3)){let e4=t3;i2={type:"atom",mode:this.mode,family:e4,loc:n4,text:r3},e4!=="rel"&&e4!=="bin"||this.prevAtomType!=="text"||cn.test(n4.lexer.input.slice(n4.end))&&(i2.needsSpacing=!0)}else{if(nn[r3]){this.consume();let e4=this.fetch().text.charCodeAt(0),t4=e4===65025?"mathscr":"mathcal";return e4!==65024&&e4!==65025||this.consume(),{type:"font",mode:"math",font:t4,body:{type:"mathord",mode:"math",loc:n4,text:nn[r3]}}}i2={type:t3,mode:this.mode,loc:n4,text:r3}}o2=i2}else{if(!(r3.charCodeAt(0)>=128||Jr.exec(r3)))return null;if(this.settings.strict&&this.mode==="math")throw new t2(`Unicode text character "${r3[0]}" used in math mode`,e3);o2={type:"textord",mode:"text",loc:Ue.range(e3),text:r3}}if(this.consume(),n3)for(let r4=0;r4<n3[0].length;r4++){let i2=n3[0][r4];if(!on2[i2])throw new t2(`Unknown accent ' ${i2}'`,e3);let a2=on2[i2][this.mode]||on2[i2].text;if(!a2)throw new t2(`Accent ${i2} unsupported in ${this.mode} mode`,e3);o2={type:"accent",mode:this.mode,loc:Ue.range(e3),label:a2,isStretchy:!1,base:o2}}return o2}}let dn=function(e3,r3){if(!(typeof e3=="string"||e3 instanceof String))throw new TypeError("Temml can only parse string typed expression");let n3=new un(e3,r3);delete n3.gullet.macros.current["\\df@tag"];let o2=n3.parse();if(!(o2.length>0&&o2[0].type&&o2[0].type==="array"&&o2[0].addEqnNum)&&n3.gullet.macros.get("\\df@tag")){if(!r3.displayMode)throw new t2("\\tag works only in display mode");n3.gullet.feed("\\df@tag"),o2=[{type:"tag",mode:"text",body:o2,tag:n3.parse()}]}return o2},hn=[2,2,3,3];class mn{constructor(e3){this.level=e3.level,this.color=e3.color,this.font=e3.font||"",this.fontFamily=e3.fontFamily||"",this.fontSize=e3.fontSize||1,this.fontWeight=e3.fontWeight||"",this.fontShape=e3.fontShape||"",this.maxSize=e3.maxSize}extend(e3){let t3={level:this.level,color:this.color,font:this.font,fontFamily:this.fontFamily,fontSize:this.fontSize,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize};for(let r3 in e3)Object.prototype.hasOwnProperty.call(e3,r3)&&(t3[r3]=e3[r3]);return new mn(t3)}withLevel(e3){return this.extend({level:e3})}incrementLevel(){return this.extend({level:Math.min(this.level+1,3)})}inSubOrSup(){return this.extend({level:hn[this.level]})}withColor(e3){return this.extend({color:e3})}withFont(e3){return this.extend({font:e3})}withTextFontFamily(e3){return this.extend({fontFamily:e3,font:""})}withFontSize(e3){return this.extend({fontSize:e3})}withTextFontWeight(e3){return this.extend({fontWeight:e3,font:""})}withTextFontShape(e3){return this.extend({fontShape:e3,font:""})}getColor(){return this.color}}function pn(e3){let t3={},r3=0,n3=document.getElementsByClassName("tml-eqn");for(let e4 of n3)for(r3+=1,e4.setAttribute("id","tml-eqn-"+String(r3));e4.tagName!=="mtable";){if(e4.getElementsByClassName("tml-label").length>0){let n4=e4.attributes.id.value;t3[n4]=String(r3);break}e4=e4.parentElement}let o2=document.getElementsByClassName("tml-tageqn");for(let e4 of o2)if(e4.getElementsByClassName("tml-label").length>0){let r4=e4.getElementsByClassName("tml-tag");if(r4.length>0){let n4=e4.attributes.id.value;t3[n4]=r4[0].textContent}}[...e3.getElementsByClassName("tml-ref")].forEach((e4=>{let r4=e4.getAttribute("href"),n4=t3[r4.slice(1)];e4.className.indexOf("tml-eqref")===-1?(n4=n4.replace(/^\(/,""),n4=n4.replace(/\)$/,"")):(n4.charAt(0)!=="("&&(n4="("+n4),n4.slice(-1)!==")"&&(n4+=")"));let o3=document.createElementNS("http://www.w3.org/1998/Math/MathML","mtext");o3.appendChild(document.createTextNode(n4));let i2=document.createElementNS("http://www.w3.org/1998/Math/MathML","math");i2.appendChild(o3),e4.textContent="",e4.appendChild(i2)}))}let fn=function(e3,t3,r3){let n3=r3,o2=0,i2=e3.length;for(;n3<t3.length;){let r4=t3[n3];if(o2<=0&&t3.slice(n3,n3+i2)===e3)return n3;r4==="\\"?n3++:r4==="{"?o2++:r4==="}"&&o2--,n3++}return-1},gn=/^\\(?:begin|(?:eq)?ref){/,bn=[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{equation*}",right:"\\end{equation*}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{align*}",right:"\\end{align*}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{alignat*}",right:"\\end{alignat*}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{gather*}",right:"\\end{gather*}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\ref{",right:"}",display:!1},{left:"\\eqref{",right:"}",display:!1},{left:"\\[",right:"\\]",display:!0}],xn={$:[{left:"$$",right:"$$",display:!0},{left:"$`",right:"`$",display:!1},{left:"$",right:"$",display:!1}],"(":[{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!1}]},vn=[{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{equation*}",right:"\\end{equation*}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{align*}",right:"\\end{align*}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{alignat*}",right:"\\end{alignat*}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{gather*}",right:"\\end{gather*}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\ref{",right:"}",display:!1},{left:"\\eqref{",right:"}",display:!1}],yn=function(e3,r3){let n3=(function(e4,t3){let r4,n4=[],o3=new RegExp("("+t3.map((e5=>e5.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"))).join("|")+")");for(;r4=e4.search(o3),r4!==-1;){r4>0&&(n4.push({type:"text",data:e4.slice(0,r4)}),e4=e4.slice(r4));let o4=t3.findIndex((t4=>e4.startsWith(t4.left)));if(r4=fn(t3[o4].right,e4,t3[o4].left.length),r4===-1)break;let i2=e4.slice(0,r4+t3[o4].right.length),a2=gn.test(i2)?i2:e4.slice(t3[o4].left.length,r4);n4.push({type:"math",data:a2,rawData:i2,display:t3[o4].display}),e4=e4.slice(r4+t3[o4].right.length)}return e4!==""&&n4.push({type:"text",data:e4}),n4})(e3,r3.delimiters);if(n3.length===1&&n3[0].type==="text")return null;let o2=document.createDocumentFragment();for(let e4=0;e4<n3.length;e4++)if(n3[e4].type==="text")o2.appendChild(document.createTextNode(n3[e4].data));else{let i2=document.createElement("span"),a2=n3[e4].data;r3.displayMode=n3[e4].display;try{r3.preProcess&&(a2=r3.preProcess(a2)),temml.render(a2,i2,r3)}catch(i3){if(!(i3 instanceof t2))throw i3;r3.errorCallback("Temml auto-render: Failed to parse `"+n3[e4].data+"` with ",i3),o2.appendChild(document.createTextNode(n3[e4].rawData));continue}o2.appendChild(i2)}return o2},wn=function(e3,t3){for(let r3=0;r3<e3.childNodes.length;r3++){let n3=e3.childNodes[r3];if(n3.nodeType===3){let o2=yn(n3.textContent,t3);o2&&(r3+=o2.childNodes.length-1,e3.replaceChild(o2,n3))}else if(n3.nodeType===1){let e4=" "+n3.className+" ";t3.ignoredTags.indexOf(n3.nodeName.toLowerCase())===-1&&t3.ignoredClasses.every((t4=>e4.indexOf(" "+t4+" ")===-1))&&wn(n3,t3)}}},An=function(e3,t3,r3={}){t3.textContent="";let n3=t3.tagName.toLowerCase()==="math";n3&&(r3.wrap="none");let o2=Cn(e3,r3);n3||o2.children.length>1?(t3.textContent="",o2.children.forEach((e4=>{t3.appendChild(e4.toNode())}))):t3.appendChild(o2.toNode())};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: Temml doesn't work in quirks mode. Make sure your website has a suitable doctype."),An=function(){throw new t2("Temml doesn't work in quirks mode.")});let Cn=function(e3,r3){let n3=new h2(r3);try{let t3=dn(e3,n3);return ve(t3,e3,new mn({level:n3.displayMode?Ge:Ve,maxSize:n3.maxSize}),n3)}catch(r4){return(function(e4,r5,n4){if(n4.throwOnError||!(e4 instanceof t2))throw e4;let o2=new E(["temml-error"],[new S(r5+`
`+e4.toString())]);return o2.style.color=n4.errorColor,o2.style.whiteSpace="pre-line",o2})(r4,e3,n3)}};var En={version:"0.13.01",render:An,renderToString:function(e3,t3){return Cn(e3,t3).toMarkup()},renderMathInElement:function(e3,t3){if(!e3)throw new Error("No element provided to render");let r3={};for(let e4 in t3)Object.prototype.hasOwnProperty.call(t3,e4)&&(r3[e4]=t3[e4]);r3.fences?r3.delimiters=(e4=>e4==="$"||e4==="("?xn[e4]:e4==="$+"||e4==="(+"?xn[e4.slice(0,1)].concat(vn):e4==="ams"?vn:e4==="all"?xn["("].concat(xn.$).concat(vn):bn)(r3.fences):r3.delimiters=r3.delimiters||bn,r3.ignoredTags=r3.ignoredTags||["script","noscript","style","textarea","pre","code","option"],r3.ignoredClasses=r3.ignoredClasses||[],r3.errorCallback=r3.errorCallback||console.error,r3.macros=r3.macros||{},wn(e3,r3),pn(e3)},postProcess:pn,ParseError:t2,definePreamble:function(e3,t3){let r3=new h2(t3);if(r3.macros={},!(typeof e3=="string"||e3 instanceof String))throw new TypeError("Temml can only parse string typed expression");let n3=new un(e3,r3,!0);return delete n3.gullet.macros.current["\\df@tag"],n3.parse()},__parse:function(e3,t3){let r3=new h2(t3);return dn(e3,r3)},__renderToMathMLTree:Cn,__defineSymbol:F,__defineMacro:Ke};e2.exports=En}},t={};function r(n2){var o=t[n2];if(o!==void 0)return o.exports;var i=t[n2]={exports:{}};return e[n2].call(i.exports,i,i.exports,r),i.exports}r.d=(e2,t2)=>{for(var n2 in t2)r.o(t2,n2)&&!r.o(e2,n2)&&Object.defineProperty(e2,n2,{enumerable:!0,get:t2[n2]})},r.o=(e2,t2)=>Object.prototype.hasOwnProperty.call(e2,t2),r.r=e2=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(e2,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e2,"__esModule",{value:!0})};var n=r(9098);return n=n.default})()))}});var require_is_retry_allowed=__commonJS({"node_modules/.pnpm/is-retry-allowed@2.2.0/node_modules/is-retry-allowed/index.js"(exports,module2){"use strict";var denyList=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);module2.exports=error51=>!denyList.has(error51&&error51.code)}});var require_constants=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/constants.js"(exports,module2){"use strict";var SEMVER_SPEC_VERSION="2.0.0",MAX_SAFE_INTEGER=Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH=16,MAX_SAFE_BUILD_LENGTH=250,RELEASE_TYPES=["major","premajor","minor","preminor","patch","prepatch","prerelease"];module2.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_SAFE_INTEGER,RELEASE_TYPES,SEMVER_SPEC_VERSION,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}});var require_debug=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/debug.js"(exports,module2){"use strict";var debug=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...args)=>console.error("SEMVER",...args):()=>{};module2.exports=debug}});var require_re=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/re.js"(exports,module2){"use strict";var{MAX_SAFE_COMPONENT_LENGTH,MAX_SAFE_BUILD_LENGTH,MAX_LENGTH}=require_constants(),debug=require_debug();exports=module2.exports={};var re=exports.re=[],safeRe=exports.safeRe=[],src=exports.src=[],safeSrc=exports.safeSrc=[],t=exports.t={},R=0,LETTERDASHNUMBER="[a-zA-Z0-9-]",safeRegexReplacements=[["\\s",1],["\\d",MAX_LENGTH],[LETTERDASHNUMBER,MAX_SAFE_BUILD_LENGTH]],makeSafeRegex=value=>{for(let[token,max]of safeRegexReplacements)value=value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);return value},createToken=(name,value,isGlobal)=>{let safe=makeSafeRegex(value),index2=R++;debug(name,index2,value),t[name]=index2,src[index2]=value,safeSrc[index2]=safe,re[index2]=new RegExp(value,isGlobal?"g":void 0),safeRe[index2]=new RegExp(safe,isGlobal?"g":void 0)};createToken("NUMERICIDENTIFIER","0|[1-9]\\d*");createToken("NUMERICIDENTIFIERLOOSE","\\d+");createToken("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);createToken("MAINVERSION",`(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);createToken("MAINVERSIONLOOSE",`(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASEIDENTIFIER",`(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);createToken("PRERELEASEIDENTIFIERLOOSE",`(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);createToken("PRERELEASE",`(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);createToken("PRERELEASELOOSE",`(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);createToken("BUILDIDENTIFIER",`${LETTERDASHNUMBER}+`);createToken("BUILD",`(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);createToken("FULLPLAIN",`v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);createToken("FULL",`^${src[t.FULLPLAIN]}$`);createToken("LOOSEPLAIN",`[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);createToken("LOOSE",`^${src[t.LOOSEPLAIN]}$`);createToken("GTLT","((?:<|>)?=?)");createToken("XRANGEIDENTIFIERLOOSE",`${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);createToken("XRANGEIDENTIFIER",`${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);createToken("XRANGEPLAIN",`[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);createToken("XRANGEPLAINLOOSE",`[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);createToken("XRANGE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);createToken("XRANGELOOSE",`^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);createToken("COERCEPLAIN",`(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);createToken("COERCE",`${src[t.COERCEPLAIN]}(?:$|[^\\d])`);createToken("COERCEFULL",src[t.COERCEPLAIN]+`(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);createToken("COERCERTL",src[t.COERCE],!0);createToken("COERCERTLFULL",src[t.COERCEFULL],!0);createToken("LONETILDE","(?:~>?)");createToken("TILDETRIM",`(\\s*)${src[t.LONETILDE]}\\s+`,!0);exports.tildeTrimReplace="$1~";createToken("TILDE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);createToken("TILDELOOSE",`^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);createToken("LONECARET","(?:\\^)");createToken("CARETTRIM",`(\\s*)${src[t.LONECARET]}\\s+`,!0);exports.caretTrimReplace="$1^";createToken("CARET",`^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);createToken("CARETLOOSE",`^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);createToken("COMPARATORLOOSE",`^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);createToken("COMPARATOR",`^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);createToken("COMPARATORTRIM",`(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`,!0);exports.comparatorTrimReplace="$1$2$3";createToken("HYPHENRANGE",`^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);createToken("HYPHENRANGELOOSE",`^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);createToken("STAR","(<|>)?=?\\s*\\*");createToken("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");createToken("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}});var require_parse_options=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/parse-options.js"(exports,module2){"use strict";var looseOption=Object.freeze({loose:!0}),emptyOpts=Object.freeze({}),parseOptions=options=>options?typeof options!="object"?looseOption:options:emptyOpts;module2.exports=parseOptions}});var require_identifiers=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/identifiers.js"(exports,module2){"use strict";var numeric=/^[0-9]+$/,compareIdentifiers=(a,b)=>{if(typeof a=="number"&&typeof b=="number")return a===b?0:a<b?-1:1;let anum=numeric.test(a),bnum=numeric.test(b);return anum&&bnum&&(a=+a,b=+b),a===b?0:anum&&!bnum?-1:bnum&&!anum?1:a<b?-1:1},rcompareIdentifiers=(a,b)=>compareIdentifiers(b,a);module2.exports={compareIdentifiers,rcompareIdentifiers}}});var require_semver=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/classes/semver.js"(exports,module2){"use strict";var debug=require_debug(),{MAX_LENGTH,MAX_SAFE_INTEGER}=require_constants(),{safeRe:re,t}=require_re(),parseOptions=require_parse_options(),{compareIdentifiers}=require_identifiers(),SemVer=class _SemVer{constructor(version2,options){if(options=parseOptions(options),version2 instanceof _SemVer){if(version2.loose===!!options.loose&&version2.includePrerelease===!!options.includePrerelease)return version2;version2=version2.version}else if(typeof version2!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);if(version2.length>MAX_LENGTH)throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);debug("SemVer",version2,options),this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease;let m=version2.trim().match(options.loose?re[t.LOOSE]:re[t.FULL]);if(!m)throw new TypeError(`Invalid Version: ${version2}`);if(this.raw=version2,this.major=+m[1],this.minor=+m[2],this.patch=+m[3],this.major>MAX_SAFE_INTEGER||this.major<0)throw new TypeError("Invalid major version");if(this.minor>MAX_SAFE_INTEGER||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>MAX_SAFE_INTEGER||this.patch<0)throw new TypeError("Invalid patch version");m[4]?this.prerelease=m[4].split(".").map(id=>{if(/^[0-9]+$/.test(id)){let num=+id;if(num>=0&&num<MAX_SAFE_INTEGER)return num}return id}):this.prerelease=[],this.build=m[5]?m[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(other){if(debug("SemVer.compare",this.version,this.options,other),!(other instanceof _SemVer)){if(typeof other=="string"&&other===this.version)return 0;other=new _SemVer(other,this.options)}return other.version===this.version?0:this.compareMain(other)||this.comparePre(other)}compareMain(other){return other instanceof _SemVer||(other=new _SemVer(other,this.options)),this.major<other.major?-1:this.major>other.major?1:this.minor<other.minor?-1:this.minor>other.minor?1:this.patch<other.patch?-1:this.patch>other.patch?1:0}comparePre(other){if(other instanceof _SemVer||(other=new _SemVer(other,this.options)),this.prerelease.length&&!other.prerelease.length)return-1;if(!this.prerelease.length&&other.prerelease.length)return 1;if(!this.prerelease.length&&!other.prerelease.length)return 0;let i=0;do{let a=this.prerelease[i],b=other.prerelease[i];if(debug("prerelease compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}compareBuild(other){other instanceof _SemVer||(other=new _SemVer(other,this.options));let i=0;do{let a=this.build[i],b=other.build[i];if(debug("build compare",i,a,b),a===void 0&&b===void 0)return 0;if(b===void 0)return 1;if(a===void 0)return-1;if(a===b)continue;return compareIdentifiers(a,b)}while(++i)}inc(release,identifier,identifierBase){if(release.startsWith("pre")){if(!identifier&&identifierBase===!1)throw new Error("invalid increment argument: identifier is empty");if(identifier){let match=`-${identifier}`.match(this.options.loose?re[t.PRERELEASELOOSE]:re[t.PRERELEASE]);if(!match||match[1]!==identifier)throw new Error(`invalid identifier: ${identifier}`)}}switch(release){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",identifier,identifierBase);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",identifier,identifierBase);break;case"prepatch":this.prerelease.length=0,this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",identifier,identifierBase),this.inc("pre",identifier,identifierBase);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let base=Number(identifierBase)?1:0;if(this.prerelease.length===0)this.prerelease=[base];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(identifier===this.prerelease.join(".")&&identifierBase===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(base)}}if(identifier){let prerelease=[identifier,base];identifierBase===!1&&(prerelease=[identifier]),compareIdentifiers(this.prerelease[0],identifier)===0?isNaN(this.prerelease[1])&&(this.prerelease=prerelease):this.prerelease=prerelease}break}default:throw new Error(`invalid increment argument: ${release}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};module2.exports=SemVer}});var require_parse=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/parse.js"(exports,module2){"use strict";var SemVer=require_semver(),parse3=(version2,options,throwErrors=!1)=>{if(version2 instanceof SemVer)return version2;try{return new SemVer(version2,options)}catch(er){if(!throwErrors)return null;throw er}};module2.exports=parse3}});var require_valid=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/valid.js"(exports,module2){"use strict";var parse3=require_parse(),valid=(version2,options)=>{let v=parse3(version2,options);return v?v.version:null};module2.exports=valid}});var require_clean=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/clean.js"(exports,module2){"use strict";var parse3=require_parse(),clean=(version2,options)=>{let s=parse3(version2.trim().replace(/^[=v]+/,""),options);return s?s.version:null};module2.exports=clean}});var require_inc=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/inc.js"(exports,module2){"use strict";var SemVer=require_semver(),inc=(version2,release,options,identifier,identifierBase)=>{typeof options=="string"&&(identifierBase=identifier,identifier=options,options=void 0);try{return new SemVer(version2 instanceof SemVer?version2.version:version2,options).inc(release,identifier,identifierBase).version}catch(er){return null}};module2.exports=inc}});var require_diff=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/diff.js"(exports,module2){"use strict";var parse3=require_parse(),diff=(version1,version2)=>{let v1=parse3(version1,null,!0),v2=parse3(version2,null,!0),comparison=v1.compare(v2);if(comparison===0)return null;let v1Higher=comparison>0,highVersion=v1Higher?v1:v2,lowVersion=v1Higher?v2:v1,highHasPre=!!highVersion.prerelease.length;if(!!lowVersion.prerelease.length&&!highHasPre){if(!lowVersion.patch&&!lowVersion.minor)return"major";if(lowVersion.compareMain(highVersion)===0)return lowVersion.minor&&!lowVersion.patch?"minor":"patch"}let prefix=highHasPre?"pre":"";return v1.major!==v2.major?prefix+"major":v1.minor!==v2.minor?prefix+"minor":v1.patch!==v2.patch?prefix+"patch":"prerelease"};module2.exports=diff}});var require_major=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/major.js"(exports,module2){"use strict";var SemVer=require_semver(),major=(a,loose)=>new SemVer(a,loose).major;module2.exports=major}});var require_minor=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/minor.js"(exports,module2){"use strict";var SemVer=require_semver(),minor=(a,loose)=>new SemVer(a,loose).minor;module2.exports=minor}});var require_patch=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/patch.js"(exports,module2){"use strict";var SemVer=require_semver(),patch=(a,loose)=>new SemVer(a,loose).patch;module2.exports=patch}});var require_prerelease=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/prerelease.js"(exports,module2){"use strict";var parse3=require_parse(),prerelease=(version2,options)=>{let parsed=parse3(version2,options);return parsed&&parsed.prerelease.length?parsed.prerelease:null};module2.exports=prerelease}});var require_compare=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/compare.js"(exports,module2){"use strict";var SemVer=require_semver(),compare=(a,b,loose)=>new SemVer(a,loose).compare(new SemVer(b,loose));module2.exports=compare}});var require_rcompare=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/rcompare.js"(exports,module2){"use strict";var compare=require_compare(),rcompare=(a,b,loose)=>compare(b,a,loose);module2.exports=rcompare}});var require_compare_loose=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/compare-loose.js"(exports,module2){"use strict";var compare=require_compare(),compareLoose=(a,b)=>compare(a,b,!0);module2.exports=compareLoose}});var require_compare_build=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/compare-build.js"(exports,module2){"use strict";var SemVer=require_semver(),compareBuild=(a,b,loose)=>{let versionA=new SemVer(a,loose),versionB=new SemVer(b,loose);return versionA.compare(versionB)||versionA.compareBuild(versionB)};module2.exports=compareBuild}});var require_sort=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/sort.js"(exports,module2){"use strict";var compareBuild=require_compare_build(),sort=(list,loose)=>list.sort((a,b)=>compareBuild(a,b,loose));module2.exports=sort}});var require_rsort=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/rsort.js"(exports,module2){"use strict";var compareBuild=require_compare_build(),rsort=(list,loose)=>list.sort((a,b)=>compareBuild(b,a,loose));module2.exports=rsort}});var require_gt=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/gt.js"(exports,module2){"use strict";var compare=require_compare(),gt=(a,b,loose)=>compare(a,b,loose)>0;module2.exports=gt}});var require_lt=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/lt.js"(exports,module2){"use strict";var compare=require_compare(),lt=(a,b,loose)=>compare(a,b,loose)<0;module2.exports=lt}});var require_eq=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/eq.js"(exports,module2){"use strict";var compare=require_compare(),eq=(a,b,loose)=>compare(a,b,loose)===0;module2.exports=eq}});var require_neq=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/neq.js"(exports,module2){"use strict";var compare=require_compare(),neq=(a,b,loose)=>compare(a,b,loose)!==0;module2.exports=neq}});var require_gte=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/gte.js"(exports,module2){"use strict";var compare=require_compare(),gte=(a,b,loose)=>compare(a,b,loose)>=0;module2.exports=gte}});var require_lte=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/lte.js"(exports,module2){"use strict";var compare=require_compare(),lte=(a,b,loose)=>compare(a,b,loose)<=0;module2.exports=lte}});var require_cmp=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/cmp.js"(exports,module2){"use strict";var eq=require_eq(),neq=require_neq(),gt=require_gt(),gte=require_gte(),lt=require_lt(),lte=require_lte(),cmp=(a,op,b,loose)=>{switch(op){case"===":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a===b;case"!==":return typeof a=="object"&&(a=a.version),typeof b=="object"&&(b=b.version),a!==b;case"":case"=":case"==":return eq(a,b,loose);case"!=":return neq(a,b,loose);case">":return gt(a,b,loose);case">=":return gte(a,b,loose);case"<":return lt(a,b,loose);case"<=":return lte(a,b,loose);default:throw new TypeError(`Invalid operator: ${op}`)}};module2.exports=cmp}});var require_coerce=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/coerce.js"(exports,module2){"use strict";var SemVer=require_semver(),parse3=require_parse(),{safeRe:re,t}=require_re(),coerce=(version2,options)=>{if(version2 instanceof SemVer)return version2;if(typeof version2=="number"&&(version2=String(version2)),typeof version2!="string")return null;options=options||{};let match=null;if(!options.rtl)match=version2.match(options.includePrerelease?re[t.COERCEFULL]:re[t.COERCE]);else{let coerceRtlRegex=options.includePrerelease?re[t.COERCERTLFULL]:re[t.COERCERTL],next2;for(;(next2=coerceRtlRegex.exec(version2))&&(!match||match.index+match[0].length!==version2.length);)(!match||next2.index+next2[0].length!==match.index+match[0].length)&&(match=next2),coerceRtlRegex.lastIndex=next2.index+next2[1].length+next2[2].length;coerceRtlRegex.lastIndex=-1}if(match===null)return null;let major=match[2],minor=match[3]||"0",patch=match[4]||"0",prerelease=options.includePrerelease&&match[5]?`-${match[5]}`:"",build=options.includePrerelease&&match[6]?`+${match[6]}`:"";return parse3(`${major}.${minor}.${patch}${prerelease}${build}`,options)};module2.exports=coerce}});var require_truncate2=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/truncate.js"(exports,module2){"use strict";var parse3=require_parse(),constants=require_constants(),SemVer=require_semver(),truncate2=(version2,truncation,options)=>{if(!constants.RELEASE_TYPES.includes(truncation))return null;let clonedVersion=cloneInputVersion(version2,options);return clonedVersion&&doTruncation(clonedVersion,truncation)},cloneInputVersion=(version2,options)=>{let versionStringToParse=version2 instanceof SemVer?version2.version:version2;return parse3(versionStringToParse,options)},doTruncation=(version2,truncation)=>{if(isPrerelease(truncation))return version2.version;switch(version2.prerelease=[],truncation){case"major":version2.minor=0,version2.patch=0;break;case"minor":version2.patch=0;break}return version2.format()},isPrerelease=type=>type.startsWith("pre");module2.exports=truncate2}});var require_lrucache=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/internal/lrucache.js"(exports,module2){"use strict";var LRUCache=class{constructor(){this.max=1e3,this.map=new Map}get(key2){let value=this.map.get(key2);if(value!==void 0)return this.map.delete(key2),this.map.set(key2,value),value}delete(key2){return this.map.delete(key2)}set(key2,value){if(!this.delete(key2)&&value!==void 0){if(this.map.size>=this.max){let firstKey=this.map.keys().next().value;this.delete(firstKey)}this.map.set(key2,value)}return this}};module2.exports=LRUCache}});var require_range=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/classes/range.js"(exports,module2){"use strict";var SPACE_CHARACTERS=/\s+/g,Range=class _Range{constructor(range,options){if(options=parseOptions(options),range instanceof _Range)return range.loose===!!options.loose&&range.includePrerelease===!!options.includePrerelease?range:new _Range(range.raw,options);if(range instanceof Comparator)return this.raw=range.value,this.set=[[range]],this.formatted=void 0,this;if(this.options=options,this.loose=!!options.loose,this.includePrerelease=!!options.includePrerelease,this.raw=range.trim().replace(SPACE_CHARACTERS," "),this.set=this.raw.split("||").map(r=>this.parseRange(r.trim())).filter(c2=>c2.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let first=this.set[0];if(this.set=this.set.filter(c2=>!isNullSet(c2[0])),this.set.length===0)this.set=[first];else if(this.set.length>1){for(let c2 of this.set)if(c2.length===1&&isAny(c2[0])){this.set=[c2];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let i=0;i<this.set.length;i++){i>0&&(this.formatted+="||");let comps=this.set[i];for(let k=0;k<comps.length;k++)k>0&&(this.formatted+=" "),this.formatted+=comps[k].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(range){range=range.replace(BUILDSTRIPRE,"");let memoKey=((this.options.includePrerelease&&FLAG_INCLUDE_PRERELEASE)|(this.options.loose&&FLAG_LOOSE))+":"+range,cached2=cache.get(memoKey);if(cached2)return cached2;let loose=this.options.loose,hr=loose?re[t.HYPHENRANGELOOSE]:re[t.HYPHENRANGE];range=range.replace(hr,hyphenReplace(this.options.includePrerelease)),debug("hyphen replace",range),range=range.replace(re[t.COMPARATORTRIM],comparatorTrimReplace),debug("comparator trim",range),range=range.replace(re[t.TILDETRIM],tildeTrimReplace),debug("tilde trim",range),range=range.replace(re[t.CARETTRIM],caretTrimReplace),debug("caret trim",range);let rangeList=range.split(" ").map(comp=>parseComparator(comp,this.options)).join(" ").split(/\s+/).map(comp=>replaceGTE0(comp,this.options));loose&&(rangeList=rangeList.filter(comp=>(debug("loose invalid filter",comp,this.options),!!comp.match(re[t.COMPARATORLOOSE])))),debug("range list",rangeList);let rangeMap=new Map,comparators=rangeList.map(comp=>new Comparator(comp,this.options));for(let comp of comparators){if(isNullSet(comp))return[comp];rangeMap.set(comp.value,comp)}rangeMap.size>1&&rangeMap.has("")&&rangeMap.delete("");let result=[...rangeMap.values()];return cache.set(memoKey,result),result}intersects(range,options){if(!(range instanceof _Range))throw new TypeError("a Range is required");return this.set.some(thisComparators=>isSatisfiable(thisComparators,options)&&range.set.some(rangeComparators=>isSatisfiable(rangeComparators,options)&&thisComparators.every(thisComparator=>rangeComparators.every(rangeComparator=>thisComparator.intersects(rangeComparator,options)))))}test(version2){if(!version2)return!1;if(typeof version2=="string")try{version2=new SemVer(version2,this.options)}catch(er){return!1}for(let i=0;i<this.set.length;i++)if(testSet(this.set[i],version2,this.options))return!0;return!1}};module2.exports=Range;var LRU=require_lrucache(),cache=new LRU,parseOptions=require_parse_options(),Comparator=require_comparator(),debug=require_debug(),SemVer=require_semver(),{safeRe:re,src,t,comparatorTrimReplace,tildeTrimReplace,caretTrimReplace}=require_re(),{FLAG_INCLUDE_PRERELEASE,FLAG_LOOSE}=require_constants(),BUILDSTRIPRE=new RegExp(src[t.BUILD],"g"),isNullSet=c2=>c2.value==="<0.0.0-0",isAny=c2=>c2.value==="",isSatisfiable=(comparators,options)=>{let result=!0,remainingComparators=comparators.slice(),testComparator=remainingComparators.pop();for(;result&&remainingComparators.length;)result=remainingComparators.every(otherComparator=>testComparator.intersects(otherComparator,options)),testComparator=remainingComparators.pop();return result},parseComparator=(comp,options)=>(comp=comp.replace(re[t.BUILD],""),debug("comp",comp,options),comp=replaceCarets(comp,options),debug("caret",comp),comp=replaceTildes(comp,options),debug("tildes",comp),comp=replaceXRanges(comp,options),debug("xrange",comp),comp=replaceStars(comp,options),debug("stars",comp),comp),isX=id=>!id||id.toLowerCase()==="x"||id==="*",replaceTildes=(comp,options)=>comp.trim().split(/\s+/).map(c2=>replaceTilde(c2,options)).join(" "),replaceTilde=(comp,options)=>{let r=options.loose?re[t.TILDELOOSE]:re[t.TILDE];return comp.replace(r,(_,M,m,p,pr)=>{debug("tilde",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0 <${+M+1}.0.0-0`:isX(p)?ret=`>=${M}.${m}.0 <${M}.${+m+1}.0-0`:pr?(debug("replaceTilde pr",pr),ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`):ret=`>=${M}.${m}.${p} <${M}.${+m+1}.0-0`,debug("tilde return",ret),ret})},replaceCarets=(comp,options)=>comp.trim().split(/\s+/).map(c2=>replaceCaret(c2,options)).join(" "),replaceCaret=(comp,options)=>{debug("caret",comp,options);let r=options.loose?re[t.CARETLOOSE]:re[t.CARET],z2=options.includePrerelease?"-0":"";return comp.replace(r,(_,M,m,p,pr)=>{debug("caret",comp,_,M,m,p,pr);let ret;return isX(M)?ret="":isX(m)?ret=`>=${M}.0.0${z2} <${+M+1}.0.0-0`:isX(p)?M==="0"?ret=`>=${M}.${m}.0${z2} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.0${z2} <${+M+1}.0.0-0`:pr?(debug("replaceCaret pr",pr),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}-${pr} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p}-${pr} <${+M+1}.0.0-0`):(debug("no pr"),M==="0"?m==="0"?ret=`>=${M}.${m}.${p}${z2} <${M}.${m}.${+p+1}-0`:ret=`>=${M}.${m}.${p}${z2} <${M}.${+m+1}.0-0`:ret=`>=${M}.${m}.${p} <${+M+1}.0.0-0`),debug("caret return",ret),ret})},replaceXRanges=(comp,options)=>(debug("replaceXRanges",comp,options),comp.split(/\s+/).map(c2=>replaceXRange(c2,options)).join(" ")),replaceXRange=(comp,options)=>{comp=comp.trim();let r=options.loose?re[t.XRANGELOOSE]:re[t.XRANGE];return comp.replace(r,(ret,gtlt,M,m,p,pr)=>{debug("xRange",comp,ret,gtlt,M,m,p,pr);let xM=isX(M),xm=xM||isX(m),xp=xm||isX(p),anyX=xp;return gtlt==="="&&anyX&&(gtlt=""),pr=options.includePrerelease?"-0":"",xM?gtlt===">"||gtlt==="<"?ret="<0.0.0-0":ret="*":gtlt&&anyX?(xm&&(m=0),p=0,gtlt===">"?(gtlt=">=",xm?(M=+M+1,m=0,p=0):(m=+m+1,p=0)):gtlt==="<="&&(gtlt="<",xm?M=+M+1:m=+m+1),gtlt==="<"&&(pr="-0"),ret=`${gtlt+M}.${m}.${p}${pr}`):xm?ret=`>=${M}.0.0${pr} <${+M+1}.0.0-0`:xp&&(ret=`>=${M}.${m}.0${pr} <${M}.${+m+1}.0-0`),debug("xRange return",ret),ret})},replaceStars=(comp,options)=>(debug("replaceStars",comp,options),comp.trim().replace(re[t.STAR],"")),replaceGTE0=(comp,options)=>(debug("replaceGTE0",comp,options),comp.trim().replace(re[options.includePrerelease?t.GTE0PRE:t.GTE0],"")),hyphenReplace=incPr=>($0,from,fM,fm,fp,fpr,fb,to,tM,tm,tp,tpr)=>(isX(fM)?from="":isX(fm)?from=`>=${fM}.0.0${incPr?"-0":""}`:isX(fp)?from=`>=${fM}.${fm}.0${incPr?"-0":""}`:fpr?from=`>=${from}`:from=`>=${from}${incPr?"-0":""}`,isX(tM)?to="":isX(tm)?to=`<${+tM+1}.0.0-0`:isX(tp)?to=`<${tM}.${+tm+1}.0-0`:tpr?to=`<=${tM}.${tm}.${tp}-${tpr}`:incPr?to=`<${tM}.${tm}.${+tp+1}-0`:to=`<=${to}`,`${from} ${to}`.trim()),testSet=(set3,version2,options)=>{for(let i=0;i<set3.length;i++)if(!set3[i].test(version2))return!1;if(version2.prerelease.length&&!options.includePrerelease){for(let i=0;i<set3.length;i++)if(debug(set3[i].semver),set3[i].semver!==Comparator.ANY&&set3[i].semver.prerelease.length>0){let allowed=set3[i].semver;if(allowed.major===version2.major&&allowed.minor===version2.minor&&allowed.patch===version2.patch)return!0}return!1}return!0}}});var require_comparator=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/classes/comparator.js"(exports,module2){"use strict";var ANY=Symbol("SemVer ANY"),Comparator=class _Comparator{static get ANY(){return ANY}constructor(comp,options){if(options=parseOptions(options),comp instanceof _Comparator){if(comp.loose===!!options.loose)return comp;comp=comp.value}comp=comp.trim().split(/\s+/).join(" "),debug("comparator",comp,options),this.options=options,this.loose=!!options.loose,this.parse(comp),this.semver===ANY?this.value="":this.value=this.operator+this.semver.version,debug("comp",this)}parse(comp){let r=this.options.loose?re[t.COMPARATORLOOSE]:re[t.COMPARATOR],m=comp.match(r);if(!m)throw new TypeError(`Invalid comparator: ${comp}`);this.operator=m[1]!==void 0?m[1]:"",this.operator==="="&&(this.operator=""),m[2]?this.semver=new SemVer(m[2],this.options.loose):this.semver=ANY}toString(){return this.value}test(version2){if(debug("Comparator.test",version2,this.options.loose),this.semver===ANY||version2===ANY)return!0;if(typeof version2=="string")try{version2=new SemVer(version2,this.options)}catch(er){return!1}return cmp(version2,this.operator,this.semver,this.options)}intersects(comp,options){if(!(comp instanceof _Comparator))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new Range(comp.value,options).test(this.value):comp.operator===""?comp.value===""?!0:new Range(this.value,options).test(comp.semver):(options=parseOptions(options),options.includePrerelease&&(this.value==="<0.0.0-0"||comp.value==="<0.0.0-0")||!options.includePrerelease&&(this.value.startsWith("<0.0.0")||comp.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&comp.operator.startsWith(">")||this.operator.startsWith("<")&&comp.operator.startsWith("<")||this.semver.version===comp.semver.version&&this.operator.includes("=")&&comp.operator.includes("=")||cmp(this.semver,"<",comp.semver,options)&&this.operator.startsWith(">")&&comp.operator.startsWith("<")||cmp(this.semver,">",comp.semver,options)&&this.operator.startsWith("<")&&comp.operator.startsWith(">")))}};module2.exports=Comparator;var parseOptions=require_parse_options(),{safeRe:re,t}=require_re(),cmp=require_cmp(),debug=require_debug(),SemVer=require_semver(),Range=require_range()}});var require_satisfies=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/functions/satisfies.js"(exports,module2){"use strict";var Range=require_range(),satisfies=(version2,range,options)=>{try{range=new Range(range,options)}catch(er){return!1}return range.test(version2)};module2.exports=satisfies}});var require_to_comparators=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/to-comparators.js"(exports,module2){"use strict";var Range=require_range(),toComparators=(range,options)=>new Range(range,options).set.map(comp=>comp.map(c2=>c2.value).join(" ").trim().split(" "));module2.exports=toComparators}});var require_max_satisfying=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/max-satisfying.js"(exports,module2){"use strict";var SemVer=require_semver(),Range=require_range(),maxSatisfying=(versions,range,options)=>{let max=null,maxSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch(er){return null}return versions.forEach(v=>{rangeObj.test(v)&&(!max||maxSV.compare(v)===-1)&&(max=v,maxSV=new SemVer(max,options))}),max};module2.exports=maxSatisfying}});var require_min_satisfying=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/min-satisfying.js"(exports,module2){"use strict";var SemVer=require_semver(),Range=require_range(),minSatisfying=(versions,range,options)=>{let min=null,minSV=null,rangeObj=null;try{rangeObj=new Range(range,options)}catch(er){return null}return versions.forEach(v=>{rangeObj.test(v)&&(!min||minSV.compare(v)===1)&&(min=v,minSV=new SemVer(min,options))}),min};module2.exports=minSatisfying}});var require_min_version=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/min-version.js"(exports,module2){"use strict";var SemVer=require_semver(),Range=require_range(),gt=require_gt(),minVersion=(range,loose)=>{range=new Range(range,loose);let minver=new SemVer("0.0.0");if(range.test(minver)||(minver=new SemVer("0.0.0-0"),range.test(minver)))return minver;minver=null;for(let i=0;i<range.set.length;++i){let comparators=range.set[i],setMin=null;comparators.forEach(comparator=>{let compver=new SemVer(comparator.semver.version);switch(comparator.operator){case">":compver.prerelease.length===0?compver.patch++:compver.prerelease.push(0),compver.raw=compver.format();case"":case">=":(!setMin||gt(compver,setMin))&&(setMin=compver);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${comparator.operator}`)}}),setMin&&(!minver||gt(minver,setMin))&&(minver=setMin)}return minver&&range.test(minver)?minver:null};module2.exports=minVersion}});var require_valid2=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/valid.js"(exports,module2){"use strict";var Range=require_range(),validRange=(range,options)=>{try{return new Range(range,options).range||"*"}catch(er){return null}};module2.exports=validRange}});var require_outside=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/outside.js"(exports,module2){"use strict";var SemVer=require_semver(),Comparator=require_comparator(),{ANY}=Comparator,Range=require_range(),satisfies=require_satisfies(),gt=require_gt(),lt=require_lt(),lte=require_lte(),gte=require_gte(),outside=(version2,range,hilo,options)=>{version2=new SemVer(version2,options),range=new Range(range,options);let gtfn,ltefn,ltfn,comp,ecomp;switch(hilo){case">":gtfn=gt,ltefn=lte,ltfn=lt,comp=">",ecomp=">=";break;case"<":gtfn=lt,ltefn=gte,ltfn=gt,comp="<",ecomp="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(satisfies(version2,range,options))return!1;for(let i=0;i<range.set.length;++i){let comparators=range.set[i],high=null,low=null;if(comparators.forEach(comparator=>{comparator.semver===ANY&&(comparator=new Comparator(">=0.0.0")),high=high||comparator,low=low||comparator,gtfn(comparator.semver,high.semver,options)?high=comparator:ltfn(comparator.semver,low.semver,options)&&(low=comparator)}),high.operator===comp||high.operator===ecomp||(!low.operator||low.operator===comp)&&ltefn(version2,low.semver))return!1;if(low.operator===ecomp&&ltfn(version2,low.semver))return!1}return!0};module2.exports=outside}});var require_gtr=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/gtr.js"(exports,module2){"use strict";var outside=require_outside(),gtr=(version2,range,options)=>outside(version2,range,">",options);module2.exports=gtr}});var require_ltr=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/ltr.js"(exports,module2){"use strict";var outside=require_outside(),ltr=(version2,range,options)=>outside(version2,range,"<",options);module2.exports=ltr}});var require_intersects=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/intersects.js"(exports,module2){"use strict";var Range=require_range(),intersects=(r1,r2,options)=>(r1=new Range(r1,options),r2=new Range(r2,options),r1.intersects(r2,options));module2.exports=intersects}});var require_simplify=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/simplify.js"(exports,module2){"use strict";var satisfies=require_satisfies(),compare=require_compare();module2.exports=(versions,range,options)=>{let set3=[],first=null,prev=null,v=versions.sort((a,b)=>compare(a,b,options));for(let version2 of v)satisfies(version2,range,options)?(prev=version2,first||(first=version2)):(prev&&set3.push([first,prev]),prev=null,first=null);first&&set3.push([first,null]);let ranges=[];for(let[min,max]of set3)min===max?ranges.push(min):!max&&min===v[0]?ranges.push("*"):max?min===v[0]?ranges.push(`<=${max}`):ranges.push(`${min} - ${max}`):ranges.push(`>=${min}`);let simplified=ranges.join(" || "),original=typeof range.raw=="string"?range.raw:String(range);return simplified.length<original.length?simplified:range}}});var require_subset=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/ranges/subset.js"(exports,module2){"use strict";var Range=require_range(),Comparator=require_comparator(),{ANY}=Comparator,satisfies=require_satisfies(),compare=require_compare(),subset=(sub,dom,options={})=>{if(sub===dom)return!0;sub=new Range(sub,options),dom=new Range(dom,options);let sawNonNull=!1;OUTER:for(let simpleSub of sub.set){for(let simpleDom of dom.set){let isSub=simpleSubset(simpleSub,simpleDom,options);if(sawNonNull=sawNonNull||isSub!==null,isSub)continue OUTER}if(sawNonNull)return!1}return!0},minimumVersionWithPreRelease=[new Comparator(">=0.0.0-0")],minimumVersion=[new Comparator(">=0.0.0")],simpleSubset=(sub,dom,options)=>{if(sub===dom)return!0;if(sub.length===1&&sub[0].semver===ANY){if(dom.length===1&&dom[0].semver===ANY)return!0;options.includePrerelease?sub=minimumVersionWithPreRelease:sub=minimumVersion}if(dom.length===1&&dom[0].semver===ANY){if(options.includePrerelease)return!0;dom=minimumVersion}let eqSet=new Set,gt,lt;for(let c2 of sub)c2.operator===">"||c2.operator===">="?gt=higherGT(gt,c2,options):c2.operator==="<"||c2.operator==="<="?lt=lowerLT(lt,c2,options):eqSet.add(c2.semver);if(eqSet.size>1)return null;let gtltComp;if(gt&&lt){if(gtltComp=compare(gt.semver,lt.semver,options),gtltComp>0)return null;if(gtltComp===0&&(gt.operator!==">="||lt.operator!=="<="))return null}for(let eq of eqSet){if(gt&&!satisfies(eq,String(gt),options)||lt&&!satisfies(eq,String(lt),options))return null;for(let c2 of dom)if(!satisfies(eq,String(c2),options))return!1;return!0}let higher,lower,hasDomLT,hasDomGT,needDomLTPre=lt&&!options.includePrerelease&&lt.semver.prerelease.length?lt.semver:!1,needDomGTPre=gt&&!options.includePrerelease&&gt.semver.prerelease.length?gt.semver:!1;needDomLTPre&&needDomLTPre.prerelease.length===1&&lt.operator==="<"&&needDomLTPre.prerelease[0]===0&&(needDomLTPre=!1);for(let c2 of dom){if(hasDomGT=hasDomGT||c2.operator===">"||c2.operator===">=",hasDomLT=hasDomLT||c2.operator==="<"||c2.operator==="<=",gt){if(needDomGTPre&&c2.semver.prerelease&&c2.semver.prerelease.length&&c2.semver.major===needDomGTPre.major&&c2.semver.minor===needDomGTPre.minor&&c2.semver.patch===needDomGTPre.patch&&(needDomGTPre=!1),c2.operator===">"||c2.operator===">="){if(higher=higherGT(gt,c2,options),higher===c2&&higher!==gt)return!1}else if(gt.operator===">="&&!c2.test(gt.semver))return!1}if(lt){if(needDomLTPre&&c2.semver.prerelease&&c2.semver.prerelease.length&&c2.semver.major===needDomLTPre.major&&c2.semver.minor===needDomLTPre.minor&&c2.semver.patch===needDomLTPre.patch&&(needDomLTPre=!1),c2.operator==="<"||c2.operator==="<="){if(lower=lowerLT(lt,c2,options),lower===c2&&lower!==lt)return!1}else if(lt.operator==="<="&&!c2.test(lt.semver))return!1}if(!c2.operator&&(lt||gt)&&gtltComp!==0)return!1}return!(gt&&hasDomLT&&!lt&&gtltComp!==0||lt&&hasDomGT&&!gt&&gtltComp!==0||needDomGTPre||needDomLTPre)},higherGT=(a,b,options)=>{if(!a)return b;let comp=compare(a.semver,b.semver,options);return comp>0?a:comp<0||b.operator===">"&&a.operator===">="?b:a},lowerLT=(a,b,options)=>{if(!a)return b;let comp=compare(a.semver,b.semver,options);return comp<0?a:comp>0||b.operator==="<"&&a.operator==="<="?b:a};module2.exports=subset}});var require_semver2=__commonJS({"node_modules/.pnpm/semver@7.8.1/node_modules/semver/index.js"(exports,module2){"use strict";var internalRe=require_re(),constants=require_constants(),SemVer=require_semver(),identifiers=require_identifiers(),parse3=require_parse(),valid=require_valid(),clean=require_clean(),inc=require_inc(),diff=require_diff(),major=require_major(),minor=require_minor(),patch=require_patch(),prerelease=require_prerelease(),compare=require_compare(),rcompare=require_rcompare(),compareLoose=require_compare_loose(),compareBuild=require_compare_build(),sort=require_sort(),rsort=require_rsort(),gt=require_gt(),lt=require_lt(),eq=require_eq(),neq=require_neq(),gte=require_gte(),lte=require_lte(),cmp=require_cmp(),coerce=require_coerce(),truncate2=require_truncate2(),Comparator=require_comparator(),Range=require_range(),satisfies=require_satisfies(),toComparators=require_to_comparators(),maxSatisfying=require_max_satisfying(),minSatisfying=require_min_satisfying(),minVersion=require_min_version(),validRange=require_valid2(),outside=require_outside(),gtr=require_gtr(),ltr=require_ltr(),intersects=require_intersects(),simplifyRange=require_simplify(),subset=require_subset();module2.exports={parse:parse3,valid,clean,inc,diff,major,minor,patch,prerelease,compare,rcompare,compareLoose,compareBuild,sort,rsort,gt,lt,eq,neq,gte,lte,cmp,coerce,truncate:truncate2,Comparator,Range,satisfies,toComparators,maxSatisfying,minSatisfying,minVersion,validRange,outside,gtr,ltr,intersects,simplifyRange,subset,SemVer,re:internalRe.re,src:internalRe.src,tokens:internalRe.t,SEMVER_SPEC_VERSION:constants.SEMVER_SPEC_VERSION,RELEASE_TYPES:constants.RELEASE_TYPES,compareIdentifiers:identifiers.compareIdentifiers,rcompareIdentifiers:identifiers.rcompareIdentifiers}}});var main_exports={};__export(main_exports,{default:()=>RaindropPlugin});module.exports=__toCommonJS(main_exports);var import_obsidian10=require("obsidian");var import_obsidian6=require("obsidian");var defaultMetadataTemplate_default=`{% if link %}link: {{link}}{% endif %}
{% if tags|length %}tags: {%for tag in tags %}
- {{tag}}{% endfor %}{% endif %}
`;var templateInstructions_default=`<p>
Template (<a href="https://mozilla.github.io/nunjucks/">Nunjucks</a>) for rendering every synced
Raindrop.io highlights & annotations.
</p>
<p>
<b>Available variables to use</b>
</p>
<p>Metadata</p>
<ul>
<li><span class="u-pop">{{now}}</span> (Moment) - Present time</li>
</ul>
<p>Article Metadata</p>
<ul>
<li><span class="u-pop">{{is_new_article}}</span> (bool) - New file indicator</li>
<li><span class="u-pop">{{id}}</span> (number) - Article identifier</li>
<li><span class="u-pop">{{title}}</span> (string) - Title</li>
<li><span class="u-pop">{{excerpt}}</span> (string) - Article excerpt</li>
<li><span class="u-pop">{{note}}</span> (string) - Article note</li>
<li><span class="u-pop">{{link}}</span> (string) - Link to source</li>
<li>
<span class="u-pop">{{highlights}}</span> (Highlight[]) - List of your Highlights (Detail
attributes refer to the following <span class="u-pop">Highlight</span> section)
</li>
<li>
<span class="u-pop">{{collection}}</span> (Collection) - Collection data (Detail attributes
refer to the following <span class="u-pop">Collection</span> section
</li>
<li>
<span class="u-pop">{{creator}}</span> (Creator) - Creator data (Detail attributes refer to
the following <span class="u-pop">Creator</span> section
</li>
<li><span class="u-pop">{{tags}}</span> (string[]) - List of tag</li>
<li><span class="u-pop">{{cover}}</span> (string) - Article cover</li>
<li><span class="u-pop">{{created}}</span> (Moment) - Created on</li>
<li><span class="u-pop">{{type}}</span> (string) - Article type</li>
<li><span class="u-pop">{{important}}</span> (bool) - Favorite article</li>
<li><span class="u-pop">{{raindropUrl}}</span> (string) - Link to raindrop page</li>
</ul>
<p>Creator</p>
<ul>
<li><span class="u-pop">{{name}}</span> (string) - Creator name</li>
<li><span class="u-pop">{{id}}</span> (number) - Creator id</li>
</ul>
<p>Collection</p>
<ul>
<li><span class="u-pop">{{title}}</span> (string) - Collection title</li>
</ul>
<p>Highlight</p>
<ul>
<li><span class="u-pop">{{id}}</span> (string) - Highlight identifier</li>
<li><span class="u-pop">{{text}}</span> (string) - Text</li>
<li><span class="u-pop">{{color}}</span> (string) - Highlight color</li>
<li><span class="u-pop">{{created}}</span> (Moment) - Created on</li>
<li><span class="u-pop">{{lastUpdate}}</span> (Moment) - Updated on</li>
<li><span class="u-pop">{{note}}</span> (string) - Annotation</li>
</ul>
<p>Filter</p>
<ul>
<li>
<span class="u-pop">date(format: string)</span> Convert Moment object to string - example:
<code>{{ now | date("YYYY/MM/DD") }}</code>. For more syntax, refer to
<a href="https://momentjs.com/docs/#/displaying/format/">format reference</a>.
</li>
<li>
<span class="u-pop">defuddle</span> Fetch a link and convert to markdown using Defuddle -
example: <code>{{ link | defuddle }}</code>. Useful for archiving the full content of the
link.
</li>
<li>
<span class="u-pop">download_attachment(filename?: string)</span> Download a URL to the
Obsidian attachment folder and return the local path. Filename is optional \u2014 defaults to
<code>{{title}}</code>.
<br />
<b>Examples:</b><br />
<code>{{ cover | download_attachment }}</code> <br />
<code>{{ cover | download_attachment(title ~ " - cover") }}</code>.
<br />
<b>Fallback rules:</b> On failure, the original URL is returned, so the template can handle
error handling gracefully (e.g. choose between two different formats:
<code>![](Remote URL)</code> or <code>![[Local Path]]</code>).
<br />
<b>Collision rules:</b> When the target path already exists, the file content is compared \u2014
if identical, no re-download. If different, suffixes <code>(1)</code>, <code>(2)</code>,
etc. are tried until a matching or empty slot is found.
</li>
</ul>
`;var metadataTemplateInstructions_default=`<p>
Metadata template (<a href="https://mozilla.github.io/nunjucks/">Nunjucks</a>) for rendering
every synced Raindrop.io highlights & annotations.
</p>
<p>Some notes:</p>
<ul>
<li>The rendered result is placed in the front matter of the generated post.</li>
<li>
If the rendered result does not follow the YAML syntax, the plugin will reject the update.
</li>
<li>
<code>raindrop_id</code> and <code>raindrop_highlights</code> properties are transparently
added and updated by the plugin.
</li>
<li>Available variables to use are the same as the previous template.</li>
</ul>
`;var filenameTemplateInstructions_default=`<p>
Filename template (<a href="https://mozilla.github.io/nunjucks/">Nunjucks</a>) for creating
synced Raindrop.io highlights & annotations.
</p>
<p>Some notes:</p>
<ul>
<li>The rendered result is used as the filename for the bookmark.</li>
<li>The rendered result is sanitized and truncated to 255 bytes.</li>
<li>The plugin will reject the invalid template.</li>
<li>
If the file already exists in the vault, the auto generated suffix will be appended to the
rendered result and used as the filename.
</li>
<li>Available variables to use are the same as the previous template.</li>
</ul>
`;var collectionGroupsInstructions_default=`Add collection group name to the hierarchy of collections. See
<a href="https://help.raindrop.io/collections/#groups"
>https://help.raindrop.io/collections/#groups</a
>
for more details about collection groups.
`;var appendModeInstructions_default=`<div>
<span class="u-pop">Dangerous Option!</span>
</div>
<ul>
<li>
On: The new highlights will be appended to the end of the existing file, but the old
metadata can not be updated in place.
</li>
<li>
Off: The synced files will always be kept in the latest states of the Raindrop articles, but
this will lose the flexiblity to add/modify the synced files. (i.e. the old file content
will be overwritten!)
</li>
</ul>
`;var autoescapingInstructions_default=`If this option is turned on, Nunjucks will
<a href="https://mozilla.github.io/nunjucks/templating.html#autoescaping">autoescape</a> all output
during the template rendering process. To manually mark output as safe, use the
<code>safe</code> filter (example: <code>{{ note | safe }}</code>). It's recommended to turn this
option on for security reasons.
`;var import_obsidian=require("obsidian"),CollectionsModal=class extends import_obsidian.Modal{constructor(app,plugin){super(app),this.plugin=plugin,this.titleEl.innerText="Raindrop.io: Manage collections to be synced",this.rerender(),this.open()}rerender(){this.contentEl.empty();let rootDiv=this.contentEl.createDiv(),autoSyncAllColDiv=rootDiv.createDiv({cls:"collection-entry"}),autoSyncAllColBtn=autoSyncAllColDiv.createEl("input",{type:"checkbox"});if(autoSyncAllColBtn.checked=this.plugin.settings.enableAutoSyncAllCollections,autoSyncAllColBtn.onclick=async()=>{await this.plugin.settings.toggleSyncAllCollections(),this.rerender()},autoSyncAllColDiv.createEl("span",{text:"Auto sync all collections"}),!this.plugin.settings.enableAutoSyncAllCollections){let autoSyncNestedColDiv=rootDiv.createDiv({cls:"collection-entry"}),autoSyncNestedColInput=autoSyncNestedColDiv.createEl("input",{type:"checkbox"});autoSyncNestedColInput.checked=this.plugin.settings.enableAutoSyncNewNestedCollections,autoSyncNestedColInput.onclick=async()=>{await this.plugin.settings.toggleAutoSyncNestedCollections(),this.rerender()},autoSyncNestedColDiv.createEl("span",{text:"Auto sync new nested collections"})}let divider=rootDiv.createEl("hr");divider.style.marginTop="8px",divider.style.marginBottom="8px";let{sysCollections,userCollections}=this.plugin.settings.syncCollectionsSeparated,renderCollection=(collections,isSysCol)=>{var _a9;let table=rootDiv.createEl("table");for(let[id,collection]of collections){let row=table.createEl("tr"),entryDiv=row.createEl("td").createDiv({cls:"collection-entry"}),checkbox=entryDiv.createEl("input",{type:"checkbox"});isSysCol||(checkbox.disabled=this.plugin.settings.enableAutoSyncAllCollections),checkbox.checked=collection.sync,checkbox.onclick=async()=>{await this.plugin.settings.toggleCollectionSync(id),this.rerender()},entryDiv.createEl("span",{text:collection.title});let searchInput=row.createEl("td").createEl("input");searchInput.placeholder="Search",searchInput.value=(_a9=collection.search)!=null?_a9:"",searchInput.onchange=async event3=>{let value=event3.target.value;await this.plugin.settings.setCollectionSearch(id,value),this.rerender()}}},sysNoticeP=rootDiv.createEl("div",{cls:"collection-notice"}).createEl("span");sysNoticeP.innerHTML="NOTICE: Each bookmark belongs to its original collection and a special system collection called <b>All Bookmarks</b>. Syncing both can cause conflicts \u2014 the bookmark's state will follow the most recently synced collection.";let searchNoticeP=rootDiv.createEl("div",{cls:"collection-notice"}).createEl("span");searchNoticeP.innerHTML="NOTICE: Search syntax follows the <a href='https://help.raindrop.io/using-search#operators'>Raindrop.io documents</a>.",renderCollection(sysCollections,!0);let divider2=rootDiv.createEl("hr");divider2.style.marginTop="8px",divider2.style.marginBottom="8px",renderCollection(userCollections,!1)}onClose(){super.onClose()}};var import_nunjucks=__toESM(require_nunjucks()),import_moment=__toESM(require_moment()),import_sanitize_filename=__toESM(require_sanitize_filename()),import_obsidian3=require("obsidian");var import_obsidian2=require("obsidian");var types={"application/prs.cww":["cww"],"application/prs.xsf+xml":["xsf"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["*xfdf"],"application/vnd.age":["age"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["key"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.autodesk.fbx":["fbx"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dbf":["dbf"],"application/vnd.dcmp+xml":["dcmp"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["*fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.slides":["ggs"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.drawing":["gdraw"],"application/vnd.google-apps.form":["gform"],"application/vnd.google-apps.jam":["gjam"],"application/vnd.google-apps.map":["gmap"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.script":["gscript"],"application/vnd.google-apps.site":["gsite"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.gov.sk.xmldatacontainer+xml":["xdcf"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mapbox-vector-tile":["mvt"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["*mpp","mpt"],"application/vnd.ms-visio.viewer":["vdx"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.nato.bindingdataobject+xml":["bdo"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.procrate.brushset":["brushset"],"application/vnd.procreate.brush":["brush"],"application/vnd.procreate.dream":["drm"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.pwg-xhtml-print+xml":["xhtm"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.rar":["rar"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml","uo"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw","vsdx","vtx"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blender":["blend"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-compressed":["*rar"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-ipynb+json":["ipynb"],"application/x-iso9660-image":["*iso"],"application/x-iwork-keynote-sffkey":["*key"],"application/x-iwork-numbers-sffnumbers":["*numbers"],"application/x-iwork-pages-sffpages":["*pages"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["*prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["*rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["*sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zip-compressed":["*zip"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["*aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif","btf"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.blockfact.facti":["facti"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.pco.b16":["b16"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-adobe-dng":["dng"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.bary":["bary"],"model/vnd.cld":["cld"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["*mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.pytha.pyox":["pyo","pyox"],"model/vnd.sap.vds":["vds"],"model/vnd.usda":["usda"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.familysearch.gedcom":["ged"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]};Object.freeze(types);var other_default=types;var types2={"application/andrew-inset":["ez"],"application/appinstaller":["appinstaller"],"application/applixware":["aw"],"application/appx":["appx"],"application/appxbundle":["appxbundle"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/automationml-aml+xml":["aml"],"application/automationml-amlx+zip":["amlx"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cpl+xml":["cpl"],"application/cu-seeme":["cu"],"application/cwl":["cwl"],"application/dash+xml":["mpd"],"application/dash-patch+xml":["mpp"],"application/davmount+xml":["davmount"],"application/dicom":["dcm"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/express":["exp"],"application/fdf":["fdf"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["*js"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/media-policy-dataset+xml":["mpf"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["*mp4","*mpg4","mp4s","m4p"],"application/msix":["msix"],"application/msixbundle":["msixbundle"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg","one","onea"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-keys":["asc"],"application/pgp-signature":["sig","*asc"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/sql":["sql"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/trig":["trig"],"application/ttml+xml":["ttml"],"application/ubjson":["ubj"],"application/urc-ressheet+xml":["rsheet"],"application/urc-targetdesc+xml":["td"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/watcherinfo+xml":["wif"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xfdf":["xfdf"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["*xsl","xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"application/zip+dotlottie":["lottie"],"audio/3gpp":["*3gpp"],"audio/aac":["adts","aac"],"audio/adpcm":["adp"],"audio/amr":["amr"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a","m4b"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx","opus"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/avci":["avci"],"image/avcs":["avcs"],"image/avif":["avif"],"image/bmp":["bmp","dib"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/dpx":["dpx"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/ief":["ief"],"image/jaii":["jaii"],"image/jais":["jais"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpg","jpeg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm","jpgm"],"image/jpx":["jpx","jpf"],"image/jxl":["jxl"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/ktx2":["ktx2"],"image/pjpeg":["jfif"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime","mht","mhtml"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/jt":["jt"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/prc":["prc"],"model/step":["step","stp","stpnc","p21","210"],"model/step+xml":["stpx"],"model/step+zip":["stpz"],"model/step-xml+zip":["stpxz"],"model/stl":["stl"],"model/u3d":["u3d"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/javascript":["js","mjs"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["md","markdown"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/spdx":["spdx"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/wgsl":["wgsl"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/iso.segment":["m4s"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","*jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts","m2t","m2ts","mts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]};Object.freeze(types2);var standard_default=types2;var __classPrivateFieldGet=function(receiver,state2,kind,f){if(kind==="a"&&!f)throw new TypeError("Private accessor was defined without a getter");if(typeof state2=="function"?receiver!==state2||!f:!state2.has(receiver))throw new TypeError("Cannot read private member from an object whose class did not declare it");return kind==="m"?f:kind==="a"?f.call(receiver):f?f.value:state2.get(receiver)},_Mime_extensionToType,_Mime_typeToExtension,_Mime_typeToExtensions,Mime=class{constructor(...args){_Mime_extensionToType.set(this,new Map),_Mime_typeToExtension.set(this,new Map),_Mime_typeToExtensions.set(this,new Map);for(let arg of args)this.define(arg)}define(typeMap,force=!1){for(let[type,extensions]of Object.entries(typeMap)){type=type.toLowerCase(),extensions=extensions.map(ext=>ext.toLowerCase()),__classPrivateFieldGet(this,_Mime_typeToExtensions,"f").has(type)||__classPrivateFieldGet(this,_Mime_typeToExtensions,"f").set(type,new Set);let allExtensions=__classPrivateFieldGet(this,_Mime_typeToExtensions,"f").get(type),first=!0;for(let extension of extensions){let starred=extension.startsWith("*");if(extension=starred?extension.slice(1):extension,allExtensions==null||allExtensions.add(extension),first&&__classPrivateFieldGet(this,_Mime_typeToExtension,"f").set(type,extension),first=!1,starred)continue;let currentType=__classPrivateFieldGet(this,_Mime_extensionToType,"f").get(extension);if(currentType&&currentType!=type&&!force)throw new Error(`"${type} -> ${extension}" conflicts with "${currentType} -> ${extension}". Pass \`force=true\` to override this definition.`);__classPrivateFieldGet(this,_Mime_extensionToType,"f").set(extension,type)}}return this}getType(path){var _a9;if(typeof path!="string")return null;let last=path.replace(/^.*[/\\]/s,"").toLowerCase(),ext=last.replace(/^.*\./s,"").toLowerCase(),hasPath=last.length<path.length;return!(ext.length<last.length-1)&&hasPath?null:(_a9=__classPrivateFieldGet(this,_Mime_extensionToType,"f").get(ext))!=null?_a9:null}getExtension(type){var _a9,_b3;return typeof type!="string"?null:(type=(_a9=type==null?void 0:type.split)==null?void 0:_a9.call(type,";")[0],(_b3=type&&__classPrivateFieldGet(this,_Mime_typeToExtension,"f").get(type.trim().toLowerCase()))!=null?_b3:null)}getAllExtensions(type){var _a9;return typeof type!="string"?null:(_a9=__classPrivateFieldGet(this,_Mime_typeToExtensions,"f").get(type.toLowerCase()))!=null?_a9:null}_freeze(){this.define=()=>{throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances")},Object.freeze(this);for(let extensions of __classPrivateFieldGet(this,_Mime_typeToExtensions,"f").values())Object.freeze(extensions);return this}_getTestState(){return{types:__classPrivateFieldGet(this,_Mime_extensionToType,"f"),extensions:__classPrivateFieldGet(this,_Mime_typeToExtension,"f")}}};_Mime_extensionToType=new WeakMap,_Mime_typeToExtension=new WeakMap,_Mime_typeToExtensions=new WeakMap;var Mime_default=Mime;var src_default=new Mime_default(standard_default,other_default)._freeze();function detectExtension(url2,contentType){var _a9,_b3;try{let match=new URL(url2).pathname.match(/\.(\w{2,4})$/);if(match!=null&&match[1])return`.${match[1].toLowerCase()}`}catch(e){}if(contentType){let primary=(_b3=(_a9=contentType.split(";")[0])==null?void 0:_a9.trim().toLowerCase())!=null?_b3:"",ext=src_default.getExtension(primary);if(ext)return`.${ext}`}return console.warn(`Could not detect file extension for URL: ${url2} with content type: ${contentType}`),""}async function sha256(data){let hashBuffer=await crypto.subtle.digest("SHA-256",data);return Array.from(new Uint8Array(hashBuffer)).map(b=>b.toString(16).padStart(2,"0")).join("")}function sanitizeFilename(name){return(0,import_obsidian2.normalizePath)(name).replace(/[\\/:*?"<>|]/g," ").replace(/\s+/g," ").trim()}function getAttachmentFolder(app){var _a9,_b3,_c2;try{let configPath=(_c2=(_b3=(_a9=app.vault).getConfig)==null?void 0:_b3.call(_a9,"attachmentFolderPath"))!=null?_c2:"";return!configPath||configPath==="."?"":configPath}catch(e){return""}}var MAX_ATTEMPTS=1e5;async function findOrCreateFile(app,folder,filename,ext,contentHash,data){folder&&await app.vault.createFolder(folder).catch(()=>{});for(let seq=0;seq<MAX_ATTEMPTS;seq++){let filenameExt=seq===0?`${filename}${ext}`:`${filename} (${seq})${ext}`,filePath=(0,import_obsidian2.normalizePath)(folder?`${folder}/${filenameExt}`:filenameExt);try{if(!await app.vault.adapter.exists(filePath))return await app.vault.createBinary(filePath,data),filePath;let existingData=await app.vault.adapter.readBinary(filePath);if(await sha256(existingData)===contentHash)return filePath}catch(err){console.warn(`Attempt ${seq+1}: Failed to create or verify file ${filePath}`,err)}}throw new Error(`Could not create file for "${filename}${ext}" after ${MAX_ATTEMPTS} attempts`)}var AttachmentDownloader=class{constructor(app){this.app=app}async download(url2,filename){if(!url2)return"";let urlStr=String(url2);if(!urlStr)return"";try{let response=await(0,import_obsidian2.requestUrl)({url:urlStr,method:"GET"});if(response.status!==200)return urlStr;let data=response.arrayBuffer,contentType=response.headers["content-type"],ext=detectExtension(urlStr,contentType),hash3=await sha256(data),folder=getAttachmentFolder(this.app),filenameSanitized=sanitizeFilename(filename);return findOrCreateFile(this.app,folder,filenameSanitized,ext,hash3,data)}catch(err){return console.error(`AttachmentDownloader: failed for ${urlStr}`,err),urlStr}}};var import_full=__toESM(require_index_full()),FAKE_RENDER_CONTEXT={is_new_article:!0,id:1e3,title:"fake_title",excerpt:"fake_excerpt",note:"fake_note",link:"https://example.com",highlights:[{id:"123456789abcdefghijklmno",color:"red",created:(0,import_moment.default)(),lastUpdate:(0,import_moment.default)(),note:"fake_note",text:"fake_text"}],collection:{title:"fake_collection"},tags:["fake_tag1","fake_tag2"],cover:"https://example.com",created:(0,import_moment.default)(),type:"link",important:!1,creator:{name:"fake_name",id:1e4},now:(0,import_moment.default)(),raindropUrl:"https://example.com"},Renderer=class{constructor(plugin){this.plugin=plugin,this.attDownloader=new AttachmentDownloader(this.plugin.app)}async validate(template,isYaml=!1){try{let env=this.createEnv(FAKE_RENDER_CONTEXT,!0),fakeContent=await this.renderStringAsync(env,template,FAKE_RENDER_CONTEXT);if(isYaml){let{id}=FAKE_RENDER_CONTEXT,fakeMetadata=`raindrop_id: ${id}
${fakeContent}`;(0,import_obsidian3.parseYaml)(fakeMetadata)}return!0}catch(e){return!1}}async renderContent(bookmark,newArticle){return this.renderTemplate(this.plugin.settings.contentTemplate,bookmark,newArticle)}async renderFrontmatter(bookmark,newArticle){let newMdFrontmatter=await this.renderTemplate(this.plugin.settings.metadataTemplate,bookmark,newArticle),frontmatterObj={raindrop_id:bookmark.id};return bookmark.highlights.length>0&&(frontmatterObj.raindrop_highlights=Object.fromEntries(bookmark.highlights.map(hl=>[hl.id,hl.signature]))),newMdFrontmatter.length>0?`${(0,import_obsidian3.stringifyYaml)(frontmatterObj)}${newMdFrontmatter}`:(0,import_obsidian3.stringifyYaml)(frontmatterObj)}async renderFullArticle(bookmark){let newMdContent=await this.renderContent(bookmark,!0);return`---
${await this.renderFrontmatter(bookmark,!0)}
---
${newMdContent}`}async renderFileName(bookmark,newArticle){let filename=await this.renderTemplate(this.plugin.settings.filenameTemplate,bookmark,newArticle);return this.sanitizeFilename(filename)}sanitizeFilename(filename){return(0,import_sanitize_filename.default)(filename.replace(/[':#|]/g,"").trim())}renderTemplate(template,bookmark,newArticle){var _a9,_b3;let renderHighlights=bookmark.highlights.map(hl=>({id:hl.id,color:hl.color,created:(0,import_moment.default)(hl.created),lastUpdate:(0,import_moment.default)(hl.lastUpdate),note:hl.note,text:hl.text})),renderCollection={title:(_b3=(_a9=this.plugin.settings.syncCollections[bookmark.collectionId])==null?void 0:_a9.title)!=null?_b3:""},context={is_new_article:newArticle,id:bookmark.id,title:bookmark.title,excerpt:bookmark.excerpt,note:bookmark.note,link:bookmark.link,highlights:renderHighlights,collection:renderCollection,tags:bookmark.tags,cover:bookmark.cover,created:(0,import_moment.default)(bookmark.created),type:bookmark.type,important:bookmark.important,creator:bookmark.creator,now:(0,import_moment.default)(),raindropUrl:`https://app.raindrop.io/my/${bookmark.collectionId}/item/${bookmark.id}/edit`},env=this.createEnv(context);return this.renderStringAsync(env,template,context)}renderStringAsync(env,template,context){return new Promise((resolve,reject)=>{env.renderString(template,context,(err,content)=>{err?reject(err):resolve(content!=null?content:"")})})}createEnv(renderContext,isValidate=!1){let env=new import_nunjucks.default.Environment(void 0,{autoescape:this.plugin.settings.enableAutoEscape});return env.addFilter("date",(date5,format)=>date5.format(format)),env.addFilter("defuddle",(link,callback)=>{if(!link||isValidate){callback(null,"");return}(0,import_obsidian3.requestUrl)({url:link}).then(response=>{var _a9;let dom=new DOMParser().parseFromString(response.text,"text/html"),result=new import_full.default(dom,{url:link,markdown:!0}).parse();callback(null,(_a9=result.contentMarkdown)!=null?_a9:result.content)}).catch(err=>{console.error(`Defuddle error for link ${link}:`,err),callback(null,`*Defuddle error: ${err.message}*`)})},!0),env.addFilter("download_attachment",(url2,...args)=>{var _a9;let callback=args[args.length-1],templateFilename=args.length>1?String((_a9=args[0])!=null?_a9:""):void 0,urlStr=url2?String(url2):"";if(!urlStr||isValidate){callback(null,"");return}let defaultFilename=renderContext?`${renderContext.title}`:"attachment",filename=templateFilename!=null?templateFilename:defaultFilename;this.attDownloader.download(urlStr,filename).then(result=>callback(null,result)).catch(err=>{console.error(`download_attachment: failed for ${urlStr}`,err),callback(null,urlStr)})},!0),env}};var import_obsidian4=require("obsidian");var _a,_b,_c;typeof window!="undefined"&&((_c=(_b=(_a=window.__svelte)!=null?_a:window.__svelte={}).v)!=null?_c:_b.v=new Set).add("5");var async_mode_flag=!1,legacy_mode_flag=!1,tracing_mode_flag=!1;function enable_legacy_mode_flag(){legacy_mode_flag=!0}enable_legacy_mode_flag();var HYDRATION_ERROR={};var UNINITIALIZED=Symbol("uninitialized"),FILENAME=Symbol("filename"),HMR=Symbol("hmr"),NAMESPACE_HTML="http://www.w3.org/1999/xhtml";var _a2,_b2,node_env=(_b2=(_a2=globalThis.process)==null?void 0:_a2.env)==null?void 0:_b2.NODE_ENV,dev_fallback_default=node_env&&!node_env.toLowerCase().startsWith("prod");var is_array=Array.isArray,index_of=Array.prototype.indexOf,includes=Array.prototype.includes,array_from=Array.from,object_keys=Object.keys,define_property=Object.defineProperty,get_descriptor=Object.getOwnPropertyDescriptor,get_descriptors=Object.getOwnPropertyDescriptors,object_prototype=Object.prototype,array_prototype=Array.prototype,get_prototype_of=Object.getPrototypeOf,is_extensible=Object.isExtensible;var noop=()=>{};function run(fn){return fn()}function run_all(arr){for(var i=0;i<arr.length;i++)arr[i]()}function deferred(){var resolve,reject,promise2=new Promise((res,rej)=>{resolve=res,reject=rej});return{promise:promise2,resolve,reject}}var STATE_SYMBOL=Symbol("$state"),LEGACY_PROPS=Symbol("legacy props"),LOADING_ATTR_SYMBOL=Symbol(""),PROXY_PATH_SYMBOL=Symbol("proxy path"),ATTRIBUTES_CACHE=Symbol("attributes"),CLASS_CACHE=Symbol("class"),STYLE_CACHE=Symbol("style"),TEXT_CACHE=Symbol("text"),FORM_RESET_HANDLER=Symbol("form reset"),HMR_ANCHOR=Symbol("hmr anchor"),STALE_REACTION=new class extends Error{constructor(){super(...arguments);__publicField(this,"name","StaleReactionError");__publicField(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},_a3,IS_XHTML=!!((_a3=globalThis.document)!=null&&_a3.contentType)&&globalThis.document.contentType.includes("xml");var TEXT_NODE=3,COMMENT_NODE=8;function invariant_violation(message){if(dev_fallback_default){let error51=new Error(`invariant_violation
An invariant violation occurred, meaning Svelte's internal assumptions were flawed. This is a bug in Svelte, not your app \u2014 please open an issue at https://github.com/sveltejs/svelte, citing the following message: "${message}"
https://svelte.dev/e/invariant_violation`);throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/invariant_violation")}function derived_references_self(){if(dev_fallback_default){let error51=new Error(`derived_references_self
A derived value cannot reference itself recursively
https://svelte.dev/e/derived_references_self`);throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/derived_references_self")}function effect_in_teardown(rune){if(dev_fallback_default){let error51=new Error(`effect_in_teardown
\`${rune}\` cannot be used inside an effect cleanup function
https://svelte.dev/e/effect_in_teardown`);throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/effect_in_teardown")}function effect_in_unowned_derived(){if(dev_fallback_default){let error51=new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function effect_orphan(rune){if(dev_fallback_default){let error51=new Error(`effect_orphan
\`${rune}\` can only be used inside an effect (e.g. during component initialisation)
https://svelte.dev/e/effect_orphan`);throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/effect_orphan")}function effect_update_depth_exceeded(){if(dev_fallback_default){let error51=new Error(`effect_update_depth_exceeded
Maximum update depth exceeded. This typically indicates that an effect reads and writes the same piece of state
https://svelte.dev/e/effect_update_depth_exceeded`);throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function hydration_failed(){if(dev_fallback_default){let error51=new Error(`hydration_failed
Failed to hydrate the application
https://svelte.dev/e/hydration_failed`);throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/hydration_failed")}function props_invalid_value(key2){if(dev_fallback_default){let error51=new Error(`props_invalid_value
Cannot do \`bind:${key2}={undefined}\` when \`${key2}\` has a fallback value
https://svelte.dev/e/props_invalid_value`);throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/props_invalid_value")}function rune_outside_svelte(rune){if(dev_fallback_default){let error51=new Error(`rune_outside_svelte
The \`${rune}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
https://svelte.dev/e/rune_outside_svelte`);throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/rune_outside_svelte")}function state_descriptors_fixed(){if(dev_fallback_default){let error51=new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function state_prototype_fixed(){if(dev_fallback_default){let error51=new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/state_prototype_fixed")}function state_unsafe_mutation(){if(dev_fallback_default){let error51=new Error("state_unsafe_mutation\nUpdating state inside `$derived(...)`, `$inspect(...)` or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function svelte_boundary_reset_onerror(){if(dev_fallback_default){let error51=new Error("svelte_boundary_reset_onerror\nA `<svelte:boundary>` `reset` function cannot be called while an error is still being handled\nhttps://svelte.dev/e/svelte_boundary_reset_onerror");throw error51.name="Svelte error",error51}else throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}var bold="font-weight: bold",normal="font-weight: normal";function await_reactivity_loss(name){dev_fallback_default?console.warn(`%c[svelte] await_reactivity_loss
%cDetected reactivity loss when reading \`${name}\`. This happens when state is read in an async function after an earlier \`await\`
https://svelte.dev/e/await_reactivity_loss`,bold,normal):console.warn("https://svelte.dev/e/await_reactivity_loss")}function derived_inert(){dev_fallback_default?console.warn(`%c[svelte] derived_inert
%cReading a derived belonging to a now-destroyed effect may result in stale values
https://svelte.dev/e/derived_inert`,bold,normal):console.warn("https://svelte.dev/e/derived_inert")}function hydration_mismatch(location){dev_fallback_default?console.warn(`%c[svelte] hydration_mismatch
%c${location?`Hydration failed because the initial UI does not match what was rendered on the server. The error occurred near ${location}`:"Hydration failed because the initial UI does not match what was rendered on the server"}
https://svelte.dev/e/hydration_mismatch`,bold,normal):console.warn("https://svelte.dev/e/hydration_mismatch")}function lifecycle_double_unmount(){dev_fallback_default?console.warn(`%c[svelte] lifecycle_double_unmount
%cTried to unmount a component that was not mounted
https://svelte.dev/e/lifecycle_double_unmount`,bold,normal):console.warn("https://svelte.dev/e/lifecycle_double_unmount")}function state_proxy_equality_mismatch(operator){dev_fallback_default?console.warn(`%c[svelte] state_proxy_equality_mismatch
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${operator}\` will produce unexpected results
https://svelte.dev/e/state_proxy_equality_mismatch`,bold,normal):console.warn("https://svelte.dev/e/state_proxy_equality_mismatch")}function state_proxy_unmount(){dev_fallback_default?console.warn(`%c[svelte] state_proxy_unmount
%cTried to unmount a state proxy, rather than a component
https://svelte.dev/e/state_proxy_unmount`,bold,normal):console.warn("https://svelte.dev/e/state_proxy_unmount")}function svelte_boundary_reset_noop(){dev_fallback_default?console.warn("%c[svelte] svelte_boundary_reset_noop\n%cA `<svelte:boundary>` `reset` function only resets the boundary the first time it is called\nhttps://svelte.dev/e/svelte_boundary_reset_noop",bold,normal):console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}var hydrating=!1;function set_hydrating(value){hydrating=value}var hydrate_node;function set_hydrate_node(node){if(node===null)throw hydration_mismatch(),HYDRATION_ERROR;return hydrate_node=node}function hydrate_next(){return set_hydrate_node(get_next_sibling(hydrate_node))}function reset(node){if(hydrating){if(get_next_sibling(hydrate_node)!==null)throw hydration_mismatch(),HYDRATION_ERROR;hydrate_node=node}}function next(count=1){if(hydrating){for(var i=count,node=hydrate_node;i--;)node=get_next_sibling(node);hydrate_node=node}}function skip_nodes(remove=!0){for(var depth=0,node=hydrate_node;;){if(node.nodeType===COMMENT_NODE){var data=node.data;if(data==="]"){if(depth===0)return node;depth-=1}else(data==="["||data==="[!"||data[0]==="["&&!isNaN(Number(data.slice(1))))&&(depth+=1)}var next2=get_next_sibling(node);remove&&node.remove(),node=next2}}function equals(value){return value===this.v}function safe_not_equal(a,b){return a!=a?b==b:a!==b||a!==null&&typeof a=="object"||typeof a=="function"}function safe_equals(value){return!safe_not_equal(value,this.v)}var tracing_expressions=null;function tag(source2,label){return source2.label=label,tag_proxy(source2.v,label),source2}function tag_proxy(value,label){var _a9;return(_a9=value==null?void 0:value[PROXY_PATH_SYMBOL])==null||_a9.call(value,label),value}function get_error(label){let error51=new Error,stack2=get_stack();return stack2.length===0?null:(stack2.unshift(`
`),define_property(error51,"stack",{value:stack2.join(`
`)}),define_property(error51,"name",{value:label}),error51)}function get_stack(){let limit=Error.stackTraceLimit;Error.stackTraceLimit=1/0;let stack2=new Error().stack;if(Error.stackTraceLimit=limit,!stack2)return[];let lines=stack2.split(`
`),new_lines=[];for(let i=0;i<lines.length;i++){let line=lines[i],posixified=line.replaceAll("\\","/");if(line.trim()!=="Error"){if(line.includes("validate_each_keys"))return[];posixified.includes("svelte/src/internal")||posixified.includes("node_modules/.vite")||new_lines.push(line)}}return new_lines}function invariant(condition,message){if(!dev_fallback_default)throw new Error("invariant(...) was not guarded by if (DEV)");condition||invariant_violation(message)}var component_context=null;function set_component_context(context){component_context=context}var dev_stack=null;function set_dev_stack(stack2){dev_stack=stack2}var dev_current_component_function=null;function set_dev_current_component_function(fn){dev_current_component_function=fn}function push(props,runes=!1,fn){component_context={p:component_context,i:!1,c:null,e:null,s:props,x:null,r:active_effect,l:legacy_mode_flag&&!runes?{s:null,u:null,$:[]}:null},dev_fallback_default&&(component_context.function=fn,dev_current_component_function=fn)}function pop(component2){var _a9;var context=component_context,effects=context.e;if(effects!==null){context.e=null;for(var fn of effects)create_user_effect(fn)}return component2!==void 0&&(context.x=component2),context.i=!0,component_context=context.p,dev_fallback_default&&(dev_current_component_function=(_a9=component_context==null?void 0:component_context.function)!=null?_a9:null),component2!=null?component2:{}}function is_runes(){return!legacy_mode_flag||component_context!==null&&component_context.l===null}var micro_tasks=[];function run_micro_tasks(){var tasks=micro_tasks;micro_tasks=[],run_all(tasks)}function queue_micro_task(fn){if(micro_tasks.length===0&&!is_flushing_sync){var tasks=micro_tasks;queueMicrotask(()=>{tasks===micro_tasks&&run_micro_tasks()})}micro_tasks.push(fn)}function flush_tasks(){for(;micro_tasks.length>0;)run_micro_tasks()}var adjustments=new WeakMap;function handle_error(error51){var effect3=active_effect;if(effect3===null)return active_reaction.f|=8388608,error51;if(dev_fallback_default&&error51 instanceof Error&&!adjustments.has(error51)&&adjustments.set(error51,get_adjustments(error51,effect3)),(effect3.f&32768)===0&&(effect3.f&4)===0)throw dev_fallback_default&&!effect3.parent&&error51 instanceof Error&&apply_adjustments(error51),error51;invoke_error_boundary(error51,effect3)}function invoke_error_boundary(error51,effect3){for(;effect3!==null;){if((effect3.f&128)!==0){if((effect3.f&32768)===0)throw error51;try{effect3.b.error(error51);return}catch(e){error51=e}}effect3=effect3.parent}throw dev_fallback_default&&error51 instanceof Error&&apply_adjustments(error51),error51}function get_adjustments(error51,effect3){var _a9,_b3,_c2;let message_descriptor=get_descriptor(error51,"message");if(!(message_descriptor&&!message_descriptor.configurable)){for(var indent=is_firefox?" ":" ",component_stack=`
${indent}in ${((_a9=effect3.fn)==null?void 0:_a9.name)||"<unknown>"}`,context=effect3.ctx;context!==null;)component_stack+=`
${indent}in ${(_b3=context.function)==null?void 0:_b3[FILENAME].split("/").pop()}`,context=context.p;return{message:error51.message+`
${component_stack}
`,stack:(_c2=error51.stack)==null?void 0:_c2.split(`
`).filter(line=>!line.includes("svelte/src/internal")).join(`
`)}}}function apply_adjustments(error51){let adjusted=adjustments.get(error51);adjusted&&(define_property(error51,"message",{value:adjusted.message}),define_property(error51,"stack",{value:adjusted.stack}))}var STATUS_MASK=-7169;function set_signal_status(signal,status){signal.f=signal.f&STATUS_MASK|status}function update_derived_status(derived2){(derived2.f&512)!==0||derived2.deps===null?set_signal_status(derived2,1024):set_signal_status(derived2,4096)}function clear_marked(deps){if(deps!==null)for(let dep of deps)(dep.f&2)===0||(dep.f&65536)===0||(dep.f^=65536,clear_marked(dep.deps))}function defer_effect(effect3,dirty_effects,maybe_dirty_effects){(effect3.f&2048)!==0?dirty_effects.add(effect3):(effect3.f&4096)!==0&&maybe_dirty_effects.add(effect3),clear_marked(effect3.deps),set_signal_status(effect3,1024)}var legacy_is_updating_store=!1,is_store_binding=!1,IS_UNMOUNTED=Symbol("unmounted");function capture_store_binding(fn){var previous_is_store_binding=is_store_binding;try{return is_store_binding=!1,[fn(),is_store_binding]}finally{is_store_binding=previous_is_store_binding}}var first_batch=null,last_batch=null,current_batch=null,previous_batch=null,batch_values=null,last_scheduled_effect=null,is_flushing_sync=!1,is_processing=!1,collected_effects=null,legacy_updates=null,flush_count=0,source_stacks=new Set,uid=1,_started,_prev,_next,_commit_callbacks,_discard_callbacks,_fork_commit_callbacks,_pending,_blocking_pending,_deferred,_roots,_new_effects,_dirty_effects,_maybe_dirty_effects,_skipped_branches,_unskipped_branches,_decrement_queued,_Batch_instances,is_deferred_fn,process_fn,traverse_fn,find_earlier_batch_fn,merge_fn,defer_effects_fn,commit_fn,link_fn,unlink_fn,_Batch=class _Batch{constructor(){__privateAdd(this,_Batch_instances);__publicField(this,"id",uid++);__privateAdd(this,_started,!1);__publicField(this,"linked",!0);__privateAdd(this,_prev,null);__privateAdd(this,_next,null);__publicField(this,"async_deriveds",new Map);__publicField(this,"current",new Map);__publicField(this,"previous",new Map);__publicField(this,"unblocked",new Set);__privateAdd(this,_commit_callbacks,new Set);__privateAdd(this,_discard_callbacks,new Set);__privateAdd(this,_fork_commit_callbacks,new Set);__privateAdd(this,_pending,0);__privateAdd(this,_blocking_pending,new Map);__privateAdd(this,_deferred,null);__privateAdd(this,_roots,[]);__privateAdd(this,_new_effects,[]);__privateAdd(this,_dirty_effects,new Set);__privateAdd(this,_maybe_dirty_effects,new Set);__privateAdd(this,_skipped_branches,new Map);__privateAdd(this,_unskipped_branches,new Set);__publicField(this,"is_fork",!1);__privateAdd(this,_decrement_queued,!1)}skip_effect(effect3){__privateGet(this,_skipped_branches).has(effect3)||__privateGet(this,_skipped_branches).set(effect3,{d:[],m:[]}),__privateGet(this,_unskipped_branches).delete(effect3)}unskip_effect(effect3,callback=e=>this.schedule(e)){var tracked=__privateGet(this,_skipped_branches).get(effect3);if(tracked){__privateGet(this,_skipped_branches).delete(effect3);for(var e of tracked.d)set_signal_status(e,2048),callback(e);for(e of tracked.m)set_signal_status(e,4096),callback(e)}__privateGet(this,_unskipped_branches).add(effect3)}capture(source2,value,is_derived=!1){source2.v!==UNINITIALIZED&&!this.previous.has(source2)&&this.previous.set(source2,source2.v),(source2.f&8388608)===0&&(this.current.set(source2,[value,is_derived]),batch_values==null||batch_values.set(source2,value)),this.is_fork||(source2.v=value)}activate(){current_batch=this}deactivate(){current_batch=null,batch_values=null}flush(){try{dev_fallback_default&&source_stacks.clear(),is_processing=!0,current_batch=this,__privateMethod(this,_Batch_instances,process_fn).call(this)}finally{if(flush_count=0,last_scheduled_effect=null,collected_effects=null,legacy_updates=null,is_processing=!1,current_batch=null,batch_values=null,old_values.clear(),dev_fallback_default)for(let source2 of source_stacks)source2.updated=null}}discard(){for(let fn of __privateGet(this,_discard_callbacks))fn(this);__privateGet(this,_discard_callbacks).clear(),__privateGet(this,_fork_commit_callbacks).clear(),__privateMethod(this,_Batch_instances,unlink_fn).call(this)}register_created_effect(effect3){__privateGet(this,_new_effects).push(effect3)}increment(blocking,effect3){var _a9;if(__privateSet(this,_pending,__privateGet(this,_pending)+1),blocking){let blocking_pending_count=(_a9=__privateGet(this,_blocking_pending).get(effect3))!=null?_a9:0;__privateGet(this,_blocking_pending).set(effect3,blocking_pending_count+1)}}decrement(blocking,effect3){var _a9;if(__privateSet(this,_pending,__privateGet(this,_pending)-1),blocking){let blocking_pending_count=(_a9=__privateGet(this,_blocking_pending).get(effect3))!=null?_a9:0;blocking_pending_count===1?__privateGet(this,_blocking_pending).delete(effect3):__privateGet(this,_blocking_pending).set(effect3,blocking_pending_count-1)}__privateGet(this,_decrement_queued)||(__privateSet(this,_decrement_queued,!0),queue_micro_task(()=>{__privateSet(this,_decrement_queued,!1),this.linked&&this.flush()}))}transfer_effects(dirty_effects,maybe_dirty_effects){for(let e of dirty_effects)__privateGet(this,_dirty_effects).add(e);for(let e of maybe_dirty_effects)__privateGet(this,_maybe_dirty_effects).add(e);dirty_effects.clear(),maybe_dirty_effects.clear()}oncommit(fn){__privateGet(this,_commit_callbacks).add(fn)}ondiscard(fn){__privateGet(this,_discard_callbacks).add(fn)}on_fork_commit(fn){__privateGet(this,_fork_commit_callbacks).add(fn)}run_fork_commit_callbacks(){for(let fn of __privateGet(this,_fork_commit_callbacks))fn(this);__privateGet(this,_fork_commit_callbacks).clear()}settled(){var _a9;return((_a9=__privateGet(this,_deferred))!=null?_a9:__privateSet(this,_deferred,deferred())).promise}static ensure(){var _a9;if(current_batch===null){let batch=current_batch=new _Batch;__privateMethod(_a9=batch,_Batch_instances,link_fn).call(_a9),!is_processing&&!is_flushing_sync&&queue_micro_task(()=>{__privateGet(batch,_started)||batch.flush()})}return current_batch}apply(){if(!async_mode_flag||!this.is_fork&&__privateGet(this,_prev)===null&&__privateGet(this,_next)===null){batch_values=null;return}batch_values=new Map;for(let[source2,[value]]of this.current)batch_values.set(source2,value);for(let batch=first_batch;batch!==null;batch=__privateGet(batch,_next))if(!(batch===this||batch.is_fork)){var intersects=!1;if(batch.id<this.id){for(let[source2,[,is_derived]]of batch.current)if(!is_derived&&this.current.has(source2)){intersects=!0;break}}if(!intersects)for(let[source2,previous]of batch.previous)batch_values.has(source2)||batch_values.set(source2,previous)}}schedule(effect3){var _a9;if(last_scheduled_effect=effect3,(_a9=effect3.b)!=null&&_a9.is_pending&&(effect3.f&16777228)!==0&&(effect3.f&32768)===0){effect3.b.defer_effect(effect3);return}for(var e=effect3;e.parent!==null;){e=e.parent;var flags2=e.f;if(collected_effects!==null&&e===active_effect&&(async_mode_flag||(active_reaction===null||(active_reaction.f&2)===0)&&!legacy_is_updating_store))return;if((flags2&96)!==0){if((flags2&1024)===0)return;e.f^=1024}}__privateGet(this,_roots).push(e)}};_started=new WeakMap,_prev=new WeakMap,_next=new WeakMap,_commit_callbacks=new WeakMap,_discard_callbacks=new WeakMap,_fork_commit_callbacks=new WeakMap,_pending=new WeakMap,_blocking_pending=new WeakMap,_deferred=new WeakMap,_roots=new WeakMap,_new_effects=new WeakMap,_dirty_effects=new WeakMap,_maybe_dirty_effects=new WeakMap,_skipped_branches=new WeakMap,_unskipped_branches=new WeakMap,_decrement_queued=new WeakMap,_Batch_instances=new WeakSet,is_deferred_fn=function(){if(this.is_fork)return!0;for(let effect3 of __privateGet(this,_blocking_pending).keys()){for(var e=effect3,skipped=!1;e.parent!==null;){if(__privateGet(this,_skipped_branches).has(e)){skipped=!0;break}e=e.parent}if(!skipped)return!0}return!1},process_fn=function(){var _a9,_b3,_c2,_d;if(__privateSet(this,_started,!0),flush_count++>1e3&&(__privateMethod(this,_Batch_instances,unlink_fn).call(this),infinite_loop_guard()),dev_fallback_default)for(let value of this.current.keys())source_stacks.add(value);if(!__privateMethod(this,_Batch_instances,is_deferred_fn).call(this)){for(let e of __privateGet(this,_dirty_effects))__privateGet(this,_maybe_dirty_effects).delete(e),set_signal_status(e,2048),this.schedule(e);for(let e of __privateGet(this,_maybe_dirty_effects))set_signal_status(e,4096),this.schedule(e)}let roots=__privateGet(this,_roots);__privateSet(this,_roots,[]),this.apply();var effects=collected_effects=[],render_effects=[],updates=legacy_updates=[];for(let root2 of roots)try{__privateMethod(this,_Batch_instances,traverse_fn).call(this,root2,effects,render_effects)}catch(e){throw reset_all(root2),e}if(current_batch=null,updates.length>0){var batch=_Batch.ensure();for(let e of updates)batch.schedule(e)}if(collected_effects=null,legacy_updates=null,__privateMethod(this,_Batch_instances,is_deferred_fn).call(this)){__privateMethod(this,_Batch_instances,defer_effects_fn).call(this,render_effects),__privateMethod(this,_Batch_instances,defer_effects_fn).call(this,effects);for(let[e,t]of __privateGet(this,_skipped_branches))reset_branch(e,t);updates.length>0&&__privateMethod(_a9=current_batch,_Batch_instances,process_fn).call(_a9);return}let earlier_batch=__privateMethod(this,_Batch_instances,find_earlier_batch_fn).call(this);if(earlier_batch){__privateMethod(_b3=earlier_batch,_Batch_instances,merge_fn).call(_b3,this);return}__privateGet(this,_dirty_effects).clear(),__privateGet(this,_maybe_dirty_effects).clear();for(let fn of __privateGet(this,_commit_callbacks))fn(this);__privateGet(this,_commit_callbacks).clear(),previous_batch=this,flush_queued_effects(render_effects),flush_queued_effects(effects),previous_batch=null,(_c2=__privateGet(this,_deferred))==null||_c2.resolve();var next_batch=current_batch;if(this.linked&&__privateGet(this,_pending)===0&&__privateMethod(this,_Batch_instances,unlink_fn).call(this),async_mode_flag&&!this.linked&&(__privateMethod(this,_Batch_instances,commit_fn).call(this),current_batch=next_batch),__privateGet(this,_roots).length>0){next_batch===null&&(next_batch=this,__privateMethod(this,_Batch_instances,link_fn).call(this));let batch2=next_batch;__privateGet(batch2,_roots).push(...__privateGet(this,_roots).filter(r=>!__privateGet(batch2,_roots).includes(r)))}next_batch!==null&&__privateMethod(_d=next_batch,_Batch_instances,process_fn).call(_d)},traverse_fn=function(root2,effects,render_effects){root2.f^=1024;for(var effect3=root2.first;effect3!==null;){var flags2=effect3.f,is_branch=(flags2&96)!==0,is_skippable_branch=is_branch&&(flags2&1024)!==0,skip=is_skippable_branch||(flags2&8192)!==0||__privateGet(this,_skipped_branches).has(effect3);if(!skip&&effect3.fn!==null){is_branch?effect3.f^=1024:(flags2&4)!==0?effects.push(effect3):async_mode_flag&&(flags2&16777224)!==0?render_effects.push(effect3):is_dirty(effect3)&&((flags2&16)!==0&&__privateGet(this,_maybe_dirty_effects).add(effect3),update_effect(effect3));var child2=effect3.first;if(child2!==null){effect3=child2;continue}}for(;effect3!==null;){var next2=effect3.next;if(next2!==null){effect3=next2;break}effect3=effect3.parent}}},find_earlier_batch_fn=function(){for(var batch=__privateGet(this,_prev);batch!==null;){if(!batch.is_fork){for(let[value,[,is_derived]]of this.current)if(batch.current.has(value)&&!is_derived)return batch}batch=__privateGet(batch,_prev)}return null},merge_fn=function(batch){var _a9;for(let[source2,value]of batch.current)!this.previous.has(source2)&&batch.previous.has(source2)&&this.previous.set(source2,batch.previous.get(source2)),this.current.set(source2,value);for(let[effect3,deferred2]of batch.async_deriveds){let d=this.async_deriveds.get(effect3);d&&deferred2.promise.then(d.resolve)}let mark=value=>{var reactions=value.reactions;if(reactions!==null)for(let reaction of reactions){var flags2=reaction.f;if((flags2&2)!==0)mark(reaction);else{var effect3=reaction;flags2&4194320&&!this.async_deriveds.has(effect3)&&(__privateGet(this,_maybe_dirty_effects).delete(effect3),set_signal_status(effect3,2048),this.schedule(effect3))}}};for(let source2 of this.current.keys())mark(source2);this.oncommit(()=>batch.discard()),__privateMethod(_a9=batch,_Batch_instances,unlink_fn).call(_a9),current_batch=this,__privateMethod(this,_Batch_instances,process_fn).call(this)},defer_effects_fn=function(effects){for(var i=0;i<effects.length;i+=1)defer_effect(effects[i],__privateGet(this,_dirty_effects),__privateGet(this,_maybe_dirty_effects))},commit_fn=function(){var _a9;__privateMethod(this,_Batch_instances,unlink_fn).call(this);for(let batch=first_batch;batch!==null;batch=__privateGet(batch,_next)){var is_earlier=batch.id<this.id,sources=[];for(let[source3,[value,is_derived]]of this.current){if(batch.current.has(source3)){var batch_value=batch.current.get(source3)[0];if(is_earlier&&value!==batch_value)batch.current.set(source3,[value,is_derived]);else continue}sources.push(source3)}if(is_earlier)for(let[effect3,deferred2]of this.async_deriveds){let d=batch.async_deriveds.get(effect3);d&&deferred2.promise.then(d.resolve)}if(__privateGet(batch,_started)){var others=[...batch.current.keys()].filter(s=>!this.current.has(s));if(others.length===0)is_earlier&&batch.discard();else if(sources.length>0){if(dev_fallback_default&&!__privateGet(batch,_decrement_queued)&&invariant(__privateGet(batch,_roots).length===0,"Batch has scheduled roots"),is_earlier)for(let unskipped of __privateGet(this,_unskipped_branches))batch.unskip_effect(unskipped,e=>{var _a10;(e.f&4194320)!==0?batch.schedule(e):__privateMethod(_a10=batch,_Batch_instances,defer_effects_fn).call(_a10,[e])});batch.activate();var marked=new Set,checked=new Map;for(var source2 of sources)mark_effects(source2,others,marked,checked);checked=new Map;var current_unequal=[...batch.current.keys()].filter(c2=>this.current.has(c2)?this.current.get(c2)[0]!==c2.v:!0);if(current_unequal.length>0)for(let effect3 of __privateGet(this,_new_effects))(effect3.f&155648)===0&&depends_on(effect3,current_unequal,checked)&&((effect3.f&4194320)!==0?(set_signal_status(effect3,2048),batch.schedule(effect3)):__privateGet(batch,_dirty_effects).add(effect3));if(__privateGet(batch,_roots).length>0&&!__privateGet(batch,_decrement_queued)){batch.apply();for(var root2 of __privateGet(batch,_roots))__privateMethod(_a9=batch,_Batch_instances,traverse_fn).call(_a9,root2,[],[]);__privateSet(batch,_roots,[])}batch.deactivate()}}}},link_fn=function(){last_batch===null?first_batch=last_batch=this:(__privateSet(last_batch,_next,this),__privateSet(this,_prev,last_batch)),last_batch=this},unlink_fn=function(){var prev=__privateGet(this,_prev),next2=__privateGet(this,_next);prev===null?first_batch=next2:__privateSet(prev,_next,next2),next2===null?last_batch=prev:__privateSet(next2,_prev,prev),this.linked=!1};var Batch=_Batch;function flushSync(fn){var was_flushing_sync=is_flushing_sync;is_flushing_sync=!0;try{var result;for(fn&&(current_batch!==null&&!current_batch.is_fork&&current_batch.flush(),result=fn());;){if(flush_tasks(),current_batch===null)return result;current_batch.flush()}}finally{is_flushing_sync=was_flushing_sync}}function infinite_loop_guard(){var _a9;if(dev_fallback_default){var updates=new Map;for(let source2 of current_batch.current.keys())for(let[stack2,update2]of(_a9=source2.updated)!=null?_a9:[]){var entry=updates.get(stack2);entry||(entry={error:update2.error,count:0},updates.set(stack2,entry)),entry.count+=update2.count}for(let update2 of updates.values())update2.error&&console.error(update2.error)}try{effect_update_depth_exceeded()}catch(error51){dev_fallback_default&&define_property(error51,"stack",{value:""}),invoke_error_boundary(error51,last_scheduled_effect)}}var eager_block_effects=null;function flush_queued_effects(effects){var length=effects.length;if(length!==0){for(var i=0;i<length;){var effect3=effects[i++];if((effect3.f&24576)===0&&is_dirty(effect3)&&(eager_block_effects=new Set,update_effect(effect3),effect3.deps===null&&effect3.first===null&&effect3.nodes===null&&effect3.teardown===null&&effect3.ac===null&&unlink_effect(effect3),(eager_block_effects==null?void 0:eager_block_effects.size)>0)){old_values.clear();for(let e of eager_block_effects){if((e.f&24576)!==0)continue;let ordered_effects=[e],ancestor=e.parent;for(;ancestor!==null;)eager_block_effects.has(ancestor)&&(eager_block_effects.delete(ancestor),ordered_effects.push(ancestor)),ancestor=ancestor.parent;for(let j=ordered_effects.length-1;j>=0;j--){let e2=ordered_effects[j];(e2.f&24576)===0&&update_effect(e2)}}eager_block_effects.clear()}}eager_block_effects=null}}function mark_effects(value,sources,marked,checked){if(!marked.has(value)&&(marked.add(value),value.reactions!==null))for(let reaction of value.reactions){let flags2=reaction.f;(flags2&2)!==0?mark_effects(reaction,sources,marked,checked):(flags2&4194320)!==0&&(flags2&2048)===0&&depends_on(reaction,sources,checked)&&(set_signal_status(reaction,2048),schedule_effect(reaction))}}function depends_on(reaction,sources,checked){let depends=checked.get(reaction);if(depends!==void 0)return depends;if(reaction.deps!==null)for(let dep of reaction.deps){if(includes.call(sources,dep))return!0;if((dep.f&2)!==0&&depends_on(dep,sources,checked))return checked.set(dep,!0),!0}return checked.set(reaction,!1),!1}function schedule_effect(effect3){current_batch.schedule(effect3)}function reset_branch(effect3,tracked){if(!((effect3.f&32)!==0&&(effect3.f&1024)!==0)){(effect3.f&2048)!==0?tracked.d.push(effect3):(effect3.f&4096)!==0&&tracked.m.push(effect3),set_signal_status(effect3,1024);for(var e=effect3.first;e!==null;)reset_branch(e,tracked),e=e.next}}function reset_all(effect3){set_signal_status(effect3,1024);for(var e=effect3.first;e!==null;)reset_all(e),e=e.next}function createSubscriber(start){let subscribers=0,version2=source(0),stop;return dev_fallback_default&&tag(version2,"createSubscriber version"),()=>{effect_tracking()&&(get2(version2),render_effect(()=>(subscribers===0&&(stop=untrack(()=>start(()=>increment(version2)))),subscribers+=1,()=>{queue_micro_task(()=>{subscribers-=1,subscribers===0&&(stop==null||stop(),stop=void 0,increment(version2))})})))}}var flags=589824;function boundary(node,props,children,transform_error){new Boundary(node,props,children,transform_error)}var _anchor,_hydrate_open,_props,_children,_effect,_main_effect,_pending_effect,_failed_effect,_offscreen_fragment,_local_pending_count,_pending_count,_pending_count_update_queued,_dirty_effects2,_maybe_dirty_effects2,_effect_pending,_effect_pending_subscriber,_Boundary_instances,hydrate_resolved_content_fn,hydrate_failed_content_fn,hydrate_pending_content_fn,render_fn,resolve_fn,run_fn,update_pending_count_fn,handle_error_fn,Boundary=class{constructor(node,props,children,transform_error){__privateAdd(this,_Boundary_instances);__publicField(this,"parent");__publicField(this,"is_pending",!1);__publicField(this,"transform_error");__privateAdd(this,_anchor);__privateAdd(this,_hydrate_open,hydrating?hydrate_node:null);__privateAdd(this,_props);__privateAdd(this,_children);__privateAdd(this,_effect);__privateAdd(this,_main_effect,null);__privateAdd(this,_pending_effect,null);__privateAdd(this,_failed_effect,null);__privateAdd(this,_offscreen_fragment,null);__privateAdd(this,_local_pending_count,0);__privateAdd(this,_pending_count,0);__privateAdd(this,_pending_count_update_queued,!1);__privateAdd(this,_dirty_effects2,new Set);__privateAdd(this,_maybe_dirty_effects2,new Set);__privateAdd(this,_effect_pending,null);__privateAdd(this,_effect_pending_subscriber,createSubscriber(()=>(__privateSet(this,_effect_pending,source(__privateGet(this,_local_pending_count))),dev_fallback_default&&tag(__privateGet(this,_effect_pending),"$effect.pending()"),()=>{__privateSet(this,_effect_pending,null)})));var _a9,_b3;__privateSet(this,_anchor,node),__privateSet(this,_props,props),__privateSet(this,_children,anchor=>{var effect3=active_effect;effect3.b=this,effect3.f|=128,children(anchor)}),this.parent=active_effect.b,this.transform_error=(_b3=transform_error!=null?transform_error:(_a9=this.parent)==null?void 0:_a9.transform_error)!=null?_b3:(e=>e),__privateSet(this,_effect,block(()=>{if(hydrating){let comment2=__privateGet(this,_hydrate_open);hydrate_next();let server_rendered_pending=comment2.data==="[!";if(comment2.data.startsWith("[?")){let serialized_error=JSON.parse(comment2.data.slice("[?".length));__privateMethod(this,_Boundary_instances,hydrate_failed_content_fn).call(this,serialized_error)}else server_rendered_pending?__privateMethod(this,_Boundary_instances,hydrate_pending_content_fn).call(this):__privateMethod(this,_Boundary_instances,hydrate_resolved_content_fn).call(this)}else __privateMethod(this,_Boundary_instances,render_fn).call(this)},flags)),hydrating&&__privateSet(this,_anchor,hydrate_node)}defer_effect(effect3){defer_effect(effect3,__privateGet(this,_dirty_effects2),__privateGet(this,_maybe_dirty_effects2))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!__privateGet(this,_props).pending}update_pending_count(d,batch){__privateMethod(this,_Boundary_instances,update_pending_count_fn).call(this,d,batch),__privateSet(this,_local_pending_count,__privateGet(this,_local_pending_count)+d),!(!__privateGet(this,_effect_pending)||__privateGet(this,_pending_count_update_queued))&&(__privateSet(this,_pending_count_update_queued,!0),queue_micro_task(()=>{__privateSet(this,_pending_count_update_queued,!1),__privateGet(this,_effect_pending)&&internal_set(__privateGet(this,_effect_pending),__privateGet(this,_local_pending_count))}))}get_effect_pending(){return __privateGet(this,_effect_pending_subscriber).call(this),get2(__privateGet(this,_effect_pending))}error(error51){var _a9;if(!__privateGet(this,_props).onerror&&!__privateGet(this,_props).failed)throw error51;(_a9=current_batch)!=null&&_a9.is_fork?(__privateGet(this,_main_effect)&&current_batch.skip_effect(__privateGet(this,_main_effect)),__privateGet(this,_pending_effect)&&current_batch.skip_effect(__privateGet(this,_pending_effect)),__privateGet(this,_failed_effect)&&current_batch.skip_effect(__privateGet(this,_failed_effect)),current_batch.on_fork_commit(()=>{__privateMethod(this,_Boundary_instances,handle_error_fn).call(this,error51)})):__privateMethod(this,_Boundary_instances,handle_error_fn).call(this,error51)}};_anchor=new WeakMap,_hydrate_open=new WeakMap,_props=new WeakMap,_children=new WeakMap,_effect=new WeakMap,_main_effect=new WeakMap,_pending_effect=new WeakMap,_failed_effect=new WeakMap,_offscreen_fragment=new WeakMap,_local_pending_count=new WeakMap,_pending_count=new WeakMap,_pending_count_update_queued=new WeakMap,_dirty_effects2=new WeakMap,_maybe_dirty_effects2=new WeakMap,_effect_pending=new WeakMap,_effect_pending_subscriber=new WeakMap,_Boundary_instances=new WeakSet,hydrate_resolved_content_fn=function(){try{__privateSet(this,_main_effect,branch(()=>__privateGet(this,_children).call(this,__privateGet(this,_anchor))))}catch(error51){this.error(error51)}},hydrate_failed_content_fn=function(error51){let failed=__privateGet(this,_props).failed;failed&&__privateSet(this,_failed_effect,branch(()=>{failed(__privateGet(this,_anchor),()=>error51,()=>()=>{})}))},hydrate_pending_content_fn=function(){let pending2=__privateGet(this,_props).pending;pending2&&(this.is_pending=!0,__privateSet(this,_pending_effect,branch(()=>pending2(__privateGet(this,_anchor)))),queue_micro_task(()=>{var fragment=__privateSet(this,_offscreen_fragment,document.createDocumentFragment()),anchor=create_text();fragment.append(anchor),__privateSet(this,_main_effect,__privateMethod(this,_Boundary_instances,run_fn).call(this,()=>branch(()=>__privateGet(this,_children).call(this,anchor)))),__privateGet(this,_pending_count)===0&&(__privateGet(this,_anchor).before(fragment),__privateSet(this,_offscreen_fragment,null),pause_effect(__privateGet(this,_pending_effect),()=>{__privateSet(this,_pending_effect,null)}),__privateMethod(this,_Boundary_instances,resolve_fn).call(this,current_batch))}))},render_fn=function(){try{if(this.is_pending=this.has_pending_snippet(),__privateSet(this,_pending_count,0),__privateSet(this,_local_pending_count,0),__privateSet(this,_main_effect,branch(()=>{__privateGet(this,_children).call(this,__privateGet(this,_anchor))})),__privateGet(this,_pending_count)>0){var fragment=__privateSet(this,_offscreen_fragment,document.createDocumentFragment());move_effect(__privateGet(this,_main_effect),fragment);let pending2=__privateGet(this,_props).pending;__privateSet(this,_pending_effect,branch(()=>pending2(__privateGet(this,_anchor))))}else __privateMethod(this,_Boundary_instances,resolve_fn).call(this,current_batch)}catch(error51){this.error(error51)}},resolve_fn=function(batch){this.is_pending=!1,batch.transfer_effects(__privateGet(this,_dirty_effects2),__privateGet(this,_maybe_dirty_effects2))},run_fn=function(fn){var previous_effect=active_effect,previous_reaction=active_reaction,previous_ctx=component_context;set_active_effect(__privateGet(this,_effect)),set_active_reaction(__privateGet(this,_effect)),set_component_context(__privateGet(this,_effect).ctx);try{return Batch.ensure(),fn()}catch(e){return handle_error(e),null}finally{set_active_effect(previous_effect),set_active_reaction(previous_reaction),set_component_context(previous_ctx)}},update_pending_count_fn=function(d,batch){var _a9;if(!this.has_pending_snippet()){this.parent&&__privateMethod(_a9=this.parent,_Boundary_instances,update_pending_count_fn).call(_a9,d,batch);return}__privateSet(this,_pending_count,__privateGet(this,_pending_count)+d),__privateGet(this,_pending_count)===0&&(__privateMethod(this,_Boundary_instances,resolve_fn).call(this,batch),__privateGet(this,_pending_effect)&&pause_effect(__privateGet(this,_pending_effect),()=>{__privateSet(this,_pending_effect,null)}),__privateGet(this,_offscreen_fragment)&&(__privateGet(this,_anchor).before(__privateGet(this,_offscreen_fragment)),__privateSet(this,_offscreen_fragment,null)))},handle_error_fn=function(error51){__privateGet(this,_main_effect)&&(destroy_effect(__privateGet(this,_main_effect)),__privateSet(this,_main_effect,null)),__privateGet(this,_pending_effect)&&(destroy_effect(__privateGet(this,_pending_effect)),__privateSet(this,_pending_effect,null)),__privateGet(this,_failed_effect)&&(destroy_effect(__privateGet(this,_failed_effect)),__privateSet(this,_failed_effect,null)),hydrating&&(set_hydrate_node(__privateGet(this,_hydrate_open)),next(),set_hydrate_node(skip_nodes()));var onerror=__privateGet(this,_props).onerror;let failed=__privateGet(this,_props).failed;var did_reset=!1,calling_on_error=!1;let reset2=()=>{if(did_reset){svelte_boundary_reset_noop();return}did_reset=!0,calling_on_error&&svelte_boundary_reset_onerror(),__privateGet(this,_failed_effect)!==null&&pause_effect(__privateGet(this,_failed_effect),()=>{__privateSet(this,_failed_effect,null)}),__privateMethod(this,_Boundary_instances,run_fn).call(this,()=>{__privateMethod(this,_Boundary_instances,render_fn).call(this)})},handle_error_result=transformed_error=>{try{calling_on_error=!0,onerror==null||onerror(transformed_error,reset2),calling_on_error=!1}catch(error52){invoke_error_boundary(error52,__privateGet(this,_effect)&&__privateGet(this,_effect).parent)}failed&&__privateSet(this,_failed_effect,__privateMethod(this,_Boundary_instances,run_fn).call(this,()=>{try{return branch(()=>{var effect3=active_effect;effect3.b=this,effect3.f|=128,failed(__privateGet(this,_anchor),()=>transformed_error,()=>reset2)})}catch(error52){return invoke_error_boundary(error52,__privateGet(this,_effect).parent),null}}))};queue_micro_task(()=>{var result;try{result=this.transform_error(error51)}catch(e){invoke_error_boundary(e,__privateGet(this,_effect)&&__privateGet(this,_effect).parent);return}result!==null&&typeof result=="object"&&typeof result.then=="function"?result.then(handle_error_result,e=>invoke_error_boundary(e,__privateGet(this,_effect)&&__privateGet(this,_effect).parent)):handle_error_result(result)})};var reactivity_loss_tracker=null;var recent_async_deriveds=new Set;function derived(fn){var flags2=2050;active_effect!==null&&(active_effect.f|=524288);let signal={ctx:component_context,deps:null,effects:null,equals,f:flags2,fn,reactions:null,rv:0,v:UNINITIALIZED,wv:0,parent:active_effect,ac:null};return dev_fallback_default&&tracing_mode_flag&&(signal.created=get_error("created at")),signal}var OBSOLETE=Symbol("obsolete");function derived_safe_equal(fn){let signal=derived(fn);return signal.equals=safe_equals,signal}function destroy_derived_effects(derived2){var effects=derived2.effects;if(effects!==null){derived2.effects=null;for(var i=0;i<effects.length;i+=1)destroy_effect(effects[i])}}var stack=[];function execute_derived(derived2){var value,prev_active_effect=active_effect,parent=derived2.parent;if(!is_destroying_effect&&parent!==null&&derived2.v!==UNINITIALIZED&&(parent.f&24576)!==0)return derived_inert(),derived2.v;if(set_active_effect(parent),dev_fallback_default){let prev_eager_effects=eager_effects;set_eager_effects(new Set);try{includes.call(stack,derived2)&&derived_references_self(),stack.push(derived2),derived2.f&=-65537,destroy_derived_effects(derived2),value=update_reaction(derived2)}finally{set_active_effect(prev_active_effect),set_eager_effects(prev_eager_effects),stack.pop()}}else try{derived2.f&=-65537,destroy_derived_effects(derived2),value=update_reaction(derived2)}finally{set_active_effect(prev_active_effect)}return value}function update_derived(derived2){var _a9,_b3,_c2;var value=execute_derived(derived2);if(!derived2.equals(value)&&(derived2.wv=increment_write_version(),(!((_a9=current_batch)!=null&&_a9.is_fork)||derived2.deps===null)&&(current_batch!==null?(current_batch.capture(derived2,value,!0),(_b3=previous_batch)==null||_b3.capture(derived2,value,!0)):derived2.v=value,derived2.deps===null))){set_signal_status(derived2,1024);return}is_destroying_effect||(batch_values!==null?(effect_tracking()||(_c2=current_batch)!=null&&_c2.is_fork)&&batch_values.set(derived2,value):update_derived_status(derived2))}function freeze_derived_effects(derived2){var _a9,_b3;if(derived2.effects!==null)for(let e of derived2.effects)(e.teardown||e.ac)&&((_a9=e.teardown)==null||_a9.call(e),(_b3=e.ac)==null||_b3.abort(STALE_REACTION),e.fn!==null&&(e.teardown=noop),e.ac=null,remove_reactions(e,0),destroy_effect_children(e))}function unfreeze_derived_effects(derived2){if(derived2.effects!==null)for(let e of derived2.effects)e.teardown&&e.fn!==null&&update_effect(e)}var eager_effects=new Set,old_values=new Map;function set_eager_effects(v){eager_effects=v}var eager_effects_deferred=!1;function set_eager_effects_deferred(){eager_effects_deferred=!0}function source(v,stack2){var signal={f:0,v,reactions:null,equals,rv:0,wv:0};return dev_fallback_default&&tracing_mode_flag&&(signal.created=stack2!=null?stack2:get_error("created at"),signal.updated=null,signal.set_during_effect=!1,signal.trace=null),signal}function state(v,stack2){let s=source(v,stack2);return push_reaction_value(s),s}function mutable_source(initial_value,immutable=!1,trackable=!0){var _a9,_b3;let s=source(initial_value);return immutable||(s.equals=safe_equals),legacy_mode_flag&&trackable&&component_context!==null&&component_context.l!==null&&((_b3=(_a9=component_context.l).s)!=null?_b3:_a9.s=[]).push(s),s}function set(source2,value,should_proxy=!1){active_reaction!==null&&(!untracking||(active_reaction.f&131072)!==0)&&is_runes()&&(active_reaction.f&4325394)!==0&&(current_sources===null||!includes.call(current_sources,source2))&&state_unsafe_mutation();let new_value=should_proxy?proxy(value):value;return dev_fallback_default&&tag_proxy(new_value,source2.label),internal_set(source2,new_value,legacy_updates)}function internal_set(source2,value,updated_during_traversal=null){var _a9,_b3,_c2;if(!source2.equals(value)){old_values.set(source2,is_destroying_effect?value:source2.v);var batch=Batch.ensure();if(batch.capture(source2,value),dev_fallback_default){if(tracing_mode_flag||active_effect!==null){(_a9=source2.updated)!=null||(source2.updated=new Map);let count=((_c2=(_b3=source2.updated.get(""))==null?void 0:_b3.count)!=null?_c2:0)+1;if(source2.updated.set("",{error:null,count}),tracing_mode_flag||count>5){let error51=get_error("updated at");if(error51!==null){let entry=source2.updated.get(error51.stack);entry||(entry={error:error51,count:0},source2.updated.set(error51.stack,entry)),entry.count++}}}active_effect!==null&&(source2.set_during_effect=!0)}if((source2.f&2)!==0){let derived2=source2;(source2.f&2048)!==0&&execute_derived(derived2),batch_values===null&&update_derived_status(derived2)}source2.wv=increment_write_version(),mark_reactions(source2,2048,updated_during_traversal),is_runes()&&active_effect!==null&&(active_effect.f&1024)!==0&&(active_effect.f&96)===0&&(untracked_writes===null?set_untracked_writes([source2]):untracked_writes.push(source2)),!batch.is_fork&&eager_effects.size>0&&!eager_effects_deferred&&flush_eager_effects()}return value}function flush_eager_effects(){eager_effects_deferred=!1;for(let effect3 of eager_effects){(effect3.f&1024)!==0&&set_signal_status(effect3,4096);let dirty;try{dirty=is_dirty(effect3)}catch(e){dirty=!0}dirty&&update_effect(effect3)}eager_effects.clear()}function increment(source2){set(source2,source2.v+1)}function mark_reactions(signal,status,updated_during_traversal){var _a9;var reactions=signal.reactions;if(reactions!==null)for(var runes=is_runes(),length=reactions.length,i=0;i<length;i++){var reaction=reactions[i],flags2=reaction.f;if(!(!runes&&reaction===active_effect)){var not_dirty=(flags2&2048)===0;if(not_dirty&&set_signal_status(reaction,status),(flags2&131072)!==0)eager_effects.add(reaction);else if((flags2&2)!==0){var derived2=reaction;(_a9=batch_values)==null||_a9.delete(derived2),(flags2&65536)===0&&(flags2&512&&(active_effect===null||(active_effect.f&2097152)===0)&&(reaction.f|=65536),mark_reactions(derived2,4096,updated_during_traversal))}else if(not_dirty){var effect3=reaction;(flags2&16)!==0&&eager_block_effects!==null&&eager_block_effects.add(effect3),updated_during_traversal!==null?updated_during_traversal.push(effect3):schedule_effect(effect3)}}}}var regex_is_valid_identifier=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/;function proxy(value){if(typeof value!="object"||value===null||STATE_SYMBOL in value)return value;let prototype2=get_prototype_of(value);if(prototype2!==object_prototype&&prototype2!==array_prototype)return value;var sources=new Map,is_proxied_array=is_array(value),version2=state(0),stack2=dev_fallback_default&&tracing_mode_flag?get_error("created at"):null,parent_version=update_version,with_parent=fn=>{if(update_version===parent_version)return fn();var reaction=active_reaction,version3=update_version;set_active_reaction(null),set_update_version(parent_version);var result=fn();return set_active_reaction(reaction),set_update_version(version3),result};is_proxied_array&&(sources.set("length",state(value.length,stack2)),dev_fallback_default&&(value=inspectable_array(value)));var path="";let updating=!1;function update_path(new_path){if(!updating){updating=!0,path=new_path,tag(version2,`${path} version`);for(let[prop2,source2]of sources)tag(source2,get_label(path,prop2));updating=!1}}return new Proxy(value,{defineProperty(_,prop2,descriptor){(!("value"in descriptor)||descriptor.configurable===!1||descriptor.enumerable===!1||descriptor.writable===!1)&&state_descriptors_fixed();var s=sources.get(prop2);return s===void 0?with_parent(()=>{var s2=state(descriptor.value,stack2);return sources.set(prop2,s2),dev_fallback_default&&typeof prop2=="string"&&tag(s2,get_label(path,prop2)),s2}):set(s,descriptor.value,!0),!0},deleteProperty(target,prop2){var s=sources.get(prop2);if(s===void 0){if(prop2 in target){let s2=with_parent(()=>state(UNINITIALIZED,stack2));sources.set(prop2,s2),increment(version2),dev_fallback_default&&tag(s2,get_label(path,prop2))}}else set(s,UNINITIALIZED),increment(version2);return!0},get(target,prop2,receiver){var _a9;if(prop2===STATE_SYMBOL)return value;if(dev_fallback_default&&prop2===PROXY_PATH_SYMBOL)return update_path;var s=sources.get(prop2),exists=prop2 in target;if(s===void 0&&(!exists||(_a9=get_descriptor(target,prop2))!=null&&_a9.writable)&&(s=with_parent(()=>{var p=proxy(exists?target[prop2]:UNINITIALIZED),s2=state(p,stack2);return dev_fallback_default&&tag(s2,get_label(path,prop2)),s2}),sources.set(prop2,s)),s!==void 0){var v=get2(s);return v===UNINITIALIZED?void 0:v}return Reflect.get(target,prop2,receiver)},getOwnPropertyDescriptor(target,prop2){var descriptor=Reflect.getOwnPropertyDescriptor(target,prop2);if(descriptor&&"value"in descriptor){var s=sources.get(prop2);s&&(descriptor.value=get2(s))}else if(descriptor===void 0){var source2=sources.get(prop2),value2=source2==null?void 0:source2.v;if(source2!==void 0&&value2!==UNINITIALIZED)return{enumerable:!0,configurable:!0,value:value2,writable:!0}}return descriptor},has(target,prop2){var _a9;if(prop2===STATE_SYMBOL)return!0;var s=sources.get(prop2),has=s!==void 0&&s.v!==UNINITIALIZED||Reflect.has(target,prop2);if(s!==void 0||active_effect!==null&&(!has||(_a9=get_descriptor(target,prop2))!=null&&_a9.writable)){s===void 0&&(s=with_parent(()=>{var p=has?proxy(target[prop2]):UNINITIALIZED,s2=state(p,stack2);return dev_fallback_default&&tag(s2,get_label(path,prop2)),s2}),sources.set(prop2,s));var value2=get2(s);if(value2===UNINITIALIZED)return!1}return has},set(target,prop2,value2,receiver){var _a9;var s=sources.get(prop2),has=prop2 in target;if(is_proxied_array&&prop2==="length")for(var i=value2;i<s.v;i+=1){var other_s=sources.get(i+"");other_s!==void 0?set(other_s,UNINITIALIZED):i in target&&(other_s=with_parent(()=>state(UNINITIALIZED,stack2)),sources.set(i+"",other_s),dev_fallback_default&&tag(other_s,get_label(path,i)))}if(s===void 0)(!has||(_a9=get_descriptor(target,prop2))!=null&&_a9.writable)&&(s=with_parent(()=>state(void 0,stack2)),dev_fallback_default&&tag(s,get_label(path,prop2)),set(s,proxy(value2)),sources.set(prop2,s));else{has=s.v!==UNINITIALIZED;var p=with_parent(()=>proxy(value2));set(s,p)}var descriptor=Reflect.getOwnPropertyDescriptor(target,prop2);if(descriptor!=null&&descriptor.set&&descriptor.set.call(receiver,value2),!has){if(is_proxied_array&&typeof prop2=="string"){var ls=sources.get("length"),n=Number(prop2);Number.isInteger(n)&&n>=ls.v&&set(ls,n+1)}increment(version2)}return!0},ownKeys(target){get2(version2);var own_keys=Reflect.ownKeys(target).filter(key3=>{var source3=sources.get(key3);return source3===void 0||source3.v!==UNINITIALIZED});for(var[key2,source2]of sources)source2.v!==UNINITIALIZED&&!(key2 in target)&&own_keys.push(key2);return own_keys},setPrototypeOf(){state_prototype_fixed()}})}function get_label(path,prop2){var _a9;return typeof prop2=="symbol"?`${path}[Symbol(${(_a9=prop2.description)!=null?_a9:""})]`:regex_is_valid_identifier.test(prop2)?`${path}.${prop2}`:/^\d+$/.test(prop2)?`${path}[${prop2}]`:`${path}['${prop2}']`}function get_proxied_value(value){try{if(value!==null&&typeof value=="object"&&STATE_SYMBOL in value)return value[STATE_SYMBOL]}catch(e){}return value}var ARRAY_MUTATING_METHODS=new Set(["copyWithin","fill","pop","push","reverse","shift","sort","splice","unshift"]);function inspectable_array(array2){return new Proxy(array2,{get(target,prop2,receiver){var value=Reflect.get(target,prop2,receiver);return ARRAY_MUTATING_METHODS.has(prop2)?function(...args){set_eager_effects_deferred();var result=value.apply(this,args);return flush_eager_effects(),result}:value}})}function init_array_prototype_warnings(){let array_prototype2=Array.prototype,cleanup=Array.__svelte_cleanup;cleanup&&cleanup();let{indexOf,lastIndexOf,includes:includes2}=array_prototype2;array_prototype2.indexOf=function(item,from_index){let index2=indexOf.call(this,item,from_index);if(index2===-1){for(let i=from_index!=null?from_index:0;i<this.length;i+=1)if(get_proxied_value(this[i])===item){state_proxy_equality_mismatch("array.indexOf(...)");break}}return index2},array_prototype2.lastIndexOf=function(item,from_index){let index2=lastIndexOf.call(this,item,from_index!=null?from_index:this.length-1);if(index2===-1){for(let i=0;i<=(from_index!=null?from_index:this.length-1);i+=1)if(get_proxied_value(this[i])===item){state_proxy_equality_mismatch("array.lastIndexOf(...)");break}}return index2},array_prototype2.includes=function(item,from_index){let has=includes2.call(this,item,from_index);if(!has){for(let i=0;i<this.length;i+=1)if(get_proxied_value(this[i])===item){state_proxy_equality_mismatch("array.includes(...)");break}}return has},Array.__svelte_cleanup=()=>{array_prototype2.indexOf=indexOf,array_prototype2.lastIndexOf=lastIndexOf,array_prototype2.includes=includes2}}var $window,$document,is_firefox,first_child_getter,next_sibling_getter;function init_operations(){if($window===void 0){$window=window,$document=document,is_firefox=/Firefox/.test(navigator.userAgent);var element_prototype=Element.prototype,node_prototype=Node.prototype,text_prototype=Text.prototype;first_child_getter=get_descriptor(node_prototype,"firstChild").get,next_sibling_getter=get_descriptor(node_prototype,"nextSibling").get,is_extensible(element_prototype)&&(element_prototype[CLASS_CACHE]=void 0,element_prototype[ATTRIBUTES_CACHE]=null,element_prototype[STYLE_CACHE]=void 0,element_prototype.__e=void 0),is_extensible(text_prototype)&&(text_prototype[TEXT_CACHE]=void 0),dev_fallback_default&&(element_prototype.__svelte_meta=null,init_array_prototype_warnings())}}function create_text(value=""){return document.createTextNode(value)}function get_first_child(node){return first_child_getter.call(node)}function get_next_sibling(node){return next_sibling_getter.call(node)}function child(node,is_text){if(!hydrating)return get_first_child(node);var child2=get_first_child(hydrate_node);if(child2===null)child2=hydrate_node.appendChild(create_text());else if(is_text&&child2.nodeType!==TEXT_NODE){var text2=create_text();return child2==null||child2.before(text2),set_hydrate_node(text2),text2}return is_text&&merge_text_nodes(child2),set_hydrate_node(child2),child2}function first_child(node,is_text=!1){var _a9,_b3;if(!hydrating){var first=get_first_child(node);return first instanceof Comment&&first.data===""?get_next_sibling(first):first}if(is_text){if(((_a9=hydrate_node)==null?void 0:_a9.nodeType)!==TEXT_NODE){var text2=create_text();return(_b3=hydrate_node)==null||_b3.before(text2),set_hydrate_node(text2),text2}merge_text_nodes(hydrate_node)}return hydrate_node}function sibling(node,count=1,is_text=!1){let next_sibling=hydrating?hydrate_node:node;for(var last_sibling;count--;)last_sibling=next_sibling,next_sibling=get_next_sibling(next_sibling);if(!hydrating)return next_sibling;if(is_text){if((next_sibling==null?void 0:next_sibling.nodeType)!==TEXT_NODE){var text2=create_text();return next_sibling===null?last_sibling==null||last_sibling.after(text2):next_sibling.before(text2),set_hydrate_node(text2),text2}merge_text_nodes(next_sibling)}return set_hydrate_node(next_sibling),next_sibling}function clear_text_content(node){node.textContent=""}function create_element(tag2,namespace2,is2){let options=is2?{is:is2}:void 0;return document.createElementNS(namespace2!=null?namespace2:NAMESPACE_HTML,tag2,options)}function merge_text_nodes(text2){if(text2.nodeValue.length<65536)return;let next2=text2.nextSibling;for(;next2!==null&&next2.nodeType===TEXT_NODE;)next2.remove(),text2.nodeValue+=next2.nodeValue,next2=text2.nextSibling}function without_reactive_context(fn){var previous_reaction=active_reaction,previous_effect=active_effect;set_active_reaction(null),set_active_effect(null);try{return fn()}finally{set_active_reaction(previous_reaction),set_active_effect(previous_effect)}}function validate_effect(rune){active_effect===null&&(active_reaction===null&&effect_orphan(rune),effect_in_unowned_derived()),is_destroying_effect&&effect_in_teardown(rune)}function push_effect(effect3,parent_effect){var parent_last=parent_effect.last;parent_last===null?parent_effect.last=parent_effect.first=effect3:(parent_last.next=effect3,effect3.prev=parent_last,parent_effect.last=effect3)}function create_effect(type,fn){var _a9,_b3;var parent=active_effect;if(dev_fallback_default)for(;parent!==null&&(parent.f&131072)!==0;)parent=parent.parent;parent!==null&&(parent.f&8192)!==0&&(type|=8192);var effect3={ctx:component_context,deps:null,nodes:null,f:type|2048|512,first:null,fn,last:null,next:null,parent,b:parent&&parent.b,prev:null,teardown:null,wv:0,ac:null};dev_fallback_default&&(effect3.component_function=dev_current_component_function),(_a9=current_batch)==null||_a9.register_created_effect(effect3);var e=effect3;if((type&4)!==0)collected_effects!==null?collected_effects.push(effect3):Batch.ensure().schedule(effect3);else if(fn!==null){try{update_effect(effect3)}catch(e2){throw destroy_effect(effect3),e2}e.deps===null&&e.teardown===null&&e.nodes===null&&e.first===e.last&&(e.f&524288)===0&&(e=e.first,(type&16)!==0&&(type&65536)!==0&&e!==null&&(e.f|=65536))}if(e!==null&&(e.parent=parent,parent!==null&&push_effect(e,parent),active_reaction!==null&&(active_reaction.f&2)!==0&&(type&64)===0)){var derived2=active_reaction;((_b3=derived2.effects)!=null?_b3:derived2.effects=[]).push(e)}return effect3}function effect_tracking(){return active_reaction!==null&&!untracking}function teardown(fn){let effect3=create_effect(8,null);return set_signal_status(effect3,1024),effect3.teardown=fn,effect3}function user_effect(fn){var _a9;validate_effect("$effect"),dev_fallback_default&&define_property(fn,"name",{value:"$effect"});var flags2=active_effect.f,defer=!active_reaction&&(flags2&32)!==0&&(flags2&32768)===0;if(defer){var context=component_context;((_a9=context.e)!=null?_a9:context.e=[]).push(fn)}else return create_user_effect(fn)}function create_user_effect(fn){return create_effect(1048580,fn)}function user_pre_effect(fn){return validate_effect("$effect.pre"),dev_fallback_default&&define_property(fn,"name",{value:"$effect.pre"}),create_effect(1048584,fn)}function effect_root(fn){Batch.ensure();let effect3=create_effect(524352,fn);return()=>{destroy_effect(effect3)}}function component_root(fn){Batch.ensure();let effect3=create_effect(524352,fn);return(options={})=>new Promise(fulfil=>{options.outro?pause_effect(effect3,()=>{destroy_effect(effect3),fulfil(void 0)}):(destroy_effect(effect3),fulfil(void 0))})}function effect(fn){return create_effect(4,fn)}function render_effect(fn,flags2=0){return create_effect(8|flags2,fn)}function block(fn,flags2=0){var effect3=create_effect(16|flags2,fn);return dev_fallback_default&&(effect3.dev_stack=dev_stack),effect3}function branch(fn){return create_effect(524320,fn)}function execute_effect_teardown(effect3){var teardown2=effect3.teardown;if(teardown2!==null){let previously_destroying_effect=is_destroying_effect,previous_reaction=active_reaction;set_is_destroying_effect(!0),set_active_reaction(null);try{teardown2.call(null)}finally{set_is_destroying_effect(previously_destroying_effect),set_active_reaction(previous_reaction)}}}function destroy_effect_children(signal,remove_dom=!1){var effect3=signal.first;for(signal.first=signal.last=null;effect3!==null;){let controller=effect3.ac;controller!==null&&without_reactive_context(()=>{controller.abort(STALE_REACTION)});var next2=effect3.next;(effect3.f&64)!==0?effect3.parent=null:destroy_effect(effect3,remove_dom),effect3=next2}}function destroy_block_effect_children(signal){for(var effect3=signal.first;effect3!==null;){var next2=effect3.next;(effect3.f&32)===0&&destroy_effect(effect3),effect3=next2}}function destroy_effect(effect3,remove_dom=!0){var removed=!1;(remove_dom||(effect3.f&262144)!==0)&&effect3.nodes!==null&&effect3.nodes.end!==null&&(remove_effect_dom(effect3.nodes.start,effect3.nodes.end),removed=!0),set_signal_status(effect3,33554432),destroy_effect_children(effect3,remove_dom&&!removed),remove_reactions(effect3,0);var transitions=effect3.nodes&&effect3.nodes.t;if(transitions!==null)for(let transition2 of transitions)transition2.stop();execute_effect_teardown(effect3),effect3.f^=33554432,effect3.f|=16384;var parent=effect3.parent;parent!==null&&parent.first!==null&&unlink_effect(effect3),dev_fallback_default&&(effect3.component_function=null),effect3.next=effect3.prev=effect3.teardown=effect3.ctx=effect3.deps=effect3.fn=effect3.nodes=effect3.ac=effect3.b=null}function remove_effect_dom(node,end){for(;node!==null;){var next2=node===end?null:get_next_sibling(node);node.remove(),node=next2}}function unlink_effect(effect3){var parent=effect3.parent,prev=effect3.prev,next2=effect3.next;prev!==null&&(prev.next=next2),next2!==null&&(next2.prev=prev),parent!==null&&(parent.first===effect3&&(parent.first=next2),parent.last===effect3&&(parent.last=prev))}function pause_effect(effect3,callback,destroy=!0){var transitions=[];pause_children(effect3,transitions,!0);var fn=()=>{destroy&&destroy_effect(effect3),callback&&callback()},remaining=transitions.length;if(remaining>0){var check2=()=>--remaining||fn();for(var transition2 of transitions)transition2.out(check2)}else fn()}function pause_children(effect3,transitions,local){if((effect3.f&8192)===0){effect3.f^=8192;var t=effect3.nodes&&effect3.nodes.t;if(t!==null)for(let transition2 of t)(transition2.is_global||local)&&transitions.push(transition2);for(var child2=effect3.first;child2!==null;){var sibling2=child2.next;if((child2.f&64)===0){var transparent=(child2.f&65536)!==0||(child2.f&32)!==0&&(effect3.f&16)!==0;pause_children(child2,transitions,transparent?local:!1)}child2=sibling2}}}function move_effect(effect3,fragment){if(effect3.nodes)for(var node=effect3.nodes.start,end=effect3.nodes.end;node!==null;){var next2=node===end?null:get_next_sibling(node);fragment.append(node),node=next2}}var captured_signals=null;var is_updating_effect=!1,is_destroying_effect=!1;function set_is_destroying_effect(value){is_destroying_effect=value}var active_reaction=null,untracking=!1;function set_active_reaction(reaction){active_reaction=reaction}var active_effect=null;function set_active_effect(effect3){active_effect=effect3}var current_sources=null;function push_reaction_value(value){active_reaction!==null&&(!async_mode_flag||(active_reaction.f&2)!==0)&&(current_sources===null?current_sources=[value]:current_sources.push(value))}var new_deps=null,skipped_deps=0,untracked_writes=null;function set_untracked_writes(value){untracked_writes=value}var write_version=1,read_version=0,update_version=read_version;function set_update_version(value){update_version=value}function increment_write_version(){return++write_version}function is_dirty(reaction){var flags2=reaction.f;if((flags2&2048)!==0)return!0;if(flags2&2&&(reaction.f&=-65537),(flags2&4096)!==0){for(var dependencies=reaction.deps,length=dependencies.length,i=0;i<length;i++){var dependency=dependencies[i];if(is_dirty(dependency)&&update_derived(dependency),dependency.wv>reaction.wv)return!0}(flags2&512)!==0&&batch_values===null&&set_signal_status(reaction,1024)}return!1}function schedule_possible_effect_self_invalidation(signal,effect3,root2=!0){var reactions=signal.reactions;if(reactions!==null&&!(!async_mode_flag&&current_sources!==null&&includes.call(current_sources,signal)))for(var i=0;i<reactions.length;i++){var reaction=reactions[i];(reaction.f&2)!==0?schedule_possible_effect_self_invalidation(reaction,effect3,!1):effect3===reaction&&(root2?set_signal_status(reaction,2048):(reaction.f&1024)!==0&&set_signal_status(reaction,4096),schedule_effect(reaction))}}function update_reaction(reaction){var _a9,_b3,_c2;var previous_deps=new_deps,previous_skipped_deps=skipped_deps,previous_untracked_writes=untracked_writes,previous_reaction=active_reaction,previous_sources=current_sources,previous_component_context=component_context,previous_untracking=untracking,previous_update_version=update_version,flags2=reaction.f;new_deps=null,skipped_deps=0,untracked_writes=null,active_reaction=(flags2&96)===0?reaction:null,current_sources=null,set_component_context(reaction.ctx),untracking=!1,update_version=++read_version,reaction.ac!==null&&(without_reactive_context(()=>{reaction.ac.abort(STALE_REACTION)}),reaction.ac=null);try{reaction.f|=2097152;var fn=reaction.fn,result=fn();reaction.f|=32768;var deps=reaction.deps,is_fork=(_a9=current_batch)==null?void 0:_a9.is_fork;if(new_deps!==null){var i;if(is_fork||remove_reactions(reaction,skipped_deps),deps!==null&&skipped_deps>0)for(deps.length=skipped_deps+new_deps.length,i=0;i<new_deps.length;i++)deps[skipped_deps+i]=new_deps[i];else reaction.deps=deps=new_deps;if(effect_tracking()&&(reaction.f&512)!==0)for(i=skipped_deps;i<deps.length;i++)((_c2=(_b3=deps[i]).reactions)!=null?_c2:_b3.reactions=[]).push(reaction)}else!is_fork&&deps!==null&&skipped_deps<deps.length&&(remove_reactions(reaction,skipped_deps),deps.length=skipped_deps);if(is_runes()&&untracked_writes!==null&&!untracking&&deps!==null&&(reaction.f&6146)===0)for(i=0;i<untracked_writes.length;i++)schedule_possible_effect_self_invalidation(untracked_writes[i],reaction);if(previous_reaction!==null&&previous_reaction!==reaction){if(read_version++,previous_reaction.deps!==null)for(let i2=0;i2<previous_skipped_deps;i2+=1)previous_reaction.deps[i2].rv=read_version;if(previous_deps!==null)for(let dep of previous_deps)dep.rv=read_version;untracked_writes!==null&&(previous_untracked_writes===null?previous_untracked_writes=untracked_writes:previous_untracked_writes.push(...untracked_writes))}return(reaction.f&8388608)!==0&&(reaction.f^=8388608),result}catch(error51){return handle_error(error51)}finally{reaction.f^=2097152,new_deps=previous_deps,skipped_deps=previous_skipped_deps,untracked_writes=previous_untracked_writes,active_reaction=previous_reaction,current_sources=previous_sources,set_component_context(previous_component_context),untracking=previous_untracking,update_version=previous_update_version}}function remove_reaction(signal,dependency){let reactions=dependency.reactions;if(reactions!==null){var index2=index_of.call(reactions,signal);if(index2!==-1){var new_length=reactions.length-1;new_length===0?reactions=dependency.reactions=null:(reactions[index2]=reactions[new_length],reactions.pop())}}if(reactions===null&&(dependency.f&2)!==0&&(new_deps===null||!includes.call(new_deps,dependency))){var derived2=dependency;(derived2.f&512)!==0&&(derived2.f^=512,derived2.f&=-65537),derived2.v!==UNINITIALIZED&&update_derived_status(derived2),freeze_derived_effects(derived2),remove_reactions(derived2,0)}}function remove_reactions(signal,start_index){var dependencies=signal.deps;if(dependencies!==null)for(var i=start_index;i<dependencies.length;i++)remove_reaction(signal,dependencies[i])}function update_effect(effect3){var _a9;var flags2=effect3.f;if((flags2&16384)===0){set_signal_status(effect3,1024);var previous_effect=active_effect,was_updating_effect=is_updating_effect;if(active_effect=effect3,is_updating_effect=!0,dev_fallback_default){var previous_component_fn=dev_current_component_function;set_dev_current_component_function(effect3.component_function);var previous_stack=dev_stack;set_dev_stack((_a9=effect3.dev_stack)!=null?_a9:dev_stack)}try{(flags2&16777232)!==0?destroy_block_effect_children(effect3):destroy_effect_children(effect3),execute_effect_teardown(effect3);var teardown2=update_reaction(effect3);if(effect3.teardown=typeof teardown2=="function"?teardown2:null,effect3.wv=write_version,dev_fallback_default&&tracing_mode_flag&&(effect3.f&2048)!==0&&effect3.deps!==null)for(var dep of effect3.deps)dep.set_during_effect&&(dep.wv=increment_write_version(),dep.set_during_effect=!1)}finally{is_updating_effect=was_updating_effect,active_effect=previous_effect,dev_fallback_default&&(set_dev_current_component_function(previous_component_fn),set_dev_stack(previous_stack))}}}function get2(signal){var _a9,_b3,_c2;var flags2=signal.f,is_derived=(flags2&2)!==0;if((_a9=captured_signals)==null||_a9.add(signal),active_reaction!==null&&!untracking){var destroyed=active_effect!==null&&(active_effect.f&16384)!==0;if(!destroyed&&(current_sources===null||!includes.call(current_sources,signal))){var deps=active_reaction.deps;if((active_reaction.f&2097152)!==0)signal.rv<read_version&&(signal.rv=read_version,new_deps===null&&deps!==null&&deps[skipped_deps]===signal?skipped_deps++:new_deps===null?new_deps=[signal]:new_deps.push(signal));else{(_b3=active_reaction.deps)!=null||(active_reaction.deps=[]),includes.call(active_reaction.deps,signal)||active_reaction.deps.push(signal);var reactions=signal.reactions;reactions===null?signal.reactions=[active_reaction]:includes.call(reactions,active_reaction)||reactions.push(active_reaction)}}}if(dev_fallback_default){if(!untracking&&reactivity_loss_tracker&&!reactivity_loss_tracker.warned&&(reactivity_loss_tracker.effect.f&2097152)===0&&!reactivity_loss_tracker.effect_deps.has(signal)){reactivity_loss_tracker.warned=!0,await_reactivity_loss(signal.label);var trace2=get_error("traced at");trace2&&console.warn(trace2)}if(recent_async_deriveds.delete(signal),tracing_mode_flag&&!untracking&&tracing_expressions!==null&&active_reaction!==null&&tracing_expressions.reaction===active_reaction){if(signal.trace)signal.trace();else if(trace2=get_error("traced at"),trace2){var entry=tracing_expressions.entries.get(signal);entry===void 0&&(entry={traces:[]},tracing_expressions.entries.set(signal,entry));var last=entry.traces[entry.traces.length-1];trace2.stack!==(last==null?void 0:last.stack)&&entry.traces.push(trace2)}}}if(is_destroying_effect&&old_values.has(signal))return old_values.get(signal);if(is_derived){var derived2=signal;if(is_destroying_effect){var value=derived2.v;return((derived2.f&1024)===0&&derived2.reactions!==null||depends_on_old_values(derived2))&&(value=execute_derived(derived2)),old_values.set(derived2,value),value}var should_connect=(derived2.f&512)===0&&!untracking&&active_reaction!==null&&(is_updating_effect||(active_reaction.f&512)!==0),is_new=(derived2.f&32768)===0;is_dirty(derived2)&&(should_connect&&(derived2.f|=512),update_derived(derived2)),should_connect&&!is_new&&(unfreeze_derived_effects(derived2),reconnect(derived2))}if((_c2=batch_values)!=null&&_c2.has(signal))return batch_values.get(signal);if((signal.f&8388608)!==0)throw signal.v;return signal.v}function reconnect(derived2){var _a9;if(derived2.f|=512,derived2.deps!==null)for(let dep of derived2.deps)((_a9=dep.reactions)!=null?_a9:dep.reactions=[]).push(derived2),(dep.f&2)!==0&&(dep.f&512)===0&&(unfreeze_derived_effects(dep),reconnect(dep))}function depends_on_old_values(derived2){if(derived2.v===UNINITIALIZED)return!0;if(derived2.deps===null)return!1;for(let dep of derived2.deps)if(old_values.has(dep)||(dep.f&2)!==0&&depends_on_old_values(dep))return!0;return!1}function untrack(fn){var previous_untracking=untracking;try{return untracking=!0,fn()}finally{untracking=previous_untracking}}function deep_read_state(value){if(!(typeof value!="object"||!value||value instanceof EventTarget)){if(STATE_SYMBOL in value)deep_read(value);else if(!Array.isArray(value))for(let key2 in value){let prop2=value[key2];typeof prop2=="object"&&prop2&&STATE_SYMBOL in prop2&&deep_read(prop2)}}}function deep_read(value,visited=new Set){if(typeof value=="object"&&value!==null&&!(value instanceof EventTarget)&&!visited.has(value)){visited.add(value),value instanceof Date&&value.getTime();for(let key2 in value)try{deep_read(value[key2],visited)}catch(e){}let proto=get_prototype_of(value);if(proto!==Object.prototype&&proto!==Array.prototype&&proto!==Map.prototype&&proto!==Set.prototype&&proto!==Date.prototype){let descriptors=get_descriptors(proto);for(let key2 in descriptors){let get3=descriptors[key2].get;if(get3)try{get3.call(value)}catch(e){}}}}}var event_symbol=Symbol("events"),all_registered_events=new Set,root_event_handles=new Set;function create_event(event_name,dom,handler,options={}){function target_handler(event3){if(options.capture||handle_event_propagation.call(dom,event3),!event3.cancelBubble)return without_reactive_context(()=>handler==null?void 0:handler.call(this,event3))}return event_name.startsWith("pointer")||event_name.startsWith("touch")||event_name==="wheel"?queue_micro_task(()=>{dom.addEventListener(event_name,target_handler,options)}):dom.addEventListener(event_name,target_handler,options),target_handler}function event(event_name,dom,handler,capture2,passive2){var options={capture:capture2,passive:passive2},target_handler=create_event(event_name,dom,handler,options);(dom===document.body||dom===window||dom===document||dom instanceof HTMLMediaElement)&&teardown(()=>{dom.removeEventListener(event_name,target_handler,options)})}var last_propagated_event=null;function handle_event_propagation(event3){var _a9,_b3;var handler_element=this,owner_document=handler_element.ownerDocument,event_name=event3.type,path=((_a9=event3.composedPath)==null?void 0:_a9.call(event3))||[],current_target=path[0]||event3.target;last_propagated_event=event3;var path_idx=0,handled_at=last_propagated_event===event3&&event3[event_symbol];if(handled_at){var at_idx=path.indexOf(handled_at);if(at_idx!==-1&&(handler_element===document||handler_element===window)){event3[event_symbol]=handler_element;return}var handler_idx=path.indexOf(handler_element);if(handler_idx===-1)return;at_idx<=handler_idx&&(path_idx=at_idx)}if(current_target=path[path_idx]||event3.target,current_target!==handler_element){define_property(event3,"currentTarget",{configurable:!0,get(){return current_target||owner_document}});var previous_reaction=active_reaction,previous_effect=active_effect;set_active_reaction(null),set_active_effect(null);try{for(var throw_error,other_errors=[];current_target!==null;){var parent_element=current_target.assignedSlot||current_target.parentNode||current_target.host||null;try{var delegated2=(_b3=current_target[event_symbol])==null?void 0:_b3[event_name];delegated2!=null&&(!current_target.disabled||event3.target===current_target)&&delegated2.call(current_target,event3)}catch(error51){throw_error?other_errors.push(error51):throw_error=error51}if(event3.cancelBubble||parent_element===handler_element||parent_element===null)break;current_target=parent_element}if(throw_error){for(let error51 of other_errors)queueMicrotask(()=>{throw error51});throw throw_error}}finally{event3[event_symbol]=handler_element,delete event3.currentTarget,set_active_reaction(previous_reaction),set_active_effect(previous_effect)}}}var _a4,policy=((_a4=globalThis==null?void 0:globalThis.window)==null?void 0:_a4.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:html2=>html2});function create_trusted_html(html2){var _a9;return(_a9=policy==null?void 0:policy.createHTML(html2))!=null?_a9:html2}function create_fragment_from_html(html2){var elem=create_element("template");return elem.innerHTML=create_trusted_html(html2.replaceAll("<!>","<!---->")),elem.content}function assign_nodes(start,end){var effect3=active_effect;effect3.nodes===null&&(effect3.nodes={start,end,a:null,t:null})}function from_html(content,flags2){var is_fragment=(flags2&1)!==0,use_import_node=(flags2&2)!==0,node,has_start=!content.startsWith("<!>");return()=>{if(hydrating)return assign_nodes(hydrate_node,null),hydrate_node;node===void 0&&(node=create_fragment_from_html(has_start?content:"<!>"+content),is_fragment||(node=get_first_child(node)));var clone2=use_import_node||is_firefox?document.importNode(node,!0):node.cloneNode(!0);if(is_fragment){var start=get_first_child(clone2),end=clone2.lastChild;assign_nodes(start,end)}else assign_nodes(clone2,clone2);return clone2}}function append(anchor,dom){if(hydrating){var effect3=active_effect;((effect3.f&32768)===0||effect3.nodes.end===null)&&(effect3.nodes.end=hydrate_node),hydrate_next();return}anchor!==null&&anchor.before(dom)}var DOM_BOOLEAN_ATTRIBUTES=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];var DOM_PROPERTIES=[...DOM_BOOLEAN_ATTRIBUTES,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];var PASSIVE_EVENTS=["touchstart","touchmove"];function is_passive_event(name){return PASSIVE_EVENTS.includes(name)}var STATE_CREATION_RUNES=["$state","$state.raw","$derived","$derived.by"],RUNES=[...STATE_CREATION_RUNES,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];var should_intro=!0;function mount(component2,options){return _mount(component2,options)}function hydrate(component2,options){var _a9;init_operations(),options.intro=(_a9=options.intro)!=null?_a9:!1;let target=options.target,was_hydrating=hydrating,previous_hydrate_node=hydrate_node;try{for(var anchor=get_first_child(target);anchor&&(anchor.nodeType!==COMMENT_NODE||anchor.data!=="[");)anchor=get_next_sibling(anchor);if(!anchor)throw HYDRATION_ERROR;set_hydrating(!0),set_hydrate_node(anchor);let instance=_mount(component2,{...options,anchor});return set_hydrating(!1),instance}catch(error51){if(error51 instanceof Error&&error51.message.split(`
`).some(line=>line.startsWith("https://svelte.dev/e/")))throw error51;return error51!==HYDRATION_ERROR&&console.warn("Failed to hydrate: ",error51),options.recover===!1&&hydration_failed(),init_operations(),clear_text_content(target),set_hydrating(!1),mount(component2,options)}finally{set_hydrating(was_hydrating),set_hydrate_node(previous_hydrate_node)}}var listeners=new Map;function _mount(Component,{target,anchor,props={},events,context,intro=!0,transformError}){init_operations();var component2=void 0,unmount2=component_root(()=>{var anchor_node=anchor!=null?anchor:target.appendChild(create_text());boundary(anchor_node,{pending:()=>{}},anchor_node2=>{push({});var ctx=component_context;if(context&&(ctx.c=context),events&&(props.$$events=events),hydrating&&assign_nodes(anchor_node2,null),should_intro=intro,component2=Component(anchor_node2,props)||{},should_intro=!0,hydrating&&(active_effect.nodes.end=hydrate_node,hydrate_node===null||hydrate_node.nodeType!==COMMENT_NODE||hydrate_node.data!=="]"))throw hydration_mismatch(),HYDRATION_ERROR;pop()},transformError);var registered_events=new Set,event_handle=events2=>{for(var i=0;i<events2.length;i++){var event_name=events2[i];if(!registered_events.has(event_name)){registered_events.add(event_name);var passive2=is_passive_event(event_name);for(let node of[target,document]){var counts=listeners.get(node);counts===void 0&&(counts=new Map,listeners.set(node,counts));var count=counts.get(event_name);count===void 0?(node.addEventListener(event_name,handle_event_propagation,{passive:passive2}),counts.set(event_name,1)):counts.set(event_name,count+1)}}}};return event_handle(array_from(all_registered_events)),root_event_handles.add(event_handle),()=>{var _a9;for(var event_name of registered_events)for(let node of[target,document]){var counts=listeners.get(node),count=counts.get(event_name);--count==0?(node.removeEventListener(event_name,handle_event_propagation),counts.delete(event_name),counts.size===0&&listeners.delete(node)):counts.set(event_name,count)}root_event_handles.delete(event_handle),anchor_node!==anchor&&((_a9=anchor_node.parentNode)==null||_a9.removeChild(anchor_node))}});return mounted_components.set(component2,unmount2),component2}var mounted_components=new WeakMap;function unmount(component2,options){let fn=mounted_components.get(component2);return fn?(mounted_components.delete(component2),fn(options)):(dev_fallback_default&&(STATE_SYMBOL in component2?state_proxy_unmount():lifecycle_double_unmount()),Promise.resolve())}if(dev_fallback_default){let throw_rune_error=function(rune){if(!(rune in globalThis)){let value;Object.defineProperty(globalThis,rune,{configurable:!0,get:()=>{if(value!==void 0)return value;rune_outside_svelte(rune)},set:v=>{value=v}})}};throw_rune_error("$state"),throw_rune_error("$effect"),throw_rune_error("$derived"),throw_rune_error("$inspect"),throw_rune_error("$props"),throw_rune_error("$bindable")}var NAN=Symbol("NaN");var whitespace=[...`
\r\f\xA0\v\uFEFF`];var CLASS=Symbol("class"),STYLE=Symbol("style"),IS_CUSTOM_ELEMENT=Symbol("is custom element"),IS_HTML=Symbol("is html");function is_bound_this(bound_value,element_or_component){return bound_value===element_or_component||(bound_value==null?void 0:bound_value[STATE_SYMBOL])===element_or_component}function bind_this(element_or_component={},update2,get_value,get_parts){var component_effect=component_context.r,parent=active_effect;return effect(()=>{var old_parts,parts;return render_effect(()=>{old_parts=parts,parts=(get_parts==null?void 0:get_parts())||[],untrack(()=>{is_bound_this(get_value(...parts),element_or_component)||(update2(element_or_component,...parts),old_parts&&is_bound_this(get_value(...old_parts),element_or_component)&&update2(null,...old_parts))})}),()=>{let p=parent;for(;p!==component_effect&&p.parent!==null&&p.parent.f&33554432;)p=p.parent;let teardown2=()=>{parts&&is_bound_this(get_value(...parts),element_or_component)&&update2(null,...parts)},original_teardown=p.teardown;p.teardown=()=>{teardown2(),original_teardown==null||original_teardown()}}}),element_or_component}function init(immutable=!1){let context=component_context,callbacks=context.l.u;if(!callbacks)return;let props=()=>deep_read_state(context.s);if(immutable){let version2=0,prev={},d=derived(()=>{let changed=!1,props2=context.s;for(let key2 in props2)props2[key2]!==prev[key2]&&(prev[key2]=props2[key2],changed=!0);return changed&&version2++,version2});props=()=>get2(d)}callbacks.b.length&&user_pre_effect(()=>{observe_all(context,props),run_all(callbacks.b)}),user_effect(()=>{let fns=untrack(()=>callbacks.m.map(run));return()=>{for(let fn of fns)typeof fn=="function"&&fn()}}),callbacks.a.length&&user_effect(()=>{observe_all(context,props),run_all(callbacks.a)})}function observe_all(context,props){if(context.l.s)for(let signal of context.l.s)get2(signal);props()}function prop(props,key2,flags2,fallback2){var _a9,_b3;var runes=!legacy_mode_flag||(flags2&2)!==0,bindable=(flags2&8)!==0,lazy2=(flags2&16)!==0,fallback_value=fallback2,fallback_dirty=!0,fallback_signal=void 0,get_fallback=()=>lazy2&&runes?(fallback_signal!=null||(fallback_signal=derived(fallback2)),get2(fallback_signal)):(fallback_dirty&&(fallback_dirty=!1,fallback_value=lazy2?untrack(fallback2):fallback2),fallback_value);let setter;if(bindable){var is_entry_props=STATE_SYMBOL in props||LEGACY_PROPS in props;setter=(_b3=(_a9=get_descriptor(props,key2))==null?void 0:_a9.set)!=null?_b3:is_entry_props&&key2 in props?v=>props[key2]=v:void 0}var initial_value,is_store_sub=!1;bindable?[initial_value,is_store_sub]=capture_store_binding(()=>props[key2]):initial_value=props[key2],initial_value===void 0&&fallback2!==void 0&&(initial_value=get_fallback(),setter&&(runes&&props_invalid_value(key2),setter(initial_value)));var getter;if(runes?getter=()=>{var value=props[key2];return value===void 0?get_fallback():(fallback_dirty=!0,value)}:getter=()=>{var value=props[key2];return value!==void 0&&(fallback_value=void 0),value===void 0?fallback_value:value},runes&&(flags2&4)===0)return getter;if(setter){var legacy_parent=props.$$legacy;return(function(value,mutation){return arguments.length>0?((!runes||!mutation||legacy_parent||is_store_sub)&&setter(mutation?getter():value),value):getter()})}var overridden=!1,d=((flags2&1)!==0?derived:derived_safe_equal)(()=>(overridden=!1,getter()));dev_fallback_default&&(d.label=key2),bindable&&get2(d);var parent_effect=active_effect;return(function(value,mutation){if(arguments.length>0){let new_value=mutation?get2(d):runes&&bindable?proxy(value):value;return set(d,new_value),overridden=!0,fallback_value!==void 0&&(fallback_value=new_value),value}return is_destroying_effect&&overridden||(parent_effect.f&16384)!==0?d.v:get2(d)})}function createClassComponent(options){return new Svelte4Component(options)}var _events,_instance,Svelte4Component=class{constructor(options){__privateAdd(this,_events);__privateAdd(this,_instance);var _a9,_b3;var sources=new Map,add_source=(key2,value)=>{var s=mutable_source(value,!1,!1);return sources.set(key2,s),s};let props=new Proxy({...options.props||{},$$events:{}},{get(target,prop2){var _a10;return get2((_a10=sources.get(prop2))!=null?_a10:add_source(prop2,Reflect.get(target,prop2)))},has(target,prop2){var _a10;return prop2===LEGACY_PROPS?!0:(get2((_a10=sources.get(prop2))!=null?_a10:add_source(prop2,Reflect.get(target,prop2))),Reflect.has(target,prop2))},set(target,prop2,value){var _a10;return set((_a10=sources.get(prop2))!=null?_a10:add_source(prop2,value),value),Reflect.set(target,prop2,value)}});__privateSet(this,_instance,(options.hydrate?hydrate:mount)(options.component,{target:options.target,anchor:options.anchor,props,context:options.context,intro:(_a9=options.intro)!=null?_a9:!1,recover:options.recover,transformError:options.transformError})),!async_mode_flag&&(!((_b3=options==null?void 0:options.props)!=null&&_b3.$$host)||options.sync===!1)&&flushSync(),__privateSet(this,_events,props.$$events);for(let key2 of Object.keys(__privateGet(this,_instance)))key2==="$set"||key2==="$destroy"||key2==="$on"||define_property(this,key2,{get(){return __privateGet(this,_instance)[key2]},set(value){__privateGet(this,_instance)[key2]=value},enumerable:!0});__privateGet(this,_instance).$set=next2=>{Object.assign(props,next2)},__privateGet(this,_instance).$destroy=()=>{unmount(__privateGet(this,_instance))}}$set(props){__privateGet(this,_instance).$set(props)}$on(event3,callback){__privateGet(this,_events)[event3]=__privateGet(this,_events)[event3]||[];let cb=(...args)=>callback.call(this,...args);return __privateGet(this,_events)[event3].push(cb),()=>{__privateGet(this,_events)[event3]=__privateGet(this,_events)[event3].filter(fn=>fn!==cb)}}$destroy(){__privateGet(this,_instance).$destroy()}};_events=new WeakMap,_instance=new WeakMap;var SvelteElement;typeof HTMLElement=="function"&&(SvelteElement=class extends HTMLElement{constructor($$componentCtor,$$slots,shadow_root_init){super();__publicField(this,"$$ctor");__publicField(this,"$$s");__publicField(this,"$$c");__publicField(this,"$$cn",!1);__publicField(this,"$$d",{});__publicField(this,"$$r",!1);__publicField(this,"$$p_d",{});__publicField(this,"$$l",{});__publicField(this,"$$l_u",new Map);__publicField(this,"$$me");__publicField(this,"$$shadowRoot",null);this.$$ctor=$$componentCtor,this.$$s=$$slots,shadow_root_init&&(this.$$shadowRoot=this.attachShadow(shadow_root_init))}addEventListener(type,listener,options){if(this.$$l[type]=this.$$l[type]||[],this.$$l[type].push(listener),this.$$c){let unsub=this.$$c.$on(type,listener);this.$$l_u.set(listener,unsub)}super.addEventListener(type,listener,options)}removeEventListener(type,listener,options){if(super.removeEventListener(type,listener,options),this.$$c){let unsub=this.$$l_u.get(listener);unsub&&(unsub(),this.$$l_u.delete(listener))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let create_slot=function(name){return anchor=>{let slot2=create_element("slot");name!=="default"&&(slot2.name=name),append(anchor,slot2)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;let $$slots={},existing_slots=get_custom_elements_slots(this);for(let name of this.$$s)name in existing_slots&&(name==="default"&&!this.$$d.children?(this.$$d.children=create_slot(name),$$slots.default=!0):$$slots[name]=create_slot(name));for(let attribute of this.attributes){let name=this.$$g_p(attribute.name);name in this.$$d||(this.$$d[name]=get_custom_element_value(name,attribute.value,this.$$p_d,"toProp"))}for(let key2 in this.$$p_d)!(key2 in this.$$d)&&this[key2]!==void 0&&(this.$$d[key2]=this[key2],delete this[key2]);this.$$c=createClassComponent({component:this.$$ctor,target:this.$$shadowRoot||this,props:{...this.$$d,$$slots,$$host:this}}),this.$$me=effect_root(()=>{render_effect(()=>{var _a9;this.$$r=!0;for(let key2 of object_keys(this.$$c)){if(!((_a9=this.$$p_d[key2])!=null&&_a9.reflect))continue;this.$$d[key2]=this.$$c[key2];let attribute_value=get_custom_element_value(key2,this.$$d[key2],this.$$p_d,"toAttribute");attribute_value==null?this.removeAttribute(this.$$p_d[key2].attribute||key2):this.setAttribute(this.$$p_d[key2].attribute||key2,attribute_value)}this.$$r=!1})});for(let type in this.$$l)for(let listener of this.$$l[type]){let unsub=this.$$c.$on(type,listener);this.$$l_u.set(listener,unsub)}this.$$l={}}}attributeChangedCallback(attr2,_oldValue,newValue){var _a9;this.$$r||(attr2=this.$$g_p(attr2),this.$$d[attr2]=get_custom_element_value(attr2,newValue,this.$$p_d,"toProp"),(_a9=this.$$c)==null||_a9.$set({[attr2]:this.$$d[attr2]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(attribute_name){return object_keys(this.$$p_d).find(key2=>this.$$p_d[key2].attribute===attribute_name||!this.$$p_d[key2].attribute&&key2.toLowerCase()===attribute_name)||attribute_name}});function get_custom_element_value(prop2,value,props_definition,transform2){var _a9;let type=(_a9=props_definition[prop2])==null?void 0:_a9.type;if(value=type==="Boolean"&&typeof value!="boolean"?value!=null:value,!transform2||!props_definition[prop2])return value;if(transform2==="toAttribute")switch(type){case"Object":case"Array":return value==null?null:JSON.stringify(value);case"Boolean":return value?"":null;case"Number":return value==null?null:value;default:return value}else switch(type){case"Object":case"Array":return value&&JSON.parse(value);case"Boolean":return value;case"Number":return value!=null?+value:value;default:return value}}function get_custom_elements_slots(element2){let result={};return element2.childNodes.forEach(node=>{result[node.slot||"default"]=!0}),result}var root=from_html('<div class="setting-item"><div class="setting-item-info"><div class="setting-item-name">Raindrop.io API Token</div> <div class="setting-item-description"><span>Log into your <a href="https://app.raindrop.io/settings/integrations">Developer Settings</a> to get your "Test token".</span></div></div></div> <div class="setting-item-info"><input type="text" placeholder="API token" size="40"/> <button class="mod-cta" style="float: right">Save</button></div>',1);function ApiTokenModal($$anchor,$$props){push($$props,!1);let onSubmit=prop($$props,"onSubmit",8),tokenInput=mutable_source();init();var fragment=root(),div=sibling(first_child(fragment),2),input=child(div);bind_this(input,$$value=>set(tokenInput,$$value),()=>get2(tokenInput));var button=sibling(input,2);reset(div),event("click",button,()=>onSubmit()(get2(tokenInput).value)),append($$anchor,fragment),pop()}var ApiTokenModal2=class extends import_obsidian4.Modal{constructor(app,api){super(app);this.resolvePromise=()=>{};this.api=api,this.waitForClose=new Promise(resolve=>this.resolvePromise=resolve),this.titleEl.innerText="Enter Raindrop.io API token",this.modalContent=mount(ApiTokenModal,{target:this.contentEl,props:{onSubmit:async value=>{try{await this.api.checkToken(value)}catch(e){e instanceof Error?new import_obsidian4.Notice(e.message):console.error("Unknown error",e);return}this.api.tokenManager.set(value),this.close()}}}),this.open()}onClose(){super.onClose(),unmount(this.modalContent).then(()=>{this.resolvePromise()}).catch(e=>{console.error("Error unmounting modal content",e)})}};var import_obsidian5=require("obsidian");var import_truncate_utf8_bytes=__toESM(require_browser2()),RaindropSync=class{constructor(app,plugin,api){this.app=app,this.api=api,this.plugin=plugin,this.renderer=new Renderer(plugin)}async sync({fullSync}){let failedCollections=[],syncFailed=!1;if(await this.syncCollectionMeta()===!1)return;let remoteBookmarkIds=new Set;this.plugin.settings.syncDeleteFiles&&(fullSync=!0);for(let collection of this.plugin.settings.syncCollectionsList)if(collection.sync)try{await this.syncCollection(collection,remoteBookmarkIds,fullSync)===!1&&failedCollections.push(collection.title)}catch(e){console.error(`Raindrop Highlights: failed to sync collection ${collection.title}`,e),failedCollections.push(collection.title)}failedCollections.length>0?(console.error(`Raindrop Highlights: sync failed, failedCollections: ${failedCollections.join(", ")}`),remoteBookmarkIds.clear(),syncFailed=!0):this.plugin.settings.syncDeleteFiles&&await this.syncDeletedBookmarks(remoteBookmarkIds)===!1&&(syncFailed=!0),this.plugin.settings.enableSyncNotices&&(syncFailed?new import_obsidian5.Notice("Raindrop Highlights: Sync failed, see console for details."):new import_obsidian5.Notice("Raindrop Highlights: Sync completed"))}async deleteFile(file2){this.plugin.settings.syncDeleteUseTrash?await this.app.vault.trash(file2,!1):await this.app.vault.delete(file2,!0)}async syncDeletedBookmarks(remoteBookmarkIds){try{let nrDeleted=0;for(let localBookmark of this.getBookmarkFiles())if(!remoteBookmarkIds.has(localBookmark.raindropId))try{console.debug(`Deleted local file for bookmark ID: ${localBookmark.raindropId}, file: ${localBookmark.file.path}`),await this.deleteFile(localBookmark.file),nrDeleted++}catch(e){console.error(e)}return console.debug(`Deleted ${nrDeleted} orphaned bookmark files`),!0}catch(e){return console.error("Error during bookmark deletion sync:",e),!1}}async syncCollectionMeta(){try{let enableCollectionGroup=this.plugin.settings.enableCollectionGroups,allCollections=await this.api.getCollections(enableCollectionGroup);return await this.plugin.settings.setSyncCollections(allCollections),!0}catch(e){return console.error("Raindrop Highlights: failed to sync collections metadata",e),new import_obsidian5.Notice("Raindrop Highlights: failed to sync collections metadata, see console for details."),!1}}async syncSingle({file:file2}){var _a9;let raindropId;if(file2){let fmc=(_a9=this.app.metadataCache.getFileCache(file2))==null?void 0:_a9.frontmatter;if(fmc!=null&&fmc.raindrop_id)raindropId=Number(fmc.raindrop_id);else{new import_obsidian5.Notice("This is not a Raindrop bookmark file");return}}else{new import_obsidian5.Notice("No active file");return}let bookmark=await this.api.getRaindrop(raindropId);await this.updateFileContent(file2,bookmark),new import_obsidian5.Notice(`Sync ${bookmark.title} completed`)}getSyncFolder(collection){let highlightsFolder=this.plugin.settings.highlightsFolder,collectionFolder=highlightsFolder;return this.plugin.settings.enableCollectionsFolders&&(collectionFolder=`${highlightsFolder}/${collection.title}`),collectionFolder}async syncCollection(collection,remoteBookmarkIds,fullSync){let notice;this.plugin.settings.enableSyncNotices&&(notice=new import_obsidian5.Notice(`Sync Raindrop collection: ${collection.title}`));let syncFolder=this.getSyncFolder(collection),lastSyncDate=fullSync?void 0:collection.lastSyncDate;try{console.debug(lastSyncDate===void 0?`start sync collection: ${collection.title}, full sync`:`start sync collection: ${collection.title}, last sync at: ${lastSyncDate}`);for await(let bookmarks of this.api.getRaindropsAfter(collection,notice,lastSyncDate)){await this.syncBookmarks(bookmarks,syncFolder);for(let bookmark of bookmarks)remoteBookmarkIds.add(bookmark.id)}return await this.plugin.settings.updateCollectionLastSyncDate(collection.id.toString(),new Date),!0}catch(e){return console.error(e),!1}}async syncBookmarks(bookmarks,folderPath){if(bookmarks.length==0||this.plugin.settings.onlySyncBookmarksWithHl&&!bookmarks.some(bookmark=>bookmark.highlights.length!=0))return;try{await this.app.vault.createFolder(folderPath)}catch(e){}let bookmarkFilesMap=Object.assign({},...this.getBookmarkFiles().map(x=>({[x.raindropId]:x.file})));for(let bookmark of bookmarks){if(this.plugin.settings.onlySyncBookmarksWithHl&&bookmark.highlights.length==0)continue;let file2=bookmarkFilesMap[bookmark.id];if(file2)await this.updateFileContent(file2,bookmark),this.plugin.settings.enablePreventMovingExistingFiles===!1&&await this.updateFileName(file2,bookmark,folderPath);else{let renderedFilename=await this.renderer.renderFileName(bookmark,!0),filePath=await this.buildNonDupFilePath(folderPath,renderedFilename);bookmarkFilesMap[bookmark.id]=await this.createFile(filePath,bookmark)}}}buildFilePath(folderPath,renderedFilename,suffix){let fileSuffix=".md",fileName=(0,import_truncate_utf8_bytes.default)(`${renderedFilename}`,255-fileSuffix.length)+fileSuffix;return suffix&&(fileSuffix=` (${suffix++}).md`,fileName=(0,import_truncate_utf8_bytes.default)(`${renderedFilename}`,255-fileSuffix.length)+fileSuffix),(0,import_obsidian5.normalizePath)(`${folderPath}/${fileName}`)}async buildNonDupFilePath(folderPath,renderedFilename){let filePath=this.buildFilePath(folderPath,renderedFilename),suffix=1;for(;await this.app.vault.adapter.exists(filePath);)console.debug(`${filePath} alreay exists`),filePath=this.buildFilePath(folderPath,renderedFilename,suffix++);return filePath}async updateFileName(file2,bookmark,folderPath){let renderedFilename=await this.renderer.renderFileName(bookmark,!0),newFilePath=this.buildFilePath(folderPath,renderedFilename),newFileMeta=this.app.metadataCache.getCache(newFilePath);if(newFileMeta!=null&&newFileMeta.frontmatter&&"raindrop_id"in newFileMeta.frontmatter&&newFileMeta.frontmatter.raindrop_id==bookmark.id){console.debug(`file name of "${file2.path}" is not changed`);return}newFilePath=await this.buildNonDupFilePath(folderPath,renderedFilename),console.debug(`file name change detected, rename "${file2.path}" to "${newFilePath}"`),await this.app.fileManager.renameFile(file2,newFilePath)}async updateFileContent(file2,bookmark){this.plugin.settings.enableAppendMode?await this.updateFileAppendMode(file2,bookmark):await this.updateFileOverwriteMode(file2,bookmark)}async updateFileAppendMode(file2,bookmark){console.debug(`update file append mode ${file2.path}`);let metadata=this.app.metadataCache.getFileCache(file2),highlightSigs=Object.fromEntries(bookmark.highlights.map(hl=>[hl.id,hl.signature]));if(metadata!=null&&metadata.frontmatter&&"raindrop_highlights"in metadata.frontmatter){let localHighlights=metadata.frontmatter.raindrop_highlights;bookmark.highlights=bookmark.highlights.filter(hl=>!(hl.id in localHighlights&&hl.signature===localHighlights[hl.id]))}let appendedContent=await this.renderer.renderContent(bookmark,!1);await this.app.vault.append(file2,appendedContent);let fileContent=await this.app.vault.cachedRead(file2),bookmarkFm=await this.renderer.renderFrontmatter(bookmark,!1),bookmarkFmObj=(0,import_obsidian5.parseYaml)(bookmarkFm);if(bookmarkFmObj.raindrop_highlights=highlightSigs,metadata!=null&&metadata.frontmatterPosition){let article=this.splitFrontmatterAndContent(fileContent,metadata.frontmatterPosition.end.line),newFmObj={...(0,import_obsidian5.parseYaml)(article.frontmatter),...bookmarkFmObj};Object.keys(highlightSigs).length==0&&"raindrop_highlights"in newFmObj&&delete newFmObj.raindrop_highlights;let newFullFileContent=`---
${(0,import_obsidian5.stringifyYaml)(newFmObj)}---
${article.content}`;await this.app.vault.modify(file2,newFullFileContent)}else{Object.keys(highlightSigs).length==0&&"raindrop_highlights"in bookmarkFmObj&&delete bookmarkFmObj.raindrop_highlights;let newFullFileContent=`---
${(0,import_obsidian5.stringifyYaml)(bookmarkFmObj)}---
${fileContent}`;await this.app.vault.modify(file2,newFullFileContent)}}async updateFileOverwriteMode(file2,bookmark){console.debug("update file overwrite mode",file2.path);let mdContent=await this.renderer.renderFullArticle(bookmark);return this.app.vault.modify(file2,mdContent)}async createFile(filePath,bookmark){console.debug("create file",filePath);let mdContent=await this.renderer.renderFullArticle(bookmark);return this.app.vault.create(filePath,mdContent)}getBookmarkFiles(){return this.app.vault.getMarkdownFiles().map(file2=>{var _a9;let cache=this.app.metadataCache.getFileCache(file2),raindropId=(_a9=cache==null?void 0:cache.frontmatter)==null?void 0:_a9.raindrop_id;return{file:file2,raindropId}}).filter(({raindropId})=>raindropId)}splitFrontmatterAndContent(content,fmEndLine){let splitPosFm=-1;for(;fmEndLine--&&splitPosFm++<content.length;)if(splitPosFm=content.indexOf(`
`,splitPosFm),splitPosFm<0)throw Error("Split front matter failed");let splitPosContent=splitPosFm+1;return splitPosContent=content.indexOf(`
`,splitPosContent)+1,{content:content.substring(splitPosContent),frontmatter:content.substring(0,splitPosFm)}}};var RaindropSettingTab=class extends import_obsidian6.PluginSettingTab{constructor(app,plugin,api,settings){super(app,plugin),this.plugin=plugin,this.renderer=new Renderer(plugin),this.api=api,this.raindropSync=new RaindropSync(this.app,plugin,api),this.settings=settings}display(){let{containerEl}=this;containerEl.empty(),this.settings.isConnected?this.disconnect():this.connect(),new import_obsidian6.Setting(containerEl).setName("Plugin").setHeading(),this.ribbonIcon(),this.autoSyncInterval(),this.autoSyncSuccessNotice(),new import_obsidian6.Setting(containerEl).setName("Rules & Templates").setHeading(),this.collections(),this.onlyBookmarksWithHl(),this.syncDeleteFiles(),this.syncDeleteUseTrash(),this.appendMode(),this.template(),this.metadataTemplate(),this.highlightsFolder(),this.collectionsFolders(),this.collectionGroups(),this.preventMovingExistingFiles(),this.filenameTemplate(),this.autoescape(),new import_obsidian6.Setting(containerEl).setName("Maintenance").setHeading(),this.resetSyncHistory()}ribbonIcon(){new import_obsidian6.Setting(this.containerEl).setName("Enable ribbon icon in the sidebar (need reload)").addToggle(toggle=>toggle.setValue(this.settings.enableRibbonIcon).onChange(async value=>{await this.settings.setEnableRibbonIcon(value)}))}appendMode(){let descFragment=document.createRange().createContextualFragment(appendModeInstructions_default);new import_obsidian6.Setting(this.containerEl).setName("Append Mode").setDesc(descFragment).addToggle(toggle=>toggle.setValue(this.settings.enableAppendMode).onChange(async value=>{await this.settings.setEnableAppendMode(value)}))}onlyBookmarksWithHl(){new import_obsidian6.Setting(this.containerEl).setName("Only sync bookmarks with highlights").addToggle(toggle=>toggle.setValue(this.settings.onlySyncBookmarksWithHl).onChange(async value=>{await this.settings.setOnlySyncBookmarksWithHl(value)}))}preventMovingExistingFiles(){new import_obsidian6.Setting(this.containerEl).setName("Folder location: Prevent moving existing files on sync").setDesc("If enabled, existing files will not be moved during sync.").addToggle(toggle=>toggle.setValue(this.settings.enablePreventMovingExistingFiles).onChange(async value=>{await this.settings.setEnablePreventMovingExistingFiles(value)}))}syncDeleteFiles(){new import_obsidian6.Setting(this.containerEl).setName("Delete local files when removed from Raindrop").setDesc("Sync delete event from Raindrop. Note that enabling this option will always trigger full sync instead of incremental sync.").addToggle(toggle=>toggle.setValue(this.settings.syncDeleteFiles).onChange(async value=>{await this.settings.setSyncDeleteFiles(value)}))}syncDeleteUseTrash(){new import_obsidian6.Setting(this.containerEl).setName("Use Trash to delete synced files").setDesc("Must use 'Delete local files when removed from Raindrop' option. Files will be moved to Trash instead of permanently deleted.").addToggle(toggle=>toggle.setValue(this.settings.syncDeleteUseTrash).onChange(async value=>{await this.settings.setSyncDeleteUseTrash(value)}))}collectionsFolders(){new import_obsidian6.Setting(this.containerEl).setName("Folder location: Collections folders").setDesc("Organize highlights into folders based on their collections").addToggle(toggle=>toggle.setValue(this.settings.enableCollectionsFolders).onChange(async value=>{await this.settings.setEnableCollectionsFolders(value)}))}connect(){new import_obsidian6.Setting(this.containerEl).setName("Connect to Raindrop.io").addButton(button=>button.setButtonText("Connect").setCta().onClick(async()=>{if(await new ApiTokenModal2(this.app,this.api).waitForClose,this.api.tokenManager.get()){new import_obsidian6.Notice("Token saved");let user=await this.api.getUser();await this.settings.setIsConnected(!0,user.fullName)}this.display()}))}disconnect(){new import_obsidian6.Setting(this.containerEl).setName(`Connected to Raindrop.io as ${this.settings.username}`).addButton(button=>button.setButtonText("Test API").setCta().onClick(async()=>{try{let user=await this.api.getUser();new import_obsidian6.Notice(`Test pass, hello ${user.fullName}`)}catch(e){console.error(e),new import_obsidian6.Notice(`Test failed: ${e}`),this.api.tokenManager.clear(),await this.settings.setIsConnected(!1,void 0)}})).addButton(button=>button.setButtonText("Disconnect").setCta().onClick(async()=>{button.removeCta().setButtonText("Removing API token...").setDisabled(!0);try{this.api.tokenManager.clear(),await this.settings.setIsConnected(!1,void 0)}catch(e){console.error(e),new import_obsidian6.Notice(`Token removed failed: ${e}`);return}new import_obsidian6.Notice("Token removed successfully"),this.display()}))}highlightsFolder(){new import_obsidian6.Setting(this.containerEl).setName("Folder location").setDesc("Vault folder to store highlights").addDropdown(dropdown=>{let folders=this.app.vault.getAllFolders();for(let folder of folders)dropdown.addOption(folder.path,folder.path);return dropdown.setValue(this.settings.highlightsFolder).onChange(async value=>{await this.settings.setHighlightsFolder(value)})})}collectionGroups(){let descFragment=document.createRange().createContextualFragment(collectionGroupsInstructions_default);new import_obsidian6.Setting(this.containerEl).setName("Folder location: Collection groups").setDesc(descFragment).addToggle(toggle=>toggle.setValue(this.settings.enableCollectionGroups).onChange(async value=>{await this.settings.setEnableCollectionGroups(value)}))}collections(){new import_obsidian6.Setting(this.containerEl).setName("Collections").setDesc("Manage collections to be synced").addButton(button=>button.setDisabled(!this.settings.isConnected).setButtonText("Manage").setCta().onClick(async()=>{button.setButtonText("Loading collections..."),await this.raindropSync.syncCollectionMeta(),new CollectionsModal(this.app,this.plugin),this.display()}))}template(){let templateDescFragment=document.createRange().createContextualFragment(templateInstructions_default);new import_obsidian6.Setting(this.containerEl).setName("Content template").setDesc(templateDescFragment).setClass("raindrop-content-template").addTextArea(text2=>(text2.setValue(this.settings.contentTemplate).onChange(async value=>{let isValid=await this.renderer.validate(value);isValid&&await this.settings.setContentTemplate(value),text2.inputEl.style.border=isValid?"":"1px solid red"}),text2))}metadataTemplate(){let templateDescFragment=document.createRange().createContextualFragment(metadataTemplateInstructions_default);new import_obsidian6.Setting(this.containerEl).setName("Metadata template").setDesc(templateDescFragment).setClass("raindrop-metadata-template").addTextArea(text2=>(text2.setPlaceholder(defaultMetadataTemplate_default),text2.setValue(this.settings.metadataTemplate).onChange(async value=>{let isValid=await this.renderer.validate(value,!0);isValid&&await this.settings.setMetadataTemplate(value),text2.inputEl.style.border=isValid?"":"1px solid red"}),text2))}filenameTemplate(){let templateDescFragment=document.createRange().createContextualFragment(filenameTemplateInstructions_default);new import_obsidian6.Setting(this.containerEl).setName("Filename template").setDesc(templateDescFragment).setClass("raindrop-filename-template").addTextArea(text2=>(text2.setValue(this.settings.filenameTemplate).onChange(async value=>{let isValid=await this.renderer.validate(value,!1);isValid&&await this.settings.setFilenameTemplate(value),text2.inputEl.style.border=isValid?"":"1px solid red"}),text2))}resetSyncHistory(){new import_obsidian6.Setting(this.containerEl).setName("Reset last sync time for all collections").setDesc("This is useful if you want to resync all bookmarks.").addButton(button=>button.setButtonText("Reset").setDisabled(!this.settings.isConnected).setWarning().onClick(async()=>{await this.settings.resetAllCollectionSyncHistory(),new import_obsidian6.Notice("Sync history reset successfully")}))}autoSyncInterval(){new import_obsidian6.Setting(this.containerEl).setName("Auto sync in interval (minutes)").setDesc("Sync every X minutes. To disable auto sync, specify negative value or zero (default)").addText(text2=>{text2.setPlaceholder(String(0)).setValue(this.settings.autoSyncInterval.toString()).onChange(async value=>{if(!isNaN(Number(value))){let minutes=Number(value);await this.settings.setAutoSyncInterval(minutes),console.info("Set raindrop.io autosync interval",minutes),minutes>0?(this.plugin.clearAutoSync(),await this.plugin.startAutoSync(minutes),console.info(`Raindrop.io auto sync enabled! Every ${minutes} minutes.`)):(this.plugin.clearAutoSync(),console.info("Raindrop.io auto sync disabled!"))}})})}autoSyncSuccessNotice(){new import_obsidian6.Setting(this.containerEl).setName("Show notifications while syncing").addToggle(toggle=>toggle.setValue(this.settings.enableSyncNotices).onChange(async value=>{await this.settings.setEnableSyncNotices(value)}))}autoescape(){let templateDescFragment=document.createRange().createContextualFragment(autoescapingInstructions_default);new import_obsidian6.Setting(this.containerEl).setName("Enable autoescaping for nunjucks").setDesc(templateDescFragment).addToggle(toggle=>toggle.setValue(this.settings.enableAutoEscape).onChange(async value=>{await this.settings.setEnableAutoEscape(value)}))}};var import_obsidian7=require("obsidian");function bind(fn,thisArg){return function(){return fn.apply(thisArg,arguments)}}var{toString}=Object.prototype,{getPrototypeOf}=Object,{iterator,toStringTag}=Symbol,kindOf=(cache=>thing=>{let str=toString.call(thing);return cache[str]||(cache[str]=str.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=type=>(type=type.toLowerCase(),thing=>kindOf(thing)===type),typeOfTest=type=>thing=>typeof thing===type,{isArray}=Array,isUndefined=typeOfTest("undefined");function isBuffer(val){return val!==null&&!isUndefined(val)&&val.constructor!==null&&!isUndefined(val.constructor)&&isFunction(val.constructor.isBuffer)&&val.constructor.isBuffer(val)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(val){let result;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?result=ArrayBuffer.isView(val):result=val&&val.buffer&&isArrayBuffer(val.buffer),result}var isString=typeOfTest("string"),isFunction=typeOfTest("function"),isNumber=typeOfTest("number"),isObject=thing=>thing!==null&&typeof thing=="object",isBoolean=thing=>thing===!0||thing===!1,isPlainObject=val=>{if(kindOf(val)!=="object")return!1;let prototype2=getPrototypeOf(val);return(prototype2===null||prototype2===Object.prototype||Object.getPrototypeOf(prototype2)===null)&&!(toStringTag in val)&&!(iterator in val)},isEmptyObject=val=>{if(!isObject(val)||isBuffer(val))return!1;try{return Object.keys(val).length===0&&Object.getPrototypeOf(val)===Object.prototype}catch(e){return!1}},isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isReactNativeBlob=value=>!!(value&&typeof value.uri!="undefined"),isReactNative=formData=>formData&&typeof formData.getParts!="undefined",isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=val=>isObject(val)&&isFunction(val.pipe);function getGlobal(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}var G=getGlobal(),FormDataCtor=typeof G.FormData!="undefined"?G.FormData:void 0,isFormData=thing=>{if(!thing)return!1;if(FormDataCtor&&thing instanceof FormDataCtor)return!0;let proto=getPrototypeOf(thing);if(!proto||proto===Object.prototype||!isFunction(thing.append))return!1;let kind=kindOf(thing);return kind==="formdata"||kind==="object"&&isFunction(thing.toString)&&thing.toString()==="[object FormData]"},isURLSearchParams=kindOfTest("URLSearchParams"),[isReadableStream,isRequest,isResponse,isHeaders]=["ReadableStream","Request","Response","Headers"].map(kindOfTest),trim=str=>str.trim?str.trim():str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(obj,fn,{allOwnKeys=!1}={}){if(obj===null||typeof obj=="undefined")return;let i,l;if(typeof obj!="object"&&(obj=[obj]),isArray(obj))for(i=0,l=obj.length;i<l;i++)fn.call(null,obj[i],i,obj);else{if(isBuffer(obj))return;let keys=allOwnKeys?Object.getOwnPropertyNames(obj):Object.keys(obj),len=keys.length,key2;for(i=0;i<len;i++)key2=keys[i],fn.call(null,obj[key2],key2,obj)}}function findKey(obj,key2){if(isBuffer(obj))return null;key2=key2.toLowerCase();let keys=Object.keys(obj),i=keys.length,_key;for(;i-- >0;)if(_key=keys[i],key2===_key.toLowerCase())return _key;return null}var _global=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,isContextDefined=context=>!isUndefined(context)&&context!==_global;function merge(...objs){let{caseless,skipUndefined}=isContextDefined(this)&&this||{},result={},assignValue=(val,key2)=>{if(key2==="__proto__"||key2==="constructor"||key2==="prototype")return;let targetKey=caseless&&findKey(result,key2)||key2,existing=hasOwnProperty(result,targetKey)?result[targetKey]:void 0;isPlainObject(existing)&&isPlainObject(val)?result[targetKey]=merge(existing,val):isPlainObject(val)?result[targetKey]=merge({},val):isArray(val)?result[targetKey]=val.slice():(!skipUndefined||!isUndefined(val))&&(result[targetKey]=val)};for(let i=0,l=objs.length;i<l;i++)objs[i]&&forEach(objs[i],assignValue);return result}var extend=(a,b,thisArg,{allOwnKeys}={})=>(forEach(b,(val,key2)=>{thisArg&&isFunction(val)?Object.defineProperty(a,key2,{__proto__:null,value:bind(val,thisArg),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(a,key2,{__proto__:null,value:val,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys}),a),stripBOM=content=>(content.charCodeAt(0)===65279&&(content=content.slice(1)),content),inherits=(constructor,superConstructor,props,descriptors)=>{constructor.prototype=Object.create(superConstructor.prototype,descriptors),Object.defineProperty(constructor.prototype,"constructor",{__proto__:null,value:constructor,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(constructor,"super",{__proto__:null,value:superConstructor.prototype}),props&&Object.assign(constructor.prototype,props)},toFlatObject=(sourceObj,destObj,filter2,propFilter)=>{let props,i,prop2,merged={};if(destObj=destObj||{},sourceObj==null)return destObj;do{for(props=Object.getOwnPropertyNames(sourceObj),i=props.length;i-- >0;)prop2=props[i],(!propFilter||propFilter(prop2,sourceObj,destObj))&&!merged[prop2]&&(destObj[prop2]=sourceObj[prop2],merged[prop2]=!0);sourceObj=filter2!==!1&&getPrototypeOf(sourceObj)}while(sourceObj&&(!filter2||filter2(sourceObj,destObj))&&sourceObj!==Object.prototype);return destObj},endsWith=(str,searchString,position)=>{str=String(str),(position===void 0||position>str.length)&&(position=str.length),position-=searchString.length;let lastIndex=str.indexOf(searchString,position);return lastIndex!==-1&&lastIndex===position},toArray=thing=>{if(!thing)return null;if(isArray(thing))return thing;let i=thing.length;if(!isNumber(i))return null;let arr=new Array(i);for(;i-- >0;)arr[i]=thing[i];return arr},isTypedArray=(TypedArray=>thing=>TypedArray&&thing instanceof TypedArray)(typeof Uint8Array!="undefined"&&getPrototypeOf(Uint8Array)),forEachEntry=(obj,fn)=>{let _iterator=(obj&&obj[iterator]).call(obj),result;for(;(result=_iterator.next())&&!result.done;){let pair=result.value;fn.call(obj,pair[0],pair[1])}},matchAll=(regExp,str)=>{let matches,arr=[];for(;(matches=regExp.exec(str))!==null;)arr.push(matches);return arr},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=str=>str.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(m,p1,p2){return p1.toUpperCase()+p2}),hasOwnProperty=(({hasOwnProperty:hasOwnProperty2})=>(obj,prop2)=>hasOwnProperty2.call(obj,prop2))(Object.prototype),isRegExp=kindOfTest("RegExp"),reduceDescriptors=(obj,reducer)=>{let descriptors=Object.getOwnPropertyDescriptors(obj),reducedDescriptors={};forEach(descriptors,(descriptor,name)=>{let ret;(ret=reducer(descriptor,name,obj))!==!1&&(reducedDescriptors[name]=ret||descriptor)}),Object.defineProperties(obj,reducedDescriptors)},freezeMethods=obj=>{reduceDescriptors(obj,(descriptor,name)=>{if(isFunction(obj)&&["arguments","caller","callee"].includes(name))return!1;let value=obj[name];if(isFunction(value)){if(descriptor.enumerable=!1,"writable"in descriptor){descriptor.writable=!1;return}descriptor.set||(descriptor.set=()=>{throw Error("Can not rewrite read-only method '"+name+"'")})}})},toObjectSet=(arrayOrString,delimiter)=>{let obj={},define2=arr=>{arr.forEach(value=>{obj[value]=!0})};return isArray(arrayOrString)?define2(arrayOrString):define2(String(arrayOrString).split(delimiter)),obj},noop2=()=>{},toFiniteNumber=(value,defaultValue)=>value!=null&&Number.isFinite(value=+value)?value:defaultValue;function isSpecCompliantForm(thing){return!!(thing&&isFunction(thing.append)&&thing[toStringTag]==="FormData"&&thing[iterator])}var toJSONObject=obj=>{let visited=new WeakSet,visit=source2=>{if(isObject(source2)){if(visited.has(source2))return;if(isBuffer(source2))return source2;if(!("toJSON"in source2)){visited.add(source2);let target=isArray(source2)?[]:{};return forEach(source2,(value,key2)=>{let reducedValue=visit(value);!isUndefined(reducedValue)&&(target[key2]=reducedValue)}),visited.delete(source2),target}}return source2};return visit(obj)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=thing=>thing&&(isObject(thing)||isFunction(thing))&&isFunction(thing.then)&&isFunction(thing.catch),_setImmediate=((setImmediateSupported,postMessageSupported)=>setImmediateSupported?setImmediate:postMessageSupported?((token,callbacks)=>(_global.addEventListener("message",({source:source2,data})=>{source2===_global&&data===token&&callbacks.length&&callbacks.shift()()},!1),cb=>{callbacks.push(cb),_global.postMessage(token,"*")}))(`axios@${Math.random()}`,[]):cb=>setTimeout(cb))(typeof setImmediate=="function",isFunction(_global.postMessage)),asap=typeof queueMicrotask!="undefined"?queueMicrotask.bind(_global):typeof process!="undefined"&&process.nextTick||_setImmediate,isIterable=thing=>thing!=null&&isFunction(thing[iterator]),utils_default={isArray,isArrayBuffer,isBuffer,isFormData,isArrayBufferView,isString,isNumber,isBoolean,isObject,isPlainObject,isEmptyObject,isReadableStream,isRequest,isResponse,isHeaders,isUndefined,isDate,isFile,isReactNativeBlob,isReactNative,isBlob,isRegExp,isFunction,isStream,isURLSearchParams,isTypedArray,isFileList,forEach,merge,extend,trim,stripBOM,inherits,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase,noop:noop2,toFiniteNumber,findKey,global:_global,isContextDefined,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable,setImmediate:_setImmediate,asap,isIterable};var ignoreDuplicateOf=utils_default.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders_default=rawHeaders=>{let parsed={},key2,val,i;return rawHeaders&&rawHeaders.split(`
`).forEach(function(line){i=line.indexOf(":"),key2=line.substring(0,i).trim().toLowerCase(),val=line.substring(i+1).trim(),!(!key2||parsed[key2]&&ignoreDuplicateOf[key2])&&(key2==="set-cookie"?parsed[key2]?parsed[key2].push(val):parsed[key2]=[val]:parsed[key2]=parsed[key2]?parsed[key2]+", "+val:val)}),parsed};function trimSPorHTAB(str){let start=0,end=str.length;for(;start<end;){let code=str.charCodeAt(start);if(code!==9&&code!==32)break;start+=1}for(;end>start;){let code=str.charCodeAt(end-1);if(code!==9&&code!==32)break;end-=1}return start===0&&end===str.length?str:str.slice(start,end)}var INVALID_UNICODE_HEADER_VALUE_CHARS=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),INVALID_BYTE_STRING_HEADER_VALUE_CHARS=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function sanitizeValue(value,invalidChars){return utils_default.isArray(value)?value.map(item=>sanitizeValue(item,invalidChars)):trimSPorHTAB(String(value).replace(invalidChars,""))}var sanitizeHeaderValue=value=>sanitizeValue(value,INVALID_UNICODE_HEADER_VALUE_CHARS),sanitizeByteStringHeaderValue=value=>sanitizeValue(value,INVALID_BYTE_STRING_HEADER_VALUE_CHARS);function toByteStringHeaderObject(headers){let byteStringHeaders=Object.create(null);return utils_default.forEach(headers.toJSON(),(value,header)=>{byteStringHeaders[header]=sanitizeByteStringHeaderValue(value)}),byteStringHeaders}var $internals=Symbol("internals");function normalizeHeader(header){return header&&String(header).trim().toLowerCase()}function normalizeValue(value){return value===!1||value==null?value:utils_default.isArray(value)?value.map(normalizeValue):sanitizeHeaderValue(String(value))}function parseTokens(str){let tokens=Object.create(null),tokensRE=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,match;for(;match=tokensRE.exec(str);)tokens[match[1]]=match[2];return tokens}var isValidHeaderName=str=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());function matchHeaderValue(context,value,header,filter2,isHeaderNameFilter){if(utils_default.isFunction(filter2))return filter2.call(this,value,header);if(isHeaderNameFilter&&(value=header),!!utils_default.isString(value)){if(utils_default.isString(filter2))return value.indexOf(filter2)!==-1;if(utils_default.isRegExp(filter2))return filter2.test(value)}}function formatHeader(header){return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(w,char,str)=>char.toUpperCase()+str)}function buildAccessors(obj,header){let accessorName=utils_default.toCamelCase(" "+header);["get","set","has"].forEach(methodName=>{Object.defineProperty(obj,methodName+accessorName,{__proto__:null,value:function(arg1,arg2,arg3){return this[methodName].call(this,header,arg1,arg2,arg3)},configurable:!0})})}var AxiosHeaders=class{constructor(headers){headers&&this.set(headers)}set(header,valueOrRewrite,rewrite){let self3=this;function setHeader(_value,_header,_rewrite){let lHeader=normalizeHeader(_header);if(!lHeader)throw new Error("header name must be a non-empty string");let key2=utils_default.findKey(self3,lHeader);(!key2||self3[key2]===void 0||_rewrite===!0||_rewrite===void 0&&self3[key2]!==!1)&&(self3[key2||_header]=normalizeValue(_value))}let setHeaders=(headers,_rewrite)=>utils_default.forEach(headers,(_value,_header)=>setHeader(_value,_header,_rewrite));if(utils_default.isPlainObject(header)||header instanceof this.constructor)setHeaders(header,valueOrRewrite);else if(utils_default.isString(header)&&(header=header.trim())&&!isValidHeaderName(header))setHeaders(parseHeaders_default(header),valueOrRewrite);else if(utils_default.isObject(header)&&utils_default.isIterable(header)){let obj={},dest,key2;for(let entry of header){if(!utils_default.isArray(entry))throw TypeError("Object iterator must return a key-value pair");obj[key2=entry[0]]=(dest=obj[key2])?utils_default.isArray(dest)?[...dest,entry[1]]:[dest,entry[1]]:entry[1]}setHeaders(obj,valueOrRewrite)}else header!=null&&setHeader(valueOrRewrite,header,rewrite);return this}get(header,parser){if(header=normalizeHeader(header),header){let key2=utils_default.findKey(this,header);if(key2){let value=this[key2];if(!parser)return value;if(parser===!0)return parseTokens(value);if(utils_default.isFunction(parser))return parser.call(this,value,key2);if(utils_default.isRegExp(parser))return parser.exec(value);throw new TypeError("parser must be boolean|regexp|function")}}}has(header,matcher){if(header=normalizeHeader(header),header){let key2=utils_default.findKey(this,header);return!!(key2&&this[key2]!==void 0&&(!matcher||matchHeaderValue(this,this[key2],key2,matcher)))}return!1}delete(header,matcher){let self3=this,deleted=!1;function deleteHeader(_header){if(_header=normalizeHeader(_header),_header){let key2=utils_default.findKey(self3,_header);key2&&(!matcher||matchHeaderValue(self3,self3[key2],key2,matcher))&&(delete self3[key2],deleted=!0)}}return utils_default.isArray(header)?header.forEach(deleteHeader):deleteHeader(header),deleted}clear(matcher){let keys=Object.keys(this),i=keys.length,deleted=!1;for(;i--;){let key2=keys[i];(!matcher||matchHeaderValue(this,this[key2],key2,matcher,!0))&&(delete this[key2],deleted=!0)}return deleted}normalize(format){let self3=this,headers={};return utils_default.forEach(this,(value,header)=>{let key2=utils_default.findKey(headers,header);if(key2){self3[key2]=normalizeValue(value),delete self3[header];return}let normalized=format?formatHeader(header):String(header).trim();normalized!==header&&delete self3[header],self3[normalized]=normalizeValue(value),headers[normalized]=!0}),this}concat(...targets){return this.constructor.concat(this,...targets)}toJSON(asStrings){let obj=Object.create(null);return utils_default.forEach(this,(value,header)=>{value!=null&&value!==!1&&(obj[header]=asStrings&&utils_default.isArray(value)?value.join(", "):value)}),obj}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([header,value])=>header+": "+value).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(thing){return thing instanceof this?thing:new this(thing)}static concat(first,...targets){let computed=new this(first);return targets.forEach(target=>computed.set(target)),computed}static accessor(header){let accessors=(this[$internals]=this[$internals]={accessors:{}}).accessors,prototype2=this.prototype;function defineAccessor(_header){let lHeader=normalizeHeader(_header);accessors[lHeader]||(buildAccessors(prototype2,_header),accessors[lHeader]=!0)}return utils_default.isArray(header)?header.forEach(defineAccessor):defineAccessor(header),this}};AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils_default.reduceDescriptors(AxiosHeaders.prototype,({value},key2)=>{let mapped=key2[0].toUpperCase()+key2.slice(1);return{get:()=>value,set(headerValue){this[mapped]=headerValue}}});utils_default.freezeMethods(AxiosHeaders);var AxiosHeaders_default=AxiosHeaders;var REDACTED="[REDACTED ****]";function hasOwnOrPrototypeToJSON(source2){if(utils_default.hasOwnProp(source2,"toJSON"))return!0;let prototype2=Object.getPrototypeOf(source2);for(;prototype2&&prototype2!==Object.prototype;){if(utils_default.hasOwnProp(prototype2,"toJSON"))return!0;prototype2=Object.getPrototypeOf(prototype2)}return!1}function redactConfig(config2,redactKeys){let lowerKeys=new Set(redactKeys.map(k=>String(k).toLowerCase())),seen=[],visit=source2=>{if(source2===null||typeof source2!="object"||utils_default.isBuffer(source2))return source2;if(seen.indexOf(source2)!==-1)return;source2 instanceof AxiosHeaders_default&&(source2=source2.toJSON()),seen.push(source2);let result;if(utils_default.isArray(source2))result=[],source2.forEach((v,i)=>{let reducedValue=visit(v);utils_default.isUndefined(reducedValue)||(result[i]=reducedValue)});else{if(!utils_default.isPlainObject(source2)&&hasOwnOrPrototypeToJSON(source2))return seen.pop(),source2;result=Object.create(null);for(let[key2,value]of Object.entries(source2)){let reducedValue=lowerKeys.has(key2.toLowerCase())?REDACTED:visit(value);utils_default.isUndefined(reducedValue)||(result[key2]=reducedValue)}}return seen.pop(),result};return visit(config2)}var AxiosError=class _AxiosError extends Error{static from(error51,code,config2,request,response,customProps){let axiosError=new _AxiosError(error51.message,code||error51.code,config2,request,response);return axiosError.cause=error51,axiosError.name=error51.name,error51.status!=null&&axiosError.status==null&&(axiosError.status=error51.status),customProps&&Object.assign(axiosError,customProps),axiosError}constructor(message,code,config2,request,response){super(message),Object.defineProperty(this,"message",{__proto__:null,value:message,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,code&&(this.code=code),config2&&(this.config=config2),request&&(this.request=request),response&&(this.response=response,this.status=response.status)}toJSON(){let config2=this.config,redactKeys=config2&&utils_default.hasOwnProp(config2,"redact")?config2.redact:void 0,serializedConfig=utils_default.isArray(redactKeys)&&redactKeys.length>0?redactConfig(config2,redactKeys):utils_default.toJSONObject(config2);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:serializedConfig,code:this.code,status:this.status}}};AxiosError.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";AxiosError.ERR_BAD_OPTION="ERR_BAD_OPTION";AxiosError.ECONNABORTED="ECONNABORTED";AxiosError.ETIMEDOUT="ETIMEDOUT";AxiosError.ECONNREFUSED="ECONNREFUSED";AxiosError.ERR_NETWORK="ERR_NETWORK";AxiosError.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";AxiosError.ERR_DEPRECATED="ERR_DEPRECATED";AxiosError.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";AxiosError.ERR_BAD_REQUEST="ERR_BAD_REQUEST";AxiosError.ERR_CANCELED="ERR_CANCELED";AxiosError.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";AxiosError.ERR_INVALID_URL="ERR_INVALID_URL";AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";var AxiosError_default=AxiosError;var null_default=null;function isVisitable(thing){return utils_default.isPlainObject(thing)||utils_default.isArray(thing)}function removeBrackets(key2){return utils_default.endsWith(key2,"[]")?key2.slice(0,-2):key2}function renderKey(path,key2,dots){return path?path.concat(key2).map(function(token,i){return token=removeBrackets(token),!dots&&i?"["+token+"]":token}).join(dots?".":""):key2}function isFlatArray(arr){return utils_default.isArray(arr)&&!arr.some(isVisitable)}var predicates=utils_default.toFlatObject(utils_default,{},null,function(prop2){return/^is[A-Z]/.test(prop2)});function toFormData(obj,formData,options){if(!utils_default.isObject(obj))throw new TypeError("target must be an object");formData=formData||new(null_default||FormData),options=utils_default.toFlatObject(options,{metaTokens:!0,dots:!1,indexes:!1},!1,function(option,source2){return!utils_default.isUndefined(source2[option])});let metaTokens=options.metaTokens,visitor=options.visitor||defaultVisitor,dots=options.dots,indexes=options.indexes,_Blob=options.Blob||typeof Blob!="undefined"&&Blob,maxDepth=options.maxDepth===void 0?100:options.maxDepth,useBlob=_Blob&&utils_default.isSpecCompliantForm(formData);if(!utils_default.isFunction(visitor))throw new TypeError("visitor must be a function");function convertValue(value){if(value===null)return"";if(utils_default.isDate(value))return value.toISOString();if(utils_default.isBoolean(value))return value.toString();if(!useBlob&&utils_default.isBlob(value))throw new AxiosError_default("Blob is not supported. Use a Buffer instead.");return utils_default.isArrayBuffer(value)||utils_default.isTypedArray(value)?useBlob&&typeof Blob=="function"?new Blob([value]):Buffer.from(value):value}function defaultVisitor(value,key2,path){let arr=value;if(utils_default.isReactNative(formData)&&utils_default.isReactNativeBlob(value))return formData.append(renderKey(path,key2,dots),convertValue(value)),!1;if(value&&!path&&typeof value=="object"){if(utils_default.endsWith(key2,"{}"))key2=metaTokens?key2:key2.slice(0,-2),value=JSON.stringify(value);else if(utils_default.isArray(value)&&isFlatArray(value)||(utils_default.isFileList(value)||utils_default.endsWith(key2,"[]"))&&(arr=utils_default.toArray(value)))return key2=removeBrackets(key2),arr.forEach(function(el,index2){!(utils_default.isUndefined(el)||el===null)&&formData.append(indexes===!0?renderKey([key2],index2,dots):indexes===null?key2:key2+"[]",convertValue(el))}),!1}return isVisitable(value)?!0:(formData.append(renderKey(path,key2,dots),convertValue(value)),!1)}let stack2=[],exposedHelpers=Object.assign(predicates,{defaultVisitor,convertValue,isVisitable});function build(value,path,depth=0){if(!utils_default.isUndefined(value)){if(depth>maxDepth)throw new AxiosError_default("Object is too deeply nested ("+depth+" levels). Max depth: "+maxDepth,AxiosError_default.ERR_FORM_DATA_DEPTH_EXCEEDED);if(stack2.indexOf(value)!==-1)throw Error("Circular reference detected in "+path.join("."));stack2.push(value),utils_default.forEach(value,function(el,key2){(!(utils_default.isUndefined(el)||el===null)&&visitor.call(formData,el,utils_default.isString(key2)?key2.trim():key2,path,exposedHelpers))===!0&&build(el,path?path.concat(key2):[key2],depth+1)}),stack2.pop()}}if(!utils_default.isObject(obj))throw new TypeError("data must be an object");return build(obj),formData}var toFormData_default=toFormData;function encode(str){let charMap={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(str).replace(/[!'()~]|%20/g,function(match){return charMap[match]})}function AxiosURLSearchParams(params,options){this._pairs=[],params&&toFormData_default(params,this,options)}var prototype=AxiosURLSearchParams.prototype;prototype.append=function(name,value){this._pairs.push([name,value])};prototype.toString=function(encoder){let _encode2=encoder?function(value){return encoder.call(this,value,encode)}:encode;return this._pairs.map(function(pair){return _encode2(pair[0])+"="+_encode2(pair[1])},"").join("&")};var AxiosURLSearchParams_default=AxiosURLSearchParams;function encode2(val){return encodeURIComponent(val).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function buildURL(url2,params,options){if(!params)return url2;let _encode2=options&&options.encode||encode2,_options=utils_default.isFunction(options)?{serialize:options}:options,serializeFn=_options&&_options.serialize,serializedParams;if(serializeFn?serializedParams=serializeFn(params,_options):serializedParams=utils_default.isURLSearchParams(params)?params.toString():new AxiosURLSearchParams_default(params,_options).toString(_encode2),serializedParams){let hashmarkIndex=url2.indexOf("#");hashmarkIndex!==-1&&(url2=url2.slice(0,hashmarkIndex)),url2+=(url2.indexOf("?")===-1?"?":"&")+serializedParams}return url2}var InterceptorManager=class{constructor(){this.handlers=[]}use(fulfilled,rejected,options){return this.handlers.push({fulfilled,rejected,synchronous:options?options.synchronous:!1,runWhen:options?options.runWhen:null}),this.handlers.length-1}eject(id){this.handlers[id]&&(this.handlers[id]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(fn){utils_default.forEach(this.handlers,function(h2){h2!==null&&fn(h2)})}},InterceptorManager_default=InterceptorManager;var transitional_default={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0};var URLSearchParams_default=typeof URLSearchParams!="undefined"?URLSearchParams:AxiosURLSearchParams_default;var FormData_default=typeof FormData!="undefined"?FormData:null;var Blob_default=typeof Blob!="undefined"?Blob:null;var browser_default={isBrowser:!0,classes:{URLSearchParams:URLSearchParams_default,FormData:FormData_default,Blob:Blob_default},protocols:["http","https","file","blob","url","data"]};var utils_exports={};__export(utils_exports,{hasBrowserEnv:()=>hasBrowserEnv,hasStandardBrowserEnv:()=>hasStandardBrowserEnv,hasStandardBrowserWebWorkerEnv:()=>hasStandardBrowserWebWorkerEnv,navigator:()=>_navigator,origin:()=>origin});var hasBrowserEnv=typeof window!="undefined"&&typeof document!="undefined",_navigator=typeof navigator=="object"&&navigator||void 0,hasStandardBrowserEnv=hasBrowserEnv&&(!_navigator||["ReactNative","NativeScript","NS"].indexOf(_navigator.product)<0),hasStandardBrowserWebWorkerEnv=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",origin=hasBrowserEnv&&window.location.href||"http://localhost";var platform_default={...utils_exports,...browser_default};function toURLEncodedForm(data,options){return toFormData_default(data,new platform_default.classes.URLSearchParams,{visitor:function(value,key2,path,helpers){return platform_default.isNode&&utils_default.isBuffer(value)?(this.append(key2,value.toString("base64")),!1):helpers.defaultVisitor.apply(this,arguments)},...options})}function parsePropPath(name){return utils_default.matchAll(/\w+|\[(\w*)]/g,name).map(match=>match[0]==="[]"?"":match[1]||match[0])}function arrayToObject(arr){let obj={},keys=Object.keys(arr),i,len=keys.length,key2;for(i=0;i<len;i++)key2=keys[i],obj[key2]=arr[key2];return obj}function formDataToJSON(formData){function buildPath(path,value,target,index2){let name=path[index2++];if(name==="__proto__")return!0;let isNumericKey=Number.isFinite(+name),isLast=index2>=path.length;return name=!name&&utils_default.isArray(target)?target.length:name,isLast?(utils_default.hasOwnProp(target,name)?target[name]=utils_default.isArray(target[name])?target[name].concat(value):[target[name],value]:target[name]=value,!isNumericKey):((!utils_default.hasOwnProp(target,name)||!utils_default.isObject(target[name]))&&(target[name]=[]),buildPath(path,value,target[name],index2)&&utils_default.isArray(target[name])&&(target[name]=arrayToObject(target[name])),!isNumericKey)}if(utils_default.isFormData(formData)&&utils_default.isFunction(formData.entries)){let obj={};return utils_default.forEachEntry(formData,(name,value)=>{buildPath(parsePropPath(name),value,obj,0)}),obj}return null}var formDataToJSON_default=formDataToJSON;var own=(obj,key2)=>obj!=null&&utils_default.hasOwnProp(obj,key2)?obj[key2]:void 0;function stringifySafely(rawValue,parser,encoder){if(utils_default.isString(rawValue))try{return(parser||JSON.parse)(rawValue),utils_default.trim(rawValue)}catch(e){if(e.name!=="SyntaxError")throw e}return(encoder||JSON.stringify)(rawValue)}var defaults={transitional:transitional_default,adapter:["xhr","http","fetch"],transformRequest:[function(data,headers){let contentType=headers.getContentType()||"",hasJSONContentType=contentType.indexOf("application/json")>-1,isObjectPayload=utils_default.isObject(data);if(isObjectPayload&&utils_default.isHTMLForm(data)&&(data=new FormData(data)),utils_default.isFormData(data))return hasJSONContentType?JSON.stringify(formDataToJSON_default(data)):data;if(utils_default.isArrayBuffer(data)||utils_default.isBuffer(data)||utils_default.isStream(data)||utils_default.isFile(data)||utils_default.isBlob(data)||utils_default.isReadableStream(data))return data;if(utils_default.isArrayBufferView(data))return data.buffer;if(utils_default.isURLSearchParams(data))return headers.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),data.toString();let isFileList2;if(isObjectPayload){let formSerializer=own(this,"formSerializer");if(contentType.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(data,formSerializer).toString();if((isFileList2=utils_default.isFileList(data))||contentType.indexOf("multipart/form-data")>-1){let env=own(this,"env"),_FormData=env&&env.FormData;return toFormData_default(isFileList2?{"files[]":data}:data,_FormData&&new _FormData,formSerializer)}}return isObjectPayload||hasJSONContentType?(headers.setContentType("application/json",!1),stringifySafely(data)):data}],transformResponse:[function(data){let transitional2=own(this,"transitional")||defaults.transitional,forcedJSONParsing=transitional2&&transitional2.forcedJSONParsing,responseType=own(this,"responseType"),JSONRequested=responseType==="json";if(utils_default.isResponse(data)||utils_default.isReadableStream(data))return data;if(data&&utils_default.isString(data)&&(forcedJSONParsing&&!responseType||JSONRequested)){let strictJSONParsing=!(transitional2&&transitional2.silentJSONParsing)&&JSONRequested;try{return JSON.parse(data,own(this,"parseReviver"))}catch(e){if(strictJSONParsing)throw e.name==="SyntaxError"?AxiosError_default.from(e,AxiosError_default.ERR_BAD_RESPONSE,this,null,own(this,"response")):e}}return data}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform_default.classes.FormData,Blob:platform_default.classes.Blob},validateStatus:function(status){return status>=200&&status<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils_default.forEach(["delete","get","head","post","put","patch","query"],method=>{defaults.headers[method]={}});var defaults_default=defaults;function transformData(fns,response){let config2=this||defaults_default,context=response||config2,headers=AxiosHeaders_default.from(context.headers),data=context.data;return utils_default.forEach(fns,function(fn){data=fn.call(config2,data,headers.normalize(),response?response.status:void 0)}),headers.normalize(),data}function isCancel(value){return!!(value&&value.__CANCEL__)}var CanceledError=class extends AxiosError_default{constructor(message,config2,request){super(message==null?"canceled":message,AxiosError_default.ERR_CANCELED,config2,request),this.name="CanceledError",this.__CANCEL__=!0}},CanceledError_default=CanceledError;function settle(resolve,reject,response){let validateStatus2=response.config.validateStatus;!response.status||!validateStatus2||validateStatus2(response.status)?resolve(response):reject(new AxiosError_default("Request failed with status code "+response.status,response.status>=400&&response.status<500?AxiosError_default.ERR_BAD_REQUEST:AxiosError_default.ERR_BAD_RESPONSE,response.config,response.request,response))}function parseProtocol(url2){let match=/^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);return match&&match[1]||""}function speedometer(samplesCount,min){samplesCount=samplesCount||10;let bytes=new Array(samplesCount),timestamps=new Array(samplesCount),head2=0,tail=0,firstSampleTS;return min=min!==void 0?min:1e3,function(chunkLength){let now=Date.now(),startedAt=timestamps[tail];firstSampleTS||(firstSampleTS=now),bytes[head2]=chunkLength,timestamps[head2]=now;let i=tail,bytesCount=0;for(;i!==head2;)bytesCount+=bytes[i++],i=i%samplesCount;if(head2=(head2+1)%samplesCount,head2===tail&&(tail=(tail+1)%samplesCount),now-firstSampleTS<min)return;let passed=startedAt&&now-startedAt;return passed?Math.round(bytesCount*1e3/passed):void 0}}var speedometer_default=speedometer;function throttle(fn,freq){let timestamp=0,threshold=1e3/freq,lastArgs,timer,invoke=(args,now=Date.now())=>{timestamp=now,lastArgs=null,timer&&(clearTimeout(timer),timer=null),fn(...args)};return[(...args)=>{let now=Date.now(),passed=now-timestamp;passed>=threshold?invoke(args,now):(lastArgs=args,timer||(timer=setTimeout(()=>{timer=null,invoke(lastArgs)},threshold-passed)))},()=>lastArgs&&invoke(lastArgs)]}var throttle_default=throttle;var progressEventReducer=(listener,isDownloadStream,freq=3)=>{let bytesNotified=0,_speedometer=speedometer_default(50,250);return throttle_default(e=>{if(!e||typeof e.loaded!="number")return;let rawLoaded=e.loaded,total=e.lengthComputable?e.total:void 0,loaded=total!=null?Math.min(rawLoaded,total):rawLoaded,progressBytes=Math.max(0,loaded-bytesNotified),rate=_speedometer(progressBytes);bytesNotified=Math.max(bytesNotified,loaded);let data={loaded,total,progress:total?loaded/total:void 0,bytes:progressBytes,rate:rate||void 0,estimated:rate&&total?(total-loaded)/rate:void 0,event:e,lengthComputable:total!=null,[isDownloadStream?"download":"upload"]:!0};listener(data)},freq)},progressEventDecorator=(total,throttled)=>{let lengthComputable=total!=null;return[loaded=>throttled[0]({lengthComputable,total,loaded}),throttled[1]]},asyncDecorator=fn=>(...args)=>utils_default.asap(()=>fn(...args));var isURLSameOrigin_default=platform_default.hasStandardBrowserEnv?((origin2,isMSIE)=>url2=>(url2=new URL(url2,platform_default.origin),origin2.protocol===url2.protocol&&origin2.host===url2.host&&(isMSIE||origin2.port===url2.port)))(new URL(platform_default.origin),platform_default.navigator&&/(msie|trident)/i.test(platform_default.navigator.userAgent)):()=>!0;var cookies_default=platform_default.hasStandardBrowserEnv?{write(name,value,expires,path,domain2,secure,sameSite){if(typeof document=="undefined")return;let cookie=[`${name}=${encodeURIComponent(value)}`];utils_default.isNumber(expires)&&cookie.push(`expires=${new Date(expires).toUTCString()}`),utils_default.isString(path)&&cookie.push(`path=${path}`),utils_default.isString(domain2)&&cookie.push(`domain=${domain2}`),secure===!0&&cookie.push("secure"),utils_default.isString(sameSite)&&cookie.push(`SameSite=${sameSite}`),document.cookie=cookie.join("; ")},read(name){if(typeof document=="undefined")return null;let cookies=document.cookie.split(";");for(let i=0;i<cookies.length;i++){let cookie=cookies[i].replace(/^\s+/,""),eq=cookie.indexOf("=");if(eq!==-1&&cookie.slice(0,eq)===name)return decodeURIComponent(cookie.slice(eq+1))}return null},remove(name){this.write(name,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(url2){return typeof url2!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(url2)}function combineURLs(baseURL,relativeURL){return relativeURL?baseURL.replace(/\/?\/$/,"")+"/"+relativeURL.replace(/^\/+/,""):baseURL}function buildFullPath(baseURL,requestedURL,allowAbsoluteUrls){let isRelativeUrl=!isAbsoluteURL(requestedURL);return baseURL&&(isRelativeUrl||allowAbsoluteUrls===!1)?combineURLs(baseURL,requestedURL):requestedURL}var headersToObject=thing=>thing instanceof AxiosHeaders_default?{...thing}:thing;function mergeConfig(config1,config2){config2=config2||{};let config3=Object.create(null);Object.defineProperty(config3,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function getMergedValue(target,source2,prop2,caseless){return utils_default.isPlainObject(target)&&utils_default.isPlainObject(source2)?utils_default.merge.call({caseless},target,source2):utils_default.isPlainObject(source2)?utils_default.merge({},source2):utils_default.isArray(source2)?source2.slice():source2}function mergeDeepProperties(a,b,prop2,caseless){if(utils_default.isUndefined(b)){if(!utils_default.isUndefined(a))return getMergedValue(void 0,a,prop2,caseless)}else return getMergedValue(a,b,prop2,caseless)}function valueFromConfig2(a,b){if(!utils_default.isUndefined(b))return getMergedValue(void 0,b)}function defaultToConfig2(a,b){if(utils_default.isUndefined(b)){if(!utils_default.isUndefined(a))return getMergedValue(void 0,a)}else return getMergedValue(void 0,b)}function mergeDirectKeys(a,b,prop2){if(utils_default.hasOwnProp(config2,prop2))return getMergedValue(a,b);if(utils_default.hasOwnProp(config1,prop2))return getMergedValue(void 0,a)}let mergeMap={url:valueFromConfig2,method:valueFromConfig2,data:valueFromConfig2,baseURL:defaultToConfig2,transformRequest:defaultToConfig2,transformResponse:defaultToConfig2,paramsSerializer:defaultToConfig2,timeout:defaultToConfig2,timeoutMessage:defaultToConfig2,withCredentials:defaultToConfig2,withXSRFToken:defaultToConfig2,adapter:defaultToConfig2,responseType:defaultToConfig2,xsrfCookieName:defaultToConfig2,xsrfHeaderName:defaultToConfig2,onUploadProgress:defaultToConfig2,onDownloadProgress:defaultToConfig2,decompress:defaultToConfig2,maxContentLength:defaultToConfig2,maxBodyLength:defaultToConfig2,beforeRedirect:defaultToConfig2,transport:defaultToConfig2,httpAgent:defaultToConfig2,httpsAgent:defaultToConfig2,cancelToken:defaultToConfig2,socketPath:defaultToConfig2,allowedSocketPaths:defaultToConfig2,responseEncoding:defaultToConfig2,validateStatus:mergeDirectKeys,headers:(a,b,prop2)=>mergeDeepProperties(headersToObject(a),headersToObject(b),prop2,!0)};return utils_default.forEach(Object.keys({...config1,...config2}),function(prop2){if(prop2==="__proto__"||prop2==="constructor"||prop2==="prototype")return;let merge3=utils_default.hasOwnProp(mergeMap,prop2)?mergeMap[prop2]:mergeDeepProperties,a=utils_default.hasOwnProp(config1,prop2)?config1[prop2]:void 0,b=utils_default.hasOwnProp(config2,prop2)?config2[prop2]:void 0,configValue=merge3(a,b,prop2);utils_default.isUndefined(configValue)&&merge3!==mergeDirectKeys||(config3[prop2]=configValue)}),config3}var FORM_DATA_CONTENT_HEADERS=["content-type","content-length"];function setFormDataHeaders(headers,formHeaders,policy2){if(policy2!=="content-only"){headers.set(formHeaders);return}Object.entries(formHeaders).forEach(([key2,val])=>{FORM_DATA_CONTENT_HEADERS.includes(key2.toLowerCase())&&headers.set(key2,val)})}var encodeUTF8=str=>encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi,(_,hex3)=>String.fromCharCode(parseInt(hex3,16))),resolveConfig_default=config2=>{let newConfig=mergeConfig({},config2),own2=key2=>utils_default.hasOwnProp(newConfig,key2)?newConfig[key2]:void 0,data=own2("data"),withXSRFToken=own2("withXSRFToken"),xsrfHeaderName=own2("xsrfHeaderName"),xsrfCookieName=own2("xsrfCookieName"),headers=own2("headers"),auth=own2("auth"),baseURL=own2("baseURL"),allowAbsoluteUrls=own2("allowAbsoluteUrls"),url2=own2("url");if(newConfig.headers=headers=AxiosHeaders_default.from(headers),newConfig.url=buildURL(buildFullPath(baseURL,url2,allowAbsoluteUrls),config2.params,config2.paramsSerializer),auth&&headers.set("Authorization","Basic "+btoa((auth.username||"")+":"+(auth.password?encodeUTF8(auth.password):""))),utils_default.isFormData(data)&&(platform_default.hasStandardBrowserEnv||platform_default.hasStandardBrowserWebWorkerEnv?headers.setContentType(void 0):utils_default.isFunction(data.getHeaders)&&setFormDataHeaders(headers,data.getHeaders(),own2("formDataHeaderPolicy"))),platform_default.hasStandardBrowserEnv&&(utils_default.isFunction(withXSRFToken)&&(withXSRFToken=withXSRFToken(newConfig)),withXSRFToken===!0||withXSRFToken==null&&isURLSameOrigin_default(newConfig.url))){let xsrfValue=xsrfHeaderName&&xsrfCookieName&&cookies_default.read(xsrfCookieName);xsrfValue&&headers.set(xsrfHeaderName,xsrfValue)}return newConfig};var isXHRAdapterSupported=typeof XMLHttpRequest!="undefined",xhr_default=isXHRAdapterSupported&&function(config2){return new Promise(function(resolve,reject){let _config=resolveConfig_default(config2),requestData=_config.data,requestHeaders=AxiosHeaders_default.from(_config.headers).normalize(),{responseType,onUploadProgress,onDownloadProgress}=_config,onCanceled,uploadThrottled,downloadThrottled,flushUpload,flushDownload;function done(){flushUpload&&flushUpload(),flushDownload&&flushDownload(),_config.cancelToken&&_config.cancelToken.unsubscribe(onCanceled),_config.signal&&_config.signal.removeEventListener("abort",onCanceled)}let request=new XMLHttpRequest;request.open(_config.method.toUpperCase(),_config.url,!0),request.timeout=_config.timeout;function onloadend(){if(!request)return;let responseHeaders=AxiosHeaders_default.from("getAllResponseHeaders"in request&&request.getAllResponseHeaders()),response={data:!responseType||responseType==="text"||responseType==="json"?request.responseText:request.response,status:request.status,statusText:request.statusText,headers:responseHeaders,config:config2,request};settle(function(value){resolve(value),done()},function(err){reject(err),done()},response),request=null}"onloadend"in request?request.onloadend=onloadend:request.onreadystatechange=function(){!request||request.readyState!==4||request.status===0&&!(request.responseURL&&request.responseURL.startsWith("file:"))||setTimeout(onloadend)},request.onabort=function(){request&&(reject(new AxiosError_default("Request aborted",AxiosError_default.ECONNABORTED,config2,request)),done(),request=null)},request.onerror=function(event3){let msg=event3&&event3.message?event3.message:"Network Error",err=new AxiosError_default(msg,AxiosError_default.ERR_NETWORK,config2,request);err.event=event3||null,reject(err),done(),request=null},request.ontimeout=function(){let timeoutErrorMessage=_config.timeout?"timeout of "+_config.timeout+"ms exceeded":"timeout exceeded",transitional2=_config.transitional||transitional_default;_config.timeoutErrorMessage&&(timeoutErrorMessage=_config.timeoutErrorMessage),reject(new AxiosError_default(timeoutErrorMessage,transitional2.clarifyTimeoutError?AxiosError_default.ETIMEDOUT:AxiosError_default.ECONNABORTED,config2,request)),done(),request=null},requestData===void 0&&requestHeaders.setContentType(null),"setRequestHeader"in request&&utils_default.forEach(toByteStringHeaderObject(requestHeaders),function(val,key2){request.setRequestHeader(key2,val)}),utils_default.isUndefined(_config.withCredentials)||(request.withCredentials=!!_config.withCredentials),responseType&&responseType!=="json"&&(request.responseType=_config.responseType),onDownloadProgress&&([downloadThrottled,flushDownload]=progressEventReducer(onDownloadProgress,!0),request.addEventListener("progress",downloadThrottled)),onUploadProgress&&request.upload&&([uploadThrottled,flushUpload]=progressEventReducer(onUploadProgress),request.upload.addEventListener("progress",uploadThrottled),request.upload.addEventListener("loadend",flushUpload)),(_config.cancelToken||_config.signal)&&(onCanceled=cancel=>{request&&(reject(!cancel||cancel.type?new CanceledError_default(null,config2,request):cancel),request.abort(),done(),request=null)},_config.cancelToken&&_config.cancelToken.subscribe(onCanceled),_config.signal&&(_config.signal.aborted?onCanceled():_config.signal.addEventListener("abort",onCanceled)));let protocol=parseProtocol(_config.url);if(protocol&&!platform_default.protocols.includes(protocol)){reject(new AxiosError_default("Unsupported protocol "+protocol+":",AxiosError_default.ERR_BAD_REQUEST,config2));return}request.send(requestData||null)})};var composeSignals=(signals,timeout)=>{if(signals=signals?signals.filter(Boolean):[],!timeout&&!signals.length)return;let controller=new AbortController,aborted3=!1,onabort=function(reason){if(!aborted3){aborted3=!0,unsubscribe();let err=reason instanceof Error?reason:this.reason;controller.abort(err instanceof AxiosError_default?err:new CanceledError_default(err instanceof Error?err.message:err))}},timer=timeout&&setTimeout(()=>{timer=null,onabort(new AxiosError_default(`timeout of ${timeout}ms exceeded`,AxiosError_default.ETIMEDOUT))},timeout),unsubscribe=()=>{signals&&(timer&&clearTimeout(timer),timer=null,signals.forEach(signal2=>{signal2.unsubscribe?signal2.unsubscribe(onabort):signal2.removeEventListener("abort",onabort)}),signals=null)};signals.forEach(signal2=>signal2.addEventListener("abort",onabort));let{signal}=controller;return signal.unsubscribe=()=>utils_default.asap(unsubscribe),signal},composeSignals_default=composeSignals;var streamChunk=function*(chunk,chunkSize){let len=chunk.byteLength;if(!chunkSize||len<chunkSize){yield chunk;return}let pos=0,end;for(;pos<len;)end=pos+chunkSize,yield chunk.slice(pos,end),pos=end},readBytes=async function*(iterable,chunkSize){for await(let chunk of readStream(iterable))yield*streamChunk(chunk,chunkSize)},readStream=async function*(stream){if(stream[Symbol.asyncIterator]){yield*stream;return}let reader=stream.getReader();try{for(;;){let{done,value}=await reader.read();if(done)break;yield value}}finally{await reader.cancel()}},trackStream=(stream,chunkSize,onProgress,onFinish)=>{let iterator2=readBytes(stream,chunkSize),bytes=0,done,_onFinish=e=>{done||(done=!0,onFinish&&onFinish(e))};return new ReadableStream({async pull(controller){try{let{done:done2,value}=await iterator2.next();if(done2){_onFinish(),controller.close();return}let len=value.byteLength;if(onProgress){let loadedBytes=bytes+=len;onProgress(loadedBytes)}controller.enqueue(new Uint8Array(value))}catch(err){throw _onFinish(err),err}},cancel(reason){return _onFinish(reason),iterator2.return()}},{highWaterMark:2})};function estimateDataURLDecodedBytes(url2){if(!url2||typeof url2!="string"||!url2.startsWith("data:"))return 0;let comma=url2.indexOf(",");if(comma<0)return 0;let meta3=url2.slice(5,comma),body=url2.slice(comma+1);if(/;base64/i.test(meta3)){let effectiveLen=body.length,len=body.length;for(let i=0;i<len;i++)if(body.charCodeAt(i)===37&&i+2<len){let a=body.charCodeAt(i+1),b=body.charCodeAt(i+2);(a>=48&&a<=57||a>=65&&a<=70||a>=97&&a<=102)&&(b>=48&&b<=57||b>=65&&b<=70||b>=97&&b<=102)&&(effectiveLen-=2,i+=2)}let pad=0,idx=len-1,tailIsPct3D=j=>j>=2&&body.charCodeAt(j-2)===37&&body.charCodeAt(j-1)===51&&(body.charCodeAt(j)===68||body.charCodeAt(j)===100);idx>=0&&(body.charCodeAt(idx)===61?(pad++,idx--):tailIsPct3D(idx)&&(pad++,idx-=3)),pad===1&&idx>=0&&(body.charCodeAt(idx)===61||tailIsPct3D(idx))&&pad++;let bytes2=Math.floor(effectiveLen/4)*3-(pad||0);return bytes2>0?bytes2:0}if(typeof Buffer!="undefined"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(body,"utf8");let bytes=0;for(let i=0,len=body.length;i<len;i++){let c2=body.charCodeAt(i);if(c2<128)bytes+=1;else if(c2<2048)bytes+=2;else if(c2>=55296&&c2<=56319&&i+1<len){let next2=body.charCodeAt(i+1);next2>=56320&&next2<=57343?(bytes+=4,i++):bytes+=3}else bytes+=3}return bytes}var VERSION="1.16.1";var DEFAULT_CHUNK_SIZE=64*1024,{isFunction:isFunction2}=utils_default,test=(fn,...args)=>{try{return!!fn(...args)}catch(e){return!1}},factory=env=>{let globalObject=utils_default.global!==void 0&&utils_default.global!==null?utils_default.global:globalThis,{ReadableStream:ReadableStream2,TextEncoder}=globalObject;env=utils_default.merge.call({skipUndefined:!0},{Request:globalObject.Request,Response:globalObject.Response},env);let{fetch:envFetch,Request,Response}=env,isFetchSupported=envFetch?isFunction2(envFetch):typeof fetch=="function",isRequestSupported=isFunction2(Request),isResponseSupported=isFunction2(Response);if(!isFetchSupported)return!1;let isReadableStreamSupported=isFetchSupported&&isFunction2(ReadableStream2),encodeText=isFetchSupported&&(typeof TextEncoder=="function"?(encoder=>str=>encoder.encode(str))(new TextEncoder):async str=>new Uint8Array(await new Request(str).arrayBuffer())),supportsRequestStream=isRequestSupported&&isReadableStreamSupported&&test(()=>{let duplexAccessed=!1,request=new Request(platform_default.origin,{body:new ReadableStream2,method:"POST",get duplex(){return duplexAccessed=!0,"half"}}),hasContentType=request.headers.has("Content-Type");return request.body!=null&&request.body.cancel(),duplexAccessed&&!hasContentType}),supportsResponseStream=isResponseSupported&&isReadableStreamSupported&&test(()=>utils_default.isReadableStream(new Response("").body)),resolvers={stream:supportsResponseStream&&(res=>res.body)};isFetchSupported&&["text","arrayBuffer","blob","formData","stream"].forEach(type=>{!resolvers[type]&&(resolvers[type]=(res,config2)=>{let method=res&&res[type];if(method)return method.call(res);throw new AxiosError_default(`Response type '${type}' is not supported`,AxiosError_default.ERR_NOT_SUPPORT,config2)})});let getBodyLength=async body=>{if(body==null)return 0;if(utils_default.isBlob(body))return body.size;if(utils_default.isSpecCompliantForm(body))return(await new Request(platform_default.origin,{method:"POST",body}).arrayBuffer()).byteLength;if(utils_default.isArrayBufferView(body)||utils_default.isArrayBuffer(body))return body.byteLength;if(utils_default.isURLSearchParams(body)&&(body=body+""),utils_default.isString(body))return(await encodeText(body)).byteLength},resolveBodyLength=async(headers,body)=>{let length=utils_default.toFiniteNumber(headers.getContentLength());return length==null?getBodyLength(body):length};return async config2=>{let{url:url2,method,data,signal,cancelToken,timeout,onDownloadProgress,onUploadProgress,responseType,headers,withCredentials="same-origin",fetchOptions,maxContentLength,maxBodyLength}=resolveConfig_default(config2),hasMaxContentLength=utils_default.isNumber(maxContentLength)&&maxContentLength>-1,hasMaxBodyLength=utils_default.isNumber(maxBodyLength)&&maxBodyLength>-1,_fetch=envFetch||fetch;responseType=responseType?(responseType+"").toLowerCase():"text";let composedSignal=composeSignals_default([signal,cancelToken&&cancelToken.toAbortSignal()],timeout),request=null,unsubscribe=composedSignal&&composedSignal.unsubscribe&&(()=>{composedSignal.unsubscribe()}),requestContentLength;try{if(hasMaxContentLength&&typeof url2=="string"&&url2.startsWith("data:")&&estimateDataURLDecodedBytes(url2)>maxContentLength)throw new AxiosError_default("maxContentLength size of "+maxContentLength+" exceeded",AxiosError_default.ERR_BAD_RESPONSE,config2,request);if(hasMaxBodyLength&&method!=="get"&&method!=="head"){let outboundLength=await resolveBodyLength(headers,data);if(typeof outboundLength=="number"&&isFinite(outboundLength)&&outboundLength>maxBodyLength)throw new AxiosError_default("Request body larger than maxBodyLength limit",AxiosError_default.ERR_BAD_REQUEST,config2,request)}if(onUploadProgress&&supportsRequestStream&&method!=="get"&&method!=="head"&&(requestContentLength=await resolveBodyLength(headers,data))!==0){let _request=new Request(url2,{method:"POST",body:data,duplex:"half"}),contentTypeHeader;if(utils_default.isFormData(data)&&(contentTypeHeader=_request.headers.get("content-type"))&&headers.setContentType(contentTypeHeader),_request.body){let[onProgress,flush]=progressEventDecorator(requestContentLength,progressEventReducer(asyncDecorator(onUploadProgress)));data=trackStream(_request.body,DEFAULT_CHUNK_SIZE,onProgress,flush)}}utils_default.isString(withCredentials)||(withCredentials=withCredentials?"include":"omit");let isCredentialsSupported=isRequestSupported&&"credentials"in Request.prototype;if(utils_default.isFormData(data)){let contentType=headers.getContentType();contentType&&/^multipart\/form-data/i.test(contentType)&&!/boundary=/i.test(contentType)&&headers.delete("content-type")}headers.set("User-Agent","axios/"+VERSION,!1);let resolvedOptions={...fetchOptions,signal:composedSignal,method:method.toUpperCase(),headers:toByteStringHeaderObject(headers.normalize()),body:data,duplex:"half",credentials:isCredentialsSupported?withCredentials:void 0};request=isRequestSupported&&new Request(url2,resolvedOptions);let response=await(isRequestSupported?_fetch(request,fetchOptions):_fetch(url2,resolvedOptions));if(hasMaxContentLength){let declaredLength=utils_default.toFiniteNumber(response.headers.get("content-length"));if(declaredLength!=null&&declaredLength>maxContentLength)throw new AxiosError_default("maxContentLength size of "+maxContentLength+" exceeded",AxiosError_default.ERR_BAD_RESPONSE,config2,request)}let isStreamResponse=supportsResponseStream&&(responseType==="stream"||responseType==="response");if(supportsResponseStream&&response.body&&(onDownloadProgress||hasMaxContentLength||isStreamResponse&&unsubscribe)){let options={};["status","statusText","headers"].forEach(prop2=>{options[prop2]=response[prop2]});let responseContentLength=utils_default.toFiniteNumber(response.headers.get("content-length")),[onProgress,flush]=onDownloadProgress&&progressEventDecorator(responseContentLength,progressEventReducer(asyncDecorator(onDownloadProgress),!0))||[],bytesRead=0,onChunkProgress=loadedBytes=>{if(hasMaxContentLength&&(bytesRead=loadedBytes,bytesRead>maxContentLength))throw new AxiosError_default("maxContentLength size of "+maxContentLength+" exceeded",AxiosError_default.ERR_BAD_RESPONSE,config2,request);onProgress&&onProgress(loadedBytes)};response=new Response(trackStream(response.body,DEFAULT_CHUNK_SIZE,onChunkProgress,()=>{flush&&flush(),unsubscribe&&unsubscribe()}),options)}responseType=responseType||"text";let responseData=await resolvers[utils_default.findKey(resolvers,responseType)||"text"](response,config2);if(hasMaxContentLength&&!supportsResponseStream&&!isStreamResponse){let materializedSize;if(responseData!=null&&(typeof responseData.byteLength=="number"?materializedSize=responseData.byteLength:typeof responseData.size=="number"?materializedSize=responseData.size:typeof responseData=="string"&&(materializedSize=typeof TextEncoder=="function"?new TextEncoder().encode(responseData).byteLength:responseData.length)),typeof materializedSize=="number"&&materializedSize>maxContentLength)throw new AxiosError_default("maxContentLength size of "+maxContentLength+" exceeded",AxiosError_default.ERR_BAD_RESPONSE,config2,request)}return!isStreamResponse&&unsubscribe&&unsubscribe(),await new Promise((resolve,reject)=>{settle(resolve,reject,{data:responseData,headers:AxiosHeaders_default.from(response.headers),status:response.status,statusText:response.statusText,config:config2,request})})}catch(err){if(unsubscribe&&unsubscribe(),composedSignal&&composedSignal.aborted&&composedSignal.reason instanceof AxiosError_default){let canceledError=composedSignal.reason;throw canceledError.config=config2,request&&(canceledError.request=request),err!==canceledError&&(canceledError.cause=err),canceledError}throw err&&err.name==="TypeError"&&/Load failed|fetch/i.test(err.message)?Object.assign(new AxiosError_default("Network Error",AxiosError_default.ERR_NETWORK,config2,request,err&&err.response),{cause:err.cause||err}):AxiosError_default.from(err,err&&err.code,config2,request,err&&err.response)}}},seedCache=new Map,getFetch=config2=>{let env=config2&&config2.env||{},{fetch:fetch2,Request,Response}=env,seeds=[Request,Response,fetch2],len=seeds.length,i=len,seed,target,map2=seedCache;for(;i--;)seed=seeds[i],target=map2.get(seed),target===void 0&&map2.set(seed,target=i?new Map:factory(env)),map2=target;return target},adapter=getFetch();var knownAdapters={http:null_default,xhr:xhr_default,fetch:{get:getFetch}};utils_default.forEach(knownAdapters,(fn,value)=>{if(fn){try{Object.defineProperty(fn,"name",{__proto__:null,value})}catch(e){}Object.defineProperty(fn,"adapterName",{__proto__:null,value})}});var renderReason=reason=>`- ${reason}`,isResolvedHandle=adapter2=>utils_default.isFunction(adapter2)||adapter2===null||adapter2===!1;function getAdapter(adapters,config2){adapters=utils_default.isArray(adapters)?adapters:[adapters];let{length}=adapters,nameOrAdapter,adapter2,rejectedReasons={};for(let i=0;i<length;i++){nameOrAdapter=adapters[i];let id;if(adapter2=nameOrAdapter,!isResolvedHandle(nameOrAdapter)&&(adapter2=knownAdapters[(id=String(nameOrAdapter)).toLowerCase()],adapter2===void 0))throw new AxiosError_default(`Unknown adapter '${id}'`);if(adapter2&&(utils_default.isFunction(adapter2)||(adapter2=adapter2.get(config2))))break;rejectedReasons[id||"#"+i]=adapter2}if(!adapter2){let reasons=Object.entries(rejectedReasons).map(([id,state2])=>`adapter ${id} `+(state2===!1?"is not supported by the environment":"is not available in the build")),s=length?reasons.length>1?`since :
`+reasons.map(renderReason).join(`
`):" "+renderReason(reasons[0]):"as no adapter specified";throw new AxiosError_default("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return adapter2}var adapters_default={getAdapter,adapters:knownAdapters};function throwIfCancellationRequested(config2){if(config2.cancelToken&&config2.cancelToken.throwIfRequested(),config2.signal&&config2.signal.aborted)throw new CanceledError_default(null,config2)}function dispatchRequest(config2){return throwIfCancellationRequested(config2),config2.headers=AxiosHeaders_default.from(config2.headers),config2.data=transformData.call(config2,config2.transformRequest),["post","put","patch"].indexOf(config2.method)!==-1&&config2.headers.setContentType("application/x-www-form-urlencoded",!1),adapters_default.getAdapter(config2.adapter||defaults_default.adapter,config2)(config2).then(function(response){throwIfCancellationRequested(config2),config2.response=response;try{response.data=transformData.call(config2,config2.transformResponse,response)}finally{delete config2.response}return response.headers=AxiosHeaders_default.from(response.headers),response},function(reason){if(!isCancel(reason)&&(throwIfCancellationRequested(config2),reason&&reason.response)){config2.response=reason.response;try{reason.response.data=transformData.call(config2,config2.transformResponse,reason.response)}finally{delete config2.response}reason.response.headers=AxiosHeaders_default.from(reason.response.headers)}return Promise.reject(reason)})}var validators={};["object","boolean","number","function","string","symbol"].forEach((type,i)=>{validators[type]=function(thing){return typeof thing===type||"a"+(i<1?"n ":" ")+type}});var deprecatedWarnings={};validators.transitional=function(validator,version2,message){function formatMessage(opt,desc){return"[Axios v"+VERSION+"] Transitional option '"+opt+"'"+desc+(message?". "+message:"")}return(value,opt,opts)=>{if(validator===!1)throw new AxiosError_default(formatMessage(opt," has been removed"+(version2?" in "+version2:"")),AxiosError_default.ERR_DEPRECATED);return version2&&!deprecatedWarnings[opt]&&(deprecatedWarnings[opt]=!0,console.warn(formatMessage(opt," has been deprecated since v"+version2+" and will be removed in the near future"))),validator?validator(value,opt,opts):!0}};validators.spelling=function(correctSpelling){return(value,opt)=>(console.warn(`${opt} is likely a misspelling of ${correctSpelling}`),!0)};function assertOptions(options,schema,allowUnknown){if(typeof options!="object")throw new AxiosError_default("options must be an object",AxiosError_default.ERR_BAD_OPTION_VALUE);let keys=Object.keys(options),i=keys.length;for(;i-- >0;){let opt=keys[i],validator=Object.prototype.hasOwnProperty.call(schema,opt)?schema[opt]:void 0;if(validator){let value=options[opt],result=value===void 0||validator(value,opt,options);if(result!==!0)throw new AxiosError_default("option "+opt+" must be "+result,AxiosError_default.ERR_BAD_OPTION_VALUE);continue}if(allowUnknown!==!0)throw new AxiosError_default("Unknown option "+opt,AxiosError_default.ERR_BAD_OPTION)}}var validator_default={assertOptions,validators};var validators2=validator_default.validators,Axios=class{constructor(instanceConfig){this.defaults=instanceConfig||{},this.interceptors={request:new InterceptorManager_default,response:new InterceptorManager_default}}async request(configOrUrl,config2){try{return await this._request(configOrUrl,config2)}catch(err){if(err instanceof Error){let dummy={};Error.captureStackTrace?Error.captureStackTrace(dummy):dummy=new Error;let stack2=(()=>{if(!dummy.stack)return"";let firstNewlineIndex=dummy.stack.indexOf(`
`);return firstNewlineIndex===-1?"":dummy.stack.slice(firstNewlineIndex+1)})();try{if(!err.stack)err.stack=stack2;else if(stack2){let firstNewlineIndex=stack2.indexOf(`
`),secondNewlineIndex=firstNewlineIndex===-1?-1:stack2.indexOf(`
`,firstNewlineIndex+1),stackWithoutTwoTopLines=secondNewlineIndex===-1?"":stack2.slice(secondNewlineIndex+1);String(err.stack).endsWith(stackWithoutTwoTopLines)||(err.stack+=`
`+stack2)}}catch(e){}}throw err}}_request(configOrUrl,config2){typeof configOrUrl=="string"?(config2=config2||{},config2.url=configOrUrl):config2=configOrUrl||{},config2=mergeConfig(this.defaults,config2);let{transitional:transitional2,paramsSerializer,headers}=config2;transitional2!==void 0&&validator_default.assertOptions(transitional2,{silentJSONParsing:validators2.transitional(validators2.boolean),forcedJSONParsing:validators2.transitional(validators2.boolean),clarifyTimeoutError:validators2.transitional(validators2.boolean),legacyInterceptorReqResOrdering:validators2.transitional(validators2.boolean)},!1),paramsSerializer!=null&&(utils_default.isFunction(paramsSerializer)?config2.paramsSerializer={serialize:paramsSerializer}:validator_default.assertOptions(paramsSerializer,{encode:validators2.function,serialize:validators2.function},!0)),config2.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?config2.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:config2.allowAbsoluteUrls=!0),validator_default.assertOptions(config2,{baseUrl:validators2.spelling("baseURL"),withXsrfToken:validators2.spelling("withXSRFToken")},!0),config2.method=(config2.method||this.defaults.method||"get").toLowerCase();let contextHeaders=headers&&utils_default.merge(headers.common,headers[config2.method]);headers&&utils_default.forEach(["delete","get","head","post","put","patch","query","common"],method=>{delete headers[method]}),config2.headers=AxiosHeaders_default.concat(contextHeaders,headers);let requestInterceptorChain=[],synchronousRequestInterceptors=!0;this.interceptors.request.forEach(function(interceptor){if(typeof interceptor.runWhen=="function"&&interceptor.runWhen(config2)===!1)return;synchronousRequestInterceptors=synchronousRequestInterceptors&&interceptor.synchronous;let transitional3=config2.transitional||transitional_default;transitional3&&transitional3.legacyInterceptorReqResOrdering?requestInterceptorChain.unshift(interceptor.fulfilled,interceptor.rejected):requestInterceptorChain.push(interceptor.fulfilled,interceptor.rejected)});let responseInterceptorChain=[];this.interceptors.response.forEach(function(interceptor){responseInterceptorChain.push(interceptor.fulfilled,interceptor.rejected)});let promise2,i=0,len;if(!synchronousRequestInterceptors){let chain=[dispatchRequest.bind(this),void 0];for(chain.unshift(...requestInterceptorChain),chain.push(...responseInterceptorChain),len=chain.length,promise2=Promise.resolve(config2);i<len;)promise2=promise2.then(chain[i++],chain[i++]);return promise2}len=requestInterceptorChain.length;let newConfig=config2;for(;i<len;){let onFulfilled=requestInterceptorChain[i++],onRejected=requestInterceptorChain[i++];try{newConfig=onFulfilled(newConfig)}catch(error51){onRejected.call(this,error51);break}}try{promise2=dispatchRequest.call(this,newConfig)}catch(error51){return Promise.reject(error51)}for(i=0,len=responseInterceptorChain.length;i<len;)promise2=promise2.then(responseInterceptorChain[i++],responseInterceptorChain[i++]);return promise2}getUri(config2){config2=mergeConfig(this.defaults,config2);let fullPath=buildFullPath(config2.baseURL,config2.url,config2.allowAbsoluteUrls);return buildURL(fullPath,config2.params,config2.paramsSerializer)}};utils_default.forEach(["delete","get","head","options"],function(method){Axios.prototype[method]=function(url2,config2){return this.request(mergeConfig(config2||{},{method,url:url2,data:(config2||{}).data}))}});utils_default.forEach(["post","put","patch","query"],function(method){function generateHTTPMethod(isForm){return function(url2,data,config2){return this.request(mergeConfig(config2||{},{method,headers:isForm?{"Content-Type":"multipart/form-data"}:{},url:url2,data}))}}Axios.prototype[method]=generateHTTPMethod(),method!=="query"&&(Axios.prototype[method+"Form"]=generateHTTPMethod(!0))});var Axios_default=Axios;var CancelToken=class _CancelToken{constructor(executor){if(typeof executor!="function")throw new TypeError("executor must be a function.");let resolvePromise;this.promise=new Promise(function(resolve){resolvePromise=resolve});let token=this;this.promise.then(cancel=>{if(!token._listeners)return;let i=token._listeners.length;for(;i-- >0;)token._listeners[i](cancel);token._listeners=null}),this.promise.then=onfulfilled=>{let _resolve,promise2=new Promise(resolve=>{token.subscribe(resolve),_resolve=resolve}).then(onfulfilled);return promise2.cancel=function(){token.unsubscribe(_resolve)},promise2},executor(function(message,config2,request){token.reason||(token.reason=new CanceledError_default(message,config2,request),resolvePromise(token.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(listener){if(this.reason){listener(this.reason);return}this._listeners?this._listeners.push(listener):this._listeners=[listener]}unsubscribe(listener){if(!this._listeners)return;let index2=this._listeners.indexOf(listener);index2!==-1&&this._listeners.splice(index2,1)}toAbortSignal(){let controller=new AbortController,abort=err=>{controller.abort(err)};return this.subscribe(abort),controller.signal.unsubscribe=()=>this.unsubscribe(abort),controller.signal}static source(){let cancel;return{token:new _CancelToken(function(c2){cancel=c2}),cancel}}},CancelToken_default=CancelToken;function spread(callback){return function(arr){return callback.apply(null,arr)}}function isAxiosError(payload){return utils_default.isObject(payload)&&payload.isAxiosError===!0}var HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(HttpStatusCode).forEach(([key2,value])=>{HttpStatusCode[value]=key2});var HttpStatusCode_default=HttpStatusCode;function createInstance(defaultConfig){let context=new Axios_default(defaultConfig),instance=bind(Axios_default.prototype.request,context);return utils_default.extend(instance,Axios_default.prototype,context,{allOwnKeys:!0}),utils_default.extend(instance,context,null,{allOwnKeys:!0}),instance.create=function(instanceConfig){return createInstance(mergeConfig(defaultConfig,instanceConfig))},instance}var axios=createInstance(defaults_default);axios.Axios=Axios_default;axios.CanceledError=CanceledError_default;axios.CancelToken=CancelToken_default;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData_default;axios.AxiosError=AxiosError_default;axios.Cancel=axios.CanceledError;axios.all=function(promises){return Promise.all(promises)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders_default;axios.formToJSON=thing=>formDataToJSON_default(utils_default.isHTMLForm(thing)?new FormData(thing):thing);axios.getAdapter=adapters_default.getAdapter;axios.HttpStatusCode=HttpStatusCode_default;axios.default=axios;var axios_default=axios;var{Axios:Axios2,AxiosError:AxiosError2,CanceledError:CanceledError2,isCancel:isCancel2,CancelToken:CancelToken2,VERSION:VERSION2,all:all2,Cancel,isAxiosError:isAxiosError2,spread:spread2,toFormData:toFormData2,AxiosHeaders:AxiosHeaders2,HttpStatusCode:HttpStatusCode2,formToJSON,getAdapter:getAdapter2,mergeConfig:mergeConfig2,create}=axios_default;var import_is_retry_allowed=__toESM(require_is_retry_allowed(),1),namespace="axios-retry";function isNetworkError(error51){let CODE_EXCLUDE_LIST=["ERR_CANCELED","ECONNABORTED"];return error51.response||!error51.code||CODE_EXCLUDE_LIST.includes(error51.code)?!1:(0,import_is_retry_allowed.default)(error51)}var SAFE_HTTP_METHODS=["get","head","options"],IDEMPOTENT_HTTP_METHODS=SAFE_HTTP_METHODS.concat(["put","delete"]);function isRetryableError(error51){return error51.code!=="ECONNABORTED"&&(!error51.response||error51.response.status===429||error51.response.status>=500&&error51.response.status<=599)}function isSafeRequestError(error51){var _a9;return(_a9=error51.config)!=null&&_a9.method?isRetryableError(error51)&&SAFE_HTTP_METHODS.indexOf(error51.config.method)!==-1:!1}function isIdempotentRequestError(error51){var _a9;return(_a9=error51.config)!=null&&_a9.method?isRetryableError(error51)&&IDEMPOTENT_HTTP_METHODS.indexOf(error51.config.method)!==-1:!1}function isNetworkOrIdempotentRequestError(error51){return isNetworkError(error51)||isIdempotentRequestError(error51)}function retryAfter(error51=void 0){var _a9;let retryAfterHeader=(_a9=error51==null?void 0:error51.response)==null?void 0:_a9.headers["retry-after"];if(!retryAfterHeader)return 0;let retryAfterMs=(Number(retryAfterHeader)||0)*1e3;return retryAfterMs===0&&(retryAfterMs=(new Date(retryAfterHeader).valueOf()||0)-Date.now()),Math.max(0,retryAfterMs)}function noDelay(_retryNumber=0,error51=void 0){return Math.max(0,retryAfter(error51))}function exponentialDelay(retryNumber=0,error51=void 0,delayFactor=100){let calculatedDelay=2**retryNumber*delayFactor,delay=Math.max(calculatedDelay,retryAfter(error51)),randomSum=delay*.2*Math.random();return delay+randomSum}function linearDelay(delayFactor=100){return(retryNumber=0,error51=void 0)=>{let delay=retryNumber*delayFactor;return Math.max(delay,retryAfter(error51))}}var DEFAULT_OPTIONS={retries:3,retryCondition:isNetworkOrIdempotentRequestError,retryDelay:noDelay,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function getRequestOptions(config2,defaultOptions){return{...DEFAULT_OPTIONS,...defaultOptions,...config2[namespace]}}function setCurrentState(config2,defaultOptions,resetLastRequestTime=!1){let currentState=getRequestOptions(config2,defaultOptions||{});return currentState.retryCount=currentState.retryCount||0,(!currentState.lastRequestTime||resetLastRequestTime)&&(currentState.lastRequestTime=Date.now()),config2[namespace]=currentState,currentState}function fixConfig(axiosInstance,config2){axiosInstance.defaults.agent===config2.agent&&delete config2.agent,axiosInstance.defaults.httpAgent===config2.httpAgent&&delete config2.httpAgent,axiosInstance.defaults.httpsAgent===config2.httpsAgent&&delete config2.httpsAgent}async function shouldRetry(currentState,error51){let{retries,retryCondition}=currentState,shouldRetryOrPromise=(currentState.retryCount||0)<retries&&retryCondition(error51);if(typeof shouldRetryOrPromise=="object")try{return await shouldRetryOrPromise!==!1}catch(_err){return!1}return shouldRetryOrPromise}async function handleRetry(axiosInstance,currentState,error51,config2){var _a9;currentState.retryCount+=1;let{retryDelay,shouldResetTimeout,onRetry}=currentState,delay=retryDelay(currentState.retryCount,error51);if(fixConfig(axiosInstance,config2),!shouldResetTimeout&&config2.timeout&&currentState.lastRequestTime){let lastRequestDuration=Date.now()-currentState.lastRequestTime,timeout=config2.timeout-lastRequestDuration-delay;if(timeout<=0)return Promise.reject(error51);config2.timeout=timeout}return config2.transformRequest=[data=>data],await onRetry(currentState.retryCount,error51,config2),(_a9=config2.signal)!=null&&_a9.aborted?Promise.resolve(axiosInstance(config2)):new Promise(resolve=>{var _a10;let abortListener=()=>{clearTimeout(timeout),resolve(axiosInstance(config2))},timeout=setTimeout(()=>{var _a11;resolve(axiosInstance(config2)),(_a11=config2.signal)!=null&&_a11.removeEventListener&&config2.signal.removeEventListener("abort",abortListener)},delay);(_a10=config2.signal)!=null&&_a10.addEventListener&&config2.signal.addEventListener("abort",abortListener,{once:!0})})}async function handleMaxRetryTimesExceeded(currentState,error51){currentState.retryCount>=currentState.retries&&await currentState.onMaxRetryTimesExceeded(error51,currentState.retryCount)}var axiosRetry=(axiosInstance,defaultOptions)=>{let requestInterceptorId=axiosInstance.interceptors.request.use(config2=>{var _a9;return setCurrentState(config2,defaultOptions,!0),(_a9=config2[namespace])!=null&&_a9.validateResponse&&(config2.validateStatus=()=>!1),config2}),responseInterceptorId=axiosInstance.interceptors.response.use(null,async error51=>{var _a9;let{config:config2}=error51;if(!config2)return Promise.reject(error51);let currentState=setCurrentState(config2,defaultOptions);return error51.response&&((_a9=currentState.validateResponse)!=null&&_a9.call(currentState,error51.response))?error51.response:await shouldRetry(currentState,error51)?handleRetry(axiosInstance,currentState,error51,config2):(await handleMaxRetryTimesExceeded(currentState,error51),Promise.reject(error51))});return{requestInterceptorId,responseInterceptorId}};axiosRetry.isNetworkError=isNetworkError;axiosRetry.isSafeRequestError=isSafeRequestError;axiosRetry.isIdempotentRequestError=isIdempotentRequestError;axiosRetry.isNetworkOrIdempotentRequestError=isNetworkOrIdempotentRequestError;axiosRetry.exponentialDelay=exponentialDelay;axiosRetry.linearDelay=linearDelay;axiosRetry.isRetryableError=isRetryableError;var esm_default=axiosRetry;var TokenManager=class{get(){let token=window.localStorage.getItem("raindrop_token");return token===null||token.length==0?null:token}set(token){window.localStorage.setItem("raindrop_token",token)}clear(){window.localStorage.removeItem("raindrop_token")}};var c=new Int32Array(4),_h=class _h{constructor(){__publicField(this,"_dataLength",0);__publicField(this,"_bufferLength",0);__publicField(this,"_state",new Int32Array(4));__publicField(this,"_buffer",new ArrayBuffer(68));__publicField(this,"_buffer8");__publicField(this,"_buffer32");this._buffer8=new Uint8Array(this._buffer,0,68),this._buffer32=new Uint32Array(this._buffer,0,17),this.start()}static hashStr(i,a=!1){return this.onePassHasher.start().appendStr(i).end(a)}static hashAsciiStr(i,a=!1){return this.onePassHasher.start().appendAsciiStr(i).end(a)}static _hex(i){let a=_h.hexChars,t=_h.hexOut,e,s,r,n;for(n=0;n<4;n+=1)for(s=n*8,e=i[n],r=0;r<8;r+=2)t[s+1+r]=a.charAt(e&15),e>>>=4,t[s+0+r]=a.charAt(e&15),e>>>=4;return t.join("")}static _md5cycle(i,a){let t=i[0],e=i[1],s=i[2],r=i[3];t+=(e&s|~e&r)+a[0]-680876936|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&s)+a[1]-389564586|0,r=(r<<12|r>>>20)+t|0,s+=(r&t|~r&e)+a[2]+606105819|0,s=(s<<17|s>>>15)+r|0,e+=(s&r|~s&t)+a[3]-1044525330|0,e=(e<<22|e>>>10)+s|0,t+=(e&s|~e&r)+a[4]-176418897|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&s)+a[5]+1200080426|0,r=(r<<12|r>>>20)+t|0,s+=(r&t|~r&e)+a[6]-1473231341|0,s=(s<<17|s>>>15)+r|0,e+=(s&r|~s&t)+a[7]-45705983|0,e=(e<<22|e>>>10)+s|0,t+=(e&s|~e&r)+a[8]+1770035416|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&s)+a[9]-1958414417|0,r=(r<<12|r>>>20)+t|0,s+=(r&t|~r&e)+a[10]-42063|0,s=(s<<17|s>>>15)+r|0,e+=(s&r|~s&t)+a[11]-1990404162|0,e=(e<<22|e>>>10)+s|0,t+=(e&s|~e&r)+a[12]+1804603682|0,t=(t<<7|t>>>25)+e|0,r+=(t&e|~t&s)+a[13]-40341101|0,r=(r<<12|r>>>20)+t|0,s+=(r&t|~r&e)+a[14]-1502002290|0,s=(s<<17|s>>>15)+r|0,e+=(s&r|~s&t)+a[15]+1236535329|0,e=(e<<22|e>>>10)+s|0,t+=(e&r|s&~r)+a[1]-165796510|0,t=(t<<5|t>>>27)+e|0,r+=(t&s|e&~s)+a[6]-1069501632|0,r=(r<<9|r>>>23)+t|0,s+=(r&e|t&~e)+a[11]+643717713|0,s=(s<<14|s>>>18)+r|0,e+=(s&t|r&~t)+a[0]-373897302|0,e=(e<<20|e>>>12)+s|0,t+=(e&r|s&~r)+a[5]-701558691|0,t=(t<<5|t>>>27)+e|0,r+=(t&s|e&~s)+a[10]+38016083|0,r=(r<<9|r>>>23)+t|0,s+=(r&e|t&~e)+a[15]-660478335|0,s=(s<<14|s>>>18)+r|0,e+=(s&t|r&~t)+a[4]-405537848|0,e=(e<<20|e>>>12)+s|0,t+=(e&r|s&~r)+a[9]+568446438|0,t=(t<<5|t>>>27)+e|0,r+=(t&s|e&~s)+a[14]-1019803690|0,r=(r<<9|r>>>23)+t|0,s+=(r&e|t&~e)+a[3]-187363961|0,s=(s<<14|s>>>18)+r|0,e+=(s&t|r&~t)+a[8]+1163531501|0,e=(e<<20|e>>>12)+s|0,t+=(e&r|s&~r)+a[13]-1444681467|0,t=(t<<5|t>>>27)+e|0,r+=(t&s|e&~s)+a[2]-51403784|0,r=(r<<9|r>>>23)+t|0,s+=(r&e|t&~e)+a[7]+1735328473|0,s=(s<<14|s>>>18)+r|0,e+=(s&t|r&~t)+a[12]-1926607734|0,e=(e<<20|e>>>12)+s|0,t+=(e^s^r)+a[5]-378558|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^s)+a[8]-2022574463|0,r=(r<<11|r>>>21)+t|0,s+=(r^t^e)+a[11]+1839030562|0,s=(s<<16|s>>>16)+r|0,e+=(s^r^t)+a[14]-35309556|0,e=(e<<23|e>>>9)+s|0,t+=(e^s^r)+a[1]-1530992060|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^s)+a[4]+1272893353|0,r=(r<<11|r>>>21)+t|0,s+=(r^t^e)+a[7]-155497632|0,s=(s<<16|s>>>16)+r|0,e+=(s^r^t)+a[10]-1094730640|0,e=(e<<23|e>>>9)+s|0,t+=(e^s^r)+a[13]+681279174|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^s)+a[0]-358537222|0,r=(r<<11|r>>>21)+t|0,s+=(r^t^e)+a[3]-722521979|0,s=(s<<16|s>>>16)+r|0,e+=(s^r^t)+a[6]+76029189|0,e=(e<<23|e>>>9)+s|0,t+=(e^s^r)+a[9]-640364487|0,t=(t<<4|t>>>28)+e|0,r+=(t^e^s)+a[12]-421815835|0,r=(r<<11|r>>>21)+t|0,s+=(r^t^e)+a[15]+530742520|0,s=(s<<16|s>>>16)+r|0,e+=(s^r^t)+a[2]-995338651|0,e=(e<<23|e>>>9)+s|0,t+=(s^(e|~r))+a[0]-198630844|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~s))+a[7]+1126891415|0,r=(r<<10|r>>>22)+t|0,s+=(t^(r|~e))+a[14]-1416354905|0,s=(s<<15|s>>>17)+r|0,e+=(r^(s|~t))+a[5]-57434055|0,e=(e<<21|e>>>11)+s|0,t+=(s^(e|~r))+a[12]+1700485571|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~s))+a[3]-1894986606|0,r=(r<<10|r>>>22)+t|0,s+=(t^(r|~e))+a[10]-1051523|0,s=(s<<15|s>>>17)+r|0,e+=(r^(s|~t))+a[1]-2054922799|0,e=(e<<21|e>>>11)+s|0,t+=(s^(e|~r))+a[8]+1873313359|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~s))+a[15]-30611744|0,r=(r<<10|r>>>22)+t|0,s+=(t^(r|~e))+a[6]-1560198380|0,s=(s<<15|s>>>17)+r|0,e+=(r^(s|~t))+a[13]+1309151649|0,e=(e<<21|e>>>11)+s|0,t+=(s^(e|~r))+a[4]-145523070|0,t=(t<<6|t>>>26)+e|0,r+=(e^(t|~s))+a[11]-1120210379|0,r=(r<<10|r>>>22)+t|0,s+=(t^(r|~e))+a[2]+718787259|0,s=(s<<15|s>>>17)+r|0,e+=(r^(s|~t))+a[9]-343485551|0,e=(e<<21|e>>>11)+s|0,i[0]=t+i[0]|0,i[1]=e+i[1]|0,i[2]=s+i[2]|0,i[3]=r+i[3]|0}start(){return this._dataLength=0,this._bufferLength=0,this._state.set(_h.stateIdentity),this}appendStr(i){let a=this._buffer8,t=this._buffer32,e=this._bufferLength,s,r;for(r=0;r<i.length;r+=1){if(s=i.charCodeAt(r),s<128)a[e++]=s;else if(s<2048)a[e++]=(s>>>6)+192,a[e++]=s&63|128;else if(s<55296||s>56319)a[e++]=(s>>>12)+224,a[e++]=s>>>6&63|128,a[e++]=s&63|128;else{if(s=(s-55296)*1024+(i.charCodeAt(++r)-56320)+65536,s>1114111)throw new Error("Unicode standard supports code points up to U+10FFFF");a[e++]=(s>>>18)+240,a[e++]=s>>>12&63|128,a[e++]=s>>>6&63|128,a[e++]=s&63|128}e>=64&&(this._dataLength+=64,_h._md5cycle(this._state,t),e-=64,t[0]=t[16])}return this._bufferLength=e,this}appendAsciiStr(i){let a=this._buffer8,t=this._buffer32,e=this._bufferLength,s,r=0;for(;;){for(s=Math.min(i.length-r,64-e);s--;)a[e++]=i.charCodeAt(r++);if(e<64)break;this._dataLength+=64,_h._md5cycle(this._state,t),e=0}return this._bufferLength=e,this}appendByteArray(i){let a=this._buffer8,t=this._buffer32,e=this._bufferLength,s,r=0;for(;;){for(s=Math.min(i.length-r,64-e);s--;)a[e++]=i[r++];if(e<64)break;this._dataLength+=64,_h._md5cycle(this._state,t),e=0}return this._bufferLength=e,this}getState(){let i=this._state;return{buffer:String.fromCharCode.apply(null,Array.from(this._buffer8)),buflen:this._bufferLength,length:this._dataLength,state:[i[0],i[1],i[2],i[3]]}}setState(i){let a=i.buffer,t=i.state,e=this._state,s;for(this._dataLength=i.length,this._bufferLength=i.buflen,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],s=0;s<a.length;s+=1)this._buffer8[s]=a.charCodeAt(s)}end(i=!1){let a=this._bufferLength,t=this._buffer8,e=this._buffer32,s=(a>>2)+1;this._dataLength+=a;let r=this._dataLength*8;if(t[a]=128,t[a+1]=t[a+2]=t[a+3]=0,e.set(_h.buffer32Identity.subarray(s),s),a>55&&(_h._md5cycle(this._state,e),e.set(_h.buffer32Identity)),r<=4294967295)e[14]=r;else{let n=r.toString(16).match(/(.*?)(.{0,8})$/);if(n===null)return i?c:"";let o=parseInt(n[2],16),_=parseInt(n[1],16)||0;e[14]=o,e[15]=_}return _h._md5cycle(this._state,e),i?this._state:_h._hex(this._state)}};__publicField(_h,"stateIdentity",new Int32Array([1732584193,-271733879,-1732584194,271733878])),__publicField(_h,"buffer32Identity",new Int32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),__publicField(_h,"hexChars","0123456789abcdef"),__publicField(_h,"hexOut",[]),__publicField(_h,"onePassHasher",new _h);var h=_h;if(h.hashStr("hello")!=="5d41402abc4b2a76b9719d911017c592")throw new Error("Md5 self test failed.");var external_exports={};__export(external_exports,{$brand:()=>$brand,$input:()=>$input,$output:()=>$output,NEVER:()=>NEVER,TimePrecision:()=>TimePrecision,ZodAny:()=>ZodAny,ZodArray:()=>ZodArray,ZodBase64:()=>ZodBase64,ZodBase64URL:()=>ZodBase64URL,ZodBigInt:()=>ZodBigInt,ZodBigIntFormat:()=>ZodBigIntFormat,ZodBoolean:()=>ZodBoolean,ZodCIDRv4:()=>ZodCIDRv4,ZodCIDRv6:()=>ZodCIDRv6,ZodCUID:()=>ZodCUID,ZodCUID2:()=>ZodCUID2,ZodCatch:()=>ZodCatch,ZodCodec:()=>ZodCodec,ZodCustom:()=>ZodCustom,ZodCustomStringFormat:()=>ZodCustomStringFormat,ZodDate:()=>ZodDate,ZodDefault:()=>ZodDefault,ZodDiscriminatedUnion:()=>ZodDiscriminatedUnion,ZodE164:()=>ZodE164,ZodEmail:()=>ZodEmail,ZodEmoji:()=>ZodEmoji,ZodEnum:()=>ZodEnum,ZodError:()=>ZodError,ZodExactOptional:()=>ZodExactOptional,ZodFile:()=>ZodFile,ZodFirstPartyTypeKind:()=>ZodFirstPartyTypeKind,ZodFunction:()=>ZodFunction,ZodGUID:()=>ZodGUID,ZodIPv4:()=>ZodIPv4,ZodIPv6:()=>ZodIPv6,ZodISODate:()=>ZodISODate,ZodISODateTime:()=>ZodISODateTime,ZodISODuration:()=>ZodISODuration,ZodISOTime:()=>ZodISOTime,ZodIntersection:()=>ZodIntersection,ZodIssueCode:()=>ZodIssueCode,ZodJWT:()=>ZodJWT,ZodKSUID:()=>ZodKSUID,ZodLazy:()=>ZodLazy,ZodLiteral:()=>ZodLiteral,ZodMAC:()=>ZodMAC,ZodMap:()=>ZodMap,ZodNaN:()=>ZodNaN,ZodNanoID:()=>ZodNanoID,ZodNever:()=>ZodNever,ZodNonOptional:()=>ZodNonOptional,ZodNull:()=>ZodNull,ZodNullable:()=>ZodNullable,ZodNumber:()=>ZodNumber,ZodNumberFormat:()=>ZodNumberFormat,ZodObject:()=>ZodObject,ZodOptional:()=>ZodOptional,ZodPipe:()=>ZodPipe,ZodPrefault:()=>ZodPrefault,ZodPreprocess:()=>ZodPreprocess,ZodPromise:()=>ZodPromise,ZodReadonly:()=>ZodReadonly,ZodRealError:()=>ZodRealError,ZodRecord:()=>ZodRecord,ZodSet:()=>ZodSet,ZodString:()=>ZodString,ZodStringFormat:()=>ZodStringFormat,ZodSuccess:()=>ZodSuccess,ZodSymbol:()=>ZodSymbol,ZodTemplateLiteral:()=>ZodTemplateLiteral,ZodTransform:()=>ZodTransform,ZodTuple:()=>ZodTuple,ZodType:()=>ZodType,ZodULID:()=>ZodULID,ZodURL:()=>ZodURL,ZodUUID:()=>ZodUUID,ZodUndefined:()=>ZodUndefined,ZodUnion:()=>ZodUnion,ZodUnknown:()=>ZodUnknown,ZodVoid:()=>ZodVoid,ZodXID:()=>ZodXID,ZodXor:()=>ZodXor,_ZodString:()=>_ZodString,_default:()=>_default2,_function:()=>_function,any:()=>any,array:()=>array,base64:()=>base642,base64url:()=>base64url2,bigint:()=>bigint2,boolean:()=>boolean2,catch:()=>_catch2,check:()=>check,cidrv4:()=>cidrv42,cidrv6:()=>cidrv62,clone:()=>clone,codec:()=>codec,coerce:()=>coerce_exports,config:()=>config,core:()=>core_exports2,cuid:()=>cuid3,cuid2:()=>cuid22,custom:()=>custom,date:()=>date3,decode:()=>decode2,decodeAsync:()=>decodeAsync2,describe:()=>describe2,discriminatedUnion:()=>discriminatedUnion,e164:()=>e1642,email:()=>email2,emoji:()=>emoji2,encode:()=>encode4,encodeAsync:()=>encodeAsync2,endsWith:()=>_endsWith,enum:()=>_enum2,exactOptional:()=>exactOptional,file:()=>file,flattenError:()=>flattenError,float32:()=>float32,float64:()=>float64,formatError:()=>formatError,fromJSONSchema:()=>fromJSONSchema,function:()=>_function,getErrorMap:()=>getErrorMap,globalRegistry:()=>globalRegistry,gt:()=>_gt,gte:()=>_gte,guid:()=>guid2,hash:()=>hash2,hex:()=>hex2,hostname:()=>hostname2,httpUrl:()=>httpUrl,includes:()=>_includes,instanceof:()=>_instanceof,int:()=>int,int32:()=>int32,int64:()=>int64,intersection:()=>intersection,invertCodec:()=>invertCodec,ipv4:()=>ipv42,ipv6:()=>ipv62,iso:()=>iso_exports,json:()=>json,jwt:()=>jwt,keyof:()=>keyof,ksuid:()=>ksuid2,lazy:()=>lazy,length:()=>_length,literal:()=>literal,locales:()=>locales_exports,looseObject:()=>looseObject,looseRecord:()=>looseRecord,lowercase:()=>_lowercase,lt:()=>_lt,lte:()=>_lte,mac:()=>mac2,map:()=>map,maxLength:()=>_maxLength,maxSize:()=>_maxSize,meta:()=>meta2,mime:()=>_mime,minLength:()=>_minLength,minSize:()=>_minSize,multipleOf:()=>_multipleOf,nan:()=>nan,nanoid:()=>nanoid2,nativeEnum:()=>nativeEnum,negative:()=>_negative,never:()=>never,nonnegative:()=>_nonnegative,nonoptional:()=>nonoptional,nonpositive:()=>_nonpositive,normalize:()=>_normalize,null:()=>_null3,nullable:()=>nullable,nullish:()=>nullish2,number:()=>number2,object:()=>object,optional:()=>optional,overwrite:()=>_overwrite,parse:()=>parse2,parseAsync:()=>parseAsync2,partialRecord:()=>partialRecord,pipe:()=>pipe,positive:()=>_positive,prefault:()=>prefault,preprocess:()=>preprocess,prettifyError:()=>prettifyError,promise:()=>promise,property:()=>_property,readonly:()=>readonly,record:()=>record,refine:()=>refine,regex:()=>_regex,regexes:()=>regexes_exports,registry:()=>registry,safeDecode:()=>safeDecode2,safeDecodeAsync:()=>safeDecodeAsync2,safeEncode:()=>safeEncode2,safeEncodeAsync:()=>safeEncodeAsync2,safeParse:()=>safeParse2,safeParseAsync:()=>safeParseAsync2,set:()=>set2,setErrorMap:()=>setErrorMap,size:()=>_size,slugify:()=>_slugify,startsWith:()=>_startsWith,strictObject:()=>strictObject,string:()=>string2,stringFormat:()=>stringFormat,stringbool:()=>stringbool,success:()=>success,superRefine:()=>superRefine,symbol:()=>symbol,templateLiteral:()=>templateLiteral,toJSONSchema:()=>toJSONSchema,toLowerCase:()=>_toLowerCase,toUpperCase:()=>_toUpperCase,transform:()=>transform,treeifyError:()=>treeifyError,trim:()=>_trim,tuple:()=>tuple,uint32:()=>uint32,uint64:()=>uint64,ulid:()=>ulid2,undefined:()=>_undefined3,union:()=>union,unknown:()=>unknown,uppercase:()=>_uppercase,url:()=>url,util:()=>util_exports,uuid:()=>uuid2,uuidv4:()=>uuidv4,uuidv6:()=>uuidv6,uuidv7:()=>uuidv7,void:()=>_void2,xid:()=>xid2,xor:()=>xor});var core_exports2={};__export(core_exports2,{$ZodAny:()=>$ZodAny,$ZodArray:()=>$ZodArray,$ZodAsyncError:()=>$ZodAsyncError,$ZodBase64:()=>$ZodBase64,$ZodBase64URL:()=>$ZodBase64URL,$ZodBigInt:()=>$ZodBigInt,$ZodBigIntFormat:()=>$ZodBigIntFormat,$ZodBoolean:()=>$ZodBoolean,$ZodCIDRv4:()=>$ZodCIDRv4,$ZodCIDRv6:()=>$ZodCIDRv6,$ZodCUID:()=>$ZodCUID,$ZodCUID2:()=>$ZodCUID2,$ZodCatch:()=>$ZodCatch,$ZodCheck:()=>$ZodCheck,$ZodCheckBigIntFormat:()=>$ZodCheckBigIntFormat,$ZodCheckEndsWith:()=>$ZodCheckEndsWith,$ZodCheckGreaterThan:()=>$ZodCheckGreaterThan,$ZodCheckIncludes:()=>$ZodCheckIncludes,$ZodCheckLengthEquals:()=>$ZodCheckLengthEquals,$ZodCheckLessThan:()=>$ZodCheckLessThan,$ZodCheckLowerCase:()=>$ZodCheckLowerCase,$ZodCheckMaxLength:()=>$ZodCheckMaxLength,$ZodCheckMaxSize:()=>$ZodCheckMaxSize,$ZodCheckMimeType:()=>$ZodCheckMimeType,$ZodCheckMinLength:()=>$ZodCheckMinLength,$ZodCheckMinSize:()=>$ZodCheckMinSize,$ZodCheckMultipleOf:()=>$ZodCheckMultipleOf,$ZodCheckNumberFormat:()=>$ZodCheckNumberFormat,$ZodCheckOverwrite:()=>$ZodCheckOverwrite,$ZodCheckProperty:()=>$ZodCheckProperty,$ZodCheckRegex:()=>$ZodCheckRegex,$ZodCheckSizeEquals:()=>$ZodCheckSizeEquals,$ZodCheckStartsWith:()=>$ZodCheckStartsWith,$ZodCheckStringFormat:()=>$ZodCheckStringFormat,$ZodCheckUpperCase:()=>$ZodCheckUpperCase,$ZodCodec:()=>$ZodCodec,$ZodCustom:()=>$ZodCustom,$ZodCustomStringFormat:()=>$ZodCustomStringFormat,$ZodDate:()=>$ZodDate,$ZodDefault:()=>$ZodDefault,$ZodDiscriminatedUnion:()=>$ZodDiscriminatedUnion,$ZodE164:()=>$ZodE164,$ZodEmail:()=>$ZodEmail,$ZodEmoji:()=>$ZodEmoji,$ZodEncodeError:()=>$ZodEncodeError,$ZodEnum:()=>$ZodEnum,$ZodError:()=>$ZodError,$ZodExactOptional:()=>$ZodExactOptional,$ZodFile:()=>$ZodFile,$ZodFunction:()=>$ZodFunction,$ZodGUID:()=>$ZodGUID,$ZodIPv4:()=>$ZodIPv4,$ZodIPv6:()=>$ZodIPv6,$ZodISODate:()=>$ZodISODate,$ZodISODateTime:()=>$ZodISODateTime,$ZodISODuration:()=>$ZodISODuration,$ZodISOTime:()=>$ZodISOTime,$ZodIntersection:()=>$ZodIntersection,$ZodJWT:()=>$ZodJWT,$ZodKSUID:()=>$ZodKSUID,$ZodLazy:()=>$ZodLazy,$ZodLiteral:()=>$ZodLiteral,$ZodMAC:()=>$ZodMAC,$ZodMap:()=>$ZodMap,$ZodNaN:()=>$ZodNaN,$ZodNanoID:()=>$ZodNanoID,$ZodNever:()=>$ZodNever,$ZodNonOptional:()=>$ZodNonOptional,$ZodNull:()=>$ZodNull,$ZodNullable:()=>$ZodNullable,$ZodNumber:()=>$ZodNumber,$ZodNumberFormat:()=>$ZodNumberFormat,$ZodObject:()=>$ZodObject,$ZodObjectJIT:()=>$ZodObjectJIT,$ZodOptional:()=>$ZodOptional,$ZodPipe:()=>$ZodPipe,$ZodPrefault:()=>$ZodPrefault,$ZodPreprocess:()=>$ZodPreprocess,$ZodPromise:()=>$ZodPromise,$ZodReadonly:()=>$ZodReadonly,$ZodRealError:()=>$ZodRealError,$ZodRecord:()=>$ZodRecord,$ZodRegistry:()=>$ZodRegistry,$ZodSet:()=>$ZodSet,$ZodString:()=>$ZodString,$ZodStringFormat:()=>$ZodStringFormat,$ZodSuccess:()=>$ZodSuccess,$ZodSymbol:()=>$ZodSymbol,$ZodTemplateLiteral:()=>$ZodTemplateLiteral,$ZodTransform:()=>$ZodTransform,$ZodTuple:()=>$ZodTuple,$ZodType:()=>$ZodType,$ZodULID:()=>$ZodULID,$ZodURL:()=>$ZodURL,$ZodUUID:()=>$ZodUUID,$ZodUndefined:()=>$ZodUndefined,$ZodUnion:()=>$ZodUnion,$ZodUnknown:()=>$ZodUnknown,$ZodVoid:()=>$ZodVoid,$ZodXID:()=>$ZodXID,$ZodXor:()=>$ZodXor,$brand:()=>$brand,$constructor:()=>$constructor,$input:()=>$input,$output:()=>$output,Doc:()=>Doc,JSONSchema:()=>json_schema_exports,JSONSchemaGenerator:()=>JSONSchemaGenerator,NEVER:()=>NEVER,TimePrecision:()=>TimePrecision,_any:()=>_any,_array:()=>_array,_base64:()=>_base64,_base64url:()=>_base64url,_bigint:()=>_bigint,_boolean:()=>_boolean,_catch:()=>_catch,_check:()=>_check,_cidrv4:()=>_cidrv4,_cidrv6:()=>_cidrv6,_coercedBigint:()=>_coercedBigint,_coercedBoolean:()=>_coercedBoolean,_coercedDate:()=>_coercedDate,_coercedNumber:()=>_coercedNumber,_coercedString:()=>_coercedString,_cuid:()=>_cuid,_cuid2:()=>_cuid2,_custom:()=>_custom,_date:()=>_date,_decode:()=>_decode,_decodeAsync:()=>_decodeAsync,_default:()=>_default,_discriminatedUnion:()=>_discriminatedUnion,_e164:()=>_e164,_email:()=>_email,_emoji:()=>_emoji2,_encode:()=>_encode,_encodeAsync:()=>_encodeAsync,_endsWith:()=>_endsWith,_enum:()=>_enum,_file:()=>_file,_float32:()=>_float32,_float64:()=>_float64,_gt:()=>_gt,_gte:()=>_gte,_guid:()=>_guid,_includes:()=>_includes,_int:()=>_int,_int32:()=>_int32,_int64:()=>_int64,_intersection:()=>_intersection,_ipv4:()=>_ipv4,_ipv6:()=>_ipv6,_isoDate:()=>_isoDate,_isoDateTime:()=>_isoDateTime,_isoDuration:()=>_isoDuration,_isoTime:()=>_isoTime,_jwt:()=>_jwt,_ksuid:()=>_ksuid,_lazy:()=>_lazy,_length:()=>_length,_literal:()=>_literal,_lowercase:()=>_lowercase,_lt:()=>_lt,_lte:()=>_lte,_mac:()=>_mac,_map:()=>_map,_max:()=>_lte,_maxLength:()=>_maxLength,_maxSize:()=>_maxSize,_mime:()=>_mime,_min:()=>_gte,_minLength:()=>_minLength,_minSize:()=>_minSize,_multipleOf:()=>_multipleOf,_nan:()=>_nan,_nanoid:()=>_nanoid,_nativeEnum:()=>_nativeEnum,_negative:()=>_negative,_never:()=>_never,_nonnegative:()=>_nonnegative,_nonoptional:()=>_nonoptional,_nonpositive:()=>_nonpositive,_normalize:()=>_normalize,_null:()=>_null2,_nullable:()=>_nullable,_number:()=>_number,_optional:()=>_optional,_overwrite:()=>_overwrite,_parse:()=>_parse,_parseAsync:()=>_parseAsync,_pipe:()=>_pipe,_positive:()=>_positive,_promise:()=>_promise,_property:()=>_property,_readonly:()=>_readonly,_record:()=>_record,_refine:()=>_refine,_regex:()=>_regex,_safeDecode:()=>_safeDecode,_safeDecodeAsync:()=>_safeDecodeAsync,_safeEncode:()=>_safeEncode,_safeEncodeAsync:()=>_safeEncodeAsync,_safeParse:()=>_safeParse,_safeParseAsync:()=>_safeParseAsync,_set:()=>_set,_size:()=>_size,_slugify:()=>_slugify,_startsWith:()=>_startsWith,_string:()=>_string,_stringFormat:()=>_stringFormat,_stringbool:()=>_stringbool,_success:()=>_success,_superRefine:()=>_superRefine,_symbol:()=>_symbol,_templateLiteral:()=>_templateLiteral,_toLowerCase:()=>_toLowerCase,_toUpperCase:()=>_toUpperCase,_transform:()=>_transform,_trim:()=>_trim,_tuple:()=>_tuple,_uint32:()=>_uint32,_uint64:()=>_uint64,_ulid:()=>_ulid,_undefined:()=>_undefined2,_union:()=>_union,_unknown:()=>_unknown,_uppercase:()=>_uppercase,_url:()=>_url,_uuid:()=>_uuid,_uuidv4:()=>_uuidv4,_uuidv6:()=>_uuidv6,_uuidv7:()=>_uuidv7,_void:()=>_void,_xid:()=>_xid,_xor:()=>_xor,clone:()=>clone,config:()=>config,createStandardJSONSchemaMethod:()=>createStandardJSONSchemaMethod,createToJSONSchemaMethod:()=>createToJSONSchemaMethod,decode:()=>decode,decodeAsync:()=>decodeAsync,describe:()=>describe,encode:()=>encode3,encodeAsync:()=>encodeAsync,extractDefs:()=>extractDefs,finalize:()=>finalize,flattenError:()=>flattenError,formatError:()=>formatError,globalConfig:()=>globalConfig,globalRegistry:()=>globalRegistry,initializeContext:()=>initializeContext,isValidBase64:()=>isValidBase64,isValidBase64URL:()=>isValidBase64URL,isValidJWT:()=>isValidJWT,locales:()=>locales_exports,meta:()=>meta,parse:()=>parse,parseAsync:()=>parseAsync,prettifyError:()=>prettifyError,process:()=>process2,regexes:()=>regexes_exports,registry:()=>registry,safeDecode:()=>safeDecode,safeDecodeAsync:()=>safeDecodeAsync,safeEncode:()=>safeEncode,safeEncodeAsync:()=>safeEncodeAsync,safeParse:()=>safeParse,safeParseAsync:()=>safeParseAsync,toDotPath:()=>toDotPath,toJSONSchema:()=>toJSONSchema,treeifyError:()=>treeifyError,util:()=>util_exports,version:()=>version});var _a5,NEVER=Object.freeze({status:"aborted"});function $constructor(name,initializer3,params){var _a9;function init2(inst,def){if(inst._zod||Object.defineProperty(inst,"_zod",{value:{def,constr:_,traits:new Set},enumerable:!1}),inst._zod.traits.has(name))return;inst._zod.traits.add(name),initializer3(inst,def);let proto=_.prototype,keys=Object.keys(proto);for(let i=0;i<keys.length;i++){let k=keys[i];k in inst||(inst[k]=proto[k].bind(inst))}}let Parent=(_a9=params==null?void 0:params.Parent)!=null?_a9:Object;class Definition extends Parent{}Object.defineProperty(Definition,"name",{value:name});function _(def){var _a11;var _a10;let inst=params!=null&&params.Parent?new Definition:this;init2(inst,def),(_a11=(_a10=inst._zod).deferred)!=null||(_a10.deferred=[]);for(let fn of inst._zod.deferred)fn();return inst}return Object.defineProperty(_,"init",{value:init2}),Object.defineProperty(_,Symbol.hasInstance,{value:inst=>{var _a10,_b3;return params!=null&&params.Parent&&inst instanceof params.Parent?!0:(_b3=(_a10=inst==null?void 0:inst._zod)==null?void 0:_a10.traits)==null?void 0:_b3.has(name)}}),Object.defineProperty(_,"name",{value:name}),_}var $brand=Symbol("zod_brand"),$ZodAsyncError=class extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},$ZodEncodeError=class extends Error{constructor(name){super(`Encountered unidirectional transform during encode: ${name}`),this.name="ZodEncodeError"}},_a6;(_a6=(_a5=globalThis).__zod_globalConfig)!=null||(_a5.__zod_globalConfig={});var globalConfig=globalThis.__zod_globalConfig;function config(newConfig){return newConfig&&Object.assign(globalConfig,newConfig),globalConfig}var util_exports={};__export(util_exports,{BIGINT_FORMAT_RANGES:()=>BIGINT_FORMAT_RANGES,Class:()=>Class,NUMBER_FORMAT_RANGES:()=>NUMBER_FORMAT_RANGES,aborted:()=>aborted2,allowsEval:()=>allowsEval,assert:()=>assert,assertEqual:()=>assertEqual,assertIs:()=>assertIs,assertNever:()=>assertNever,assertNotEqual:()=>assertNotEqual,assignProp:()=>assignProp,base64ToUint8Array:()=>base64ToUint8Array,base64urlToUint8Array:()=>base64urlToUint8Array,cached:()=>cached,captureStackTrace:()=>captureStackTrace,cleanEnum:()=>cleanEnum,cleanRegex:()=>cleanRegex,clone:()=>clone,cloneDef:()=>cloneDef,createTransparentProxy:()=>createTransparentProxy,defineLazy:()=>defineLazy,esc:()=>esc,escapeRegex:()=>escapeRegex,explicitlyAborted:()=>explicitlyAborted,extend:()=>extend2,finalizeIssue:()=>finalizeIssue,floatSafeRemainder:()=>floatSafeRemainder,getElementAtPath:()=>getElementAtPath,getEnumValues:()=>getEnumValues,getLengthableOrigin:()=>getLengthableOrigin,getParsedType:()=>getParsedType,getSizableOrigin:()=>getSizableOrigin,hexToUint8Array:()=>hexToUint8Array,isObject:()=>isObject2,isPlainObject:()=>isPlainObject2,issue:()=>issue,joinValues:()=>joinValues,jsonStringifyReplacer:()=>jsonStringifyReplacer,merge:()=>merge2,mergeDefs:()=>mergeDefs,normalizeParams:()=>normalizeParams,nullish:()=>nullish,numKeys:()=>numKeys,objectClone:()=>objectClone,omit:()=>omit,optionalKeys:()=>optionalKeys,parsedType:()=>parsedType,partial:()=>partial,pick:()=>pick,prefixIssues:()=>prefixIssues,primitiveTypes:()=>primitiveTypes,promiseAllObject:()=>promiseAllObject,propertyKeyTypes:()=>propertyKeyTypes,randomString:()=>randomString,required:()=>required,safeExtend:()=>safeExtend,shallowClone:()=>shallowClone,slugify:()=>slugify,stringifyPrimitive:()=>stringifyPrimitive,uint8ArrayToBase64:()=>uint8ArrayToBase64,uint8ArrayToBase64url:()=>uint8ArrayToBase64url,uint8ArrayToHex:()=>uint8ArrayToHex,unwrapMessage:()=>unwrapMessage});function assertEqual(val){return val}function assertNotEqual(val){return val}function assertIs(_arg){}function assertNever(_x){throw new Error("Unexpected value in exhaustive check")}function assert(_){}function getEnumValues(entries){let numericValues=Object.values(entries).filter(v=>typeof v=="number");return Object.entries(entries).filter(([k,_])=>numericValues.indexOf(+k)===-1).map(([_,v])=>v)}function joinValues(array2,separator="|"){return array2.map(val=>stringifyPrimitive(val)).join(separator)}function jsonStringifyReplacer(_,value){return typeof value=="bigint"?value.toString():value}function cached(getter){return{get value(){{let value=getter();return Object.defineProperty(this,"value",{value}),value}throw new Error("cached value already set")}}}function nullish(input){return input==null}function cleanRegex(source2){let start=source2.startsWith("^")?1:0,end=source2.endsWith("$")?source2.length-1:source2.length;return source2.slice(start,end)}function floatSafeRemainder(val,step){let ratio=val/step,roundedRatio=Math.round(ratio),tolerance=Number.EPSILON*Math.max(Math.abs(ratio),1);return Math.abs(ratio-roundedRatio)<tolerance?0:ratio-roundedRatio}var EVALUATING=Symbol("evaluating");function defineLazy(object2,key2,getter){let value;Object.defineProperty(object2,key2,{get(){if(value!==EVALUATING)return value===void 0&&(value=EVALUATING,value=getter()),value},set(v){Object.defineProperty(object2,key2,{value:v})},configurable:!0})}function objectClone(obj){return Object.create(Object.getPrototypeOf(obj),Object.getOwnPropertyDescriptors(obj))}function assignProp(target,prop2,value){Object.defineProperty(target,prop2,{value,writable:!0,enumerable:!0,configurable:!0})}function mergeDefs(...defs){let mergedDescriptors={};for(let def of defs){let descriptors=Object.getOwnPropertyDescriptors(def);Object.assign(mergedDescriptors,descriptors)}return Object.defineProperties({},mergedDescriptors)}function cloneDef(schema){return mergeDefs(schema._zod.def)}function getElementAtPath(obj,path){return path?path.reduce((acc,key2)=>acc==null?void 0:acc[key2],obj):obj}function promiseAllObject(promisesObj){let keys=Object.keys(promisesObj),promises=keys.map(key2=>promisesObj[key2]);return Promise.all(promises).then(results=>{let resolvedObj={};for(let i=0;i<keys.length;i++)resolvedObj[keys[i]]=results[i];return resolvedObj})}function randomString(length=10){let chars="abcdefghijklmnopqrstuvwxyz",str="";for(let i=0;i<length;i++)str+=chars[Math.floor(Math.random()*chars.length)];return str}function esc(str){return JSON.stringify(str)}function slugify(input){return input.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}var captureStackTrace="captureStackTrace"in Error?Error.captureStackTrace:(..._args)=>{};function isObject2(data){return typeof data=="object"&&data!==null&&!Array.isArray(data)}var allowsEval=cached(()=>{var _a9;if(globalConfig.jitless||typeof navigator!="undefined"&&((_a9=navigator==null?void 0:navigator.userAgent)!=null&&_a9.includes("Cloudflare")))return!1;try{let F=Function;return new F(""),!0}catch(_){return!1}});function isPlainObject2(o){if(isObject2(o)===!1)return!1;let ctor=o.constructor;if(ctor===void 0||typeof ctor!="function")return!0;let prot=ctor.prototype;return!(isObject2(prot)===!1||Object.prototype.hasOwnProperty.call(prot,"isPrototypeOf")===!1)}function shallowClone(o){return isPlainObject2(o)?{...o}:Array.isArray(o)?[...o]:o instanceof Map?new Map(o):o instanceof Set?new Set(o):o}function numKeys(data){let keyCount=0;for(let key2 in data)Object.prototype.hasOwnProperty.call(data,key2)&&keyCount++;return keyCount}var getParsedType=data=>{let t=typeof data;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(data)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(data)?"array":data===null?"null":data.then&&typeof data.then=="function"&&data.catch&&typeof data.catch=="function"?"promise":typeof Map!="undefined"&&data instanceof Map?"map":typeof Set!="undefined"&&data instanceof Set?"set":typeof Date!="undefined"&&data instanceof Date?"date":typeof File!="undefined"&&data instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},propertyKeyTypes=new Set(["string","number","symbol"]),primitiveTypes=new Set(["string","number","bigint","boolean","symbol","undefined"]);function escapeRegex(str){return str.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function clone(inst,def,params){let cl=new inst._zod.constr(def!=null?def:inst._zod.def);return(!def||params!=null&&params.parent)&&(cl._zod.parent=inst),cl}function normalizeParams(_params){let params=_params;if(!params)return{};if(typeof params=="string")return{error:()=>params};if((params==null?void 0:params.message)!==void 0){if((params==null?void 0:params.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");params.error=params.message}return delete params.message,typeof params.error=="string"?{...params,error:()=>params.error}:params}function createTransparentProxy(getter){let target;return new Proxy({},{get(_,prop2,receiver){return target!=null||(target=getter()),Reflect.get(target,prop2,receiver)},set(_,prop2,value,receiver){return target!=null||(target=getter()),Reflect.set(target,prop2,value,receiver)},has(_,prop2){return target!=null||(target=getter()),Reflect.has(target,prop2)},deleteProperty(_,prop2){return target!=null||(target=getter()),Reflect.deleteProperty(target,prop2)},ownKeys(_){return target!=null||(target=getter()),Reflect.ownKeys(target)},getOwnPropertyDescriptor(_,prop2){return target!=null||(target=getter()),Reflect.getOwnPropertyDescriptor(target,prop2)},defineProperty(_,prop2,descriptor){return target!=null||(target=getter()),Reflect.defineProperty(target,prop2,descriptor)}})}function stringifyPrimitive(value){return typeof value=="bigint"?value.toString()+"n":typeof value=="string"?`"${value}"`:`${value}`}function optionalKeys(shape){return Object.keys(shape).filter(k=>shape[k]._zod.optin==="optional"&&shape[k]._zod.optout==="optional")}var NUMBER_FORMAT_RANGES={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},BIGINT_FORMAT_RANGES={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function pick(schema,mask){let currDef=schema._zod.def,checks=currDef.checks;if(checks&&checks.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let def=mergeDefs(schema._zod.def,{get shape(){let newShape={};for(let key2 in mask){if(!(key2 in currDef.shape))throw new Error(`Unrecognized key: "${key2}"`);mask[key2]&&(newShape[key2]=currDef.shape[key2])}return assignProp(this,"shape",newShape),newShape},checks:[]});return clone(schema,def)}function omit(schema,mask){let currDef=schema._zod.def,checks=currDef.checks;if(checks&&checks.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let def=mergeDefs(schema._zod.def,{get shape(){let newShape={...schema._zod.def.shape};for(let key2 in mask){if(!(key2 in currDef.shape))throw new Error(`Unrecognized key: "${key2}"`);mask[key2]&&delete newShape[key2]}return assignProp(this,"shape",newShape),newShape},checks:[]});return clone(schema,def)}function extend2(schema,shape){if(!isPlainObject2(shape))throw new Error("Invalid input to extend: expected a plain object");let checks=schema._zod.def.checks;if(checks&&checks.length>0){let existingShape=schema._zod.def.shape;for(let key2 in shape)if(Object.getOwnPropertyDescriptor(existingShape,key2)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let def=mergeDefs(schema._zod.def,{get shape(){let _shape={...schema._zod.def.shape,...shape};return assignProp(this,"shape",_shape),_shape}});return clone(schema,def)}function safeExtend(schema,shape){if(!isPlainObject2(shape))throw new Error("Invalid input to safeExtend: expected a plain object");let def=mergeDefs(schema._zod.def,{get shape(){let _shape={...schema._zod.def.shape,...shape};return assignProp(this,"shape",_shape),_shape}});return clone(schema,def)}function merge2(a,b){var _a9,_b3;if((_a9=a._zod.def.checks)!=null&&_a9.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let def=mergeDefs(a._zod.def,{get shape(){let _shape={...a._zod.def.shape,...b._zod.def.shape};return assignProp(this,"shape",_shape),_shape},get catchall(){return b._zod.def.catchall},checks:(_b3=b._zod.def.checks)!=null?_b3:[]});return clone(a,def)}function partial(Class2,schema,mask){let checks=schema._zod.def.checks;if(checks&&checks.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let def=mergeDefs(schema._zod.def,{get shape(){let oldShape=schema._zod.def.shape,shape={...oldShape};if(mask)for(let key2 in mask){if(!(key2 in oldShape))throw new Error(`Unrecognized key: "${key2}"`);mask[key2]&&(shape[key2]=Class2?new Class2({type:"optional",innerType:oldShape[key2]}):oldShape[key2])}else for(let key2 in oldShape)shape[key2]=Class2?new Class2({type:"optional",innerType:oldShape[key2]}):oldShape[key2];return assignProp(this,"shape",shape),shape},checks:[]});return clone(schema,def)}function required(Class2,schema,mask){let def=mergeDefs(schema._zod.def,{get shape(){let oldShape=schema._zod.def.shape,shape={...oldShape};if(mask)for(let key2 in mask){if(!(key2 in shape))throw new Error(`Unrecognized key: "${key2}"`);mask[key2]&&(shape[key2]=new Class2({type:"nonoptional",innerType:oldShape[key2]}))}else for(let key2 in oldShape)shape[key2]=new Class2({type:"nonoptional",innerType:oldShape[key2]});return assignProp(this,"shape",shape),shape}});return clone(schema,def)}function aborted2(x,startIndex=0){var _a9;if(x.aborted===!0)return!0;for(let i=startIndex;i<x.issues.length;i++)if(((_a9=x.issues[i])==null?void 0:_a9.continue)!==!0)return!0;return!1}function explicitlyAborted(x,startIndex=0){var _a9;if(x.aborted===!0)return!0;for(let i=startIndex;i<x.issues.length;i++)if(((_a9=x.issues[i])==null?void 0:_a9.continue)===!1)return!0;return!1}function prefixIssues(path,issues){return issues.map(iss=>{var _a10;var _a9;return(_a10=(_a9=iss).path)!=null||(_a9.path=[]),iss.path.unshift(path),iss})}function unwrapMessage(message){return typeof message=="string"?message:message==null?void 0:message.message}function finalizeIssue(iss,ctx,config2){var _a9,_b3,_c2,_d,_e,_f,_g,_h2,_i,_j,_k;let message=iss.message?iss.message:(_j=(_i=(_g=(_e=unwrapMessage((_c2=(_b3=(_a9=iss.inst)==null?void 0:_a9._zod.def)==null?void 0:_b3.error)==null?void 0:_c2.call(_b3,iss)))!=null?_e:unwrapMessage((_d=ctx==null?void 0:ctx.error)==null?void 0:_d.call(ctx,iss)))!=null?_g:unwrapMessage((_f=config2.customError)==null?void 0:_f.call(config2,iss)))!=null?_i:unwrapMessage((_h2=config2.localeError)==null?void 0:_h2.call(config2,iss)))!=null?_j:"Invalid input",{inst:_inst,continue:_continue,input:_input,...rest}=iss;return(_k=rest.path)!=null||(rest.path=[]),rest.message=message,ctx!=null&&ctx.reportInput&&(rest.input=_input),rest}function getSizableOrigin(input){return input instanceof Set?"set":input instanceof Map?"map":input instanceof File?"file":"unknown"}function getLengthableOrigin(input){return Array.isArray(input)?"array":typeof input=="string"?"string":"unknown"}function parsedType(data){let t=typeof data;switch(t){case"number":return Number.isNaN(data)?"nan":"number";case"object":{if(data===null)return"null";if(Array.isArray(data))return"array";let obj=data;if(obj&&Object.getPrototypeOf(obj)!==Object.prototype&&"constructor"in obj&&obj.constructor)return obj.constructor.name}}return t}function issue(...args){let[iss,input,inst]=args;return typeof iss=="string"?{message:iss,code:"custom",input,inst}:{...iss}}function cleanEnum(obj){return Object.entries(obj).filter(([k,_])=>Number.isNaN(Number.parseInt(k,10))).map(el=>el[1])}function base64ToUint8Array(base643){let binaryString=atob(base643),bytes=new Uint8Array(binaryString.length);for(let i=0;i<binaryString.length;i++)bytes[i]=binaryString.charCodeAt(i);return bytes}function uint8ArrayToBase64(bytes){let binaryString="";for(let i=0;i<bytes.length;i++)binaryString+=String.fromCharCode(bytes[i]);return btoa(binaryString)}function base64urlToUint8Array(base64url3){let base643=base64url3.replace(/-/g,"+").replace(/_/g,"/"),padding="=".repeat((4-base643.length%4)%4);return base64ToUint8Array(base643+padding)}function uint8ArrayToBase64url(bytes){return uint8ArrayToBase64(bytes).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function hexToUint8Array(hex3){let cleanHex=hex3.replace(/^0x/,"");if(cleanHex.length%2!==0)throw new Error("Invalid hex string length");let bytes=new Uint8Array(cleanHex.length/2);for(let i=0;i<cleanHex.length;i+=2)bytes[i/2]=Number.parseInt(cleanHex.slice(i,i+2),16);return bytes}function uint8ArrayToHex(bytes){return Array.from(bytes).map(b=>b.toString(16).padStart(2,"0")).join("")}var Class=class{constructor(..._args){}};var initializer=(inst,def)=>{inst.name="$ZodError",Object.defineProperty(inst,"_zod",{value:inst._zod,enumerable:!1}),Object.defineProperty(inst,"issues",{value:def,enumerable:!1}),inst.message=JSON.stringify(def,jsonStringifyReplacer,2),Object.defineProperty(inst,"toString",{value:()=>inst.message,enumerable:!1})},$ZodError=$constructor("$ZodError",initializer),$ZodRealError=$constructor("$ZodError",initializer,{Parent:Error});function flattenError(error51,mapper=issue2=>issue2.message){let fieldErrors={},formErrors=[];for(let sub of error51.issues)sub.path.length>0?(fieldErrors[sub.path[0]]=fieldErrors[sub.path[0]]||[],fieldErrors[sub.path[0]].push(mapper(sub))):formErrors.push(mapper(sub));return{formErrors,fieldErrors}}function formatError(error51,mapper=issue2=>issue2.message){let fieldErrors={_errors:[]},processError=(error52,path=[])=>{for(let issue2 of error52.issues)if(issue2.code==="invalid_union"&&issue2.errors.length)issue2.errors.map(issues=>processError({issues},[...path,...issue2.path]));else if(issue2.code==="invalid_key")processError({issues:issue2.issues},[...path,...issue2.path]);else if(issue2.code==="invalid_element")processError({issues:issue2.issues},[...path,...issue2.path]);else{let fullpath=[...path,...issue2.path];if(fullpath.length===0)fieldErrors._errors.push(mapper(issue2));else{let curr=fieldErrors,i=0;for(;i<fullpath.length;){let el=fullpath[i];i===fullpath.length-1?(curr[el]=curr[el]||{_errors:[]},curr[el]._errors.push(mapper(issue2))):curr[el]=curr[el]||{_errors:[]},curr=curr[el],i++}}}};return processError(error51),fieldErrors}function treeifyError(error51,mapper=issue2=>issue2.message){let result={errors:[]},processError=(error52,path=[])=>{var _a10,_b4,_c2,_d;var _a9,_b3;for(let issue2 of error52.issues)if(issue2.code==="invalid_union"&&issue2.errors.length)issue2.errors.map(issues=>processError({issues},[...path,...issue2.path]));else if(issue2.code==="invalid_key")processError({issues:issue2.issues},[...path,...issue2.path]);else if(issue2.code==="invalid_element")processError({issues:issue2.issues},[...path,...issue2.path]);else{let fullpath=[...path,...issue2.path];if(fullpath.length===0){result.errors.push(mapper(issue2));continue}let curr=result,i=0;for(;i<fullpath.length;){let el=fullpath[i],terminal=i===fullpath.length-1;typeof el=="string"?((_a10=curr.properties)!=null||(curr.properties={}),(_b4=(_a9=curr.properties)[el])!=null||(_a9[el]={errors:[]}),curr=curr.properties[el]):((_c2=curr.items)!=null||(curr.items=[]),(_d=(_b3=curr.items)[el])!=null||(_b3[el]={errors:[]}),curr=curr.items[el]),terminal&&curr.errors.push(mapper(issue2)),i++}}};return processError(error51),result}function toDotPath(_path){let segs=[],path=_path.map(seg=>typeof seg=="object"?seg.key:seg);for(let seg of path)typeof seg=="number"?segs.push(`[${seg}]`):typeof seg=="symbol"?segs.push(`[${JSON.stringify(String(seg))}]`):/[^\w$]/.test(seg)?segs.push(`[${JSON.stringify(seg)}]`):(segs.length&&segs.push("."),segs.push(seg));return segs.join("")}function prettifyError(error51){var _a9;let lines=[],issues=[...error51.issues].sort((a,b)=>{var _a10,_b3;return((_a10=a.path)!=null?_a10:[]).length-((_b3=b.path)!=null?_b3:[]).length});for(let issue2 of issues)lines.push(`\u2716 ${issue2.message}`),(_a9=issue2.path)!=null&&_a9.length&&lines.push(` \u2192 at ${toDotPath(issue2.path)}`);return lines.join(`
`)}var _parse=_Err=>(schema,value,_ctx,_params)=>{var _a9;let ctx=_ctx?{..._ctx,async:!1}:{async:!1},result=schema._zod.run({value,issues:[]},ctx);if(result instanceof Promise)throw new $ZodAsyncError;if(result.issues.length){let e=new((_a9=_params==null?void 0:_params.Err)!=null?_a9:_Err)(result.issues.map(iss=>finalizeIssue(iss,ctx,config())));throw captureStackTrace(e,_params==null?void 0:_params.callee),e}return result.value},parse=_parse($ZodRealError),_parseAsync=_Err=>async(schema,value,_ctx,params)=>{var _a9;let ctx=_ctx?{..._ctx,async:!0}:{async:!0},result=schema._zod.run({value,issues:[]},ctx);if(result instanceof Promise&&(result=await result),result.issues.length){let e=new((_a9=params==null?void 0:params.Err)!=null?_a9:_Err)(result.issues.map(iss=>finalizeIssue(iss,ctx,config())));throw captureStackTrace(e,params==null?void 0:params.callee),e}return result.value},parseAsync=_parseAsync($ZodRealError),_safeParse=_Err=>(schema,value,_ctx)=>{let ctx=_ctx?{..._ctx,async:!1}:{async:!1},result=schema._zod.run({value,issues:[]},ctx);if(result instanceof Promise)throw new $ZodAsyncError;return result.issues.length?{success:!1,error:new(_Err!=null?_Err:$ZodError)(result.issues.map(iss=>finalizeIssue(iss,ctx,config())))}:{success:!0,data:result.value}},safeParse=_safeParse($ZodRealError),_safeParseAsync=_Err=>async(schema,value,_ctx)=>{let ctx=_ctx?{..._ctx,async:!0}:{async:!0},result=schema._zod.run({value,issues:[]},ctx);return result instanceof Promise&&(result=await result),result.issues.length?{success:!1,error:new _Err(result.issues.map(iss=>finalizeIssue(iss,ctx,config())))}:{success:!0,data:result.value}},safeParseAsync=_safeParseAsync($ZodRealError),_encode=_Err=>(schema,value,_ctx)=>{let ctx=_ctx?{..._ctx,direction:"backward"}:{direction:"backward"};return _parse(_Err)(schema,value,ctx)},encode3=_encode($ZodRealError),_decode=_Err=>(schema,value,_ctx)=>_parse(_Err)(schema,value,_ctx),decode=_decode($ZodRealError),_encodeAsync=_Err=>async(schema,value,_ctx)=>{let ctx=_ctx?{..._ctx,direction:"backward"}:{direction:"backward"};return _parseAsync(_Err)(schema,value,ctx)},encodeAsync=_encodeAsync($ZodRealError),_decodeAsync=_Err=>async(schema,value,_ctx)=>_parseAsync(_Err)(schema,value,_ctx),decodeAsync=_decodeAsync($ZodRealError),_safeEncode=_Err=>(schema,value,_ctx)=>{let ctx=_ctx?{..._ctx,direction:"backward"}:{direction:"backward"};return _safeParse(_Err)(schema,value,ctx)},safeEncode=_safeEncode($ZodRealError),_safeDecode=_Err=>(schema,value,_ctx)=>_safeParse(_Err)(schema,value,_ctx),safeDecode=_safeDecode($ZodRealError),_safeEncodeAsync=_Err=>async(schema,value,_ctx)=>{let ctx=_ctx?{..._ctx,direction:"backward"}:{direction:"backward"};return _safeParseAsync(_Err)(schema,value,ctx)},safeEncodeAsync=_safeEncodeAsync($ZodRealError),_safeDecodeAsync=_Err=>async(schema,value,_ctx)=>_safeParseAsync(_Err)(schema,value,_ctx),safeDecodeAsync=_safeDecodeAsync($ZodRealError);var regexes_exports={};__export(regexes_exports,{base64:()=>base64,base64url:()=>base64url,bigint:()=>bigint,boolean:()=>boolean,browserEmail:()=>browserEmail,cidrv4:()=>cidrv4,cidrv6:()=>cidrv6,cuid:()=>cuid,cuid2:()=>cuid2,date:()=>date,datetime:()=>datetime,domain:()=>domain,duration:()=>duration,e164:()=>e164,email:()=>email,emoji:()=>emoji,extendedDuration:()=>extendedDuration,guid:()=>guid,hex:()=>hex,hostname:()=>hostname,html5Email:()=>html5Email,httpProtocol:()=>httpProtocol,idnEmail:()=>idnEmail,integer:()=>integer,ipv4:()=>ipv4,ipv6:()=>ipv6,ksuid:()=>ksuid,lowercase:()=>lowercase,mac:()=>mac,md5_base64:()=>md5_base64,md5_base64url:()=>md5_base64url,md5_hex:()=>md5_hex,nanoid:()=>nanoid,null:()=>_null,number:()=>number,rfc5322Email:()=>rfc5322Email,sha1_base64:()=>sha1_base64,sha1_base64url:()=>sha1_base64url,sha1_hex:()=>sha1_hex,sha256_base64:()=>sha256_base64,sha256_base64url:()=>sha256_base64url,sha256_hex:()=>sha256_hex,sha384_base64:()=>sha384_base64,sha384_base64url:()=>sha384_base64url,sha384_hex:()=>sha384_hex,sha512_base64:()=>sha512_base64,sha512_base64url:()=>sha512_base64url,sha512_hex:()=>sha512_hex,string:()=>string,time:()=>time,ulid:()=>ulid,undefined:()=>_undefined,unicodeEmail:()=>unicodeEmail,uppercase:()=>uppercase,uuid:()=>uuid,uuid4:()=>uuid4,uuid6:()=>uuid6,uuid7:()=>uuid7,xid:()=>xid});var cuid=/^[cC][0-9a-z]{6,}$/,cuid2=/^[0-9a-z]+$/,ulid=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,xid=/^[0-9a-vA-V]{20}$/,ksuid=/^[A-Za-z0-9]{27}$/,nanoid=/^[a-zA-Z0-9_-]{21}$/,duration=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,extendedDuration=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,guid=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,uuid=version2=>version2?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${version2}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,uuid4=uuid(4),uuid6=uuid(6),uuid7=uuid(7),email=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,html5Email=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rfc5322Email=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,unicodeEmail=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,idnEmail=unicodeEmail,browserEmail=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,_emoji="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function emoji(){return new RegExp(_emoji,"u")}var ipv4=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,ipv6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,mac=delimiter=>{let escapedDelim=escapeRegex(delimiter!=null?delimiter:":");return new RegExp(`^(?:[0-9A-F]{2}${escapedDelim}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${escapedDelim}){5}[0-9a-f]{2}$`)},cidrv4=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,cidrv6=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,base64=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,base64url=/^[A-Za-z0-9_-]*$/,hostname=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,domain=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,httpProtocol=/^https?$/,e164=/^\+[1-9]\d{6,14}$/,dateSource="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",date=new RegExp(`^${dateSource}$`);function timeSource(args){let hhmm="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof args.precision=="number"?args.precision===-1?`${hhmm}`:args.precision===0?`${hhmm}:[0-5]\\d`:`${hhmm}:[0-5]\\d\\.\\d{${args.precision}}`:`${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`}function time(args){return new RegExp(`^${timeSource(args)}$`)}function datetime(args){let time3=timeSource({precision:args.precision}),opts=["Z"];args.local&&opts.push(""),args.offset&&opts.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let timeRegex=`${time3}(?:${opts.join("|")})`;return new RegExp(`^${dateSource}T(?:${timeRegex})$`)}var string=params=>{var _a9,_b3;let regex=params?`[\\s\\S]{${(_a9=params==null?void 0:params.minimum)!=null?_a9:0},${(_b3=params==null?void 0:params.maximum)!=null?_b3:""}}`:"[\\s\\S]*";return new RegExp(`^${regex}$`)},bigint=/^-?\d+n?$/,integer=/^-?\d+$/,number=/^-?\d+(?:\.\d+)?$/,boolean=/^(?:true|false)$/i,_null=/^null$/i;var _undefined=/^undefined$/i;var lowercase=/^[^A-Z]*$/,uppercase=/^[^a-z]*$/,hex=/^[0-9a-fA-F]*$/;function fixedBase64(bodyLength,padding){return new RegExp(`^[A-Za-z0-9+/]{${bodyLength}}${padding}$`)}function fixedBase64url(length){return new RegExp(`^[A-Za-z0-9_-]{${length}}$`)}var md5_hex=/^[0-9a-fA-F]{32}$/,md5_base64=fixedBase64(22,"=="),md5_base64url=fixedBase64url(22),sha1_hex=/^[0-9a-fA-F]{40}$/,sha1_base64=fixedBase64(27,"="),sha1_base64url=fixedBase64url(27),sha256_hex=/^[0-9a-fA-F]{64}$/,sha256_base64=fixedBase64(43,"="),sha256_base64url=fixedBase64url(43),sha384_hex=/^[0-9a-fA-F]{96}$/,sha384_base64=fixedBase64(64,""),sha384_base64url=fixedBase64url(64),sha512_hex=/^[0-9a-fA-F]{128}$/,sha512_base64=fixedBase64(86,"=="),sha512_base64url=fixedBase64url(86);var $ZodCheck=$constructor("$ZodCheck",(inst,def)=>{var _a10,_b3;var _a9;(_a10=inst._zod)!=null||(inst._zod={}),inst._zod.def=def,(_b3=(_a9=inst._zod).onattach)!=null||(_a9.onattach=[])}),numericOriginMap={number:"number",bigint:"bigint",object:"date"},$ZodCheckLessThan=$constructor("$ZodCheckLessThan",(inst,def)=>{$ZodCheck.init(inst,def);let origin2=numericOriginMap[typeof def.value];inst._zod.onattach.push(inst2=>{var _a9;let bag=inst2._zod.bag,curr=(_a9=def.inclusive?bag.maximum:bag.exclusiveMaximum)!=null?_a9:Number.POSITIVE_INFINITY;def.value<curr&&(def.inclusive?bag.maximum=def.value:bag.exclusiveMaximum=def.value)}),inst._zod.check=payload=>{(def.inclusive?payload.value<=def.value:payload.value<def.value)||payload.issues.push({origin:origin2,code:"too_big",maximum:typeof def.value=="object"?def.value.getTime():def.value,input:payload.value,inclusive:def.inclusive,inst,continue:!def.abort})}}),$ZodCheckGreaterThan=$constructor("$ZodCheckGreaterThan",(inst,def)=>{$ZodCheck.init(inst,def);let origin2=numericOriginMap[typeof def.value];inst._zod.onattach.push(inst2=>{var _a9;let bag=inst2._zod.bag,curr=(_a9=def.inclusive?bag.minimum:bag.exclusiveMinimum)!=null?_a9:Number.NEGATIVE_INFINITY;def.value>curr&&(def.inclusive?bag.minimum=def.value:bag.exclusiveMinimum=def.value)}),inst._zod.check=payload=>{(def.inclusive?payload.value>=def.value:payload.value>def.value)||payload.issues.push({origin:origin2,code:"too_small",minimum:typeof def.value=="object"?def.value.getTime():def.value,input:payload.value,inclusive:def.inclusive,inst,continue:!def.abort})}}),$ZodCheckMultipleOf=$constructor("$ZodCheckMultipleOf",(inst,def)=>{$ZodCheck.init(inst,def),inst._zod.onattach.push(inst2=>{var _a10;var _a9;(_a10=(_a9=inst2._zod.bag).multipleOf)!=null||(_a9.multipleOf=def.value)}),inst._zod.check=payload=>{if(typeof payload.value!=typeof def.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof payload.value=="bigint"?payload.value%def.value===BigInt(0):floatSafeRemainder(payload.value,def.value)===0)||payload.issues.push({origin:typeof payload.value,code:"not_multiple_of",divisor:def.value,input:payload.value,inst,continue:!def.abort})}}),$ZodCheckNumberFormat=$constructor("$ZodCheckNumberFormat",(inst,def)=>{var _a9;$ZodCheck.init(inst,def),def.format=def.format||"float64";let isInt=(_a9=def.format)==null?void 0:_a9.includes("int"),origin2=isInt?"int":"number",[minimum,maximum]=NUMBER_FORMAT_RANGES[def.format];inst._zod.onattach.push(inst2=>{let bag=inst2._zod.bag;bag.format=def.format,bag.minimum=minimum,bag.maximum=maximum,isInt&&(bag.pattern=integer)}),inst._zod.check=payload=>{let input=payload.value;if(isInt){if(!Number.isInteger(input)){payload.issues.push({expected:origin2,format:def.format,code:"invalid_type",continue:!1,input,inst});return}if(!Number.isSafeInteger(input)){input>0?payload.issues.push({input,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst,origin:origin2,inclusive:!0,continue:!def.abort}):payload.issues.push({input,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst,origin:origin2,inclusive:!0,continue:!def.abort});return}}input<minimum&&payload.issues.push({origin:"number",input,code:"too_small",minimum,inclusive:!0,inst,continue:!def.abort}),input>maximum&&payload.issues.push({origin:"number",input,code:"too_big",maximum,inclusive:!0,inst,continue:!def.abort})}}),$ZodCheckBigIntFormat=$constructor("$ZodCheckBigIntFormat",(inst,def)=>{$ZodCheck.init(inst,def);let[minimum,maximum]=BIGINT_FORMAT_RANGES[def.format];inst._zod.onattach.push(inst2=>{let bag=inst2._zod.bag;bag.format=def.format,bag.minimum=minimum,bag.maximum=maximum}),inst._zod.check=payload=>{let input=payload.value;input<minimum&&payload.issues.push({origin:"bigint",input,code:"too_small",minimum,inclusive:!0,inst,continue:!def.abort}),input>maximum&&payload.issues.push({origin:"bigint",input,code:"too_big",maximum,inclusive:!0,inst,continue:!def.abort})}}),$ZodCheckMaxSize=$constructor("$ZodCheckMaxSize",(inst,def)=>{var _a10;var _a9;$ZodCheck.init(inst,def),(_a10=(_a9=inst._zod.def).when)!=null||(_a9.when=payload=>{let val=payload.value;return!nullish(val)&&val.size!==void 0}),inst._zod.onattach.push(inst2=>{var _a11;let curr=(_a11=inst2._zod.bag.maximum)!=null?_a11:Number.POSITIVE_INFINITY;def.maximum<curr&&(inst2._zod.bag.maximum=def.maximum)}),inst._zod.check=payload=>{let input=payload.value;input.size<=def.maximum||payload.issues.push({origin:getSizableOrigin(input),code:"too_big",maximum:def.maximum,inclusive:!0,input,inst,continue:!def.abort})}}),$ZodCheckMinSize=$constructor("$ZodCheckMinSize",(inst,def)=>{var _a10;var _a9;$ZodCheck.init(inst,def),(_a10=(_a9=inst._zod.def).when)!=null||(_a9.when=payload=>{let val=payload.value;return!nullish(val)&&val.size!==void 0}),inst._zod.onattach.push(inst2=>{var _a11;let curr=(_a11=inst2._zod.bag.minimum)!=null?_a11:Number.NEGATIVE_INFINITY;def.minimum>curr&&(inst2._zod.bag.minimum=def.minimum)}),inst._zod.check=payload=>{let input=payload.value;input.size>=def.minimum||payload.issues.push({origin:getSizableOrigin(input),code:"too_small",minimum:def.minimum,inclusive:!0,input,inst,continue:!def.abort})}}),$ZodCheckSizeEquals=$constructor("$ZodCheckSizeEquals",(inst,def)=>{var _a10;var _a9;$ZodCheck.init(inst,def),(_a10=(_a9=inst._zod.def).when)!=null||(_a9.when=payload=>{let val=payload.value;return!nullish(val)&&val.size!==void 0}),inst._zod.onattach.push(inst2=>{let bag=inst2._zod.bag;bag.minimum=def.size,bag.maximum=def.size,bag.size=def.size}),inst._zod.check=payload=>{let input=payload.value,size=input.size;if(size===def.size)return;let tooBig=size>def.size;payload.issues.push({origin:getSizableOrigin(input),...tooBig?{code:"too_big",maximum:def.size}:{code:"too_small",minimum:def.size},inclusive:!0,exact:!0,input:payload.value,inst,continue:!def.abort})}}),$ZodCheckMaxLength=$constructor("$ZodCheckMaxLength",(inst,def)=>{var _a10;var _a9;$ZodCheck.init(inst,def),(_a10=(_a9=inst._zod.def).when)!=null||(_a9.when=payload=>{let val=payload.value;return!nullish(val)&&val.length!==void 0}),inst._zod.onattach.push(inst2=>{var _a11;let curr=(_a11=inst2._zod.bag.maximum)!=null?_a11:Number.POSITIVE_INFINITY;def.maximum<curr&&(inst2._zod.bag.maximum=def.maximum)}),inst._zod.check=payload=>{let input=payload.value;if(input.length<=def.maximum)return;let origin2=getLengthableOrigin(input);payload.issues.push({origin:origin2,code:"too_big",maximum:def.maximum,inclusive:!0,input,inst,continue:!def.abort})}}),$ZodCheckMinLength=$constructor("$ZodCheckMinLength",(inst,def)=>{var _a10;var _a9;$ZodCheck.init(inst,def),(_a10=(_a9=inst._zod.def).when)!=null||(_a9.when=payload=>{let val=payload.value;return!nullish(val)&&val.length!==void 0}),inst._zod.onattach.push(inst2=>{var _a11;let curr=(_a11=inst2._zod.bag.minimum)!=null?_a11:Number.NEGATIVE_INFINITY;def.minimum>curr&&(inst2._zod.bag.minimum=def.minimum)}),inst._zod.check=payload=>{let input=payload.value;if(input.length>=def.minimum)return;let origin2=getLengthableOrigin(input);payload.issues.push({origin:origin2,code:"too_small",minimum:def.minimum,inclusive:!0,input,inst,continue:!def.abort})}}),$ZodCheckLengthEquals=$constructor("$ZodCheckLengthEquals",(inst,def)=>{var _a10;var _a9;$ZodCheck.init(inst,def),(_a10=(_a9=inst._zod.def).when)!=null||(_a9.when=payload=>{let val=payload.value;return!nullish(val)&&val.length!==void 0}),inst._zod.onattach.push(inst2=>{let bag=inst2._zod.bag;bag.minimum=def.length,bag.maximum=def.length,bag.length=def.length}),inst._zod.check=payload=>{let input=payload.value,length=input.length;if(length===def.length)return;let origin2=getLengthableOrigin(input),tooBig=length>def.length;payload.issues.push({origin:origin2,...tooBig?{code:"too_big",maximum:def.length}:{code:"too_small",minimum:def.length},inclusive:!0,exact:!0,input:payload.value,inst,continue:!def.abort})}}),$ZodCheckStringFormat=$constructor("$ZodCheckStringFormat",(inst,def)=>{var _a10,_b4;var _a9,_b3;$ZodCheck.init(inst,def),inst._zod.onattach.push(inst2=>{var _a11;let bag=inst2._zod.bag;bag.format=def.format,def.pattern&&((_a11=bag.patterns)!=null||(bag.patterns=new Set),bag.patterns.add(def.pattern))}),def.pattern?(_a10=(_a9=inst._zod).check)!=null||(_a9.check=payload=>{def.pattern.lastIndex=0,!def.pattern.test(payload.value)&&payload.issues.push({origin:"string",code:"invalid_format",format:def.format,input:payload.value,...def.pattern?{pattern:def.pattern.toString()}:{},inst,continue:!def.abort})}):(_b4=(_b3=inst._zod).check)!=null||(_b3.check=()=>{})}),$ZodCheckRegex=$constructor("$ZodCheckRegex",(inst,def)=>{$ZodCheckStringFormat.init(inst,def),inst._zod.check=payload=>{def.pattern.lastIndex=0,!def.pattern.test(payload.value)&&payload.issues.push({origin:"string",code:"invalid_format",format:"regex",input:payload.value,pattern:def.pattern.toString(),inst,continue:!def.abort})}}),$ZodCheckLowerCase=$constructor("$ZodCheckLowerCase",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=lowercase),$ZodCheckStringFormat.init(inst,def)}),$ZodCheckUpperCase=$constructor("$ZodCheckUpperCase",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=uppercase),$ZodCheckStringFormat.init(inst,def)}),$ZodCheckIncludes=$constructor("$ZodCheckIncludes",(inst,def)=>{$ZodCheck.init(inst,def);let escapedRegex=escapeRegex(def.includes),pattern=new RegExp(typeof def.position=="number"?`^.{${def.position}}${escapedRegex}`:escapedRegex);def.pattern=pattern,inst._zod.onattach.push(inst2=>{var _a9;let bag=inst2._zod.bag;(_a9=bag.patterns)!=null||(bag.patterns=new Set),bag.patterns.add(pattern)}),inst._zod.check=payload=>{payload.value.includes(def.includes,def.position)||payload.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:def.includes,input:payload.value,inst,continue:!def.abort})}}),$ZodCheckStartsWith=$constructor("$ZodCheckStartsWith",(inst,def)=>{var _a9;$ZodCheck.init(inst,def);let pattern=new RegExp(`^${escapeRegex(def.prefix)}.*`);(_a9=def.pattern)!=null||(def.pattern=pattern),inst._zod.onattach.push(inst2=>{var _a10;let bag=inst2._zod.bag;(_a10=bag.patterns)!=null||(bag.patterns=new Set),bag.patterns.add(pattern)}),inst._zod.check=payload=>{payload.value.startsWith(def.prefix)||payload.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:def.prefix,input:payload.value,inst,continue:!def.abort})}}),$ZodCheckEndsWith=$constructor("$ZodCheckEndsWith",(inst,def)=>{var _a9;$ZodCheck.init(inst,def);let pattern=new RegExp(`.*${escapeRegex(def.suffix)}$`);(_a9=def.pattern)!=null||(def.pattern=pattern),inst._zod.onattach.push(inst2=>{var _a10;let bag=inst2._zod.bag;(_a10=bag.patterns)!=null||(bag.patterns=new Set),bag.patterns.add(pattern)}),inst._zod.check=payload=>{payload.value.endsWith(def.suffix)||payload.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:def.suffix,input:payload.value,inst,continue:!def.abort})}});function handleCheckPropertyResult(result,payload,property){result.issues.length&&payload.issues.push(...prefixIssues(property,result.issues))}var $ZodCheckProperty=$constructor("$ZodCheckProperty",(inst,def)=>{$ZodCheck.init(inst,def),inst._zod.check=payload=>{let result=def.schema._zod.run({value:payload.value[def.property],issues:[]},{});if(result instanceof Promise)return result.then(result2=>handleCheckPropertyResult(result2,payload,def.property));handleCheckPropertyResult(result,payload,def.property)}}),$ZodCheckMimeType=$constructor("$ZodCheckMimeType",(inst,def)=>{$ZodCheck.init(inst,def);let mimeSet=new Set(def.mime);inst._zod.onattach.push(inst2=>{inst2._zod.bag.mime=def.mime}),inst._zod.check=payload=>{mimeSet.has(payload.value.type)||payload.issues.push({code:"invalid_value",values:def.mime,input:payload.value.type,inst,continue:!def.abort})}}),$ZodCheckOverwrite=$constructor("$ZodCheckOverwrite",(inst,def)=>{$ZodCheck.init(inst,def),inst._zod.check=payload=>{payload.value=def.tx(payload.value)}});var Doc=class{constructor(args=[]){this.content=[],this.indent=0,this&&(this.args=args)}indented(fn){this.indent+=1,fn(this),this.indent-=1}write(arg){if(typeof arg=="function"){arg(this,{execution:"sync"}),arg(this,{execution:"async"});return}let lines=arg.split(`
`).filter(x=>x),minIndent=Math.min(...lines.map(x=>x.length-x.trimStart().length)),dedented=lines.map(x=>x.slice(minIndent)).map(x=>" ".repeat(this.indent*2)+x);for(let line of dedented)this.content.push(line)}compile(){var _a9;let F=Function,args=this==null?void 0:this.args,lines=[...((_a9=this==null?void 0:this.content)!=null?_a9:[""]).map(x=>` ${x}`)];return new F(...args,lines.join(`
`))}};var version={major:4,minor:4,patch:3};var $ZodType=$constructor("$ZodType",(inst,def)=>{var _a10,_b3,_c2;var _a9;inst!=null||(inst={}),inst._zod.def=def,inst._zod.bag=inst._zod.bag||{},inst._zod.version=version;let checks=[...(_a10=inst._zod.def.checks)!=null?_a10:[]];inst._zod.traits.has("$ZodCheck")&&checks.unshift(inst);for(let ch of checks)for(let fn of ch._zod.onattach)fn(inst);if(checks.length===0)(_b3=(_a9=inst._zod).deferred)!=null||(_a9.deferred=[]),(_c2=inst._zod.deferred)==null||_c2.push(()=>{inst._zod.run=inst._zod.parse});else{let runChecks=(payload,checks2,ctx)=>{let isAborted=aborted2(payload),asyncResult;for(let ch of checks2){if(ch._zod.def.when){if(explicitlyAborted(payload)||!ch._zod.def.when(payload))continue}else if(isAborted)continue;let currLen=payload.issues.length,_=ch._zod.check(payload);if(_ instanceof Promise&&(ctx==null?void 0:ctx.async)===!1)throw new $ZodAsyncError;if(asyncResult||_ instanceof Promise)asyncResult=(asyncResult!=null?asyncResult:Promise.resolve()).then(async()=>{await _,payload.issues.length!==currLen&&(isAborted||(isAborted=aborted2(payload,currLen)))});else{if(payload.issues.length===currLen)continue;isAborted||(isAborted=aborted2(payload,currLen))}}return asyncResult?asyncResult.then(()=>payload):payload},handleCanaryResult=(canary,payload,ctx)=>{if(aborted2(canary))return canary.aborted=!0,canary;let checkResult=runChecks(payload,checks,ctx);if(checkResult instanceof Promise){if(ctx.async===!1)throw new $ZodAsyncError;return checkResult.then(checkResult2=>inst._zod.parse(checkResult2,ctx))}return inst._zod.parse(checkResult,ctx)};inst._zod.run=(payload,ctx)=>{if(ctx.skipChecks)return inst._zod.parse(payload,ctx);if(ctx.direction==="backward"){let canary=inst._zod.parse({value:payload.value,issues:[]},{...ctx,skipChecks:!0});return canary instanceof Promise?canary.then(canary2=>handleCanaryResult(canary2,payload,ctx)):handleCanaryResult(canary,payload,ctx)}let result=inst._zod.parse(payload,ctx);if(result instanceof Promise){if(ctx.async===!1)throw new $ZodAsyncError;return result.then(result2=>runChecks(result2,checks,ctx))}return runChecks(result,checks,ctx)}}defineLazy(inst,"~standard",()=>({validate:value=>{var _a11;try{let r=safeParse(inst,value);return r.success?{value:r.data}:{issues:(_a11=r.error)==null?void 0:_a11.issues}}catch(_){return safeParseAsync(inst,value).then(r=>{var _a12;return r.success?{value:r.data}:{issues:(_a12=r.error)==null?void 0:_a12.issues}})}},vendor:"zod",version:1}))}),$ZodString=$constructor("$ZodString",(inst,def)=>{var _a9,_b3,_c2;$ZodType.init(inst,def),inst._zod.pattern=(_c2=[...(_b3=(_a9=inst==null?void 0:inst._zod.bag)==null?void 0:_a9.patterns)!=null?_b3:[]].pop())!=null?_c2:string(inst._zod.bag),inst._zod.parse=(payload,_)=>{if(def.coerce)try{payload.value=String(payload.value)}catch(_2){}return typeof payload.value=="string"||payload.issues.push({expected:"string",code:"invalid_type",input:payload.value,inst}),payload}}),$ZodStringFormat=$constructor("$ZodStringFormat",(inst,def)=>{$ZodCheckStringFormat.init(inst,def),$ZodString.init(inst,def)}),$ZodGUID=$constructor("$ZodGUID",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=guid),$ZodStringFormat.init(inst,def)}),$ZodUUID=$constructor("$ZodUUID",(inst,def)=>{var _a9,_b3;if(def.version){let v={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[def.version];if(v===void 0)throw new Error(`Invalid UUID version: "${def.version}"`);(_a9=def.pattern)!=null||(def.pattern=uuid(v))}else(_b3=def.pattern)!=null||(def.pattern=uuid());$ZodStringFormat.init(inst,def)}),$ZodEmail=$constructor("$ZodEmail",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=email),$ZodStringFormat.init(inst,def)}),$ZodURL=$constructor("$ZodURL",(inst,def)=>{$ZodStringFormat.init(inst,def),inst._zod.check=payload=>{var _a9;try{let trimmed=payload.value.trim();if(!def.normalize&&((_a9=def.protocol)==null?void 0:_a9.source)===httpProtocol.source&&!/^https?:\/\//i.test(trimmed)){payload.issues.push({code:"invalid_format",format:"url",note:"Invalid URL format",input:payload.value,inst,continue:!def.abort});return}let url2=new URL(trimmed);def.hostname&&(def.hostname.lastIndex=0,def.hostname.test(url2.hostname)||payload.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:def.hostname.source,input:payload.value,inst,continue:!def.abort})),def.protocol&&(def.protocol.lastIndex=0,def.protocol.test(url2.protocol.endsWith(":")?url2.protocol.slice(0,-1):url2.protocol)||payload.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:def.protocol.source,input:payload.value,inst,continue:!def.abort})),def.normalize?payload.value=url2.href:payload.value=trimmed;return}catch(_){payload.issues.push({code:"invalid_format",format:"url",input:payload.value,inst,continue:!def.abort})}}}),$ZodEmoji=$constructor("$ZodEmoji",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=emoji()),$ZodStringFormat.init(inst,def)}),$ZodNanoID=$constructor("$ZodNanoID",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=nanoid),$ZodStringFormat.init(inst,def)}),$ZodCUID=$constructor("$ZodCUID",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=cuid),$ZodStringFormat.init(inst,def)}),$ZodCUID2=$constructor("$ZodCUID2",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=cuid2),$ZodStringFormat.init(inst,def)}),$ZodULID=$constructor("$ZodULID",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=ulid),$ZodStringFormat.init(inst,def)}),$ZodXID=$constructor("$ZodXID",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=xid),$ZodStringFormat.init(inst,def)}),$ZodKSUID=$constructor("$ZodKSUID",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=ksuid),$ZodStringFormat.init(inst,def)}),$ZodISODateTime=$constructor("$ZodISODateTime",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=datetime(def)),$ZodStringFormat.init(inst,def)}),$ZodISODate=$constructor("$ZodISODate",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=date),$ZodStringFormat.init(inst,def)}),$ZodISOTime=$constructor("$ZodISOTime",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=time(def)),$ZodStringFormat.init(inst,def)}),$ZodISODuration=$constructor("$ZodISODuration",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=duration),$ZodStringFormat.init(inst,def)}),$ZodIPv4=$constructor("$ZodIPv4",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=ipv4),$ZodStringFormat.init(inst,def),inst._zod.bag.format="ipv4"}),$ZodIPv6=$constructor("$ZodIPv6",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=ipv6),$ZodStringFormat.init(inst,def),inst._zod.bag.format="ipv6",inst._zod.check=payload=>{try{new URL(`http://[${payload.value}]`)}catch(e){payload.issues.push({code:"invalid_format",format:"ipv6",input:payload.value,inst,continue:!def.abort})}}}),$ZodMAC=$constructor("$ZodMAC",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=mac(def.delimiter)),$ZodStringFormat.init(inst,def),inst._zod.bag.format="mac"}),$ZodCIDRv4=$constructor("$ZodCIDRv4",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=cidrv4),$ZodStringFormat.init(inst,def)}),$ZodCIDRv6=$constructor("$ZodCIDRv6",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=cidrv6),$ZodStringFormat.init(inst,def),inst._zod.check=payload=>{let parts=payload.value.split("/");try{if(parts.length!==2)throw new Error;let[address,prefix]=parts;if(!prefix)throw new Error;let prefixNum=Number(prefix);if(`${prefixNum}`!==prefix)throw new Error;if(prefixNum<0||prefixNum>128)throw new Error;new URL(`http://[${address}]`)}catch(e){payload.issues.push({code:"invalid_format",format:"cidrv6",input:payload.value,inst,continue:!def.abort})}}});function isValidBase64(data){if(data==="")return!0;if(/\s/.test(data)||data.length%4!==0)return!1;try{return atob(data),!0}catch(e){return!1}}var $ZodBase64=$constructor("$ZodBase64",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=base64),$ZodStringFormat.init(inst,def),inst._zod.bag.contentEncoding="base64",inst._zod.check=payload=>{isValidBase64(payload.value)||payload.issues.push({code:"invalid_format",format:"base64",input:payload.value,inst,continue:!def.abort})}});function isValidBase64URL(data){if(!base64url.test(data))return!1;let base643=data.replace(/[-_]/g,c2=>c2==="-"?"+":"/"),padded=base643.padEnd(Math.ceil(base643.length/4)*4,"=");return isValidBase64(padded)}var $ZodBase64URL=$constructor("$ZodBase64URL",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=base64url),$ZodStringFormat.init(inst,def),inst._zod.bag.contentEncoding="base64url",inst._zod.check=payload=>{isValidBase64URL(payload.value)||payload.issues.push({code:"invalid_format",format:"base64url",input:payload.value,inst,continue:!def.abort})}}),$ZodE164=$constructor("$ZodE164",(inst,def)=>{var _a9;(_a9=def.pattern)!=null||(def.pattern=e164),$ZodStringFormat.init(inst,def)});function isValidJWT(token,algorithm=null){try{let tokensParts=token.split(".");if(tokensParts.length!==3)return!1;let[header]=tokensParts;if(!header)return!1;let parsedHeader=JSON.parse(atob(header));return!("typ"in parsedHeader&&(parsedHeader==null?void 0:parsedHeader.typ)!=="JWT"||!parsedHeader.alg||algorithm&&(!("alg"in parsedHeader)||parsedHeader.alg!==algorithm))}catch(e){return!1}}var $ZodJWT=$constructor("$ZodJWT",(inst,def)=>{$ZodStringFormat.init(inst,def),inst._zod.check=payload=>{isValidJWT(payload.value,def.alg)||payload.issues.push({code:"invalid_format",format:"jwt",input:payload.value,inst,continue:!def.abort})}}),$ZodCustomStringFormat=$constructor("$ZodCustomStringFormat",(inst,def)=>{$ZodStringFormat.init(inst,def),inst._zod.check=payload=>{def.fn(payload.value)||payload.issues.push({code:"invalid_format",format:def.format,input:payload.value,inst,continue:!def.abort})}}),$ZodNumber=$constructor("$ZodNumber",(inst,def)=>{var _a9;$ZodType.init(inst,def),inst._zod.pattern=(_a9=inst._zod.bag.pattern)!=null?_a9:number,inst._zod.parse=(payload,_ctx)=>{if(def.coerce)try{payload.value=Number(payload.value)}catch(_){}let input=payload.value;if(typeof input=="number"&&!Number.isNaN(input)&&Number.isFinite(input))return payload;let received=typeof input=="number"?Number.isNaN(input)?"NaN":Number.isFinite(input)?void 0:"Infinity":void 0;return payload.issues.push({expected:"number",code:"invalid_type",input,inst,...received?{received}:{}}),payload}}),$ZodNumberFormat=$constructor("$ZodNumberFormat",(inst,def)=>{$ZodCheckNumberFormat.init(inst,def),$ZodNumber.init(inst,def)}),$ZodBoolean=$constructor("$ZodBoolean",(inst,def)=>{$ZodType.init(inst,def),inst._zod.pattern=boolean,inst._zod.parse=(payload,_ctx)=>{if(def.coerce)try{payload.value=!!payload.value}catch(_){}let input=payload.value;return typeof input=="boolean"||payload.issues.push({expected:"boolean",code:"invalid_type",input,inst}),payload}}),$ZodBigInt=$constructor("$ZodBigInt",(inst,def)=>{$ZodType.init(inst,def),inst._zod.pattern=bigint,inst._zod.parse=(payload,_ctx)=>{if(def.coerce)try{payload.value=BigInt(payload.value)}catch(_){}return typeof payload.value=="bigint"||payload.issues.push({expected:"bigint",code:"invalid_type",input:payload.value,inst}),payload}}),$ZodBigIntFormat=$constructor("$ZodBigIntFormat",(inst,def)=>{$ZodCheckBigIntFormat.init(inst,def),$ZodBigInt.init(inst,def)}),$ZodSymbol=$constructor("$ZodSymbol",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,_ctx)=>{let input=payload.value;return typeof input=="symbol"||payload.issues.push({expected:"symbol",code:"invalid_type",input,inst}),payload}}),$ZodUndefined=$constructor("$ZodUndefined",(inst,def)=>{$ZodType.init(inst,def),inst._zod.pattern=_undefined,inst._zod.values=new Set([void 0]),inst._zod.parse=(payload,_ctx)=>{let input=payload.value;return typeof input=="undefined"||payload.issues.push({expected:"undefined",code:"invalid_type",input,inst}),payload}}),$ZodNull=$constructor("$ZodNull",(inst,def)=>{$ZodType.init(inst,def),inst._zod.pattern=_null,inst._zod.values=new Set([null]),inst._zod.parse=(payload,_ctx)=>{let input=payload.value;return input===null||payload.issues.push({expected:"null",code:"invalid_type",input,inst}),payload}}),$ZodAny=$constructor("$ZodAny",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=payload=>payload}),$ZodUnknown=$constructor("$ZodUnknown",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=payload=>payload}),$ZodNever=$constructor("$ZodNever",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,_ctx)=>(payload.issues.push({expected:"never",code:"invalid_type",input:payload.value,inst}),payload)}),$ZodVoid=$constructor("$ZodVoid",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,_ctx)=>{let input=payload.value;return typeof input=="undefined"||payload.issues.push({expected:"void",code:"invalid_type",input,inst}),payload}}),$ZodDate=$constructor("$ZodDate",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,_ctx)=>{if(def.coerce)try{payload.value=new Date(payload.value)}catch(_err){}let input=payload.value,isDate2=input instanceof Date;return isDate2&&!Number.isNaN(input.getTime())||payload.issues.push({expected:"date",code:"invalid_type",input,...isDate2?{received:"Invalid Date"}:{},inst}),payload}});function handleArrayResult(result,final,index2){result.issues.length&&final.issues.push(...prefixIssues(index2,result.issues)),final.value[index2]=result.value}var $ZodArray=$constructor("$ZodArray",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,ctx)=>{let input=payload.value;if(!Array.isArray(input))return payload.issues.push({expected:"array",code:"invalid_type",input,inst}),payload;payload.value=Array(input.length);let proms=[];for(let i=0;i<input.length;i++){let item=input[i],result=def.element._zod.run({value:item,issues:[]},ctx);result instanceof Promise?proms.push(result.then(result2=>handleArrayResult(result2,payload,i))):handleArrayResult(result,payload,i)}return proms.length?Promise.all(proms).then(()=>payload):payload}});function handlePropertyResult(result,final,key2,input,isOptionalIn,isOptionalOut){let isPresent=key2 in input;if(result.issues.length){if(isOptionalIn&&isOptionalOut&&!isPresent)return;final.issues.push(...prefixIssues(key2,result.issues))}if(!isPresent&&!isOptionalIn){result.issues.length||final.issues.push({code:"invalid_type",expected:"nonoptional",input:void 0,path:[key2]});return}result.value===void 0?isPresent&&(final.value[key2]=void 0):final.value[key2]=result.value}function normalizeDef(def){var _a9,_b3,_c2,_d;let keys=Object.keys(def.shape);for(let k of keys)if(!((_d=(_c2=(_b3=(_a9=def.shape)==null?void 0:_a9[k])==null?void 0:_b3._zod)==null?void 0:_c2.traits)!=null&&_d.has("$ZodType")))throw new Error(`Invalid element at key "${k}": expected a Zod schema`);let okeys=optionalKeys(def.shape);return{...def,keys,keySet:new Set(keys),numKeys:keys.length,optionalKeys:new Set(okeys)}}function handleCatchall(proms,input,payload,ctx,def,inst){let unrecognized=[],keySet=def.keySet,_catchall=def.catchall._zod,t=_catchall.def.type,isOptionalIn=_catchall.optin==="optional",isOptionalOut=_catchall.optout==="optional";for(let key2 in input){if(key2==="__proto__"||keySet.has(key2))continue;if(t==="never"){unrecognized.push(key2);continue}let r=_catchall.run({value:input[key2],issues:[]},ctx);r instanceof Promise?proms.push(r.then(r2=>handlePropertyResult(r2,payload,key2,input,isOptionalIn,isOptionalOut))):handlePropertyResult(r,payload,key2,input,isOptionalIn,isOptionalOut)}return unrecognized.length&&payload.issues.push({code:"unrecognized_keys",keys:unrecognized,input,inst}),proms.length?Promise.all(proms).then(()=>payload):payload}var $ZodObject=$constructor("$ZodObject",(inst,def)=>{$ZodType.init(inst,def);let desc=Object.getOwnPropertyDescriptor(def,"shape");if(!(desc!=null&&desc.get)){let sh=def.shape;Object.defineProperty(def,"shape",{get:()=>{let newSh={...sh};return Object.defineProperty(def,"shape",{value:newSh}),newSh}})}let _normalized=cached(()=>normalizeDef(def));defineLazy(inst._zod,"propValues",()=>{var _a9;let shape=def.shape,propValues={};for(let key2 in shape){let field=shape[key2]._zod;if(field.values){(_a9=propValues[key2])!=null||(propValues[key2]=new Set);for(let v of field.values)propValues[key2].add(v)}}return propValues});let isObject3=isObject2,catchall=def.catchall,value;inst._zod.parse=(payload,ctx)=>{value!=null||(value=_normalized.value);let input=payload.value;if(!isObject3(input))return payload.issues.push({expected:"object",code:"invalid_type",input,inst}),payload;payload.value={};let proms=[],shape=value.shape;for(let key2 of value.keys){let el=shape[key2],isOptionalIn=el._zod.optin==="optional",isOptionalOut=el._zod.optout==="optional",r=el._zod.run({value:input[key2],issues:[]},ctx);r instanceof Promise?proms.push(r.then(r2=>handlePropertyResult(r2,payload,key2,input,isOptionalIn,isOptionalOut))):handlePropertyResult(r,payload,key2,input,isOptionalIn,isOptionalOut)}return catchall?handleCatchall(proms,input,payload,ctx,_normalized.value,inst):proms.length?Promise.all(proms).then(()=>payload):payload}}),$ZodObjectJIT=$constructor("$ZodObjectJIT",(inst,def)=>{$ZodObject.init(inst,def);let superParse=inst._zod.parse,_normalized=cached(()=>normalizeDef(def)),generateFastpass=shape=>{var _a9,_b3;let doc=new Doc(["shape","payload","ctx"]),normalized=_normalized.value,parseStr=key2=>{let k=esc(key2);return`shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`};doc.write("const input = payload.value;");let ids=Object.create(null),counter=0;for(let key2 of normalized.keys)ids[key2]=`key_${counter++}`;doc.write("const newResult = {};");for(let key2 of normalized.keys){let id=ids[key2],k=esc(key2),schema=shape[key2],isOptionalIn=((_a9=schema==null?void 0:schema._zod)==null?void 0:_a9.optin)==="optional",isOptionalOut=((_b3=schema==null?void 0:schema._zod)==null?void 0:_b3.optout)==="optional";doc.write(`const ${id} = ${parseStr(key2)};`),isOptionalIn&&isOptionalOut?doc.write(`
if (${id}.issues.length) {
if (${k} in input) {
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
...iss,
path: iss.path ? [${k}, ...iss.path] : [${k}]
})));
}
}
if (${id}.value === undefined) {
if (${k} in input) {
newResult[${k}] = undefined;
}
} else {
newResult[${k}] = ${id}.value;
}
`):isOptionalIn?doc.write(`
if (${id}.issues.length) {
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
...iss,
path: iss.path ? [${k}, ...iss.path] : [${k}]
})));
}
if (${id}.value === undefined) {
if (${k} in input) {
newResult[${k}] = undefined;
}
} else {
newResult[${k}] = ${id}.value;
}
`):doc.write(`
const ${id}_present = ${k} in input;
if (${id}.issues.length) {
payload.issues = payload.issues.concat(${id}.issues.map(iss => ({
...iss,
path: iss.path ? [${k}, ...iss.path] : [${k}]
})));
}
if (!${id}_present && !${id}.issues.length) {
payload.issues.push({
code: "invalid_type",
expected: "nonoptional",
input: undefined,
path: [${k}]
});
}
if (${id}_present) {
if (${id}.value === undefined) {
newResult[${k}] = undefined;
} else {
newResult[${k}] = ${id}.value;
}
}
`)}doc.write("payload.value = newResult;"),doc.write("return payload;");let fn=doc.compile();return(payload,ctx)=>fn(shape,payload,ctx)},fastpass,isObject3=isObject2,jit=!globalConfig.jitless,fastEnabled=jit&&allowsEval.value,catchall=def.catchall,value;inst._zod.parse=(payload,ctx)=>{value!=null||(value=_normalized.value);let input=payload.value;return isObject3(input)?jit&&fastEnabled&&(ctx==null?void 0:ctx.async)===!1&&ctx.jitless!==!0?(fastpass||(fastpass=generateFastpass(def.shape)),payload=fastpass(payload,ctx),catchall?handleCatchall([],input,payload,ctx,value,inst):payload):superParse(payload,ctx):(payload.issues.push({expected:"object",code:"invalid_type",input,inst}),payload)}});function handleUnionResults(results,final,inst,ctx){for(let result of results)if(result.issues.length===0)return final.value=result.value,final;let nonaborted=results.filter(r=>!aborted2(r));return nonaborted.length===1?(final.value=nonaborted[0].value,nonaborted[0]):(final.issues.push({code:"invalid_union",input:final.value,inst,errors:results.map(result=>result.issues.map(iss=>finalizeIssue(iss,ctx,config())))}),final)}var $ZodUnion=$constructor("$ZodUnion",(inst,def)=>{$ZodType.init(inst,def),defineLazy(inst._zod,"optin",()=>def.options.some(o=>o._zod.optin==="optional")?"optional":void 0),defineLazy(inst._zod,"optout",()=>def.options.some(o=>o._zod.optout==="optional")?"optional":void 0),defineLazy(inst._zod,"values",()=>{if(def.options.every(o=>o._zod.values))return new Set(def.options.flatMap(option=>Array.from(option._zod.values)))}),defineLazy(inst._zod,"pattern",()=>{if(def.options.every(o=>o._zod.pattern)){let patterns=def.options.map(o=>o._zod.pattern);return new RegExp(`^(${patterns.map(p=>cleanRegex(p.source)).join("|")})$`)}});let first=def.options.length===1?def.options[0]._zod.run:null;inst._zod.parse=(payload,ctx)=>{if(first)return first(payload,ctx);let async2=!1,results=[];for(let option of def.options){let result=option._zod.run({value:payload.value,issues:[]},ctx);if(result instanceof Promise)results.push(result),async2=!0;else{if(result.issues.length===0)return result;results.push(result)}}return async2?Promise.all(results).then(results2=>handleUnionResults(results2,payload,inst,ctx)):handleUnionResults(results,payload,inst,ctx)}});function handleExclusiveUnionResults(results,final,inst,ctx){let successes=results.filter(r=>r.issues.length===0);return successes.length===1?(final.value=successes[0].value,final):(successes.length===0?final.issues.push({code:"invalid_union",input:final.value,inst,errors:results.map(result=>result.issues.map(iss=>finalizeIssue(iss,ctx,config())))}):final.issues.push({code:"invalid_union",input:final.value,inst,errors:[],inclusive:!1}),final)}var $ZodXor=$constructor("$ZodXor",(inst,def)=>{$ZodUnion.init(inst,def),def.inclusive=!1;let first=def.options.length===1?def.options[0]._zod.run:null;inst._zod.parse=(payload,ctx)=>{if(first)return first(payload,ctx);let async2=!1,results=[];for(let option of def.options){let result=option._zod.run({value:payload.value,issues:[]},ctx);result instanceof Promise?(results.push(result),async2=!0):results.push(result)}return async2?Promise.all(results).then(results2=>handleExclusiveUnionResults(results2,payload,inst,ctx)):handleExclusiveUnionResults(results,payload,inst,ctx)}}),$ZodDiscriminatedUnion=$constructor("$ZodDiscriminatedUnion",(inst,def)=>{def.inclusive=!1,$ZodUnion.init(inst,def);let _super=inst._zod.parse;defineLazy(inst._zod,"propValues",()=>{let propValues={};for(let option of def.options){let pv=option._zod.propValues;if(!pv||Object.keys(pv).length===0)throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(option)}"`);for(let[k,v]of Object.entries(pv)){propValues[k]||(propValues[k]=new Set);for(let val of v)propValues[k].add(val)}}return propValues});let disc=cached(()=>{var _a9;let opts=def.options,map2=new Map;for(let o of opts){let values=(_a9=o._zod.propValues)==null?void 0:_a9[def.discriminator];if(!values||values.size===0)throw new Error(`Invalid discriminated union option at index "${def.options.indexOf(o)}"`);for(let v of values){if(map2.has(v))throw new Error(`Duplicate discriminator value "${String(v)}"`);map2.set(v,o)}}return map2});inst._zod.parse=(payload,ctx)=>{let input=payload.value;if(!isObject2(input))return payload.issues.push({code:"invalid_type",expected:"object",input,inst}),payload;let opt=disc.value.get(input==null?void 0:input[def.discriminator]);return opt?opt._zod.run(payload,ctx):def.unionFallback||ctx.direction==="backward"?_super(payload,ctx):(payload.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:def.discriminator,options:Array.from(disc.value.keys()),input,path:[def.discriminator],inst}),payload)}}),$ZodIntersection=$constructor("$ZodIntersection",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,ctx)=>{let input=payload.value,left=def.left._zod.run({value:input,issues:[]},ctx),right=def.right._zod.run({value:input,issues:[]},ctx);return left instanceof Promise||right instanceof Promise?Promise.all([left,right]).then(([left2,right2])=>handleIntersectionResults(payload,left2,right2)):handleIntersectionResults(payload,left,right)}});function mergeValues(a,b){if(a===b)return{valid:!0,data:a};if(a instanceof Date&&b instanceof Date&&+a==+b)return{valid:!0,data:a};if(isPlainObject2(a)&&isPlainObject2(b)){let bKeys=Object.keys(b),sharedKeys=Object.keys(a).filter(key2=>bKeys.indexOf(key2)!==-1),newObj={...a,...b};for(let key2 of sharedKeys){let sharedValue=mergeValues(a[key2],b[key2]);if(!sharedValue.valid)return{valid:!1,mergeErrorPath:[key2,...sharedValue.mergeErrorPath]};newObj[key2]=sharedValue.data}return{valid:!0,data:newObj}}if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return{valid:!1,mergeErrorPath:[]};let newArray=[];for(let index2=0;index2<a.length;index2++){let itemA=a[index2],itemB=b[index2],sharedValue=mergeValues(itemA,itemB);if(!sharedValue.valid)return{valid:!1,mergeErrorPath:[index2,...sharedValue.mergeErrorPath]};newArray.push(sharedValue.data)}return{valid:!0,data:newArray}}return{valid:!1,mergeErrorPath:[]}}function handleIntersectionResults(result,left,right){let unrecKeys=new Map,unrecIssue;for(let iss of left.issues)if(iss.code==="unrecognized_keys"){unrecIssue!=null||(unrecIssue=iss);for(let k of iss.keys)unrecKeys.has(k)||unrecKeys.set(k,{}),unrecKeys.get(k).l=!0}else result.issues.push(iss);for(let iss of right.issues)if(iss.code==="unrecognized_keys")for(let k of iss.keys)unrecKeys.has(k)||unrecKeys.set(k,{}),unrecKeys.get(k).r=!0;else result.issues.push(iss);let bothKeys=[...unrecKeys].filter(([,f])=>f.l&&f.r).map(([k])=>k);if(bothKeys.length&&unrecIssue&&result.issues.push({...unrecIssue,keys:bothKeys}),aborted2(result))return result;let merged=mergeValues(left.value,right.value);if(!merged.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(merged.mergeErrorPath)}`);return result.value=merged.data,result}var $ZodTuple=$constructor("$ZodTuple",(inst,def)=>{$ZodType.init(inst,def);let items=def.items;inst._zod.parse=(payload,ctx)=>{let input=payload.value;if(!Array.isArray(input))return payload.issues.push({input,inst,expected:"tuple",code:"invalid_type"}),payload;payload.value=[];let proms=[],optinStart=getTupleOptStart(items,"optin"),optoutStart=getTupleOptStart(items,"optout");if(!def.rest){if(input.length<optinStart)return payload.issues.push({code:"too_small",minimum:optinStart,inclusive:!0,input,inst,origin:"array"}),payload;input.length>items.length&&payload.issues.push({code:"too_big",maximum:items.length,inclusive:!0,input,inst,origin:"array"})}let itemResults=new Array(items.length);for(let i=0;i<items.length;i++){let r=items[i]._zod.run({value:input[i],issues:[]},ctx);r instanceof Promise?proms.push(r.then(rr=>{itemResults[i]=rr})):itemResults[i]=r}if(def.rest){let i=items.length-1,rest=input.slice(items.length);for(let el of rest){i++;let result=def.rest._zod.run({value:el,issues:[]},ctx);result instanceof Promise?proms.push(result.then(r=>handleTupleResult(r,payload,i))):handleTupleResult(result,payload,i)}}return proms.length?Promise.all(proms).then(()=>handleTupleResults(itemResults,payload,items,input,optoutStart)):handleTupleResults(itemResults,payload,items,input,optoutStart)}});function getTupleOptStart(items,key2){for(let i=items.length-1;i>=0;i--)if(items[i]._zod[key2]!=="optional")return i+1;return 0}function handleTupleResult(result,final,index2){result.issues.length&&final.issues.push(...prefixIssues(index2,result.issues)),final.value[index2]=result.value}function handleTupleResults(itemResults,final,items,input,optoutStart){for(let i=0;i<items.length;i++){let r=itemResults[i],isPresent=i<input.length;if(r.issues.length){if(!isPresent&&i>=optoutStart){final.value.length=i;break}final.issues.push(...prefixIssues(i,r.issues))}final.value[i]=r.value}for(let i=final.value.length-1;i>=input.length&&(items[i]._zod.optout==="optional"&&final.value[i]===void 0);i--)final.value.length=i;return final}var $ZodRecord=$constructor("$ZodRecord",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,ctx)=>{let input=payload.value;if(!isPlainObject2(input))return payload.issues.push({expected:"record",code:"invalid_type",input,inst}),payload;let proms=[],values=def.keyType._zod.values;if(values){payload.value={};let recordKeys=new Set;for(let key2 of values)if(typeof key2=="string"||typeof key2=="number"||typeof key2=="symbol"){recordKeys.add(typeof key2=="number"?key2.toString():key2);let keyResult=def.keyType._zod.run({value:key2,issues:[]},ctx);if(keyResult instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(keyResult.issues.length){payload.issues.push({code:"invalid_key",origin:"record",issues:keyResult.issues.map(iss=>finalizeIssue(iss,ctx,config())),input:key2,path:[key2],inst});continue}let outKey=keyResult.value,result=def.valueType._zod.run({value:input[key2],issues:[]},ctx);result instanceof Promise?proms.push(result.then(result2=>{result2.issues.length&&payload.issues.push(...prefixIssues(key2,result2.issues)),payload.value[outKey]=result2.value})):(result.issues.length&&payload.issues.push(...prefixIssues(key2,result.issues)),payload.value[outKey]=result.value)}let unrecognized;for(let key2 in input)recordKeys.has(key2)||(unrecognized=unrecognized!=null?unrecognized:[],unrecognized.push(key2));unrecognized&&unrecognized.length>0&&payload.issues.push({code:"unrecognized_keys",input,inst,keys:unrecognized})}else{payload.value={};for(let key2 of Reflect.ownKeys(input)){if(key2==="__proto__"||!Object.prototype.propertyIsEnumerable.call(input,key2))continue;let keyResult=def.keyType._zod.run({value:key2,issues:[]},ctx);if(keyResult instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof key2=="string"&&number.test(key2)&&keyResult.issues.length){let retryResult=def.keyType._zod.run({value:Number(key2),issues:[]},ctx);if(retryResult instanceof Promise)throw new Error("Async schemas not supported in object keys currently");retryResult.issues.length===0&&(keyResult=retryResult)}if(keyResult.issues.length){def.mode==="loose"?payload.value[key2]=input[key2]:payload.issues.push({code:"invalid_key",origin:"record",issues:keyResult.issues.map(iss=>finalizeIssue(iss,ctx,config())),input:key2,path:[key2],inst});continue}let result=def.valueType._zod.run({value:input[key2],issues:[]},ctx);result instanceof Promise?proms.push(result.then(result2=>{result2.issues.length&&payload.issues.push(...prefixIssues(key2,result2.issues)),payload.value[keyResult.value]=result2.value})):(result.issues.length&&payload.issues.push(...prefixIssues(key2,result.issues)),payload.value[keyResult.value]=result.value)}}return proms.length?Promise.all(proms).then(()=>payload):payload}}),$ZodMap=$constructor("$ZodMap",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,ctx)=>{let input=payload.value;if(!(input instanceof Map))return payload.issues.push({expected:"map",code:"invalid_type",input,inst}),payload;let proms=[];payload.value=new Map;for(let[key2,value]of input){let keyResult=def.keyType._zod.run({value:key2,issues:[]},ctx),valueResult=def.valueType._zod.run({value,issues:[]},ctx);keyResult instanceof Promise||valueResult instanceof Promise?proms.push(Promise.all([keyResult,valueResult]).then(([keyResult2,valueResult2])=>{handleMapResult(keyResult2,valueResult2,payload,key2,input,inst,ctx)})):handleMapResult(keyResult,valueResult,payload,key2,input,inst,ctx)}return proms.length?Promise.all(proms).then(()=>payload):payload}});function handleMapResult(keyResult,valueResult,final,key2,input,inst,ctx){keyResult.issues.length&&(propertyKeyTypes.has(typeof key2)?final.issues.push(...prefixIssues(key2,keyResult.issues)):final.issues.push({code:"invalid_key",origin:"map",input,inst,issues:keyResult.issues.map(iss=>finalizeIssue(iss,ctx,config()))})),valueResult.issues.length&&(propertyKeyTypes.has(typeof key2)?final.issues.push(...prefixIssues(key2,valueResult.issues)):final.issues.push({origin:"map",code:"invalid_element",input,inst,key:key2,issues:valueResult.issues.map(iss=>finalizeIssue(iss,ctx,config()))})),final.value.set(keyResult.value,valueResult.value)}var $ZodSet=$constructor("$ZodSet",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,ctx)=>{let input=payload.value;if(!(input instanceof Set))return payload.issues.push({input,inst,expected:"set",code:"invalid_type"}),payload;let proms=[];payload.value=new Set;for(let item of input){let result=def.valueType._zod.run({value:item,issues:[]},ctx);result instanceof Promise?proms.push(result.then(result2=>handleSetResult(result2,payload))):handleSetResult(result,payload)}return proms.length?Promise.all(proms).then(()=>payload):payload}});function handleSetResult(result,final){result.issues.length&&final.issues.push(...result.issues),final.value.add(result.value)}var $ZodEnum=$constructor("$ZodEnum",(inst,def)=>{$ZodType.init(inst,def);let values=getEnumValues(def.entries),valuesSet=new Set(values);inst._zod.values=valuesSet,inst._zod.pattern=new RegExp(`^(${values.filter(k=>propertyKeyTypes.has(typeof k)).map(o=>typeof o=="string"?escapeRegex(o):o.toString()).join("|")})$`),inst._zod.parse=(payload,_ctx)=>{let input=payload.value;return valuesSet.has(input)||payload.issues.push({code:"invalid_value",values,input,inst}),payload}}),$ZodLiteral=$constructor("$ZodLiteral",(inst,def)=>{if($ZodType.init(inst,def),def.values.length===0)throw new Error("Cannot create literal schema with no valid values");let values=new Set(def.values);inst._zod.values=values,inst._zod.pattern=new RegExp(`^(${def.values.map(o=>typeof o=="string"?escapeRegex(o):o?escapeRegex(o.toString()):String(o)).join("|")})$`),inst._zod.parse=(payload,_ctx)=>{let input=payload.value;return values.has(input)||payload.issues.push({code:"invalid_value",values:def.values,input,inst}),payload}}),$ZodFile=$constructor("$ZodFile",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,_ctx)=>{let input=payload.value;return input instanceof File||payload.issues.push({expected:"file",code:"invalid_type",input,inst}),payload}}),$ZodTransform=$constructor("$ZodTransform",(inst,def)=>{$ZodType.init(inst,def),inst._zod.optin="optional",inst._zod.parse=(payload,ctx)=>{if(ctx.direction==="backward")throw new $ZodEncodeError(inst.constructor.name);let _out=def.transform(payload.value,payload);if(ctx.async)return(_out instanceof Promise?_out:Promise.resolve(_out)).then(output2=>(payload.value=output2,payload.fallback=!0,payload));if(_out instanceof Promise)throw new $ZodAsyncError;return payload.value=_out,payload.fallback=!0,payload}});function handleOptionalResult(result,input){return input===void 0&&(result.issues.length||result.fallback)?{issues:[],value:void 0}:result}var $ZodOptional=$constructor("$ZodOptional",(inst,def)=>{$ZodType.init(inst,def),inst._zod.optin="optional",inst._zod.optout="optional",defineLazy(inst._zod,"values",()=>def.innerType._zod.values?new Set([...def.innerType._zod.values,void 0]):void 0),defineLazy(inst._zod,"pattern",()=>{let pattern=def.innerType._zod.pattern;return pattern?new RegExp(`^(${cleanRegex(pattern.source)})?$`):void 0}),inst._zod.parse=(payload,ctx)=>{if(def.innerType._zod.optin==="optional"){let input=payload.value,result=def.innerType._zod.run(payload,ctx);return result instanceof Promise?result.then(r=>handleOptionalResult(r,input)):handleOptionalResult(result,input)}return payload.value===void 0?payload:def.innerType._zod.run(payload,ctx)}}),$ZodExactOptional=$constructor("$ZodExactOptional",(inst,def)=>{$ZodOptional.init(inst,def),defineLazy(inst._zod,"values",()=>def.innerType._zod.values),defineLazy(inst._zod,"pattern",()=>def.innerType._zod.pattern),inst._zod.parse=(payload,ctx)=>def.innerType._zod.run(payload,ctx)}),$ZodNullable=$constructor("$ZodNullable",(inst,def)=>{$ZodType.init(inst,def),defineLazy(inst._zod,"optin",()=>def.innerType._zod.optin),defineLazy(inst._zod,"optout",()=>def.innerType._zod.optout),defineLazy(inst._zod,"pattern",()=>{let pattern=def.innerType._zod.pattern;return pattern?new RegExp(`^(${cleanRegex(pattern.source)}|null)$`):void 0}),defineLazy(inst._zod,"values",()=>def.innerType._zod.values?new Set([...def.innerType._zod.values,null]):void 0),inst._zod.parse=(payload,ctx)=>payload.value===null?payload:def.innerType._zod.run(payload,ctx)}),$ZodDefault=$constructor("$ZodDefault",(inst,def)=>{$ZodType.init(inst,def),inst._zod.optin="optional",defineLazy(inst._zod,"values",()=>def.innerType._zod.values),inst._zod.parse=(payload,ctx)=>{if(ctx.direction==="backward")return def.innerType._zod.run(payload,ctx);if(payload.value===void 0)return payload.value=def.defaultValue,payload;let result=def.innerType._zod.run(payload,ctx);return result instanceof Promise?result.then(result2=>handleDefaultResult(result2,def)):handleDefaultResult(result,def)}});function handleDefaultResult(payload,def){return payload.value===void 0&&(payload.value=def.defaultValue),payload}var $ZodPrefault=$constructor("$ZodPrefault",(inst,def)=>{$ZodType.init(inst,def),inst._zod.optin="optional",defineLazy(inst._zod,"values",()=>def.innerType._zod.values),inst._zod.parse=(payload,ctx)=>(ctx.direction==="backward"||payload.value===void 0&&(payload.value=def.defaultValue),def.innerType._zod.run(payload,ctx))}),$ZodNonOptional=$constructor("$ZodNonOptional",(inst,def)=>{$ZodType.init(inst,def),defineLazy(inst._zod,"values",()=>{let v=def.innerType._zod.values;return v?new Set([...v].filter(x=>x!==void 0)):void 0}),inst._zod.parse=(payload,ctx)=>{let result=def.innerType._zod.run(payload,ctx);return result instanceof Promise?result.then(result2=>handleNonOptionalResult(result2,inst)):handleNonOptionalResult(result,inst)}});function handleNonOptionalResult(payload,inst){return!payload.issues.length&&payload.value===void 0&&payload.issues.push({code:"invalid_type",expected:"nonoptional",input:payload.value,inst}),payload}var $ZodSuccess=$constructor("$ZodSuccess",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,ctx)=>{if(ctx.direction==="backward")throw new $ZodEncodeError("ZodSuccess");let result=def.innerType._zod.run(payload,ctx);return result instanceof Promise?result.then(result2=>(payload.value=result2.issues.length===0,payload)):(payload.value=result.issues.length===0,payload)}}),$ZodCatch=$constructor("$ZodCatch",(inst,def)=>{$ZodType.init(inst,def),inst._zod.optin="optional",defineLazy(inst._zod,"optout",()=>def.innerType._zod.optout),defineLazy(inst._zod,"values",()=>def.innerType._zod.values),inst._zod.parse=(payload,ctx)=>{if(ctx.direction==="backward")return def.innerType._zod.run(payload,ctx);let result=def.innerType._zod.run(payload,ctx);return result instanceof Promise?result.then(result2=>(payload.value=result2.value,result2.issues.length&&(payload.value=def.catchValue({...payload,error:{issues:result2.issues.map(iss=>finalizeIssue(iss,ctx,config()))},input:payload.value}),payload.issues=[],payload.fallback=!0),payload)):(payload.value=result.value,result.issues.length&&(payload.value=def.catchValue({...payload,error:{issues:result.issues.map(iss=>finalizeIssue(iss,ctx,config()))},input:payload.value}),payload.issues=[],payload.fallback=!0),payload)}}),$ZodNaN=$constructor("$ZodNaN",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,_ctx)=>((typeof payload.value!="number"||!Number.isNaN(payload.value))&&payload.issues.push({input:payload.value,inst,expected:"nan",code:"invalid_type"}),payload)}),$ZodPipe=$constructor("$ZodPipe",(inst,def)=>{$ZodType.init(inst,def),defineLazy(inst._zod,"values",()=>def.in._zod.values),defineLazy(inst._zod,"optin",()=>def.in._zod.optin),defineLazy(inst._zod,"optout",()=>def.out._zod.optout),defineLazy(inst._zod,"propValues",()=>def.in._zod.propValues),inst._zod.parse=(payload,ctx)=>{if(ctx.direction==="backward"){let right=def.out._zod.run(payload,ctx);return right instanceof Promise?right.then(right2=>handlePipeResult(right2,def.in,ctx)):handlePipeResult(right,def.in,ctx)}let left=def.in._zod.run(payload,ctx);return left instanceof Promise?left.then(left2=>handlePipeResult(left2,def.out,ctx)):handlePipeResult(left,def.out,ctx)}});function handlePipeResult(left,next2,ctx){return left.issues.length?(left.aborted=!0,left):next2._zod.run({value:left.value,issues:left.issues,fallback:left.fallback},ctx)}var $ZodCodec=$constructor("$ZodCodec",(inst,def)=>{$ZodType.init(inst,def),defineLazy(inst._zod,"values",()=>def.in._zod.values),defineLazy(inst._zod,"optin",()=>def.in._zod.optin),defineLazy(inst._zod,"optout",()=>def.out._zod.optout),defineLazy(inst._zod,"propValues",()=>def.in._zod.propValues),inst._zod.parse=(payload,ctx)=>{if((ctx.direction||"forward")==="forward"){let left=def.in._zod.run(payload,ctx);return left instanceof Promise?left.then(left2=>handleCodecAResult(left2,def,ctx)):handleCodecAResult(left,def,ctx)}else{let right=def.out._zod.run(payload,ctx);return right instanceof Promise?right.then(right2=>handleCodecAResult(right2,def,ctx)):handleCodecAResult(right,def,ctx)}}});function handleCodecAResult(result,def,ctx){if(result.issues.length)return result.aborted=!0,result;if((ctx.direction||"forward")==="forward"){let transformed=def.transform(result.value,result);return transformed instanceof Promise?transformed.then(value=>handleCodecTxResult(result,value,def.out,ctx)):handleCodecTxResult(result,transformed,def.out,ctx)}else{let transformed=def.reverseTransform(result.value,result);return transformed instanceof Promise?transformed.then(value=>handleCodecTxResult(result,value,def.in,ctx)):handleCodecTxResult(result,transformed,def.in,ctx)}}function handleCodecTxResult(left,value,nextSchema,ctx){return left.issues.length?(left.aborted=!0,left):nextSchema._zod.run({value,issues:left.issues},ctx)}var $ZodPreprocess=$constructor("$ZodPreprocess",(inst,def)=>{$ZodPipe.init(inst,def)}),$ZodReadonly=$constructor("$ZodReadonly",(inst,def)=>{$ZodType.init(inst,def),defineLazy(inst._zod,"propValues",()=>def.innerType._zod.propValues),defineLazy(inst._zod,"values",()=>def.innerType._zod.values),defineLazy(inst._zod,"optin",()=>{var _a9,_b3;return(_b3=(_a9=def.innerType)==null?void 0:_a9._zod)==null?void 0:_b3.optin}),defineLazy(inst._zod,"optout",()=>{var _a9,_b3;return(_b3=(_a9=def.innerType)==null?void 0:_a9._zod)==null?void 0:_b3.optout}),inst._zod.parse=(payload,ctx)=>{if(ctx.direction==="backward")return def.innerType._zod.run(payload,ctx);let result=def.innerType._zod.run(payload,ctx);return result instanceof Promise?result.then(handleReadonlyResult):handleReadonlyResult(result)}});function handleReadonlyResult(payload){return payload.value=Object.freeze(payload.value),payload}var $ZodTemplateLiteral=$constructor("$ZodTemplateLiteral",(inst,def)=>{$ZodType.init(inst,def);let regexParts=[];for(let part of def.parts)if(typeof part=="object"&&part!==null){if(!part._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...part._zod.traits].shift()}`);let source2=part._zod.pattern instanceof RegExp?part._zod.pattern.source:part._zod.pattern;if(!source2)throw new Error(`Invalid template literal part: ${part._zod.traits}`);let start=source2.startsWith("^")?1:0,end=source2.endsWith("$")?source2.length-1:source2.length;regexParts.push(source2.slice(start,end))}else if(part===null||primitiveTypes.has(typeof part))regexParts.push(escapeRegex(`${part}`));else throw new Error(`Invalid template literal part: ${part}`);inst._zod.pattern=new RegExp(`^${regexParts.join("")}$`),inst._zod.parse=(payload,_ctx)=>{var _a9;return typeof payload.value!="string"?(payload.issues.push({input:payload.value,inst,expected:"string",code:"invalid_type"}),payload):(inst._zod.pattern.lastIndex=0,inst._zod.pattern.test(payload.value)||payload.issues.push({input:payload.value,inst,code:"invalid_format",format:(_a9=def.format)!=null?_a9:"template_literal",pattern:inst._zod.pattern.source}),payload)}}),$ZodFunction=$constructor("$ZodFunction",(inst,def)=>($ZodType.init(inst,def),inst._def=def,inst._zod.def=def,inst.implement=func=>{if(typeof func!="function")throw new Error("implement() must be called with a function");return function(...args){let parsedArgs=inst._def.input?parse(inst._def.input,args):args,result=Reflect.apply(func,this,parsedArgs);return inst._def.output?parse(inst._def.output,result):result}},inst.implementAsync=func=>{if(typeof func!="function")throw new Error("implementAsync() must be called with a function");return async function(...args){let parsedArgs=inst._def.input?await parseAsync(inst._def.input,args):args,result=await Reflect.apply(func,this,parsedArgs);return inst._def.output?await parseAsync(inst._def.output,result):result}},inst._zod.parse=(payload,_ctx)=>typeof payload.value!="function"?(payload.issues.push({code:"invalid_type",expected:"function",input:payload.value,inst}),payload):(inst._def.output&&inst._def.output._zod.def.type==="promise"?payload.value=inst.implementAsync(payload.value):payload.value=inst.implement(payload.value),payload),inst.input=(...args)=>{let F=inst.constructor;return Array.isArray(args[0])?new F({type:"function",input:new $ZodTuple({type:"tuple",items:args[0],rest:args[1]}),output:inst._def.output}):new F({type:"function",input:args[0],output:inst._def.output})},inst.output=output=>{let F=inst.constructor;return new F({type:"function",input:inst._def.input,output})},inst)),$ZodPromise=$constructor("$ZodPromise",(inst,def)=>{$ZodType.init(inst,def),inst._zod.parse=(payload,ctx)=>Promise.resolve(payload.value).then(inner=>def.innerType._zod.run({value:inner,issues:[]},ctx))}),$ZodLazy=$constructor("$ZodLazy",(inst,def)=>{$ZodType.init(inst,def),defineLazy(inst._zod,"innerType",()=>{let d=def;return d._cachedInner||(d._cachedInner=def.getter()),d._cachedInner}),defineLazy(inst._zod,"pattern",()=>{var _a9,_b3;return(_b3=(_a9=inst._zod.innerType)==null?void 0:_a9._zod)==null?void 0:_b3.pattern}),defineLazy(inst._zod,"propValues",()=>{var _a9,_b3;return(_b3=(_a9=inst._zod.innerType)==null?void 0:_a9._zod)==null?void 0:_b3.propValues}),defineLazy(inst._zod,"optin",()=>{var _a9,_b3,_c2;return(_c2=(_b3=(_a9=inst._zod.innerType)==null?void 0:_a9._zod)==null?void 0:_b3.optin)!=null?_c2:void 0}),defineLazy(inst._zod,"optout",()=>{var _a9,_b3,_c2;return(_c2=(_b3=(_a9=inst._zod.innerType)==null?void 0:_a9._zod)==null?void 0:_b3.optout)!=null?_c2:void 0}),inst._zod.parse=(payload,ctx)=>inst._zod.innerType._zod.run(payload,ctx)}),$ZodCustom=$constructor("$ZodCustom",(inst,def)=>{$ZodCheck.init(inst,def),$ZodType.init(inst,def),inst._zod.parse=(payload,_)=>payload,inst._zod.check=payload=>{let input=payload.value,r=def.fn(input);if(r instanceof Promise)return r.then(r2=>handleRefineResult(r2,payload,input,inst));handleRefineResult(r,payload,input,inst)}});function handleRefineResult(result,payload,input,inst){var _a9;if(!result){let _iss={code:"custom",input,inst,path:[...(_a9=inst._zod.def.path)!=null?_a9:[]],continue:!inst._zod.def.abort};inst._zod.def.params&&(_iss.params=inst._zod.def.params),payload.issues.push(issue(_iss))}}var locales_exports={};__export(locales_exports,{ar:()=>ar_default,az:()=>az_default,be:()=>be_default,bg:()=>bg_default,ca:()=>ca_default,cs:()=>cs_default,da:()=>da_default,de:()=>de_default,el:()=>el_default,en:()=>en_default,eo:()=>eo_default,es:()=>es_default,fa:()=>fa_default,fi:()=>fi_default,fr:()=>fr_default,frCA:()=>fr_CA_default,he:()=>he_default,hr:()=>hr_default,hu:()=>hu_default,hy:()=>hy_default,id:()=>id_default,is:()=>is_default,it:()=>it_default,ja:()=>ja_default,ka:()=>ka_default,kh:()=>kh_default,km:()=>km_default,ko:()=>ko_default,lt:()=>lt_default,mk:()=>mk_default,ms:()=>ms_default,nl:()=>nl_default,no:()=>no_default,ota:()=>ota_default,pl:()=>pl_default,ps:()=>ps_default,pt:()=>pt_default,ro:()=>ro_default,ru:()=>ru_default,sl:()=>sl_default,sv:()=>sv_default,ta:()=>ta_default,th:()=>th_default,tr:()=>tr_default,ua:()=>ua_default,uk:()=>uk_default,ur:()=>ur_default,uz:()=>uz_default,vi:()=>vi_default,yo:()=>yo_default,zhCN:()=>zh_CN_default,zhTW:()=>zh_TW_default});var error=()=>{let Sizable={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${issue2.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${received}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${received}`}case"invalid_value":return issue2.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${stringifyPrimitive(issue2.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${(_c2=issue2.origin)!=null?_c2:"\u0627\u0644\u0642\u064A\u0645\u0629"} ${adj} ${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${(_e=issue2.origin)!=null?_e:"\u0627\u0644\u0642\u064A\u0645\u0629"} ${adj} ${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${issue2.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${adj} ${issue2.minimum.toString()} ${sizing.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${issue2.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${adj} ${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${issue2.prefix}"`:_issue.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${_issue.suffix}"`:_issue.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${_issue.includes}"`:_issue.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${_issue.pattern}`:`${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${issue2.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${issue2.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${issue2.keys.length>1?"\u0629":""}: ${joinValues(issue2.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${issue2.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${issue2.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}};function ar_default(){return{localeError:error()}}var error2=()=>{let Sizable={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${issue2.expected}, daxil olan ${received}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${expected}, daxil olan ${received}`}case"invalid_value":return issue2.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${stringifyPrimitive(issue2.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${(_c2=issue2.origin)!=null?_c2:"d\u0259y\u0259r"} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${(_e=issue2.origin)!=null?_e:"d\u0259y\u0259r"} ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${issue2.origin} ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${_issue.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:_issue.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${_issue.suffix}" il\u0259 bitm\u0259lidir`:_issue.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${_issue.includes}" daxil olmal\u0131d\u0131r`:_issue.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${_issue.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${issue2.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${issue2.keys.length>1?"lar":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`${issue2.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${issue2.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}};function az_default(){return{localeError:error2()}}function getBelarusianPlural(count,one,few,many){let absCount=Math.abs(count),lastDigit=absCount%10,lastTwoDigits=absCount%100;return lastTwoDigits>=11&&lastTwoDigits<=19?many:lastDigit===1?one:lastDigit>=2&&lastDigit<=4?few:many}var error3=()=>{let Sizable={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},TypeDictionary={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return issue2=>{var _a9,_b3,_c2,_d,_e;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${issue2.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${received}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${received}`}case"invalid_value":return issue2.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${stringifyPrimitive(issue2.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);if(sizing){let maxValue=Number(issue2.maximum),unit=getBelarusianPlural(maxValue,sizing.unit.one,sizing.unit.few,sizing.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${(_c2=issue2.origin)!=null?_c2:"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${sizing.verb} ${adj}${issue2.maximum.toString()} ${unit}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${(_d=issue2.origin)!=null?_d:"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);if(sizing){let minValue=Number(issue2.minimum),unit=getBelarusianPlural(minValue,sizing.unit.one,sizing.unit.few,sizing.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${issue2.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${sizing.verb} ${adj}${issue2.minimum.toString()} ${unit}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${issue2.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${_issue.prefix}"`:_issue.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${_issue.suffix}"`:_issue.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${_issue.includes}"`:_issue.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${(_e=FormatDictionary[_issue.format])!=null?_e:issue2.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${issue2.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${issue2.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${issue2.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${issue2.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}};function be_default(){return{localeError:error3()}}var error4=()=>{let Sizable={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},TypeDictionary={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${received}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${received}`}case"invalid_value":return issue2.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${stringifyPrimitive(issue2.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${(_c2=issue2.origin)!=null?_c2:"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${(_e=issue2.origin)!=null?_e:"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${issue2.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;if(_issue.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${_issue.prefix}"`;if(_issue.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${_issue.suffix}"`;if(_issue.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${_issue.includes}"`;if(_issue.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${_issue.pattern}`;let invalid_adj="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return _issue.format==="emoji"&&(invalid_adj="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),_issue.format==="datetime"&&(invalid_adj="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),_issue.format==="date"&&(invalid_adj="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),_issue.format==="time"&&(invalid_adj="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),_issue.format==="duration"&&(invalid_adj="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${invalid_adj} ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${issue2.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${issue2.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${issue2.keys.length>1?"\u043E\u0432\u0435":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${issue2.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${issue2.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}};function bg_default(){return{localeError:error4()}}var error5=()=>{let Sizable={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${issue2.expected}, s'ha rebut ${received}`:`Tipus inv\xE0lid: s'esperava ${expected}, s'ha rebut ${received}`}case"invalid_value":return issue2.values.length===1?`Valor inv\xE0lid: s'esperava ${stringifyPrimitive(issue2.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${joinValues(issue2.values," o ")}`;case"too_big":{let adj=issue2.inclusive?"com a m\xE0xim":"menys de",sizing=getSizing(issue2.origin);return sizing?`Massa gran: s'esperava que ${(_c2=issue2.origin)!=null?_c2:"el valor"} contingu\xE9s ${adj} ${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elements"}`:`Massa gran: s'esperava que ${(_e=issue2.origin)!=null?_e:"el valor"} fos ${adj} ${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?"com a m\xEDnim":"m\xE9s de",sizing=getSizing(issue2.origin);return sizing?`Massa petit: s'esperava que ${issue2.origin} contingu\xE9s ${adj} ${issue2.minimum.toString()} ${sizing.unit}`:`Massa petit: s'esperava que ${issue2.origin} fos ${adj} ${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${_issue.prefix}"`:_issue.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${_issue.suffix}"`:_issue.format==="includes"?`Format inv\xE0lid: ha d'incloure "${_issue.includes}"`:_issue.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${_issue.pattern}`:`Format inv\xE0lid per a ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${issue2.divisor}`;case"unrecognized_keys":return`Clau${issue2.keys.length>1?"s":""} no reconeguda${issue2.keys.length>1?"s":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${issue2.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${issue2.origin}`;default:return"Entrada inv\xE0lida"}}};function ca_default(){return{localeError:error5()}}var error6=()=>{let Sizable={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},TypeDictionary={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f,_g,_h2,_i;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${issue2.expected}, obdr\u017Eeno ${received}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${expected}, obdr\u017Eeno ${received}`}case"invalid_value":return issue2.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${stringifyPrimitive(issue2.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${(_c2=issue2.origin)!=null?_c2:"hodnota"} mus\xED m\xEDt ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${(_e=issue2.origin)!=null?_e:"hodnota"} mus\xED b\xFDt ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${(_f=issue2.origin)!=null?_f:"hodnota"} mus\xED m\xEDt ${adj}${issue2.minimum.toString()} ${(_g=sizing.unit)!=null?_g:"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${(_h2=issue2.origin)!=null?_h2:"hodnota"} mus\xED b\xFDt ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${_issue.prefix}"`:_issue.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${_issue.suffix}"`:_issue.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${_issue.includes}"`:_issue.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${_issue.pattern}`:`Neplatn\xFD form\xE1t ${(_i=FormatDictionary[_issue.format])!=null?_i:issue2.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${issue2.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${issue2.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${issue2.origin}`;default:return"Neplatn\xFD vstup"}}};function cs_default(){return{localeError:error6()}}var error7=()=>{let Sizable={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},TypeDictionary={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Ugyldigt input: forventede instanceof ${issue2.expected}, fik ${received}`:`Ugyldigt input: forventede ${expected}, fik ${received}`}case"invalid_value":return issue2.values.length===1?`Ugyldig v\xE6rdi: forventede ${stringifyPrimitive(issue2.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin),origin2=(_c2=TypeDictionary[issue2.origin])!=null?_c2:issue2.origin;return sizing?`For stor: forventede ${origin2!=null?origin2:"value"} ${sizing.verb} ${adj} ${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elementer"}`:`For stor: forventede ${origin2!=null?origin2:"value"} havde ${adj} ${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin),origin2=(_e=TypeDictionary[issue2.origin])!=null?_e:issue2.origin;return sizing?`For lille: forventede ${origin2} ${sizing.verb} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`:`For lille: forventede ${origin2} havde ${adj} ${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Ugyldig streng: skal starte med "${_issue.prefix}"`:_issue.format==="ends_with"?`Ugyldig streng: skal ende med "${_issue.suffix}"`:_issue.format==="includes"?`Ugyldig streng: skal indeholde "${_issue.includes}"`:_issue.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${_issue.pattern}`:`Ugyldig ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${issue2.divisor}`;case"unrecognized_keys":return`${issue2.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${issue2.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${issue2.origin}`;default:return"Ugyldigt input"}}};function da_default(){return{localeError:error7()}}var error8=()=>{let Sizable={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},TypeDictionary={nan:"NaN",number:"Zahl",array:"Array"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${issue2.expected}, erhalten ${received}`:`Ung\xFCltige Eingabe: erwartet ${expected}, erhalten ${received}`}case"invalid_value":return issue2.values.length===1?`Ung\xFCltige Eingabe: erwartet ${stringifyPrimitive(issue2.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Zu gro\xDF: erwartet, dass ${(_c2=issue2.origin)!=null?_c2:"Wert"} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${(_e=issue2.origin)!=null?_e:"Wert"} ${adj}${issue2.maximum.toString()} ist`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Zu klein: erwartet, dass ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} hat`:`Zu klein: erwartet, dass ${issue2.origin} ${adj}${issue2.minimum.toString()} ist`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Ung\xFCltiger String: muss mit "${_issue.prefix}" beginnen`:_issue.format==="ends_with"?`Ung\xFCltiger String: muss mit "${_issue.suffix}" enden`:_issue.format==="includes"?`Ung\xFCltiger String: muss "${_issue.includes}" enthalten`:_issue.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${_issue.pattern} entsprechen`:`Ung\xFCltig: ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${issue2.divisor} sein`;case"unrecognized_keys":return`${issue2.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${issue2.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${issue2.origin}`;default:return"Ung\xFCltige Eingabe"}}};function de_default(){return{localeError:error8()}}var error9=()=>{let Sizable={string:{unit:"\u03C7\u03B1\u03C1\u03B1\u03BA\u03C4\u03AE\u03C1\u03B5\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},file:{unit:"bytes",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},array:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},set:{unit:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"},map:{unit:"\u03BA\u03B1\u03C4\u03B1\u03C7\u03C9\u03C1\u03AE\u03C3\u03B5\u03B9\u03C2",verb:"\u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2",email:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1 \u03BA\u03B1\u03B9 \u03CE\u03C1\u03B1",date:"ISO \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",time:"ISO \u03CE\u03C1\u03B1",duration:"ISO \u03B4\u03B9\u03AC\u03C1\u03BA\u03B5\u03B9\u03B1",ipv4:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv4",ipv6:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 IPv6",mac:"\u03B4\u03B9\u03B5\u03CD\u03B8\u03C5\u03BD\u03C3\u03B7 MAC",cidrv4:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv4",cidrv6:"\u03B5\u03CD\u03C1\u03BF\u03C2 IPv6",base64:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64",base64url:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC \u03BA\u03C9\u03B4\u03B9\u03BA\u03BF\u03C0\u03BF\u03B9\u03B7\u03BC\u03AD\u03BD\u03B7 \u03C3\u03B5 base64url",json_string:"\u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC JSON",e164:"\u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2 E.164",jwt:"JWT",template_literal:"\u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return typeof issue2.expected=="string"&&/^[A-Z]/.test(issue2.expected)?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD instanceof ${issue2.expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${expected}, \u03BB\u03AE\u03C6\u03B8\u03B7\u03BA\u03B5 ${received}`}case"invalid_value":return issue2.values.length===1?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${stringifyPrimitive(issue2.values[0])}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD \u03AD\u03BD\u03B1 \u03B1\u03C0\u03CC ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${(_c2=issue2.origin)!=null?_c2:"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u03C3\u03C4\u03BF\u03B9\u03C7\u03B5\u03AF\u03B1"}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B5\u03B3\u03AC\u03BB\u03BF: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${(_e=issue2.origin)!=null?_e:"\u03C4\u03B9\u03BC\u03AE"} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03AD\u03C7\u03B5\u03B9 ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`\u03A0\u03BF\u03BB\u03CD \u03BC\u03B9\u03BA\u03C1\u03CC: \u03B1\u03BD\u03B1\u03BC\u03B5\u03BD\u03CC\u03C4\u03B1\u03BD ${issue2.origin} \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03BE\u03B5\u03BA\u03B9\u03BD\u03AC \u03BC\u03B5 "${_issue.prefix}"`:_issue.format==="ends_with"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B5\u03BB\u03B5\u03B9\u03CE\u03BD\u03B5\u03B9 \u03BC\u03B5 "${_issue.suffix}"`:_issue.format==="includes"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C0\u03B5\u03C1\u03B9\u03AD\u03C7\u03B5\u03B9 "${_issue.includes}"`:_issue.format==="regex"?`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C3\u03C5\u03BC\u03B2\u03BF\u03BB\u03BF\u03C3\u03B5\u03B9\u03C1\u03AC: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03C4\u03B1\u03B9\u03C1\u03B9\u03AC\u03B6\u03B5\u03B9 \u03BC\u03B5 \u03C4\u03BF \u03BC\u03BF\u03C4\u03AF\u03B2\u03BF ${_issue.pattern}`:`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF: ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF\u03C2 \u03B1\u03C1\u03B9\u03B8\u03BC\u03CC\u03C2: \u03C0\u03C1\u03AD\u03C0\u03B5\u03B9 \u03BD\u03B1 \u03B5\u03AF\u03BD\u03B1\u03B9 \u03C0\u03BF\u03BB\u03BB\u03B1\u03C0\u03BB\u03AC\u03C3\u03B9\u03BF \u03C4\u03BF\u03C5 ${issue2.divisor}`;case"unrecognized_keys":return`\u0386\u03B3\u03BD\u03C9\u03C3\u03C4${issue2.keys.length>1?"\u03B1":"\u03BF"} \u03BA\u03BB\u03B5\u03B9\u03B4${issue2.keys.length>1?"\u03B9\u03AC":"\u03AF"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03BF \u03BA\u03BB\u03B5\u03B9\u03B4\u03AF \u03C3\u03C4\u03BF ${issue2.origin}`;case"invalid_union":return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2";case"invalid_element":return`\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03C4\u03B9\u03BC\u03AE \u03C3\u03C4\u03BF ${issue2.origin}`;default:return"\u039C\u03B7 \u03AD\u03B3\u03BA\u03C5\u03C1\u03B7 \u03B5\u03AF\u03C3\u03BF\u03B4\u03BF\u03C2"}}};function el_default(){return{localeError:error9()}}var error10=()=>{let Sizable={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return`Invalid input: expected ${expected}, received ${received}`}case"invalid_value":return issue2.values.length===1?`Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`:`Invalid option: expected one of ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Too big: expected ${(_c2=issue2.origin)!=null?_c2:"value"} to have ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elements"}`:`Too big: expected ${(_e=issue2.origin)!=null?_e:"value"} to be ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Too small: expected ${issue2.origin} to have ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Too small: expected ${issue2.origin} to be ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Invalid string: must start with "${_issue.prefix}"`:_issue.format==="ends_with"?`Invalid string: must end with "${_issue.suffix}"`:_issue.format==="includes"?`Invalid string: must include "${_issue.includes}"`:_issue.format==="regex"?`Invalid string: must match pattern ${_issue.pattern}`:`Invalid ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${issue2.divisor}`;case"unrecognized_keys":return`Unrecognized key${issue2.keys.length>1?"s":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Invalid key in ${issue2.origin}`;case"invalid_union":return issue2.options&&Array.isArray(issue2.options)&&issue2.options.length>0?`Invalid discriminator value. Expected ${issue2.options.map(o=>`'${o}'`).join(" | ")}`:"Invalid input";case"invalid_element":return`Invalid value in ${issue2.origin}`;default:return"Invalid input"}}};function en_default(){return{localeError:error10()}}var error11=()=>{let Sizable={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},TypeDictionary={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${issue2.expected}, ricevi\u011Dis ${received}`:`Nevalida enigo: atendi\u011Dis ${expected}, ricevi\u011Dis ${received}`}case"invalid_value":return issue2.values.length===1?`Nevalida enigo: atendi\u011Dis ${stringifyPrimitive(issue2.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Tro granda: atendi\u011Dis ke ${(_c2=issue2.origin)!=null?_c2:"valoro"} havu ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elementojn"}`:`Tro granda: atendi\u011Dis ke ${(_e=issue2.origin)!=null?_e:"valoro"} havu ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Tro malgranda: atendi\u011Dis ke ${issue2.origin} havu ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Tro malgranda: atendi\u011Dis ke ${issue2.origin} estu ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${_issue.prefix}"`:_issue.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${_issue.suffix}"`:_issue.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${_issue.includes}"`:_issue.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${_issue.pattern}`:`Nevalida ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${issue2.divisor}`;case"unrecognized_keys":return`Nekonata${issue2.keys.length>1?"j":""} \u015Dlosilo${issue2.keys.length>1?"j":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${issue2.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${issue2.origin}`;default:return"Nevalida enigo"}}};function eo_default(){return{localeError:error11()}}var error12=()=>{let Sizable={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},TypeDictionary={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f,_g,_h2;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${issue2.expected}, recibido ${received}`:`Entrada inv\xE1lida: se esperaba ${expected}, recibido ${received}`}case"invalid_value":return issue2.values.length===1?`Entrada inv\xE1lida: se esperaba ${stringifyPrimitive(issue2.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin),origin2=(_c2=TypeDictionary[issue2.origin])!=null?_c2:issue2.origin;return sizing?`Demasiado grande: se esperaba que ${origin2!=null?origin2:"valor"} tuviera ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elementos"}`:`Demasiado grande: se esperaba que ${origin2!=null?origin2:"valor"} fuera ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin),origin2=(_e=TypeDictionary[issue2.origin])!=null?_e:issue2.origin;return sizing?`Demasiado peque\xF1o: se esperaba que ${origin2} tuviera ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Demasiado peque\xF1o: se esperaba que ${origin2} fuera ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${_issue.prefix}"`:_issue.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${_issue.suffix}"`:_issue.format==="includes"?`Cadena inv\xE1lida: debe incluir "${_issue.includes}"`:_issue.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${_issue.pattern}`:`Inv\xE1lido ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${issue2.divisor}`;case"unrecognized_keys":return`Llave${issue2.keys.length>1?"s":""} desconocida${issue2.keys.length>1?"s":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${(_g=TypeDictionary[issue2.origin])!=null?_g:issue2.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${(_h2=TypeDictionary[issue2.origin])!=null?_h2:issue2.origin}`;default:return"Entrada inv\xE1lida"}}};function es_default(){return{localeError:error12()}}var error13=()=>{let Sizable={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},TypeDictionary={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${issue2.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${received} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${received} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return issue2.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${stringifyPrimitive(issue2.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${joinValues(issue2.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${(_c2=issue2.origin)!=null?_c2:"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${(_e=issue2.origin)!=null?_e:"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${_issue.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:_issue.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${_issue.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:_issue.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${_issue.includes}" \u0628\u0627\u0634\u062F`:_issue.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${_issue.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${issue2.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${issue2.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${issue2.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${issue2.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}};function fa_default(){return{localeError:error13()}}var error14=()=>{let Sizable={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Virheellinen tyyppi: odotettiin instanceof ${issue2.expected}, oli ${received}`:`Virheellinen tyyppi: odotettiin ${expected}, oli ${received}`}case"invalid_value":return issue2.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${stringifyPrimitive(issue2.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Liian suuri: ${sizing.subject} t\xE4ytyy olla ${adj}${issue2.maximum.toString()} ${sizing.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Liian pieni: ${sizing.subject} t\xE4ytyy olla ${adj}${issue2.minimum.toString()} ${sizing.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${_issue.prefix}"`:_issue.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${_issue.suffix}"`:_issue.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${_issue.includes}"`:_issue.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${_issue.pattern}`:`Virheellinen ${(_c2=FormatDictionary[_issue.format])!=null?_c2:issue2.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${issue2.divisor} monikerta`;case"unrecognized_keys":return`${issue2.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}};function fi_default(){return{localeError:error14()}}var error15=()=>{let Sizable={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},TypeDictionary={string:"cha\xEEne",number:"nombre",int:"entier",boolean:"bool\xE9en",bigint:"grand entier",symbol:"symbole",undefined:"ind\xE9fini",null:"null",never:"jamais",void:"vide",date:"date",array:"tableau",object:"objet",tuple:"tuple",record:"enregistrement",map:"carte",set:"ensemble",file:"fichier",nonoptional:"non-optionnel",nan:"NaN",function:"fonction"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f,_g,_h2;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Entr\xE9e invalide : instanceof ${issue2.expected} attendu, ${received} re\xE7u`:`Entr\xE9e invalide : ${expected} attendu, ${received} re\xE7u`}case"invalid_value":return issue2.values.length===1?`Entr\xE9e invalide : ${stringifyPrimitive(issue2.values[0])} attendu`:`Option invalide : une valeur parmi ${joinValues(issue2.values,"|")} attendue`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Trop grand : ${(_c2=TypeDictionary[issue2.origin])!=null?_c2:"valeur"} doit ${sizing.verb} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\xE9l\xE9ment(s)"}`:`Trop grand : ${(_e=TypeDictionary[issue2.origin])!=null?_e:"valeur"} doit \xEAtre ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Trop petit : ${(_f=TypeDictionary[issue2.origin])!=null?_f:"valeur"} doit ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Trop petit : ${(_g=TypeDictionary[issue2.origin])!=null?_g:"valeur"} doit \xEAtre ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${_issue.prefix}"`:_issue.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${_issue.suffix}"`:_issue.format==="includes"?`Cha\xEEne invalide : doit inclure "${_issue.includes}"`:_issue.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${_issue.pattern}`:`${(_h2=FormatDictionary[_issue.format])!=null?_h2:issue2.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${issue2.divisor}`;case"unrecognized_keys":return`Cl\xE9${issue2.keys.length>1?"s":""} non reconnue${issue2.keys.length>1?"s":""} : ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${issue2.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${issue2.origin}`;default:return"Entr\xE9e invalide"}}};function fr_default(){return{localeError:error15()}}var error16=()=>{let Sizable={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Entr\xE9e invalide : attendu instanceof ${issue2.expected}, re\xE7u ${received}`:`Entr\xE9e invalide : attendu ${expected}, re\xE7u ${received}`}case"invalid_value":return issue2.values.length===1?`Entr\xE9e invalide : attendu ${stringifyPrimitive(issue2.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"\u2264":"<",sizing=getSizing(issue2.origin);return sizing?`Trop grand : attendu que ${(_c2=issue2.origin)!=null?_c2:"la valeur"} ait ${adj}${issue2.maximum.toString()} ${sizing.unit}`:`Trop grand : attendu que ${(_d=issue2.origin)!=null?_d:"la valeur"} soit ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?"\u2265":">",sizing=getSizing(issue2.origin);return sizing?`Trop petit : attendu que ${issue2.origin} ait ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Trop petit : attendu que ${issue2.origin} soit ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${_issue.prefix}"`:_issue.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${_issue.suffix}"`:_issue.format==="includes"?`Cha\xEEne invalide : doit inclure "${_issue.includes}"`:_issue.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${_issue.pattern}`:`${(_e=FormatDictionary[_issue.format])!=null?_e:issue2.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${issue2.divisor}`;case"unrecognized_keys":return`Cl\xE9${issue2.keys.length>1?"s":""} non reconnue${issue2.keys.length>1?"s":""} : ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${issue2.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${issue2.origin}`;default:return"Entr\xE9e invalide"}}};function fr_CA_default(){return{localeError:error16()}}var error17=()=>{let TypeNames={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},Sizable={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},typeEntry=t=>t?TypeNames[t]:void 0,typeLabel=t=>{let e=typeEntry(t);return e?e.label:t!=null?t:TypeNames.unknown.label},withDefinite=t=>`\u05D4${typeLabel(t)}`,verbFor=t=>{var _a9;let e=typeEntry(t);return((_a9=e==null?void 0:e.gender)!=null?_a9:"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA"},getSizing=origin2=>{var _a9;return origin2&&(_a9=Sizable[origin2])!=null?_a9:null},FormatDictionary={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f,_g,_h2,_i,_j,_k,_l,_m,_n,_o,_p,_q,_r,_s,_t,_u;switch(issue2.code){case"invalid_type":{let expectedKey=issue2.expected,expected=(_a9=TypeDictionary[expectedKey!=null?expectedKey:""])!=null?_a9:typeLabel(expectedKey),receivedType=parsedType(issue2.input),received=(_d=(_c2=TypeDictionary[receivedType])!=null?_c2:(_b3=TypeNames[receivedType])==null?void 0:_b3.label)!=null?_d:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${issue2.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${received}`}case"invalid_value":{if(issue2.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${stringifyPrimitive(issue2.values[0])}`;let stringified=issue2.values.map(v=>stringifyPrimitive(v));if(issue2.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${stringified[0]} \u05D0\u05D5 ${stringified[1]}`;let lastValue=stringified[stringified.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${stringified.slice(0,-1).join(", ")} \u05D0\u05D5 ${lastValue}`}case"too_big":{let sizing=getSizing(issue2.origin),subject=withDefinite((_e=issue2.origin)!=null?_e:"value");if(issue2.origin==="string")return`${(_f=sizing==null?void 0:sizing.longLabel)!=null?_f:"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.maximum.toString()} ${(_g=sizing==null?void 0:sizing.unit)!=null?_g:""} ${issue2.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(issue2.origin==="number"){let comparison=issue2.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${issue2.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`}if(issue2.origin==="array"||issue2.origin==="set"){let verb=issue2.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",comparison=issue2.inclusive?`${issue2.maximum} ${(_h2=sizing==null?void 0:sizing.unit)!=null?_h2:""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${issue2.maximum} ${(_i=sizing==null?void 0:sizing.unit)!=null?_i:""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim()}let adj=issue2.inclusive?"<=":"<",be=verbFor((_j=issue2.origin)!=null?_j:"value");return sizing!=null&&sizing.unit?`${sizing.longLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()} ${sizing.unit}`:`${(_k=sizing==null?void 0:sizing.longLabel)!=null?_k:"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.maximum.toString()}`}case"too_small":{let sizing=getSizing(issue2.origin),subject=withDefinite((_l=issue2.origin)!=null?_l:"value");if(issue2.origin==="string")return`${(_m=sizing==null?void 0:sizing.shortLabel)!=null?_m:"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${issue2.minimum.toString()} ${(_n=sizing==null?void 0:sizing.unit)!=null?_n:""} ${issue2.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(issue2.origin==="number"){let comparison=issue2.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${issue2.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${issue2.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${comparison}`}if(issue2.origin==="array"||issue2.origin==="set"){let verb=issue2.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(issue2.minimum===1&&issue2.inclusive){let singularPhrase=(issue2.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${singularPhrase}`}let comparison=issue2.inclusive?`${issue2.minimum} ${(_o=sizing==null?void 0:sizing.unit)!=null?_o:""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${issue2.minimum} ${(_p=sizing==null?void 0:sizing.unit)!=null?_p:""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${subject} ${verb} \u05DC\u05D4\u05DB\u05D9\u05DC ${comparison}`.trim()}let adj=issue2.inclusive?">=":">",be=verbFor((_q=issue2.origin)!=null?_q:"value");return sizing!=null&&sizing.unit?`${sizing.shortLabel} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`${(_r=sizing==null?void 0:sizing.shortLabel)!=null?_r:"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${subject} ${be} ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;if(_issue.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${_issue.prefix}"`;if(_issue.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${_issue.suffix}"`;if(_issue.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${_issue.includes}"`;if(_issue.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${_issue.pattern}`;let nounEntry=FormatDictionary[_issue.format],noun=(_s=nounEntry==null?void 0:nounEntry.label)!=null?_s:_issue.format,adjective=((_t=nounEntry==null?void 0:nounEntry.gender)!=null?_t:"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${noun} \u05DC\u05D0 ${adjective}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${issue2.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${issue2.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${issue2.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${withDefinite((_u=issue2.origin)!=null?_u:"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}};function he_default(){return{localeError:error17()}}var error18=()=>{let Sizable={string:{unit:"znakova",verb:"imati"},file:{unit:"bajtova",verb:"imati"},array:{unit:"stavki",verb:"imati"},set:{unit:"stavki",verb:"imati"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"unos",email:"email adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum i vrijeme",date:"ISO datum",time:"ISO vrijeme",duration:"ISO trajanje",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"IPv4 raspon",cidrv6:"IPv6 raspon",base64:"base64 kodirani tekst",base64url:"base64url kodirani tekst",json_string:"JSON tekst",e164:"E.164 broj",jwt:"JWT",template_literal:"unos"},TypeDictionary={nan:"NaN",string:"tekst",number:"broj",boolean:"boolean",array:"niz",object:"objekt",set:"skup",file:"datoteka",date:"datum",bigint:"bigint",symbol:"simbol",undefined:"undefined",null:"null",function:"funkcija",map:"mapa"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f,_g,_h2;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Neispravan unos: o\u010Dekuje se instanceof ${issue2.expected}, a primljeno je ${received}`:`Neispravan unos: o\u010Dekuje se ${expected}, a primljeno je ${received}`}case"invalid_value":return issue2.values.length===1?`Neispravna vrijednost: o\u010Dekivano ${stringifyPrimitive(issue2.values[0])}`:`Neispravna opcija: o\u010Dekivano jedno od ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin),origin2=(_c2=TypeDictionary[issue2.origin])!=null?_c2:issue2.origin;return sizing?`Preveliko: o\u010Dekivano da ${origin2!=null?origin2:"vrijednost"} ima ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elemenata"}`:`Preveliko: o\u010Dekivano da ${origin2!=null?origin2:"vrijednost"} bude ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin),origin2=(_e=TypeDictionary[issue2.origin])!=null?_e:issue2.origin;return sizing?`Premalo: o\u010Dekivano da ${origin2} ima ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Premalo: o\u010Dekivano da ${origin2} bude ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Neispravan tekst: mora zapo\u010Dinjati s "${_issue.prefix}"`:_issue.format==="ends_with"?`Neispravan tekst: mora zavr\u0161avati s "${_issue.suffix}"`:_issue.format==="includes"?`Neispravan tekst: mora sadr\u017Eavati "${_issue.includes}"`:_issue.format==="regex"?`Neispravan tekst: mora odgovarati uzorku ${_issue.pattern}`:`Neispravna ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Neispravan broj: mora biti vi\u0161ekratnik od ${issue2.divisor}`;case"unrecognized_keys":return`Neprepoznat${issue2.keys.length>1?"i klju\u010Devi":" klju\u010D"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Neispravan klju\u010D u ${(_g=TypeDictionary[issue2.origin])!=null?_g:issue2.origin}`;case"invalid_union":return"Neispravan unos";case"invalid_element":return`Neispravna vrijednost u ${(_h2=TypeDictionary[issue2.origin])!=null?_h2:issue2.origin}`;default:return"Neispravan unos"}}};function hr_default(){return{localeError:error18()}}var error19=()=>{let Sizable={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},TypeDictionary={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${issue2.expected}, a kapott \xE9rt\xE9k ${received}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${expected}, a kapott \xE9rt\xE9k ${received}`}case"invalid_value":return issue2.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${stringifyPrimitive(issue2.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`T\xFAl nagy: ${(_c2=issue2.origin)!=null?_c2:"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${(_e=issue2.origin)!=null?_e:"\xE9rt\xE9k"} t\xFAl nagy: ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} m\xE9rete t\xFAl kicsi ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${issue2.origin} t\xFAl kicsi ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\xC9rv\xE9nytelen string: "${_issue.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:_issue.format==="ends_with"?`\xC9rv\xE9nytelen string: "${_issue.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:_issue.format==="includes"?`\xC9rv\xE9nytelen string: "${_issue.includes}" \xE9rt\xE9ket kell tartalmaznia`:_issue.format==="regex"?`\xC9rv\xE9nytelen string: ${_issue.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${issue2.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${issue2.keys.length>1?"s":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${issue2.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${issue2.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}};function hu_default(){return{localeError:error19()}}function getArmenianPlural(count,one,many){return Math.abs(count)===1?one:many}function withDefiniteArticle(word){if(!word)return"";let vowels=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],lastChar=word[word.length-1];return word+(vowels.includes(lastChar)?"\u0576":"\u0568")}var error20=()=>{let Sizable={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},TypeDictionary={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return issue2=>{var _a9,_b3,_c2,_d,_e;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${issue2.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${received}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${received}`}case"invalid_value":return issue2.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${stringifyPrimitive(issue2.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);if(sizing){let maxValue=Number(issue2.maximum),unit=getArmenianPlural(maxValue,sizing.unit.one,sizing.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle((_c2=issue2.origin)!=null?_c2:"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${adj}${issue2.maximum.toString()} ${unit}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle((_d=issue2.origin)!=null?_d:"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);if(sizing){let minValue=Number(issue2.minimum),unit=getArmenianPlural(minValue,sizing.unit.one,sizing.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle(issue2.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${adj}${issue2.minimum.toString()} ${unit}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${withDefiniteArticle(issue2.origin)} \u056C\u056B\u0576\u056B ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${_issue.prefix}"-\u0578\u057E`:_issue.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${_issue.suffix}"-\u0578\u057E`:_issue.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${_issue.includes}"`:_issue.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${_issue.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${(_e=FormatDictionary[_issue.format])!=null?_e:issue2.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${issue2.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${issue2.keys.length>1?"\u0576\u0565\u0580":""}. ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${withDefiniteArticle(issue2.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${withDefiniteArticle(issue2.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}};function hy_default(){return{localeError:error20()}}var error21=()=>{let Sizable={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Input tidak valid: diharapkan instanceof ${issue2.expected}, diterima ${received}`:`Input tidak valid: diharapkan ${expected}, diterima ${received}`}case"invalid_value":return issue2.values.length===1?`Input tidak valid: diharapkan ${stringifyPrimitive(issue2.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Terlalu besar: diharapkan ${(_c2=issue2.origin)!=null?_c2:"value"} memiliki ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elemen"}`:`Terlalu besar: diharapkan ${(_e=issue2.origin)!=null?_e:"value"} menjadi ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Terlalu kecil: diharapkan ${issue2.origin} memiliki ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Terlalu kecil: diharapkan ${issue2.origin} menjadi ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`String tidak valid: harus dimulai dengan "${_issue.prefix}"`:_issue.format==="ends_with"?`String tidak valid: harus berakhir dengan "${_issue.suffix}"`:_issue.format==="includes"?`String tidak valid: harus menyertakan "${_issue.includes}"`:_issue.format==="regex"?`String tidak valid: harus sesuai pola ${_issue.pattern}`:`${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${issue2.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${issue2.keys.length>1?"s":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${issue2.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${issue2.origin}`;default:return"Input tidak valid"}}};function id_default(){return{localeError:error21()}}var error22=()=>{let Sizable={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},TypeDictionary={nan:"NaN",number:"n\xFAmer",array:"fylki"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${received} \xFEar sem \xE1 a\xF0 vera instanceof ${issue2.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${received} \xFEar sem \xE1 a\xF0 vera ${expected}`}case"invalid_value":return issue2.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${stringifyPrimitive(issue2.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${(_c2=issue2.origin)!=null?_c2:"gildi"} hafi ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${(_e=issue2.origin)!=null?_e:"gildi"} s\xE9 ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${issue2.origin} hafi ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${issue2.origin} s\xE9 ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${_issue.prefix}"`:_issue.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${_issue.suffix}"`:_issue.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${_issue.includes}"`:_issue.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${_issue.pattern}`:`Rangt ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${issue2.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${issue2.keys.length>1?"ir lyklar":"ur lykill"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${issue2.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${issue2.origin}`;default:return"Rangt gildi"}}};function is_default(){return{localeError:error22()}}var error23=()=>{let Sizable={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},TypeDictionary={nan:"NaN",number:"numero",array:"vettore"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Input non valido: atteso instanceof ${issue2.expected}, ricevuto ${received}`:`Input non valido: atteso ${expected}, ricevuto ${received}`}case"invalid_value":return issue2.values.length===1?`Input non valido: atteso ${stringifyPrimitive(issue2.values[0])}`:`Opzione non valida: atteso uno tra ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Troppo grande: ${(_c2=issue2.origin)!=null?_c2:"valore"} deve avere ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elementi"}`:`Troppo grande: ${(_e=issue2.origin)!=null?_e:"valore"} deve essere ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Troppo piccolo: ${issue2.origin} deve avere ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Troppo piccolo: ${issue2.origin} deve essere ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Stringa non valida: deve iniziare con "${_issue.prefix}"`:_issue.format==="ends_with"?`Stringa non valida: deve terminare con "${_issue.suffix}"`:_issue.format==="includes"?`Stringa non valida: deve includere "${_issue.includes}"`:_issue.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${_issue.pattern}`:`Input non valido: ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${issue2.divisor}`;case"unrecognized_keys":return`Chiav${issue2.keys.length>1?"i":"e"} non riconosciut${issue2.keys.length>1?"e":"a"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${issue2.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${issue2.origin}`;default:return"Input non valido"}}};function it_default(){return{localeError:error23()}}var error24=()=>{let Sizable={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},TypeDictionary={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${issue2.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${received}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${received}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return issue2.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${stringifyPrimitive(issue2.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${joinValues(issue2.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let adj=issue2.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",sizing=getSizing(issue2.origin);return sizing?`\u5927\u304D\u3059\u304E\u308B\u5024: ${(_c2=issue2.origin)!=null?_c2:"\u5024"}\u306F${issue2.maximum.toString()}${(_d=sizing.unit)!=null?_d:"\u8981\u7D20"}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${(_e=issue2.origin)!=null?_e:"\u5024"}\u306F${issue2.maximum.toString()}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let adj=issue2.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",sizing=getSizing(issue2.origin);return sizing?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${issue2.origin}\u306F${issue2.minimum.toString()}${sizing.unit}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${issue2.origin}\u306F${issue2.minimum.toString()}${adj}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${_issue.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:_issue.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${_issue.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:_issue.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${_issue.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:_issue.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${_issue.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${issue2.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${issue2.keys.length>1?"\u7FA4":""}: ${joinValues(issue2.keys,"\u3001")}`;case"invalid_key":return`${issue2.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${issue2.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}};function ja_default(){return{localeError:error24()}}var error25=()=>{let Sizable={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10D5\u10D4\u10DA\u10D8",json_string:"JSON \u10D5\u10D4\u10DA\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},TypeDictionary={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10D5\u10D4\u10DA\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return issue2=>{var _a9,_b3,_c2,_d,_e;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${issue2.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${received}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${received}`}case"invalid_value":return issue2.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${stringifyPrimitive(issue2.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${joinValues(issue2.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${(_c2=issue2.origin)!=null?_c2:"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${sizing.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${(_d=issue2.origin)!=null?_d:"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${issue2.origin} \u10D8\u10E7\u10DD\u10E1 ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.prefix}"-\u10D8\u10D7`:_issue.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${_issue.suffix}"-\u10D8\u10D7`:_issue.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${_issue.includes}"-\u10E1`:_issue.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D4\u10DA\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${_issue.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${(_e=FormatDictionary[_issue.format])!=null?_e:issue2.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${issue2.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${issue2.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${issue2.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${issue2.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}};function ka_default(){return{localeError:error25()}}var error26=()=>{let Sizable={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},TypeDictionary={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${issue2.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${received}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${received}`}case"invalid_value":return issue2.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${stringifyPrimitive(issue2.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${(_c2=issue2.origin)!=null?_c2:"\u178F\u1798\u17D2\u179B\u17C3"} ${adj} ${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${(_e=issue2.origin)!=null?_e:"\u178F\u1798\u17D2\u179B\u17C3"} ${adj} ${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin} ${adj} ${issue2.minimum.toString()} ${sizing.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${issue2.origin} ${adj} ${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${_issue.prefix}"`:_issue.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${_issue.suffix}"`:_issue.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${_issue.includes}"`:_issue.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${_issue.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${issue2.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${issue2.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${issue2.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}};function km_default(){return{localeError:error26()}}function kh_default(){return km_default()}var error27=()=>{let Sizable={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f,_g,_h2,_i;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${issue2.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${received}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${received}\uC785\uB2C8\uB2E4`}case"invalid_value":return issue2.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${stringifyPrimitive(issue2.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${joinValues(issue2.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let adj=issue2.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",suffix=adj==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",sizing=getSizing(issue2.origin),unit=(_c2=sizing==null?void 0:sizing.unit)!=null?_c2:"\uC694\uC18C";return sizing?`${(_d=issue2.origin)!=null?_d:"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()}${unit} ${adj}${suffix}`:`${(_e=issue2.origin)!=null?_e:"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${issue2.maximum.toString()} ${adj}${suffix}`}case"too_small":{let adj=issue2.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",suffix=adj==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",sizing=getSizing(issue2.origin),unit=(_f=sizing==null?void 0:sizing.unit)!=null?_f:"\uC694\uC18C";return sizing?`${(_g=issue2.origin)!=null?_g:"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()}${unit} ${adj}${suffix}`:`${(_h2=issue2.origin)!=null?_h2:"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${issue2.minimum.toString()} ${adj}${suffix}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:_issue.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:_issue.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${_issue.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:_issue.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${_issue.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${(_i=FormatDictionary[_issue.format])!=null?_i:issue2.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${issue2.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${issue2.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${issue2.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}};function ko_default(){return{localeError:error27()}}var capitalizeFirstCharacter=text2=>text2.charAt(0).toUpperCase()+text2.slice(1);function getUnitTypeFromNumber(number4){let abs=Math.abs(number4),last=abs%10,last2=abs%100;return last2>=11&&last2<=19||last===0?"many":last===1?"one":"few"}var error28=()=>{let Sizable={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function getSizing(origin2,unitType,inclusive,targetShouldBe){var _a9;let result=(_a9=Sizable[origin2])!=null?_a9:null;return result===null?result:{unit:result.unit[unitType],verb:result.verb[targetShouldBe][inclusive?"inclusive":"notInclusive"]}}let FormatDictionary={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},TypeDictionary={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f,_g,_h2,_i,_j,_k,_l,_m,_n,_o;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Gautas tipas ${received}, o tik\u0117tasi - instanceof ${issue2.expected}`:`Gautas tipas ${received}, o tik\u0117tasi - ${expected}`}case"invalid_value":return issue2.values.length===1?`Privalo b\u016Bti ${stringifyPrimitive(issue2.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${joinValues(issue2.values,"|")} pasirinkim\u0173`;case"too_big":{let origin2=(_c2=TypeDictionary[issue2.origin])!=null?_c2:issue2.origin,sizing=getSizing(issue2.origin,getUnitTypeFromNumber(Number(issue2.maximum)),(_d=issue2.inclusive)!=null?_d:!1,"smaller");if(sizing!=null&&sizing.verb)return`${capitalizeFirstCharacter((_e=origin2!=null?origin2:issue2.origin)!=null?_e:"reik\u0161m\u0117")} ${sizing.verb} ${issue2.maximum.toString()} ${(_f=sizing.unit)!=null?_f:"element\u0173"}`;let adj=issue2.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${capitalizeFirstCharacter((_g=origin2!=null?origin2:issue2.origin)!=null?_g:"reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.maximum.toString()} ${sizing==null?void 0:sizing.unit}`}case"too_small":{let origin2=(_h2=TypeDictionary[issue2.origin])!=null?_h2:issue2.origin,sizing=getSizing(issue2.origin,getUnitTypeFromNumber(Number(issue2.minimum)),(_i=issue2.inclusive)!=null?_i:!1,"bigger");if(sizing!=null&&sizing.verb)return`${capitalizeFirstCharacter((_j=origin2!=null?origin2:issue2.origin)!=null?_j:"reik\u0161m\u0117")} ${sizing.verb} ${issue2.minimum.toString()} ${(_k=sizing.unit)!=null?_k:"element\u0173"}`;let adj=issue2.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${capitalizeFirstCharacter((_l=origin2!=null?origin2:issue2.origin)!=null?_l:"reik\u0161m\u0117")} turi b\u016Bti ${adj} ${issue2.minimum.toString()} ${sizing==null?void 0:sizing.unit}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${_issue.prefix}"`:_issue.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${_issue.suffix}"`:_issue.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${_issue.includes}"`:_issue.format==="regex"?`Eilut\u0117 privalo atitikti ${_issue.pattern}`:`Neteisingas ${(_m=FormatDictionary[_issue.format])!=null?_m:issue2.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${issue2.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${issue2.keys.length>1?"i":"as"} rakt${issue2.keys.length>1?"ai":"as"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let origin2=(_n=TypeDictionary[issue2.origin])!=null?_n:issue2.origin;return`${capitalizeFirstCharacter((_o=origin2!=null?origin2:issue2.origin)!=null?_o:"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}};function lt_default(){return{localeError:error28()}}var error29=()=>{let Sizable={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},TypeDictionary={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${issue2.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${received}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${received}`}case"invalid_value":return issue2.values.length===1?`Invalid input: expected ${stringifyPrimitive(issue2.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${(_c2=issue2.origin)!=null?_c2:"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${(_e=issue2.origin)!=null?_e:"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin} \u0434\u0430 \u0438\u043C\u0430 ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${issue2.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${_issue.prefix}"`:_issue.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${_issue.suffix}"`:_issue.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${_issue.includes}"`:_issue.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${_issue.pattern}`:`Invalid ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${issue2.divisor}`;case"unrecognized_keys":return`${issue2.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${issue2.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${issue2.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}};function mk_default(){return{localeError:error29()}}var error30=()=>{let Sizable={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},TypeDictionary={nan:"NaN",number:"nombor"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Input tidak sah: dijangka instanceof ${issue2.expected}, diterima ${received}`:`Input tidak sah: dijangka ${expected}, diterima ${received}`}case"invalid_value":return issue2.values.length===1?`Input tidak sah: dijangka ${stringifyPrimitive(issue2.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Terlalu besar: dijangka ${(_c2=issue2.origin)!=null?_c2:"nilai"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elemen"}`:`Terlalu besar: dijangka ${(_e=issue2.origin)!=null?_e:"nilai"} adalah ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Terlalu kecil: dijangka ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Terlalu kecil: dijangka ${issue2.origin} adalah ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`String tidak sah: mesti bermula dengan "${_issue.prefix}"`:_issue.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${_issue.suffix}"`:_issue.format==="includes"?`String tidak sah: mesti mengandungi "${_issue.includes}"`:_issue.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${_issue.pattern}`:`${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${issue2.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${issue2.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${issue2.origin}`;default:return"Input tidak sah"}}};function ms_default(){return{localeError:error30()}}var error31=()=>{let Sizable={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},TypeDictionary={nan:"NaN",number:"getal"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Ongeldige invoer: verwacht instanceof ${issue2.expected}, ontving ${received}`:`Ongeldige invoer: verwacht ${expected}, ontving ${received}`}case"invalid_value":return issue2.values.length===1?`Ongeldige invoer: verwacht ${stringifyPrimitive(issue2.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin),longName=issue2.origin==="date"?"laat":issue2.origin==="string"?"lang":"groot";return sizing?`Te ${longName}: verwacht dat ${(_c2=issue2.origin)!=null?_c2:"waarde"} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elementen"} ${sizing.verb}`:`Te ${longName}: verwacht dat ${(_e=issue2.origin)!=null?_e:"waarde"} ${adj}${issue2.maximum.toString()} is`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin),shortName=issue2.origin==="date"?"vroeg":issue2.origin==="string"?"kort":"klein";return sizing?`Te ${shortName}: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`:`Te ${shortName}: verwacht dat ${issue2.origin} ${adj}${issue2.minimum.toString()} is`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Ongeldige tekst: moet met "${_issue.prefix}" beginnen`:_issue.format==="ends_with"?`Ongeldige tekst: moet op "${_issue.suffix}" eindigen`:_issue.format==="includes"?`Ongeldige tekst: moet "${_issue.includes}" bevatten`:_issue.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${_issue.pattern}`:`Ongeldig: ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${issue2.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${issue2.keys.length>1?"s":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${issue2.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${issue2.origin}`;default:return"Ongeldige invoer"}}};function nl_default(){return{localeError:error31()}}var error32=()=>{let Sizable={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},TypeDictionary={nan:"NaN",number:"tall",array:"liste"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Ugyldig input: forventet instanceof ${issue2.expected}, fikk ${received}`:`Ugyldig input: forventet ${expected}, fikk ${received}`}case"invalid_value":return issue2.values.length===1?`Ugyldig verdi: forventet ${stringifyPrimitive(issue2.values[0])}`:`Ugyldig valg: forventet en av ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`For stor(t): forventet ${(_c2=issue2.origin)!=null?_c2:"value"} til \xE5 ha ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elementer"}`:`For stor(t): forventet ${(_e=issue2.origin)!=null?_e:"value"} til \xE5 ha ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`For lite(n): forventet ${issue2.origin} til \xE5 ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`For lite(n): forventet ${issue2.origin} til \xE5 ha ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${_issue.prefix}"`:_issue.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${_issue.suffix}"`:_issue.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${_issue.includes}"`:_issue.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${_issue.pattern}`:`Ugyldig ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${issue2.divisor}`;case"unrecognized_keys":return`${issue2.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${issue2.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${issue2.origin}`;default:return"Ugyldig input"}}};function no_default(){return{localeError:error32()}}var error33=()=>{let Sizable={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},TypeDictionary={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`F\xE2sit giren: umulan instanceof ${issue2.expected}, al\u0131nan ${received}`:`F\xE2sit giren: umulan ${expected}, al\u0131nan ${received}`}case"invalid_value":return issue2.values.length===1?`F\xE2sit giren: umulan ${stringifyPrimitive(issue2.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Fazla b\xFCy\xFCk: ${(_c2=issue2.origin)!=null?_c2:"value"}, ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${(_e=issue2.origin)!=null?_e:"value"}, ${adj}${issue2.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Fazla k\xFC\xE7\xFCk: ${issue2.origin}, ${adj}${issue2.minimum.toString()} ${sizing.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${issue2.origin}, ${adj}${issue2.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`F\xE2sit metin: "${_issue.prefix}" ile ba\u015Flamal\u0131.`:_issue.format==="ends_with"?`F\xE2sit metin: "${_issue.suffix}" ile bitmeli.`:_issue.format==="includes"?`F\xE2sit metin: "${_issue.includes}" ihtiv\xE2 etmeli.`:_issue.format==="regex"?`F\xE2sit metin: ${_issue.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${issue2.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${issue2.keys.length>1?"s":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`${issue2.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${issue2.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}};function ota_default(){return{localeError:error33()}}var error34=()=>{let Sizable={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},TypeDictionary={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${issue2.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${received} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${received} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return issue2.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${stringifyPrimitive(issue2.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${joinValues(issue2.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${(_c2=issue2.origin)!=null?_c2:"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${(_e=issue2.origin)!=null?_e:"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${adj}${issue2.maximum.toString()} \u0648\u064A`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${issue2.origin} \u0628\u0627\u06CC\u062F ${adj}${issue2.minimum.toString()} \u0648\u064A`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${_issue.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:_issue.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${_issue.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:_issue.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${_issue.includes}" \u0648\u0644\u0631\u064A`:_issue.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${_issue.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${issue2.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${issue2.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${issue2.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${issue2.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}};function ps_default(){return{localeError:error34()}}var error35=()=>{let Sizable={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},TypeDictionary={nan:"NaN",number:"liczba",array:"tablica"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f,_g,_h2,_i;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${issue2.expected}, otrzymano ${received}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${expected}, otrzymano ${received}`}case"invalid_value":return issue2.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${stringifyPrimitive(issue2.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${(_c2=issue2.origin)!=null?_c2:"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${(_e=issue2.origin)!=null?_e:"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${(_f=issue2.origin)!=null?_f:"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${adj}${issue2.minimum.toString()} ${(_g=sizing.unit)!=null?_g:"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${(_h2=issue2.origin)!=null?_h2:"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${_issue.prefix}"`:_issue.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${_issue.suffix}"`:_issue.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${_issue.includes}"`:_issue.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${_issue.pattern}`:`Nieprawid\u0142ow(y/a/e) ${(_i=FormatDictionary[_issue.format])!=null?_i:issue2.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${issue2.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${issue2.keys.length>1?"s":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${issue2.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${issue2.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}};function pl_default(){return{localeError:error35()}}var error36=()=>{let Sizable={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},TypeDictionary={nan:"NaN",number:"n\xFAmero",null:"nulo"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Tipo inv\xE1lido: esperado instanceof ${issue2.expected}, recebido ${received}`:`Tipo inv\xE1lido: esperado ${expected}, recebido ${received}`}case"invalid_value":return issue2.values.length===1?`Entrada inv\xE1lida: esperado ${stringifyPrimitive(issue2.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Muito grande: esperado que ${(_c2=issue2.origin)!=null?_c2:"valor"} tivesse ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elementos"}`:`Muito grande: esperado que ${(_e=issue2.origin)!=null?_e:"valor"} fosse ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Muito pequeno: esperado que ${issue2.origin} tivesse ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Muito pequeno: esperado que ${issue2.origin} fosse ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${_issue.prefix}"`:_issue.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${_issue.suffix}"`:_issue.format==="includes"?`Texto inv\xE1lido: deve incluir "${_issue.includes}"`:_issue.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${_issue.pattern}`:`${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${issue2.divisor}`;case"unrecognized_keys":return`Chave${issue2.keys.length>1?"s":""} desconhecida${issue2.keys.length>1?"s":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${issue2.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${issue2.origin}`;default:return"Campo inv\xE1lido"}}};function pt_default(){return{localeError:error36()}}var error37=()=>{let Sizable={string:{unit:"caractere",verb:"s\u0103 aib\u0103"},file:{unit:"octe\u021Bi",verb:"s\u0103 aib\u0103"},array:{unit:"elemente",verb:"s\u0103 aib\u0103"},set:{unit:"elemente",verb:"s\u0103 aib\u0103"},map:{unit:"intr\u0103ri",verb:"s\u0103 aib\u0103"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"intrare",email:"adres\u0103 de email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"dat\u0103 \u0219i or\u0103 ISO",date:"dat\u0103 ISO",time:"or\u0103 ISO",duration:"durat\u0103 ISO",ipv4:"adres\u0103 IPv4",ipv6:"adres\u0103 IPv6",mac:"adres\u0103 MAC",cidrv4:"interval IPv4",cidrv6:"interval IPv6",base64:"\u0219ir codat base64",base64url:"\u0219ir codat base64url",json_string:"\u0219ir JSON",e164:"num\u0103r E.164",jwt:"JWT",template_literal:"intrare"},TypeDictionary={nan:"NaN",string:"\u0219ir",number:"num\u0103r",boolean:"boolean",function:"func\u021Bie",array:"matrice",object:"obiect",undefined:"nedefinit",symbol:"simbol",bigint:"num\u0103r mare",void:"void",never:"never",map:"hart\u0103",set:"set"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return`Intrare invalid\u0103: a\u0219teptat ${expected}, primit ${received}`}case"invalid_value":return issue2.values.length===1?`Intrare invalid\u0103: a\u0219teptat ${stringifyPrimitive(issue2.values[0])}`:`Op\u021Biune invalid\u0103: a\u0219teptat una dintre ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Prea mare: a\u0219teptat ca ${(_c2=issue2.origin)!=null?_c2:"valoarea"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elemente"}`:`Prea mare: a\u0219teptat ca ${(_e=issue2.origin)!=null?_e:"valoarea"} s\u0103 fie ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Prea mic: a\u0219teptat ca ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Prea mic: a\u0219teptat ca ${issue2.origin} s\u0103 fie ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u0218ir invalid: trebuie s\u0103 \xEEnceap\u0103 cu "${_issue.prefix}"`:_issue.format==="ends_with"?`\u0218ir invalid: trebuie s\u0103 se termine cu "${_issue.suffix}"`:_issue.format==="includes"?`\u0218ir invalid: trebuie s\u0103 includ\u0103 "${_issue.includes}"`:_issue.format==="regex"?`\u0218ir invalid: trebuie s\u0103 se potriveasc\u0103 cu modelul ${_issue.pattern}`:`Format invalid: ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Num\u0103r invalid: trebuie s\u0103 fie multiplu de ${issue2.divisor}`;case"unrecognized_keys":return`Chei nerecunoscute: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Cheie invalid\u0103 \xEEn ${issue2.origin}`;case"invalid_union":return"Intrare invalid\u0103";case"invalid_element":return`Valoare invalid\u0103 \xEEn ${issue2.origin}`;default:return"Intrare invalid\u0103"}}};function ro_default(){return{localeError:error37()}}function getRussianPlural(count,one,few,many){let absCount=Math.abs(count),lastDigit=absCount%10,lastTwoDigits=absCount%100;return lastTwoDigits>=11&&lastTwoDigits<=19?many:lastDigit===1?one:lastDigit>=2&&lastDigit<=4?few:many}var error38=()=>{let Sizable={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},TypeDictionary={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return issue2=>{var _a9,_b3,_c2,_d,_e;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${issue2.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${received}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${received}`}case"invalid_value":return issue2.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${stringifyPrimitive(issue2.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);if(sizing){let maxValue=Number(issue2.maximum),unit=getRussianPlural(maxValue,sizing.unit.one,sizing.unit.few,sizing.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${(_c2=issue2.origin)!=null?_c2:"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${adj}${issue2.maximum.toString()} ${unit}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${(_d=issue2.origin)!=null?_d:"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);if(sizing){let minValue=Number(issue2.minimum),unit=getRussianPlural(minValue,sizing.unit.one,sizing.unit.few,sizing.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${issue2.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${adj}${issue2.minimum.toString()} ${unit}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${issue2.origin} \u0431\u0443\u0434\u0435\u0442 ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${_issue.prefix}"`:_issue.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${_issue.suffix}"`:_issue.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${_issue.includes}"`:_issue.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${(_e=FormatDictionary[_issue.format])!=null?_e:issue2.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${issue2.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${issue2.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${issue2.keys.length>1?"\u0438":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${issue2.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${issue2.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}};function ru_default(){return{localeError:error38()}}var error39=()=>{let Sizable={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},TypeDictionary={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${issue2.expected}, prejeto ${received}`:`Neveljaven vnos: pri\u010Dakovano ${expected}, prejeto ${received}`}case"invalid_value":return issue2.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${stringifyPrimitive(issue2.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Preveliko: pri\u010Dakovano, da bo ${(_c2=issue2.origin)!=null?_c2:"vrednost"} imelo ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${(_e=issue2.origin)!=null?_e:"vrednost"} ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Premajhno: pri\u010Dakovano, da bo ${issue2.origin} imelo ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Premajhno: pri\u010Dakovano, da bo ${issue2.origin} ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${_issue.prefix}"`:_issue.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${_issue.suffix}"`:_issue.format==="includes"?`Neveljaven niz: mora vsebovati "${_issue.includes}"`:_issue.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${_issue.pattern}`:`Neveljaven ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${issue2.divisor}`;case"unrecognized_keys":return`Neprepoznan${issue2.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${issue2.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${issue2.origin}`;default:return"Neveljaven vnos"}}};function sl_default(){return{localeError:error39()}}var error40=()=>{let Sizable={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},TypeDictionary={nan:"NaN",number:"antal",array:"lista"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f,_g,_h2,_i,_j;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${issue2.expected}, fick ${received}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${expected}, fick ${received}`}case"invalid_value":return issue2.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${stringifyPrimitive(issue2.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`F\xF6r stor(t): f\xF6rv\xE4ntade ${(_c2=issue2.origin)!=null?_c2:"v\xE4rdet"} att ha ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${(_e=issue2.origin)!=null?_e:"v\xE4rdet"} att ha ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`F\xF6r lite(t): f\xF6rv\xE4ntade ${(_f=issue2.origin)!=null?_f:"v\xE4rdet"} att ha ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${(_g=issue2.origin)!=null?_g:"v\xE4rdet"} att ha ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${_issue.prefix}"`:_issue.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${_issue.suffix}"`:_issue.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${_issue.includes}"`:_issue.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${_issue.pattern}"`:`Ogiltig(t) ${(_h2=FormatDictionary[_issue.format])!=null?_h2:issue2.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${issue2.divisor}`;case"unrecognized_keys":return`${issue2.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${(_i=issue2.origin)!=null?_i:"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${(_j=issue2.origin)!=null?_j:"v\xE4rdet"}`;default:return"Ogiltig input"}}};function sv_default(){return{localeError:error40()}}var error41=()=>{let Sizable={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},TypeDictionary={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${issue2.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${received}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${received}`}case"invalid_value":return issue2.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${stringifyPrimitive(issue2.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${joinValues(issue2.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${(_c2=issue2.origin)!=null?_c2:"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${(_e=issue2.origin)!=null?_e:"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${adj}${issue2.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${issue2.origin} ${adj}${issue2.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:_issue.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:_issue.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${_issue.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:_issue.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${_issue.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${issue2.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${issue2.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`${issue2.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${issue2.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}};function ta_default(){return{localeError:error41()}}var error42=()=>{let Sizable={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},TypeDictionary={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${issue2.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${received}`}case"invalid_value":return issue2.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${stringifyPrimitive(issue2.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",sizing=getSizing(issue2.origin);return sizing?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${(_c2=issue2.origin)!=null?_c2:"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${(_e=issue2.origin)!=null?_e:"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",sizing=getSizing(issue2.origin);return sizing?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.minimum.toString()} ${sizing.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${issue2.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${adj} ${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${_issue.prefix}"`:_issue.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${_issue.suffix}"`:_issue.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${_issue.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:_issue.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${_issue.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${issue2.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${issue2.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${issue2.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}};function th_default(){return{localeError:error42()}}var error43=()=>{let Sizable={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${issue2.expected}, al\u0131nan ${received}`:`Ge\xE7ersiz de\u011Fer: beklenen ${expected}, al\u0131nan ${received}`}case"invalid_value":return issue2.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${stringifyPrimitive(issue2.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\xC7ok b\xFCy\xFCk: beklenen ${(_c2=issue2.origin)!=null?_c2:"de\u011Fer"} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${(_e=issue2.origin)!=null?_e:"de\u011Fer"} ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\xC7ok k\xFC\xE7\xFCk: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${issue2.origin} ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Ge\xE7ersiz metin: "${_issue.prefix}" ile ba\u015Flamal\u0131`:_issue.format==="ends_with"?`Ge\xE7ersiz metin: "${_issue.suffix}" ile bitmeli`:_issue.format==="includes"?`Ge\xE7ersiz metin: "${_issue.includes}" i\xE7ermeli`:_issue.format==="regex"?`Ge\xE7ersiz metin: ${_issue.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${issue2.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${issue2.keys.length>1?"lar":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`${issue2.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${issue2.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}};function tr_default(){return{localeError:error43()}}var error44=()=>{let Sizable={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},TypeDictionary={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${issue2.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${received}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${received}`}case"invalid_value":return issue2.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${stringifyPrimitive(issue2.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${(_c2=issue2.origin)!=null?_c2:"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${(_e=issue2.origin)!=null?_e:"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${issue2.origin} \u0431\u0443\u0434\u0435 ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${_issue.prefix}"`:_issue.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${_issue.suffix}"`:_issue.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${_issue.includes}"`:_issue.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${_issue.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${issue2.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${issue2.keys.length>1?"\u0456":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${issue2.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${issue2.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}};function uk_default(){return{localeError:error44()}}function ua_default(){return uk_default()}var error45=()=>{let Sizable={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},TypeDictionary={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${issue2.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${received} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${received} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return issue2.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${stringifyPrimitive(issue2.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${joinValues(issue2.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${(_c2=issue2.origin)!=null?_c2:"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${(_e=issue2.origin)!=null?_e:"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${adj}${issue2.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${issue2.origin} \u06A9\u06D2 ${adj}${issue2.minimum.toString()} ${sizing.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${issue2.origin} \u06A9\u0627 ${adj}${issue2.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:_issue.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:_issue.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${_issue.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:_issue.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${_issue.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${issue2.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${issue2.keys.length>1?"\u0632":""}: ${joinValues(issue2.keys,"\u060C ")}`;case"invalid_key":return`${issue2.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${issue2.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}};function ur_default(){return{localeError:error45()}}var error46=()=>{let Sizable={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"},map:{unit:"yozuv",verb:"bo\u2018lishi kerak"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},TypeDictionary={nan:"NaN",number:"raqam",array:"massiv"};return issue2=>{var _a9,_b3,_c2,_d,_e;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${issue2.expected}, qabul qilingan ${received}`:`Noto\u2018g\u2018ri kirish: kutilgan ${expected}, qabul qilingan ${received}`}case"invalid_value":return issue2.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${stringifyPrimitive(issue2.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Juda katta: kutilgan ${(_c2=issue2.origin)!=null?_c2:"qiymat"} ${adj}${issue2.maximum.toString()} ${sizing.unit} ${sizing.verb}`:`Juda katta: kutilgan ${(_d=issue2.origin)!=null?_d:"qiymat"} ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Juda kichik: kutilgan ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit} ${sizing.verb}`:`Juda kichik: kutilgan ${issue2.origin} ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${_issue.prefix}" bilan boshlanishi kerak`:_issue.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${_issue.suffix}" bilan tugashi kerak`:_issue.format==="includes"?`Noto\u2018g\u2018ri satr: "${_issue.includes}" ni o\u2018z ichiga olishi kerak`:_issue.format==="regex"?`Noto\u2018g\u2018ri satr: ${_issue.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${(_e=FormatDictionary[_issue.format])!=null?_e:issue2.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${issue2.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${issue2.keys.length>1?"lar":""}: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`${issue2.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${issue2.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}};function uz_default(){return{localeError:error46()}}var error47=()=>{let Sizable={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},TypeDictionary={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${issue2.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${received}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${received}`}case"invalid_value":return issue2.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${stringifyPrimitive(issue2.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${(_c2=issue2.origin)!=null?_c2:"gi\xE1 tr\u1ECB"} ${sizing.verb} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${(_e=issue2.origin)!=null?_e:"gi\xE1 tr\u1ECB"} ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${issue2.origin} ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${_issue.prefix}"`:_issue.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${_issue.suffix}"`:_issue.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${_issue.includes}"`:_issue.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${_issue.pattern}`:`${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${issue2.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${issue2.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${issue2.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}};function vi_default(){return{localeError:error47()}}var error48=()=>{let Sizable={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},TypeDictionary={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${issue2.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${received}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${received}`}case"invalid_value":return issue2.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${stringifyPrimitive(issue2.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${(_c2=issue2.origin)!=null?_c2:"\u503C"} ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${(_e=issue2.origin)!=null?_e:"\u503C"} ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${issue2.origin} ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${issue2.origin} ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${_issue.prefix}" \u5F00\u5934`:_issue.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${_issue.suffix}" \u7ED3\u5C3E`:_issue.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${_issue.includes}"`:_issue.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${_issue.pattern}`:`\u65E0\u6548${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${issue2.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`${issue2.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${issue2.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}};function zh_CN_default(){return{localeError:error48()}}var error49=()=>{let Sizable={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},TypeDictionary={nan:"NaN"};return issue2=>{var _a9,_b3,_c2,_d,_e,_f;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${issue2.expected}\uFF0C\u4F46\u6536\u5230 ${received}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${expected}\uFF0C\u4F46\u6536\u5230 ${received}`}case"invalid_value":return issue2.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${stringifyPrimitive(issue2.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${(_c2=issue2.origin)!=null?_c2:"\u503C"} \u61C9\u70BA ${adj}${issue2.maximum.toString()} ${(_d=sizing.unit)!=null?_d:"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${(_e=issue2.origin)!=null?_e:"\u503C"} \u61C9\u70BA ${adj}${issue2.maximum.toString()}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${issue2.origin} \u61C9\u70BA ${adj}${issue2.minimum.toString()} ${sizing.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${issue2.origin} \u61C9\u70BA ${adj}${issue2.minimum.toString()}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${_issue.prefix}" \u958B\u982D`:_issue.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${_issue.suffix}" \u7D50\u5C3E`:_issue.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${_issue.includes}"`:_issue.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${_issue.pattern}`:`\u7121\u6548\u7684 ${(_f=FormatDictionary[_issue.format])!=null?_f:issue2.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${issue2.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${issue2.keys.length>1?"\u5011":""}\uFF1A${joinValues(issue2.keys,"\u3001")}`;case"invalid_key":return`${issue2.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${issue2.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}};function zh_TW_default(){return{localeError:error49()}}var error50=()=>{let Sizable={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function getSizing(origin2){var _a9;return(_a9=Sizable[origin2])!=null?_a9:null}let FormatDictionary={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},TypeDictionary={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return issue2=>{var _a9,_b3,_c2,_d;switch(issue2.code){case"invalid_type":{let expected=(_a9=TypeDictionary[issue2.expected])!=null?_a9:issue2.expected,receivedType=parsedType(issue2.input),received=(_b3=TypeDictionary[receivedType])!=null?_b3:receivedType;return/^[A-Z]/.test(issue2.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${issue2.expected}, \xE0m\u1ECD\u0300 a r\xED ${received}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${expected}, \xE0m\u1ECD\u0300 a r\xED ${received}`}case"invalid_value":return issue2.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${stringifyPrimitive(issue2.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${joinValues(issue2.values,"|")}`;case"too_big":{let adj=issue2.inclusive?"<=":"<",sizing=getSizing(issue2.origin);return sizing?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${(_c2=issue2.origin)!=null?_c2:"iye"} ${sizing.verb} ${adj}${issue2.maximum} ${sizing.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${adj}${issue2.maximum}`}case"too_small":{let adj=issue2.inclusive?">=":">",sizing=getSizing(issue2.origin);return sizing?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${issue2.origin} ${sizing.verb} ${adj}${issue2.minimum} ${sizing.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${adj}${issue2.minimum}`}case"invalid_format":{let _issue=issue2;return _issue.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${_issue.prefix}"`:_issue.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${_issue.suffix}"`:_issue.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${_issue.includes}"`:_issue.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${_issue.pattern}`:`A\u1E63\xEC\u1E63e: ${(_d=FormatDictionary[_issue.format])!=null?_d:issue2.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${issue2.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${joinValues(issue2.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${issue2.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${issue2.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}};function yo_default(){return{localeError:error50()}}var _a7,$output=Symbol("ZodOutput"),$input=Symbol("ZodInput"),$ZodRegistry=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(schema,..._meta){let meta3=_meta[0];return this._map.set(schema,meta3),meta3&&typeof meta3=="object"&&"id"in meta3&&this._idmap.set(meta3.id,schema),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(schema){let meta3=this._map.get(schema);return meta3&&typeof meta3=="object"&&"id"in meta3&&this._idmap.delete(meta3.id),this._map.delete(schema),this}get(schema){var _a9;let p=schema._zod.parent;if(p){let pm={...(_a9=this.get(p))!=null?_a9:{}};delete pm.id;let f={...pm,...this._map.get(schema)};return Object.keys(f).length?f:void 0}return this._map.get(schema)}has(schema){return this._map.has(schema)}};function registry(){return new $ZodRegistry}var _a8;(_a8=(_a7=globalThis).__zod_globalRegistry)!=null||(_a7.__zod_globalRegistry=registry());var globalRegistry=globalThis.__zod_globalRegistry;function _string(Class2,params){return new Class2({type:"string",...normalizeParams(params)})}function _coercedString(Class2,params){return new Class2({type:"string",coerce:!0,...normalizeParams(params)})}function _email(Class2,params){return new Class2({type:"string",format:"email",check:"string_format",abort:!1,...normalizeParams(params)})}function _guid(Class2,params){return new Class2({type:"string",format:"guid",check:"string_format",abort:!1,...normalizeParams(params)})}function _uuid(Class2,params){return new Class2({type:"string",format:"uuid",check:"string_format",abort:!1,...normalizeParams(params)})}function _uuidv4(Class2,params){return new Class2({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...normalizeParams(params)})}function _uuidv6(Class2,params){return new Class2({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...normalizeParams(params)})}function _uuidv7(Class2,params){return new Class2({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...normalizeParams(params)})}function _url(Class2,params){return new Class2({type:"string",format:"url",check:"string_format",abort:!1,...normalizeParams(params)})}function _emoji2(Class2,params){return new Class2({type:"string",format:"emoji",check:"string_format",abort:!1,...normalizeParams(params)})}function _nanoid(Class2,params){return new Class2({type:"string",format:"nanoid",check:"string_format",abort:!1,...normalizeParams(params)})}function _cuid(Class2,params){return new Class2({type:"string",format:"cuid",check:"string_format",abort:!1,...normalizeParams(params)})}function _cuid2(Class2,params){return new Class2({type:"string",format:"cuid2",check:"string_format",abort:!1,...normalizeParams(params)})}function _ulid(Class2,params){return new Class2({type:"string",format:"ulid",check:"string_format",abort:!1,...normalizeParams(params)})}function _xid(Class2,params){return new Class2({type:"string",format:"xid",check:"string_format",abort:!1,...normalizeParams(params)})}function _ksuid(Class2,params){return new Class2({type:"string",format:"ksuid",check:"string_format",abort:!1,...normalizeParams(params)})}function _ipv4(Class2,params){return new Class2({type:"string",format:"ipv4",check:"string_format",abort:!1,...normalizeParams(params)})}function _ipv6(Class2,params){return new Class2({type:"string",format:"ipv6",check:"string_format",abort:!1,...normalizeParams(params)})}function _mac(Class2,params){return new Class2({type:"string",format:"mac",check:"string_format",abort:!1,...normalizeParams(params)})}function _cidrv4(Class2,params){return new Class2({type:"string",format:"cidrv4",check:"string_format",abort:!1,...normalizeParams(params)})}function _cidrv6(Class2,params){return new Class2({type:"string",format:"cidrv6",check:"string_format",abort:!1,...normalizeParams(params)})}function _base64(Class2,params){return new Class2({type:"string",format:"base64",check:"string_format",abort:!1,...normalizeParams(params)})}function _base64url(Class2,params){return new Class2({type:"string",format:"base64url",check:"string_format",abort:!1,...normalizeParams(params)})}function _e164(Class2,params){return new Class2({type:"string",format:"e164",check:"string_format",abort:!1,...normalizeParams(params)})}function _jwt(Class2,params){return new Class2({type:"string",format:"jwt",check:"string_format",abort:!1,...normalizeParams(params)})}var TimePrecision={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function _isoDateTime(Class2,params){return new Class2({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...normalizeParams(params)})}function _isoDate(Class2,params){return new Class2({type:"string",format:"date",check:"string_format",...normalizeParams(params)})}function _isoTime(Class2,params){return new Class2({type:"string",format:"time",check:"string_format",precision:null,...normalizeParams(params)})}function _isoDuration(Class2,params){return new Class2({type:"string",format:"duration",check:"string_format",...normalizeParams(params)})}function _number(Class2,params){return new Class2({type:"number",checks:[],...normalizeParams(params)})}function _coercedNumber(Class2,params){return new Class2({type:"number",coerce:!0,checks:[],...normalizeParams(params)})}function _int(Class2,params){return new Class2({type:"number",check:"number_format",abort:!1,format:"safeint",...normalizeParams(params)})}function _float32(Class2,params){return new Class2({type:"number",check:"number_format",abort:!1,format:"float32",...normalizeParams(params)})}function _float64(Class2,params){return new Class2({type:"number",check:"number_format",abort:!1,format:"float64",...normalizeParams(params)})}function _int32(Class2,params){return new Class2({type:"number",check:"number_format",abort:!1,format:"int32",...normalizeParams(params)})}function _uint32(Class2,params){return new Class2({type:"number",check:"number_format",abort:!1,format:"uint32",...normalizeParams(params)})}function _boolean(Class2,params){return new Class2({type:"boolean",...normalizeParams(params)})}function _coercedBoolean(Class2,params){return new Class2({type:"boolean",coerce:!0,...normalizeParams(params)})}function _bigint(Class2,params){return new Class2({type:"bigint",...normalizeParams(params)})}function _coercedBigint(Class2,params){return new Class2({type:"bigint",coerce:!0,...normalizeParams(params)})}function _int64(Class2,params){return new Class2({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...normalizeParams(params)})}function _uint64(Class2,params){return new Class2({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...normalizeParams(params)})}function _symbol(Class2,params){return new Class2({type:"symbol",...normalizeParams(params)})}function _undefined2(Class2,params){return new Class2({type:"undefined",...normalizeParams(params)})}function _null2(Class2,params){return new Class2({type:"null",...normalizeParams(params)})}function _any(Class2){return new Class2({type:"any"})}function _unknown(Class2){return new Class2({type:"unknown"})}function _never(Class2,params){return new Class2({type:"never",...normalizeParams(params)})}function _void(Class2,params){return new Class2({type:"void",...normalizeParams(params)})}function _date(Class2,params){return new Class2({type:"date",...normalizeParams(params)})}function _coercedDate(Class2,params){return new Class2({type:"date",coerce:!0,...normalizeParams(params)})}function _nan(Class2,params){return new Class2({type:"nan",...normalizeParams(params)})}function _lt(value,params){return new $ZodCheckLessThan({check:"less_than",...normalizeParams(params),value,inclusive:!1})}function _lte(value,params){return new $ZodCheckLessThan({check:"less_than",...normalizeParams(params),value,inclusive:!0})}function _gt(value,params){return new $ZodCheckGreaterThan({check:"greater_than",...normalizeParams(params),value,inclusive:!1})}function _gte(value,params){return new $ZodCheckGreaterThan({check:"greater_than",...normalizeParams(params),value,inclusive:!0})}function _positive(params){return _gt(0,params)}function _negative(params){return _lt(0,params)}function _nonpositive(params){return _lte(0,params)}function _nonnegative(params){return _gte(0,params)}function _multipleOf(value,params){return new $ZodCheckMultipleOf({check:"multiple_of",...normalizeParams(params),value})}function _maxSize(maximum,params){return new $ZodCheckMaxSize({check:"max_size",...normalizeParams(params),maximum})}function _minSize(minimum,params){return new $ZodCheckMinSize({check:"min_size",...normalizeParams(params),minimum})}function _size(size,params){return new $ZodCheckSizeEquals({check:"size_equals",...normalizeParams(params),size})}function _maxLength(maximum,params){return new $ZodCheckMaxLength({check:"max_length",...normalizeParams(params),maximum})}function _minLength(minimum,params){return new $ZodCheckMinLength({check:"min_length",...normalizeParams(params),minimum})}function _length(length,params){return new $ZodCheckLengthEquals({check:"length_equals",...normalizeParams(params),length})}function _regex(pattern,params){return new $ZodCheckRegex({check:"string_format",format:"regex",...normalizeParams(params),pattern})}function _lowercase(params){return new $ZodCheckLowerCase({check:"string_format",format:"lowercase",...normalizeParams(params)})}function _uppercase(params){return new $ZodCheckUpperCase({check:"string_format",format:"uppercase",...normalizeParams(params)})}function _includes(includes2,params){return new $ZodCheckIncludes({check:"string_format",format:"includes",...normalizeParams(params),includes:includes2})}function _startsWith(prefix,params){return new $ZodCheckStartsWith({check:"string_format",format:"starts_with",...normalizeParams(params),prefix})}function _endsWith(suffix,params){return new $ZodCheckEndsWith({check:"string_format",format:"ends_with",...normalizeParams(params),suffix})}function _property(property,schema,params){return new $ZodCheckProperty({check:"property",property,schema,...normalizeParams(params)})}function _mime(types3,params){return new $ZodCheckMimeType({check:"mime_type",mime:types3,...normalizeParams(params)})}function _overwrite(tx){return new $ZodCheckOverwrite({check:"overwrite",tx})}function _normalize(form){return _overwrite(input=>input.normalize(form))}function _trim(){return _overwrite(input=>input.trim())}function _toLowerCase(){return _overwrite(input=>input.toLowerCase())}function _toUpperCase(){return _overwrite(input=>input.toUpperCase())}function _slugify(){return _overwrite(input=>slugify(input))}function _array(Class2,element2,params){return new Class2({type:"array",element:element2,...normalizeParams(params)})}function _union(Class2,options,params){return new Class2({type:"union",options,...normalizeParams(params)})}function _xor(Class2,options,params){return new Class2({type:"union",options,inclusive:!1,...normalizeParams(params)})}function _discriminatedUnion(Class2,discriminator,options,params){return new Class2({type:"union",options,discriminator,...normalizeParams(params)})}function _intersection(Class2,left,right){return new Class2({type:"intersection",left,right})}function _tuple(Class2,items,_paramsOrRest,_params){let hasRest=_paramsOrRest instanceof $ZodType,params=hasRest?_params:_paramsOrRest,rest=hasRest?_paramsOrRest:null;return new Class2({type:"tuple",items,rest,...normalizeParams(params)})}function _record(Class2,keyType,valueType,params){return new Class2({type:"record",keyType,valueType,...normalizeParams(params)})}function _map(Class2,keyType,valueType,params){return new Class2({type:"map",keyType,valueType,...normalizeParams(params)})}function _set(Class2,valueType,params){return new Class2({type:"set",valueType,...normalizeParams(params)})}function _enum(Class2,values,params){let entries=Array.isArray(values)?Object.fromEntries(values.map(v=>[v,v])):values;return new Class2({type:"enum",entries,...normalizeParams(params)})}function _nativeEnum(Class2,entries,params){return new Class2({type:"enum",entries,...normalizeParams(params)})}function _literal(Class2,value,params){return new Class2({type:"literal",values:Array.isArray(value)?value:[value],...normalizeParams(params)})}function _file(Class2,params){return new Class2({type:"file",...normalizeParams(params)})}function _transform(Class2,fn){return new Class2({type:"transform",transform:fn})}function _optional(Class2,innerType){return new Class2({type:"optional",innerType})}function _nullable(Class2,innerType){return new Class2({type:"nullable",innerType})}function _default(Class2,innerType,defaultValue){return new Class2({type:"default",innerType,get defaultValue(){return typeof defaultValue=="function"?defaultValue():shallowClone(defaultValue)}})}function _nonoptional(Class2,innerType,params){return new Class2({type:"nonoptional",innerType,...normalizeParams(params)})}function _success(Class2,innerType){return new Class2({type:"success",innerType})}function _catch(Class2,innerType,catchValue){return new Class2({type:"catch",innerType,catchValue:typeof catchValue=="function"?catchValue:()=>catchValue})}function _pipe(Class2,in_,out){return new Class2({type:"pipe",in:in_,out})}function _readonly(Class2,innerType){return new Class2({type:"readonly",innerType})}function _templateLiteral(Class2,parts,params){return new Class2({type:"template_literal",parts,...normalizeParams(params)})}function _lazy(Class2,getter){return new Class2({type:"lazy",getter})}function _promise(Class2,innerType){return new Class2({type:"promise",innerType})}function _custom(Class2,fn,_params){var _a9;let norm=normalizeParams(_params);return(_a9=norm.abort)!=null||(norm.abort=!0),new Class2({type:"custom",check:"custom",fn,...norm})}function _refine(Class2,fn,_params){return new Class2({type:"custom",check:"custom",fn,...normalizeParams(_params)})}function _superRefine(fn,params){let ch=_check(payload=>(payload.addIssue=issue2=>{var _a9,_b3,_c2,_d;if(typeof issue2=="string")payload.issues.push(issue(issue2,payload.value,ch._zod.def));else{let _issue=issue2;_issue.fatal&&(_issue.continue=!1),(_a9=_issue.code)!=null||(_issue.code="custom"),(_b3=_issue.input)!=null||(_issue.input=payload.value),(_c2=_issue.inst)!=null||(_issue.inst=ch),(_d=_issue.continue)!=null||(_issue.continue=!ch._zod.def.abort),payload.issues.push(issue(_issue))}},fn(payload.value,payload)),params);return ch}function _check(fn,params){let ch=new $ZodCheck({check:"custom",...normalizeParams(params)});return ch._zod.check=fn,ch}function describe(description){let ch=new $ZodCheck({check:"describe"});return ch._zod.onattach=[inst=>{var _a9;let existing=(_a9=globalRegistry.get(inst))!=null?_a9:{};globalRegistry.add(inst,{...existing,description})}],ch._zod.check=()=>{},ch}function meta(metadata){let ch=new $ZodCheck({check:"meta"});return ch._zod.onattach=[inst=>{var _a9;let existing=(_a9=globalRegistry.get(inst))!=null?_a9:{};globalRegistry.add(inst,{...existing,...metadata})}],ch._zod.check=()=>{},ch}function _stringbool(Classes,_params){var _a9,_b3,_c2,_d,_e;let params=normalizeParams(_params),truthyArray=(_a9=params.truthy)!=null?_a9:["true","1","yes","on","y","enabled"],falsyArray=(_b3=params.falsy)!=null?_b3:["false","0","no","off","n","disabled"];params.case!=="sensitive"&&(truthyArray=truthyArray.map(v=>typeof v=="string"?v.toLowerCase():v),falsyArray=falsyArray.map(v=>typeof v=="string"?v.toLowerCase():v));let truthySet=new Set(truthyArray),falsySet=new Set(falsyArray),_Codec=(_c2=Classes.Codec)!=null?_c2:$ZodCodec,_Boolean=(_d=Classes.Boolean)!=null?_d:$ZodBoolean,_String=(_e=Classes.String)!=null?_e:$ZodString,stringSchema=new _String({type:"string",error:params.error}),booleanSchema=new _Boolean({type:"boolean",error:params.error}),codec2=new _Codec({type:"pipe",in:stringSchema,out:booleanSchema,transform:((input,payload)=>{let data=input;return params.case!=="sensitive"&&(data=data.toLowerCase()),truthySet.has(data)?!0:falsySet.has(data)?!1:(payload.issues.push({code:"invalid_value",expected:"stringbool",values:[...truthySet,...falsySet],input:payload.value,inst:codec2,continue:!1}),{})}),reverseTransform:((input,_payload)=>input===!0?truthyArray[0]||"true":falsyArray[0]||"false"),error:params.error});return codec2}function _stringFormat(Class2,format,fnOrRegex,_params={}){let params=normalizeParams(_params),def={...normalizeParams(_params),check:"string_format",type:"string",format,fn:typeof fnOrRegex=="function"?fnOrRegex:val=>fnOrRegex.test(val),...params};return fnOrRegex instanceof RegExp&&(def.pattern=fnOrRegex),new Class2(def)}function initializeContext(params){var _a9,_b3,_c2,_d,_e,_f,_g,_h2,_i;let target=(_a9=params==null?void 0:params.target)!=null?_a9:"draft-2020-12";return target==="draft-4"&&(target="draft-04"),target==="draft-7"&&(target="draft-07"),{processors:(_b3=params.processors)!=null?_b3:{},metadataRegistry:(_c2=params==null?void 0:params.metadata)!=null?_c2:globalRegistry,target,unrepresentable:(_d=params==null?void 0:params.unrepresentable)!=null?_d:"throw",override:(_e=params==null?void 0:params.override)!=null?_e:(()=>{}),io:(_f=params==null?void 0:params.io)!=null?_f:"output",counter:0,seen:new Map,cycles:(_g=params==null?void 0:params.cycles)!=null?_g:"ref",reused:(_h2=params==null?void 0:params.reused)!=null?_h2:"inline",external:(_i=params==null?void 0:params.external)!=null?_i:void 0}}function process2(schema,ctx,_params={path:[],schemaPath:[]}){var _a10,_b3,_c2;var _a9;let def=schema._zod.def,seen=ctx.seen.get(schema);if(seen)return seen.count++,_params.schemaPath.includes(schema)&&(seen.cycle=_params.path),seen.schema;let result={schema:{},count:1,cycle:void 0,path:_params.path};ctx.seen.set(schema,result);let overrideSchema=(_b3=(_a10=schema._zod).toJSONSchema)==null?void 0:_b3.call(_a10);if(overrideSchema)result.schema=overrideSchema;else{let params={..._params,schemaPath:[..._params.schemaPath,schema],path:_params.path};if(schema._zod.processJSONSchema)schema._zod.processJSONSchema(ctx,result.schema,params);else{let _json=result.schema,processor=ctx.processors[def.type];if(!processor)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${def.type}`);processor(schema,ctx,_json,params)}let parent=schema._zod.parent;parent&&(result.ref||(result.ref=parent),process2(parent,ctx,params),ctx.seen.get(parent).isParent=!0)}let meta3=ctx.metadataRegistry.get(schema);return meta3&&Object.assign(result.schema,meta3),ctx.io==="input"&&isTransforming(schema)&&(delete result.schema.examples,delete result.schema.default),ctx.io==="input"&&"_prefault"in result.schema&&((_c2=(_a9=result.schema).default)!=null||(_a9.default=result.schema._prefault)),delete result.schema._prefault,ctx.seen.get(schema).schema}function extractDefs(ctx,schema){var _a9,_b3,_c2,_d;let root2=ctx.seen.get(schema);if(!root2)throw new Error("Unprocessed schema. This is a bug in Zod.");let idToSchema=new Map;for(let entry of ctx.seen.entries()){let id=(_a9=ctx.metadataRegistry.get(entry[0]))==null?void 0:_a9.id;if(id){let existing=idToSchema.get(id);if(existing&&existing!==entry[0])throw new Error(`Duplicate schema id "${id}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);idToSchema.set(id,entry[0])}}let makeURI=entry=>{var _a10,_b4,_c3,_d2,_e;let defsSegment=ctx.target==="draft-2020-12"?"$defs":"definitions";if(ctx.external){let externalId=(_a10=ctx.external.registry.get(entry[0]))==null?void 0:_a10.id,uriGenerator=(_b4=ctx.external.uri)!=null?_b4:(id2=>id2);if(externalId)return{ref:uriGenerator(externalId)};let id=(_d2=(_c3=entry[1].defId)!=null?_c3:entry[1].schema.id)!=null?_d2:`schema${ctx.counter++}`;return entry[1].defId=id,{defId:id,ref:`${uriGenerator("__shared")}#/${defsSegment}/${id}`}}if(entry[1]===root2)return{ref:"#"};let defUriPrefix=`#/${defsSegment}/`,defId=(_e=entry[1].schema.id)!=null?_e:`__schema${ctx.counter++}`;return{defId,ref:defUriPrefix+defId}},extractToDef=entry=>{if(entry[1].schema.$ref)return;let seen=entry[1],{ref,defId}=makeURI(entry);seen.def={...seen.schema},defId&&(seen.defId=defId);let schema2=seen.schema;for(let key2 in schema2)delete schema2[key2];schema2.$ref=ref};if(ctx.cycles==="throw")for(let entry of ctx.seen.entries()){let seen=entry[1];if(seen.cycle)throw new Error(`Cycle detected: #/${(_b3=seen.cycle)==null?void 0:_b3.join("/")}/<root>
Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let entry of ctx.seen.entries()){let seen=entry[1];if(schema===entry[0]){extractToDef(entry);continue}if(ctx.external){let ext=(_c2=ctx.external.registry.get(entry[0]))==null?void 0:_c2.id;if(schema!==entry[0]&&ext){extractToDef(entry);continue}}if((_d=ctx.metadataRegistry.get(entry[0]))==null?void 0:_d.id){extractToDef(entry);continue}if(seen.cycle){extractToDef(entry);continue}if(seen.count>1&&ctx.reused==="ref"){extractToDef(entry);continue}}}function finalize(ctx,schema){var _a9,_b3,_c2,_d,_e,_f;let root2=ctx.seen.get(schema);if(!root2)throw new Error("Unprocessed schema. This is a bug in Zod.");let flattenRef=zodSchema=>{var _a10,_b4,_c3;let seen=ctx.seen.get(zodSchema);if(seen.ref===null)return;let schema2=(_a10=seen.def)!=null?_a10:seen.schema,_cached={...schema2},ref=seen.ref;if(seen.ref=null,ref){flattenRef(ref);let refSeen=ctx.seen.get(ref),refSchema=refSeen.schema;if(refSchema.$ref&&(ctx.target==="draft-07"||ctx.target==="draft-04"||ctx.target==="openapi-3.0")?(schema2.allOf=(_b4=schema2.allOf)!=null?_b4:[],schema2.allOf.push(refSchema)):Object.assign(schema2,refSchema),Object.assign(schema2,_cached),zodSchema._zod.parent===ref)for(let key2 in schema2)key2==="$ref"||key2==="allOf"||key2 in _cached||delete schema2[key2];if(refSchema.$ref&&refSeen.def)for(let key2 in schema2)key2==="$ref"||key2==="allOf"||key2 in refSeen.def&&JSON.stringify(schema2[key2])===JSON.stringify(refSeen.def[key2])&&delete schema2[key2]}let parent=zodSchema._zod.parent;if(parent&&parent!==ref){flattenRef(parent);let parentSeen=ctx.seen.get(parent);if(parentSeen!=null&&parentSeen.schema.$ref&&(schema2.$ref=parentSeen.schema.$ref,parentSeen.def))for(let key2 in schema2)key2==="$ref"||key2==="allOf"||key2 in parentSeen.def&&JSON.stringify(schema2[key2])===JSON.stringify(parentSeen.def[key2])&&delete schema2[key2]}ctx.override({zodSchema,jsonSchema:schema2,path:(_c3=seen.path)!=null?_c3:[]})};for(let entry of[...ctx.seen.entries()].reverse())flattenRef(entry[0]);let result={};if(ctx.target==="draft-2020-12"?result.$schema="https://json-schema.org/draft/2020-12/schema":ctx.target==="draft-07"?result.$schema="http://json-schema.org/draft-07/schema#":ctx.target==="draft-04"?result.$schema="http://json-schema.org/draft-04/schema#":ctx.target,(_a9=ctx.external)!=null&&_a9.uri){let id=(_b3=ctx.external.registry.get(schema))==null?void 0:_b3.id;if(!id)throw new Error("Schema is missing an `id` property");result.$id=ctx.external.uri(id)}Object.assign(result,(_c2=root2.def)!=null?_c2:root2.schema);let rootMetaId=(_d=ctx.metadataRegistry.get(schema))==null?void 0:_d.id;rootMetaId!==void 0&&result.id===rootMetaId&&delete result.id;let defs=(_f=(_e=ctx.external)==null?void 0:_e.defs)!=null?_f:{};for(let entry of ctx.seen.entries()){let seen=entry[1];seen.def&&seen.defId&&(seen.def.id===seen.defId&&delete seen.def.id,defs[seen.defId]=seen.def)}ctx.external||Object.keys(defs).length>0&&(ctx.target==="draft-2020-12"?result.$defs=defs:result.definitions=defs);try{let finalized=JSON.parse(JSON.stringify(result));return Object.defineProperty(finalized,"~standard",{value:{...schema["~standard"],jsonSchema:{input:createStandardJSONSchemaMethod(schema,"input",ctx.processors),output:createStandardJSONSchemaMethod(schema,"output",ctx.processors)}},enumerable:!1,writable:!1}),finalized}catch(_err){throw new Error("Error converting schema to JSON.")}}function isTransforming(_schema,_ctx){let ctx=_ctx!=null?_ctx:{seen:new Set};if(ctx.seen.has(_schema))return!1;ctx.seen.add(_schema);let def=_schema._zod.def;if(def.type==="transform")return!0;if(def.type==="array")return isTransforming(def.element,ctx);if(def.type==="set")return isTransforming(def.valueType,ctx);if(def.type==="lazy")return isTransforming(def.getter(),ctx);if(def.type==="promise"||def.type==="optional"||def.type==="nonoptional"||def.type==="nullable"||def.type==="readonly"||def.type==="default"||def.type==="prefault")return isTransforming(def.innerType,ctx);if(def.type==="intersection")return isTransforming(def.left,ctx)||isTransforming(def.right,ctx);if(def.type==="record"||def.type==="map")return isTransforming(def.keyType,ctx)||isTransforming(def.valueType,ctx);if(def.type==="pipe")return _schema._zod.traits.has("$ZodCodec")?!0:isTransforming(def.in,ctx)||isTransforming(def.out,ctx);if(def.type==="object"){for(let key2 in def.shape)if(isTransforming(def.shape[key2],ctx))return!0;return!1}if(def.type==="union"){for(let option of def.options)if(isTransforming(option,ctx))return!0;return!1}if(def.type==="tuple"){for(let item of def.items)if(isTransforming(item,ctx))return!0;return!!(def.rest&&isTransforming(def.rest,ctx))}return!1}var createToJSONSchemaMethod=(schema,processors={})=>params=>{let ctx=initializeContext({...params,processors});return process2(schema,ctx),extractDefs(ctx,schema),finalize(ctx,schema)},createStandardJSONSchemaMethod=(schema,io,processors={})=>params=>{let{libraryOptions,target}=params!=null?params:{},ctx=initializeContext({...libraryOptions!=null?libraryOptions:{},target,io,processors});return process2(schema,ctx),extractDefs(ctx,schema),finalize(ctx,schema)};var formatMap={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},stringProcessor=(schema,ctx,_json,_params)=>{var _a9;let json2=_json;json2.type="string";let{minimum,maximum,format,patterns,contentEncoding}=schema._zod.bag;if(typeof minimum=="number"&&(json2.minLength=minimum),typeof maximum=="number"&&(json2.maxLength=maximum),format&&(json2.format=(_a9=formatMap[format])!=null?_a9:format,json2.format===""&&delete json2.format,format==="time"&&delete json2.format),contentEncoding&&(json2.contentEncoding=contentEncoding),patterns&&patterns.size>0){let regexes=[...patterns];regexes.length===1?json2.pattern=regexes[0].source:regexes.length>1&&(json2.allOf=[...regexes.map(regex=>({...ctx.target==="draft-07"||ctx.target==="draft-04"||ctx.target==="openapi-3.0"?{type:"string"}:{},pattern:regex.source}))])}},numberProcessor=(schema,ctx,_json,_params)=>{let json2=_json,{minimum,maximum,format,multipleOf,exclusiveMaximum,exclusiveMinimum}=schema._zod.bag;typeof format=="string"&&format.includes("int")?json2.type="integer":json2.type="number";let exMin=typeof exclusiveMinimum=="number"&&exclusiveMinimum>=(minimum!=null?minimum:Number.NEGATIVE_INFINITY),exMax=typeof exclusiveMaximum=="number"&&exclusiveMaximum<=(maximum!=null?maximum:Number.POSITIVE_INFINITY),legacy=ctx.target==="draft-04"||ctx.target==="openapi-3.0";exMin?legacy?(json2.minimum=exclusiveMinimum,json2.exclusiveMinimum=!0):json2.exclusiveMinimum=exclusiveMinimum:typeof minimum=="number"&&(json2.minimum=minimum),exMax?legacy?(json2.maximum=exclusiveMaximum,json2.exclusiveMaximum=!0):json2.exclusiveMaximum=exclusiveMaximum:typeof maximum=="number"&&(json2.maximum=maximum),typeof multipleOf=="number"&&(json2.multipleOf=multipleOf)},booleanProcessor=(_schema,_ctx,json2,_params)=>{json2.type="boolean"},bigintProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},symbolProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},nullProcessor=(_schema,ctx,json2,_params)=>{ctx.target==="openapi-3.0"?(json2.type="string",json2.nullable=!0,json2.enum=[null]):json2.type="null"},undefinedProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},voidProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},neverProcessor=(_schema,_ctx,json2,_params)=>{json2.not={}},anyProcessor=(_schema,_ctx,_json,_params)=>{},unknownProcessor=(_schema,_ctx,_json,_params)=>{},dateProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},enumProcessor=(schema,_ctx,json2,_params)=>{let def=schema._zod.def,values=getEnumValues(def.entries);values.every(v=>typeof v=="number")&&(json2.type="number"),values.every(v=>typeof v=="string")&&(json2.type="string"),json2.enum=values},literalProcessor=(schema,ctx,json2,_params)=>{let def=schema._zod.def,vals=[];for(let val of def.values)if(val===void 0){if(ctx.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof val=="bigint"){if(ctx.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");vals.push(Number(val))}else vals.push(val);if(vals.length!==0)if(vals.length===1){let val=vals[0];json2.type=val===null?"null":typeof val,ctx.target==="draft-04"||ctx.target==="openapi-3.0"?json2.enum=[val]:json2.const=val}else vals.every(v=>typeof v=="number")&&(json2.type="number"),vals.every(v=>typeof v=="string")&&(json2.type="string"),vals.every(v=>typeof v=="boolean")&&(json2.type="boolean"),vals.every(v=>v===null)&&(json2.type="null"),json2.enum=vals},nanProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},templateLiteralProcessor=(schema,_ctx,json2,_params)=>{let _json=json2,pattern=schema._zod.pattern;if(!pattern)throw new Error("Pattern not found in template literal");_json.type="string",_json.pattern=pattern.source},fileProcessor=(schema,_ctx,json2,_params)=>{let _json=json2,file2={type:"string",format:"binary",contentEncoding:"binary"},{minimum,maximum,mime}=schema._zod.bag;minimum!==void 0&&(file2.minLength=minimum),maximum!==void 0&&(file2.maxLength=maximum),mime?mime.length===1?(file2.contentMediaType=mime[0],Object.assign(_json,file2)):(Object.assign(_json,file2),_json.anyOf=mime.map(m=>({contentMediaType:m}))):Object.assign(_json,file2)},successProcessor=(_schema,_ctx,json2,_params)=>{json2.type="boolean"},customProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},functionProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},transformProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},mapProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},setProcessor=(_schema,ctx,_json,_params)=>{if(ctx.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},arrayProcessor=(schema,ctx,_json,params)=>{let json2=_json,def=schema._zod.def,{minimum,maximum}=schema._zod.bag;typeof minimum=="number"&&(json2.minItems=minimum),typeof maximum=="number"&&(json2.maxItems=maximum),json2.type="array",json2.items=process2(def.element,ctx,{...params,path:[...params.path,"items"]})},objectProcessor=(schema,ctx,_json,params)=>{var _a9;let json2=_json,def=schema._zod.def;json2.type="object",json2.properties={};let shape=def.shape;for(let key2 in shape)json2.properties[key2]=process2(shape[key2],ctx,{...params,path:[...params.path,"properties",key2]});let allKeys=new Set(Object.keys(shape)),requiredKeys=new Set([...allKeys].filter(key2=>{let v=def.shape[key2]._zod;return ctx.io==="input"?v.optin===void 0:v.optout===void 0}));requiredKeys.size>0&&(json2.required=Array.from(requiredKeys)),((_a9=def.catchall)==null?void 0:_a9._zod.def.type)==="never"?json2.additionalProperties=!1:def.catchall?def.catchall&&(json2.additionalProperties=process2(def.catchall,ctx,{...params,path:[...params.path,"additionalProperties"]})):ctx.io==="output"&&(json2.additionalProperties=!1)},unionProcessor=(schema,ctx,json2,params)=>{let def=schema._zod.def,isExclusive=def.inclusive===!1,options=def.options.map((x,i)=>process2(x,ctx,{...params,path:[...params.path,isExclusive?"oneOf":"anyOf",i]}));isExclusive?json2.oneOf=options:json2.anyOf=options},intersectionProcessor=(schema,ctx,json2,params)=>{let def=schema._zod.def,a=process2(def.left,ctx,{...params,path:[...params.path,"allOf",0]}),b=process2(def.right,ctx,{...params,path:[...params.path,"allOf",1]}),isSimpleIntersection=val=>"allOf"in val&&Object.keys(val).length===1,allOf=[...isSimpleIntersection(a)?a.allOf:[a],...isSimpleIntersection(b)?b.allOf:[b]];json2.allOf=allOf},tupleProcessor=(schema,ctx,_json,params)=>{let json2=_json,def=schema._zod.def;json2.type="array";let prefixPath=ctx.target==="draft-2020-12"?"prefixItems":"items",restPath=ctx.target==="draft-2020-12"||ctx.target==="openapi-3.0"?"items":"additionalItems",prefixItems=def.items.map((x,i)=>process2(x,ctx,{...params,path:[...params.path,prefixPath,i]})),rest=def.rest?process2(def.rest,ctx,{...params,path:[...params.path,restPath,...ctx.target==="openapi-3.0"?[def.items.length]:[]]}):null;ctx.target==="draft-2020-12"?(json2.prefixItems=prefixItems,rest&&(json2.items=rest)):ctx.target==="openapi-3.0"?(json2.items={anyOf:prefixItems},rest&&json2.items.anyOf.push(rest),json2.minItems=prefixItems.length,rest||(json2.maxItems=prefixItems.length)):(json2.items=prefixItems,rest&&(json2.additionalItems=rest));let{minimum,maximum}=schema._zod.bag;typeof minimum=="number"&&(json2.minItems=minimum),typeof maximum=="number"&&(json2.maxItems=maximum)},recordProcessor=(schema,ctx,_json,params)=>{let json2=_json,def=schema._zod.def;json2.type="object";let keyType=def.keyType,keyBag=keyType._zod.bag,patterns=keyBag==null?void 0:keyBag.patterns;if(def.mode==="loose"&&patterns&&patterns.size>0){let valueSchema=process2(def.valueType,ctx,{...params,path:[...params.path,"patternProperties","*"]});json2.patternProperties={};for(let pattern of patterns)json2.patternProperties[pattern.source]=valueSchema}else(ctx.target==="draft-07"||ctx.target==="draft-2020-12")&&(json2.propertyNames=process2(def.keyType,ctx,{...params,path:[...params.path,"propertyNames"]})),json2.additionalProperties=process2(def.valueType,ctx,{...params,path:[...params.path,"additionalProperties"]});let keyValues=keyType._zod.values;if(keyValues){let validKeyValues=[...keyValues].filter(v=>typeof v=="string"||typeof v=="number");validKeyValues.length>0&&(json2.required=validKeyValues)}},nullableProcessor=(schema,ctx,json2,params)=>{let def=schema._zod.def,inner=process2(def.innerType,ctx,params),seen=ctx.seen.get(schema);ctx.target==="openapi-3.0"?(seen.ref=def.innerType,json2.nullable=!0):json2.anyOf=[inner,{type:"null"}]},nonoptionalProcessor=(schema,ctx,_json,params)=>{let def=schema._zod.def;process2(def.innerType,ctx,params);let seen=ctx.seen.get(schema);seen.ref=def.innerType},defaultProcessor=(schema,ctx,json2,params)=>{let def=schema._zod.def;process2(def.innerType,ctx,params);let seen=ctx.seen.get(schema);seen.ref=def.innerType,json2.default=JSON.parse(JSON.stringify(def.defaultValue))},prefaultProcessor=(schema,ctx,json2,params)=>{let def=schema._zod.def;process2(def.innerType,ctx,params);let seen=ctx.seen.get(schema);seen.ref=def.innerType,ctx.io==="input"&&(json2._prefault=JSON.parse(JSON.stringify(def.defaultValue)))},catchProcessor=(schema,ctx,json2,params)=>{let def=schema._zod.def;process2(def.innerType,ctx,params);let seen=ctx.seen.get(schema);seen.ref=def.innerType;let catchValue;try{catchValue=def.catchValue(void 0)}catch(e){throw new Error("Dynamic catch values are not supported in JSON Schema")}json2.default=catchValue},pipeProcessor=(schema,ctx,_json,params)=>{let def=schema._zod.def,inIsTransform=def.in._zod.traits.has("$ZodTransform"),innerType=ctx.io==="input"?inIsTransform?def.out:def.in:def.out;process2(innerType,ctx,params);let seen=ctx.seen.get(schema);seen.ref=innerType},readonlyProcessor=(schema,ctx,json2,params)=>{let def=schema._zod.def;process2(def.innerType,ctx,params);let seen=ctx.seen.get(schema);seen.ref=def.innerType,json2.readOnly=!0},promiseProcessor=(schema,ctx,_json,params)=>{let def=schema._zod.def;process2(def.innerType,ctx,params);let seen=ctx.seen.get(schema);seen.ref=def.innerType},optionalProcessor=(schema,ctx,_json,params)=>{let def=schema._zod.def;process2(def.innerType,ctx,params);let seen=ctx.seen.get(schema);seen.ref=def.innerType},lazyProcessor=(schema,ctx,_json,params)=>{let innerType=schema._zod.innerType;process2(innerType,ctx,params);let seen=ctx.seen.get(schema);seen.ref=innerType},allProcessors={string:stringProcessor,number:numberProcessor,boolean:booleanProcessor,bigint:bigintProcessor,symbol:symbolProcessor,null:nullProcessor,undefined:undefinedProcessor,void:voidProcessor,never:neverProcessor,any:anyProcessor,unknown:unknownProcessor,date:dateProcessor,enum:enumProcessor,literal:literalProcessor,nan:nanProcessor,template_literal:templateLiteralProcessor,file:fileProcessor,success:successProcessor,custom:customProcessor,function:functionProcessor,transform:transformProcessor,map:mapProcessor,set:setProcessor,array:arrayProcessor,object:objectProcessor,union:unionProcessor,intersection:intersectionProcessor,tuple:tupleProcessor,record:recordProcessor,nullable:nullableProcessor,nonoptional:nonoptionalProcessor,default:defaultProcessor,prefault:prefaultProcessor,catch:catchProcessor,pipe:pipeProcessor,readonly:readonlyProcessor,promise:promiseProcessor,optional:optionalProcessor,lazy:lazyProcessor};function toJSONSchema(input,params){if("_idmap"in input){let registry2=input,ctx2=initializeContext({...params,processors:allProcessors}),defs={};for(let entry of registry2._idmap.entries()){let[_,schema]=entry;process2(schema,ctx2)}let schemas={},external={registry:registry2,uri:params==null?void 0:params.uri,defs};ctx2.external=external;for(let entry of registry2._idmap.entries()){let[key2,schema]=entry;extractDefs(ctx2,schema),schemas[key2]=finalize(ctx2,schema)}if(Object.keys(defs).length>0){let defsSegment=ctx2.target==="draft-2020-12"?"$defs":"definitions";schemas.__shared={[defsSegment]:defs}}return{schemas}}let ctx=initializeContext({...params,processors:allProcessors});return process2(input,ctx),extractDefs(ctx,input),finalize(ctx,input)}var JSONSchemaGenerator=class{get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(value){this.ctx.counter=value}get seen(){return this.ctx.seen}constructor(params){var _a9;let normalizedTarget=(_a9=params==null?void 0:params.target)!=null?_a9:"draft-2020-12";normalizedTarget==="draft-4"&&(normalizedTarget="draft-04"),normalizedTarget==="draft-7"&&(normalizedTarget="draft-07"),this.ctx=initializeContext({processors:allProcessors,target:normalizedTarget,...(params==null?void 0:params.metadata)&&{metadata:params.metadata},...(params==null?void 0:params.unrepresentable)&&{unrepresentable:params.unrepresentable},...(params==null?void 0:params.override)&&{override:params.override},...(params==null?void 0:params.io)&&{io:params.io}})}process(schema,_params={path:[],schemaPath:[]}){return process2(schema,this.ctx,_params)}emit(schema,_params){_params&&(_params.cycles&&(this.ctx.cycles=_params.cycles),_params.reused&&(this.ctx.reused=_params.reused),_params.external&&(this.ctx.external=_params.external)),extractDefs(this.ctx,schema);let result=finalize(this.ctx,schema),{"~standard":_,...plainResult}=result;return plainResult}};var json_schema_exports={};var schemas_exports2={};__export(schemas_exports2,{ZodAny:()=>ZodAny,ZodArray:()=>ZodArray,ZodBase64:()=>ZodBase64,ZodBase64URL:()=>ZodBase64URL,ZodBigInt:()=>ZodBigInt,ZodBigIntFormat:()=>ZodBigIntFormat,ZodBoolean:()=>ZodBoolean,ZodCIDRv4:()=>ZodCIDRv4,ZodCIDRv6:()=>ZodCIDRv6,ZodCUID:()=>ZodCUID,ZodCUID2:()=>ZodCUID2,ZodCatch:()=>ZodCatch,ZodCodec:()=>ZodCodec,ZodCustom:()=>ZodCustom,ZodCustomStringFormat:()=>ZodCustomStringFormat,ZodDate:()=>ZodDate,ZodDefault:()=>ZodDefault,ZodDiscriminatedUnion:()=>ZodDiscriminatedUnion,ZodE164:()=>ZodE164,ZodEmail:()=>ZodEmail,ZodEmoji:()=>ZodEmoji,ZodEnum:()=>ZodEnum,ZodExactOptional:()=>ZodExactOptional,ZodFile:()=>ZodFile,ZodFunction:()=>ZodFunction,ZodGUID:()=>ZodGUID,ZodIPv4:()=>ZodIPv4,ZodIPv6:()=>ZodIPv6,ZodIntersection:()=>ZodIntersection,ZodJWT:()=>ZodJWT,ZodKSUID:()=>ZodKSUID,ZodLazy:()=>ZodLazy,ZodLiteral:()=>ZodLiteral,ZodMAC:()=>ZodMAC,ZodMap:()=>ZodMap,ZodNaN:()=>ZodNaN,ZodNanoID:()=>ZodNanoID,ZodNever:()=>ZodNever,ZodNonOptional:()=>ZodNonOptional,ZodNull:()=>ZodNull,ZodNullable:()=>ZodNullable,ZodNumber:()=>ZodNumber,ZodNumberFormat:()=>ZodNumberFormat,ZodObject:()=>ZodObject,ZodOptional:()=>ZodOptional,ZodPipe:()=>ZodPipe,ZodPrefault:()=>ZodPrefault,ZodPreprocess:()=>ZodPreprocess,ZodPromise:()=>ZodPromise,ZodReadonly:()=>ZodReadonly,ZodRecord:()=>ZodRecord,ZodSet:()=>ZodSet,ZodString:()=>ZodString,ZodStringFormat:()=>ZodStringFormat,ZodSuccess:()=>ZodSuccess,ZodSymbol:()=>ZodSymbol,ZodTemplateLiteral:()=>ZodTemplateLiteral,ZodTransform:()=>ZodTransform,ZodTuple:()=>ZodTuple,ZodType:()=>ZodType,ZodULID:()=>ZodULID,ZodURL:()=>ZodURL,ZodUUID:()=>ZodUUID,ZodUndefined:()=>ZodUndefined,ZodUnion:()=>ZodUnion,ZodUnknown:()=>ZodUnknown,ZodVoid:()=>ZodVoid,ZodXID:()=>ZodXID,ZodXor:()=>ZodXor,_ZodString:()=>_ZodString,_default:()=>_default2,_function:()=>_function,any:()=>any,array:()=>array,base64:()=>base642,base64url:()=>base64url2,bigint:()=>bigint2,boolean:()=>boolean2,catch:()=>_catch2,check:()=>check,cidrv4:()=>cidrv42,cidrv6:()=>cidrv62,codec:()=>codec,cuid:()=>cuid3,cuid2:()=>cuid22,custom:()=>custom,date:()=>date3,describe:()=>describe2,discriminatedUnion:()=>discriminatedUnion,e164:()=>e1642,email:()=>email2,emoji:()=>emoji2,enum:()=>_enum2,exactOptional:()=>exactOptional,file:()=>file,float32:()=>float32,float64:()=>float64,function:()=>_function,guid:()=>guid2,hash:()=>hash2,hex:()=>hex2,hostname:()=>hostname2,httpUrl:()=>httpUrl,instanceof:()=>_instanceof,int:()=>int,int32:()=>int32,int64:()=>int64,intersection:()=>intersection,invertCodec:()=>invertCodec,ipv4:()=>ipv42,ipv6:()=>ipv62,json:()=>json,jwt:()=>jwt,keyof:()=>keyof,ksuid:()=>ksuid2,lazy:()=>lazy,literal:()=>literal,looseObject:()=>looseObject,looseRecord:()=>looseRecord,mac:()=>mac2,map:()=>map,meta:()=>meta2,nan:()=>nan,nanoid:()=>nanoid2,nativeEnum:()=>nativeEnum,never:()=>never,nonoptional:()=>nonoptional,null:()=>_null3,nullable:()=>nullable,nullish:()=>nullish2,number:()=>number2,object:()=>object,optional:()=>optional,partialRecord:()=>partialRecord,pipe:()=>pipe,prefault:()=>prefault,preprocess:()=>preprocess,promise:()=>promise,readonly:()=>readonly,record:()=>record,refine:()=>refine,set:()=>set2,strictObject:()=>strictObject,string:()=>string2,stringFormat:()=>stringFormat,stringbool:()=>stringbool,success:()=>success,superRefine:()=>superRefine,symbol:()=>symbol,templateLiteral:()=>templateLiteral,transform:()=>transform,tuple:()=>tuple,uint32:()=>uint32,uint64:()=>uint64,ulid:()=>ulid2,undefined:()=>_undefined3,union:()=>union,unknown:()=>unknown,url:()=>url,uuid:()=>uuid2,uuidv4:()=>uuidv4,uuidv6:()=>uuidv6,uuidv7:()=>uuidv7,void:()=>_void2,xid:()=>xid2,xor:()=>xor});var checks_exports2={};__export(checks_exports2,{endsWith:()=>_endsWith,gt:()=>_gt,gte:()=>_gte,includes:()=>_includes,length:()=>_length,lowercase:()=>_lowercase,lt:()=>_lt,lte:()=>_lte,maxLength:()=>_maxLength,maxSize:()=>_maxSize,mime:()=>_mime,minLength:()=>_minLength,minSize:()=>_minSize,multipleOf:()=>_multipleOf,negative:()=>_negative,nonnegative:()=>_nonnegative,nonpositive:()=>_nonpositive,normalize:()=>_normalize,overwrite:()=>_overwrite,positive:()=>_positive,property:()=>_property,regex:()=>_regex,size:()=>_size,slugify:()=>_slugify,startsWith:()=>_startsWith,toLowerCase:()=>_toLowerCase,toUpperCase:()=>_toUpperCase,trim:()=>_trim,uppercase:()=>_uppercase});var iso_exports={};__export(iso_exports,{ZodISODate:()=>ZodISODate,ZodISODateTime:()=>ZodISODateTime,ZodISODuration:()=>ZodISODuration,ZodISOTime:()=>ZodISOTime,date:()=>date2,datetime:()=>datetime2,duration:()=>duration2,time:()=>time2});var ZodISODateTime=$constructor("ZodISODateTime",(inst,def)=>{$ZodISODateTime.init(inst,def),ZodStringFormat.init(inst,def)});function datetime2(params){return _isoDateTime(ZodISODateTime,params)}var ZodISODate=$constructor("ZodISODate",(inst,def)=>{$ZodISODate.init(inst,def),ZodStringFormat.init(inst,def)});function date2(params){return _isoDate(ZodISODate,params)}var ZodISOTime=$constructor("ZodISOTime",(inst,def)=>{$ZodISOTime.init(inst,def),ZodStringFormat.init(inst,def)});function time2(params){return _isoTime(ZodISOTime,params)}var ZodISODuration=$constructor("ZodISODuration",(inst,def)=>{$ZodISODuration.init(inst,def),ZodStringFormat.init(inst,def)});function duration2(params){return _isoDuration(ZodISODuration,params)}var initializer2=(inst,issues)=>{$ZodError.init(inst,issues),inst.name="ZodError",Object.defineProperties(inst,{format:{value:mapper=>formatError(inst,mapper)},flatten:{value:mapper=>flattenError(inst,mapper)},addIssue:{value:issue2=>{inst.issues.push(issue2),inst.message=JSON.stringify(inst.issues,jsonStringifyReplacer,2)}},addIssues:{value:issues2=>{inst.issues.push(...issues2),inst.message=JSON.stringify(inst.issues,jsonStringifyReplacer,2)}},isEmpty:{get(){return inst.issues.length===0}}})},ZodError=$constructor("ZodError",initializer2),ZodRealError=$constructor("ZodError",initializer2,{Parent:Error});var parse2=_parse(ZodRealError),parseAsync2=_parseAsync(ZodRealError),safeParse2=_safeParse(ZodRealError),safeParseAsync2=_safeParseAsync(ZodRealError),encode4=_encode(ZodRealError),decode2=_decode(ZodRealError),encodeAsync2=_encodeAsync(ZodRealError),decodeAsync2=_decodeAsync(ZodRealError),safeEncode2=_safeEncode(ZodRealError),safeDecode2=_safeDecode(ZodRealError),safeEncodeAsync2=_safeEncodeAsync(ZodRealError),safeDecodeAsync2=_safeDecodeAsync(ZodRealError);var _installedGroups=new WeakMap;function _installLazyMethods(inst,group,methods){let proto=Object.getPrototypeOf(inst),installed=_installedGroups.get(proto);if(installed||(installed=new Set,_installedGroups.set(proto,installed)),!installed.has(group)){installed.add(group);for(let key2 in methods){let fn=methods[key2];Object.defineProperty(proto,key2,{configurable:!0,enumerable:!1,get(){let bound=fn.bind(this);return Object.defineProperty(this,key2,{configurable:!0,writable:!0,enumerable:!0,value:bound}),bound},set(v){Object.defineProperty(this,key2,{configurable:!0,writable:!0,enumerable:!0,value:v})}})}}}var ZodType=$constructor("ZodType",(inst,def)=>($ZodType.init(inst,def),Object.assign(inst["~standard"],{jsonSchema:{input:createStandardJSONSchemaMethod(inst,"input"),output:createStandardJSONSchemaMethod(inst,"output")}}),inst.toJSONSchema=createToJSONSchemaMethod(inst,{}),inst.def=def,inst.type=def.type,Object.defineProperty(inst,"_def",{value:def}),inst.parse=(data,params)=>parse2(inst,data,params,{callee:inst.parse}),inst.safeParse=(data,params)=>safeParse2(inst,data,params),inst.parseAsync=async(data,params)=>parseAsync2(inst,data,params,{callee:inst.parseAsync}),inst.safeParseAsync=async(data,params)=>safeParseAsync2(inst,data,params),inst.spa=inst.safeParseAsync,inst.encode=(data,params)=>encode4(inst,data,params),inst.decode=(data,params)=>decode2(inst,data,params),inst.encodeAsync=async(data,params)=>encodeAsync2(inst,data,params),inst.decodeAsync=async(data,params)=>decodeAsync2(inst,data,params),inst.safeEncode=(data,params)=>safeEncode2(inst,data,params),inst.safeDecode=(data,params)=>safeDecode2(inst,data,params),inst.safeEncodeAsync=async(data,params)=>safeEncodeAsync2(inst,data,params),inst.safeDecodeAsync=async(data,params)=>safeDecodeAsync2(inst,data,params),_installLazyMethods(inst,"ZodType",{check(...chks){var _a9;let def2=this.def;return this.clone(util_exports.mergeDefs(def2,{checks:[...(_a9=def2.checks)!=null?_a9:[],...chks.map(ch=>typeof ch=="function"?{_zod:{check:ch,def:{check:"custom"},onattach:[]}}:ch)]}),{parent:!0})},with(...chks){return this.check(...chks)},clone(def2,params){return clone(this,def2,params)},brand(){return this},register(reg,meta3){return reg.add(this,meta3),this},refine(check2,params){return this.check(refine(check2,params))},superRefine(refinement,params){return this.check(superRefine(refinement,params))},overwrite(fn){return this.check(_overwrite(fn))},optional(){return optional(this)},exactOptional(){return exactOptional(this)},nullable(){return nullable(this)},nullish(){return optional(nullable(this))},nonoptional(params){return nonoptional(this,params)},array(){return array(this)},or(arg){return union([this,arg])},and(arg){return intersection(this,arg)},transform(tx){return pipe(this,transform(tx))},default(d){return _default2(this,d)},prefault(d){return prefault(this,d)},catch(params){return _catch2(this,params)},pipe(target){return pipe(this,target)},readonly(){return readonly(this)},describe(description){let cl=this.clone();return globalRegistry.add(cl,{description}),cl},meta(...args){if(args.length===0)return globalRegistry.get(this);let cl=this.clone();return globalRegistry.add(cl,args[0]),cl},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(fn){return fn(this)}}),Object.defineProperty(inst,"description",{get(){var _a9;return(_a9=globalRegistry.get(inst))==null?void 0:_a9.description},configurable:!0}),inst)),_ZodString=$constructor("_ZodString",(inst,def)=>{var _a9,_b3,_c2;$ZodString.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>stringProcessor(inst,ctx,json2,params);let bag=inst._zod.bag;inst.format=(_a9=bag.format)!=null?_a9:null,inst.minLength=(_b3=bag.minimum)!=null?_b3:null,inst.maxLength=(_c2=bag.maximum)!=null?_c2:null,_installLazyMethods(inst,"_ZodString",{regex(...args){return this.check(_regex(...args))},includes(...args){return this.check(_includes(...args))},startsWith(...args){return this.check(_startsWith(...args))},endsWith(...args){return this.check(_endsWith(...args))},min(...args){return this.check(_minLength(...args))},max(...args){return this.check(_maxLength(...args))},length(...args){return this.check(_length(...args))},nonempty(...args){return this.check(_minLength(1,...args))},lowercase(params){return this.check(_lowercase(params))},uppercase(params){return this.check(_uppercase(params))},trim(){return this.check(_trim())},normalize(...args){return this.check(_normalize(...args))},toLowerCase(){return this.check(_toLowerCase())},toUpperCase(){return this.check(_toUpperCase())},slugify(){return this.check(_slugify())}})}),ZodString=$constructor("ZodString",(inst,def)=>{$ZodString.init(inst,def),_ZodString.init(inst,def),inst.email=params=>inst.check(_email(ZodEmail,params)),inst.url=params=>inst.check(_url(ZodURL,params)),inst.jwt=params=>inst.check(_jwt(ZodJWT,params)),inst.emoji=params=>inst.check(_emoji2(ZodEmoji,params)),inst.guid=params=>inst.check(_guid(ZodGUID,params)),inst.uuid=params=>inst.check(_uuid(ZodUUID,params)),inst.uuidv4=params=>inst.check(_uuidv4(ZodUUID,params)),inst.uuidv6=params=>inst.check(_uuidv6(ZodUUID,params)),inst.uuidv7=params=>inst.check(_uuidv7(ZodUUID,params)),inst.nanoid=params=>inst.check(_nanoid(ZodNanoID,params)),inst.guid=params=>inst.check(_guid(ZodGUID,params)),inst.cuid=params=>inst.check(_cuid(ZodCUID,params)),inst.cuid2=params=>inst.check(_cuid2(ZodCUID2,params)),inst.ulid=params=>inst.check(_ulid(ZodULID,params)),inst.base64=params=>inst.check(_base64(ZodBase64,params)),inst.base64url=params=>inst.check(_base64url(ZodBase64URL,params)),inst.xid=params=>inst.check(_xid(ZodXID,params)),inst.ksuid=params=>inst.check(_ksuid(ZodKSUID,params)),inst.ipv4=params=>inst.check(_ipv4(ZodIPv4,params)),inst.ipv6=params=>inst.check(_ipv6(ZodIPv6,params)),inst.cidrv4=params=>inst.check(_cidrv4(ZodCIDRv4,params)),inst.cidrv6=params=>inst.check(_cidrv6(ZodCIDRv6,params)),inst.e164=params=>inst.check(_e164(ZodE164,params)),inst.datetime=params=>inst.check(datetime2(params)),inst.date=params=>inst.check(date2(params)),inst.time=params=>inst.check(time2(params)),inst.duration=params=>inst.check(duration2(params))});function string2(params){return _string(ZodString,params)}var ZodStringFormat=$constructor("ZodStringFormat",(inst,def)=>{$ZodStringFormat.init(inst,def),_ZodString.init(inst,def)}),ZodEmail=$constructor("ZodEmail",(inst,def)=>{$ZodEmail.init(inst,def),ZodStringFormat.init(inst,def)});function email2(params){return _email(ZodEmail,params)}var ZodGUID=$constructor("ZodGUID",(inst,def)=>{$ZodGUID.init(inst,def),ZodStringFormat.init(inst,def)});function guid2(params){return _guid(ZodGUID,params)}var ZodUUID=$constructor("ZodUUID",(inst,def)=>{$ZodUUID.init(inst,def),ZodStringFormat.init(inst,def)});function uuid2(params){return _uuid(ZodUUID,params)}function uuidv4(params){return _uuidv4(ZodUUID,params)}function uuidv6(params){return _uuidv6(ZodUUID,params)}function uuidv7(params){return _uuidv7(ZodUUID,params)}var ZodURL=$constructor("ZodURL",(inst,def)=>{$ZodURL.init(inst,def),ZodStringFormat.init(inst,def)});function url(params){return _url(ZodURL,params)}function httpUrl(params){return _url(ZodURL,{protocol:regexes_exports.httpProtocol,hostname:regexes_exports.domain,...util_exports.normalizeParams(params)})}var ZodEmoji=$constructor("ZodEmoji",(inst,def)=>{$ZodEmoji.init(inst,def),ZodStringFormat.init(inst,def)});function emoji2(params){return _emoji2(ZodEmoji,params)}var ZodNanoID=$constructor("ZodNanoID",(inst,def)=>{$ZodNanoID.init(inst,def),ZodStringFormat.init(inst,def)});function nanoid2(params){return _nanoid(ZodNanoID,params)}var ZodCUID=$constructor("ZodCUID",(inst,def)=>{$ZodCUID.init(inst,def),ZodStringFormat.init(inst,def)});function cuid3(params){return _cuid(ZodCUID,params)}var ZodCUID2=$constructor("ZodCUID2",(inst,def)=>{$ZodCUID2.init(inst,def),ZodStringFormat.init(inst,def)});function cuid22(params){return _cuid2(ZodCUID2,params)}var ZodULID=$constructor("ZodULID",(inst,def)=>{$ZodULID.init(inst,def),ZodStringFormat.init(inst,def)});function ulid2(params){return _ulid(ZodULID,params)}var ZodXID=$constructor("ZodXID",(inst,def)=>{$ZodXID.init(inst,def),ZodStringFormat.init(inst,def)});function xid2(params){return _xid(ZodXID,params)}var ZodKSUID=$constructor("ZodKSUID",(inst,def)=>{$ZodKSUID.init(inst,def),ZodStringFormat.init(inst,def)});function ksuid2(params){return _ksuid(ZodKSUID,params)}var ZodIPv4=$constructor("ZodIPv4",(inst,def)=>{$ZodIPv4.init(inst,def),ZodStringFormat.init(inst,def)});function ipv42(params){return _ipv4(ZodIPv4,params)}var ZodMAC=$constructor("ZodMAC",(inst,def)=>{$ZodMAC.init(inst,def),ZodStringFormat.init(inst,def)});function mac2(params){return _mac(ZodMAC,params)}var ZodIPv6=$constructor("ZodIPv6",(inst,def)=>{$ZodIPv6.init(inst,def),ZodStringFormat.init(inst,def)});function ipv62(params){return _ipv6(ZodIPv6,params)}var ZodCIDRv4=$constructor("ZodCIDRv4",(inst,def)=>{$ZodCIDRv4.init(inst,def),ZodStringFormat.init(inst,def)});function cidrv42(params){return _cidrv4(ZodCIDRv4,params)}var ZodCIDRv6=$constructor("ZodCIDRv6",(inst,def)=>{$ZodCIDRv6.init(inst,def),ZodStringFormat.init(inst,def)});function cidrv62(params){return _cidrv6(ZodCIDRv6,params)}var ZodBase64=$constructor("ZodBase64",(inst,def)=>{$ZodBase64.init(inst,def),ZodStringFormat.init(inst,def)});function base642(params){return _base64(ZodBase64,params)}var ZodBase64URL=$constructor("ZodBase64URL",(inst,def)=>{$ZodBase64URL.init(inst,def),ZodStringFormat.init(inst,def)});function base64url2(params){return _base64url(ZodBase64URL,params)}var ZodE164=$constructor("ZodE164",(inst,def)=>{$ZodE164.init(inst,def),ZodStringFormat.init(inst,def)});function e1642(params){return _e164(ZodE164,params)}var ZodJWT=$constructor("ZodJWT",(inst,def)=>{$ZodJWT.init(inst,def),ZodStringFormat.init(inst,def)});function jwt(params){return _jwt(ZodJWT,params)}var ZodCustomStringFormat=$constructor("ZodCustomStringFormat",(inst,def)=>{$ZodCustomStringFormat.init(inst,def),ZodStringFormat.init(inst,def)});function stringFormat(format,fnOrRegex,_params={}){return _stringFormat(ZodCustomStringFormat,format,fnOrRegex,_params)}function hostname2(_params){return _stringFormat(ZodCustomStringFormat,"hostname",regexes_exports.hostname,_params)}function hex2(_params){return _stringFormat(ZodCustomStringFormat,"hex",regexes_exports.hex,_params)}function hash2(alg,params){var _a9;let enc=(_a9=params==null?void 0:params.enc)!=null?_a9:"hex",format=`${alg}_${enc}`,regex=regexes_exports[format];if(!regex)throw new Error(`Unrecognized hash format: ${format}`);return _stringFormat(ZodCustomStringFormat,format,regex,params)}var ZodNumber=$constructor("ZodNumber",(inst,def)=>{var _a9,_b3,_c2,_d,_e,_f,_g,_h2,_i;$ZodNumber.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>numberProcessor(inst,ctx,json2,params),_installLazyMethods(inst,"ZodNumber",{gt(value,params){return this.check(_gt(value,params))},gte(value,params){return this.check(_gte(value,params))},min(value,params){return this.check(_gte(value,params))},lt(value,params){return this.check(_lt(value,params))},lte(value,params){return this.check(_lte(value,params))},max(value,params){return this.check(_lte(value,params))},int(params){return this.check(int(params))},safe(params){return this.check(int(params))},positive(params){return this.check(_gt(0,params))},nonnegative(params){return this.check(_gte(0,params))},negative(params){return this.check(_lt(0,params))},nonpositive(params){return this.check(_lte(0,params))},multipleOf(value,params){return this.check(_multipleOf(value,params))},step(value,params){return this.check(_multipleOf(value,params))},finite(){return this}});let bag=inst._zod.bag;inst.minValue=(_c2=Math.max((_a9=bag.minimum)!=null?_a9:Number.NEGATIVE_INFINITY,(_b3=bag.exclusiveMinimum)!=null?_b3:Number.NEGATIVE_INFINITY))!=null?_c2:null,inst.maxValue=(_f=Math.min((_d=bag.maximum)!=null?_d:Number.POSITIVE_INFINITY,(_e=bag.exclusiveMaximum)!=null?_e:Number.POSITIVE_INFINITY))!=null?_f:null,inst.isInt=((_g=bag.format)!=null?_g:"").includes("int")||Number.isSafeInteger((_h2=bag.multipleOf)!=null?_h2:.5),inst.isFinite=!0,inst.format=(_i=bag.format)!=null?_i:null});function number2(params){return _number(ZodNumber,params)}var ZodNumberFormat=$constructor("ZodNumberFormat",(inst,def)=>{$ZodNumberFormat.init(inst,def),ZodNumber.init(inst,def)});function int(params){return _int(ZodNumberFormat,params)}function float32(params){return _float32(ZodNumberFormat,params)}function float64(params){return _float64(ZodNumberFormat,params)}function int32(params){return _int32(ZodNumberFormat,params)}function uint32(params){return _uint32(ZodNumberFormat,params)}var ZodBoolean=$constructor("ZodBoolean",(inst,def)=>{$ZodBoolean.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>booleanProcessor(inst,ctx,json2,params)});function boolean2(params){return _boolean(ZodBoolean,params)}var ZodBigInt=$constructor("ZodBigInt",(inst,def)=>{var _a9,_b3,_c2;$ZodBigInt.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>bigintProcessor(inst,ctx,json2,params),inst.gte=(value,params)=>inst.check(_gte(value,params)),inst.min=(value,params)=>inst.check(_gte(value,params)),inst.gt=(value,params)=>inst.check(_gt(value,params)),inst.gte=(value,params)=>inst.check(_gte(value,params)),inst.min=(value,params)=>inst.check(_gte(value,params)),inst.lt=(value,params)=>inst.check(_lt(value,params)),inst.lte=(value,params)=>inst.check(_lte(value,params)),inst.max=(value,params)=>inst.check(_lte(value,params)),inst.positive=params=>inst.check(_gt(BigInt(0),params)),inst.negative=params=>inst.check(_lt(BigInt(0),params)),inst.nonpositive=params=>inst.check(_lte(BigInt(0),params)),inst.nonnegative=params=>inst.check(_gte(BigInt(0),params)),inst.multipleOf=(value,params)=>inst.check(_multipleOf(value,params));let bag=inst._zod.bag;inst.minValue=(_a9=bag.minimum)!=null?_a9:null,inst.maxValue=(_b3=bag.maximum)!=null?_b3:null,inst.format=(_c2=bag.format)!=null?_c2:null});function bigint2(params){return _bigint(ZodBigInt,params)}var ZodBigIntFormat=$constructor("ZodBigIntFormat",(inst,def)=>{$ZodBigIntFormat.init(inst,def),ZodBigInt.init(inst,def)});function int64(params){return _int64(ZodBigIntFormat,params)}function uint64(params){return _uint64(ZodBigIntFormat,params)}var ZodSymbol=$constructor("ZodSymbol",(inst,def)=>{$ZodSymbol.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>symbolProcessor(inst,ctx,json2,params)});function symbol(params){return _symbol(ZodSymbol,params)}var ZodUndefined=$constructor("ZodUndefined",(inst,def)=>{$ZodUndefined.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>undefinedProcessor(inst,ctx,json2,params)});function _undefined3(params){return _undefined2(ZodUndefined,params)}var ZodNull=$constructor("ZodNull",(inst,def)=>{$ZodNull.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>nullProcessor(inst,ctx,json2,params)});function _null3(params){return _null2(ZodNull,params)}var ZodAny=$constructor("ZodAny",(inst,def)=>{$ZodAny.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>anyProcessor(inst,ctx,json2,params)});function any(){return _any(ZodAny)}var ZodUnknown=$constructor("ZodUnknown",(inst,def)=>{$ZodUnknown.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>unknownProcessor(inst,ctx,json2,params)});function unknown(){return _unknown(ZodUnknown)}var ZodNever=$constructor("ZodNever",(inst,def)=>{$ZodNever.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>neverProcessor(inst,ctx,json2,params)});function never(params){return _never(ZodNever,params)}var ZodVoid=$constructor("ZodVoid",(inst,def)=>{$ZodVoid.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>voidProcessor(inst,ctx,json2,params)});function _void2(params){return _void(ZodVoid,params)}var ZodDate=$constructor("ZodDate",(inst,def)=>{$ZodDate.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>dateProcessor(inst,ctx,json2,params),inst.min=(value,params)=>inst.check(_gte(value,params)),inst.max=(value,params)=>inst.check(_lte(value,params));let c2=inst._zod.bag;inst.minDate=c2.minimum?new Date(c2.minimum):null,inst.maxDate=c2.maximum?new Date(c2.maximum):null});function date3(params){return _date(ZodDate,params)}var ZodArray=$constructor("ZodArray",(inst,def)=>{$ZodArray.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>arrayProcessor(inst,ctx,json2,params),inst.element=def.element,_installLazyMethods(inst,"ZodArray",{min(n,params){return this.check(_minLength(n,params))},nonempty(params){return this.check(_minLength(1,params))},max(n,params){return this.check(_maxLength(n,params))},length(n,params){return this.check(_length(n,params))},unwrap(){return this.element}})});function array(element2,params){return _array(ZodArray,element2,params)}function keyof(schema){let shape=schema._zod.def.shape;return _enum2(Object.keys(shape))}var ZodObject=$constructor("ZodObject",(inst,def)=>{$ZodObjectJIT.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>objectProcessor(inst,ctx,json2,params),util_exports.defineLazy(inst,"shape",()=>def.shape),_installLazyMethods(inst,"ZodObject",{keyof(){return _enum2(Object.keys(this._zod.def.shape))},catchall(catchall){return this.clone({...this._zod.def,catchall})},passthrough(){return this.clone({...this._zod.def,catchall:unknown()})},loose(){return this.clone({...this._zod.def,catchall:unknown()})},strict(){return this.clone({...this._zod.def,catchall:never()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(incoming){return util_exports.extend(this,incoming)},safeExtend(incoming){return util_exports.safeExtend(this,incoming)},merge(other){return util_exports.merge(this,other)},pick(mask){return util_exports.pick(this,mask)},omit(mask){return util_exports.omit(this,mask)},partial(...args){return util_exports.partial(ZodOptional,this,args[0])},required(...args){return util_exports.required(ZodNonOptional,this,args[0])}})});function object(shape,params){let def={type:"object",shape:shape!=null?shape:{},...util_exports.normalizeParams(params)};return new ZodObject(def)}function strictObject(shape,params){return new ZodObject({type:"object",shape,catchall:never(),...util_exports.normalizeParams(params)})}function looseObject(shape,params){return new ZodObject({type:"object",shape,catchall:unknown(),...util_exports.normalizeParams(params)})}var ZodUnion=$constructor("ZodUnion",(inst,def)=>{$ZodUnion.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>unionProcessor(inst,ctx,json2,params),inst.options=def.options});function union(options,params){return new ZodUnion({type:"union",options,...util_exports.normalizeParams(params)})}var ZodXor=$constructor("ZodXor",(inst,def)=>{ZodUnion.init(inst,def),$ZodXor.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>unionProcessor(inst,ctx,json2,params),inst.options=def.options});function xor(options,params){return new ZodXor({type:"union",options,inclusive:!1,...util_exports.normalizeParams(params)})}var ZodDiscriminatedUnion=$constructor("ZodDiscriminatedUnion",(inst,def)=>{ZodUnion.init(inst,def),$ZodDiscriminatedUnion.init(inst,def)});function discriminatedUnion(discriminator,options,params){return new ZodDiscriminatedUnion({type:"union",options,discriminator,...util_exports.normalizeParams(params)})}var ZodIntersection=$constructor("ZodIntersection",(inst,def)=>{$ZodIntersection.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>intersectionProcessor(inst,ctx,json2,params)});function intersection(left,right){return new ZodIntersection({type:"intersection",left,right})}var ZodTuple=$constructor("ZodTuple",(inst,def)=>{$ZodTuple.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>tupleProcessor(inst,ctx,json2,params),inst.rest=rest=>inst.clone({...inst._zod.def,rest})});function tuple(items,_paramsOrRest,_params){let hasRest=_paramsOrRest instanceof $ZodType,params=hasRest?_params:_paramsOrRest,rest=hasRest?_paramsOrRest:null;return new ZodTuple({type:"tuple",items,rest,...util_exports.normalizeParams(params)})}var ZodRecord=$constructor("ZodRecord",(inst,def)=>{$ZodRecord.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>recordProcessor(inst,ctx,json2,params),inst.keyType=def.keyType,inst.valueType=def.valueType});function record(keyType,valueType,params){return!valueType||!valueType._zod?new ZodRecord({type:"record",keyType:string2(),valueType:keyType,...util_exports.normalizeParams(valueType)}):new ZodRecord({type:"record",keyType,valueType,...util_exports.normalizeParams(params)})}function partialRecord(keyType,valueType,params){let k=clone(keyType);return k._zod.values=void 0,new ZodRecord({type:"record",keyType:k,valueType,...util_exports.normalizeParams(params)})}function looseRecord(keyType,valueType,params){return new ZodRecord({type:"record",keyType,valueType,mode:"loose",...util_exports.normalizeParams(params)})}var ZodMap=$constructor("ZodMap",(inst,def)=>{$ZodMap.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>mapProcessor(inst,ctx,json2,params),inst.keyType=def.keyType,inst.valueType=def.valueType,inst.min=(...args)=>inst.check(_minSize(...args)),inst.nonempty=params=>inst.check(_minSize(1,params)),inst.max=(...args)=>inst.check(_maxSize(...args)),inst.size=(...args)=>inst.check(_size(...args))});function map(keyType,valueType,params){return new ZodMap({type:"map",keyType,valueType,...util_exports.normalizeParams(params)})}var ZodSet=$constructor("ZodSet",(inst,def)=>{$ZodSet.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>setProcessor(inst,ctx,json2,params),inst.min=(...args)=>inst.check(_minSize(...args)),inst.nonempty=params=>inst.check(_minSize(1,params)),inst.max=(...args)=>inst.check(_maxSize(...args)),inst.size=(...args)=>inst.check(_size(...args))});function set2(valueType,params){return new ZodSet({type:"set",valueType,...util_exports.normalizeParams(params)})}var ZodEnum=$constructor("ZodEnum",(inst,def)=>{$ZodEnum.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>enumProcessor(inst,ctx,json2,params),inst.enum=def.entries,inst.options=Object.values(def.entries);let keys=new Set(Object.keys(def.entries));inst.extract=(values,params)=>{let newEntries={};for(let value of values)if(keys.has(value))newEntries[value]=def.entries[value];else throw new Error(`Key ${value} not found in enum`);return new ZodEnum({...def,checks:[],...util_exports.normalizeParams(params),entries:newEntries})},inst.exclude=(values,params)=>{let newEntries={...def.entries};for(let value of values)if(keys.has(value))delete newEntries[value];else throw new Error(`Key ${value} not found in enum`);return new ZodEnum({...def,checks:[],...util_exports.normalizeParams(params),entries:newEntries})}});function _enum2(values,params){let entries=Array.isArray(values)?Object.fromEntries(values.map(v=>[v,v])):values;return new ZodEnum({type:"enum",entries,...util_exports.normalizeParams(params)})}function nativeEnum(entries,params){return new ZodEnum({type:"enum",entries,...util_exports.normalizeParams(params)})}var ZodLiteral=$constructor("ZodLiteral",(inst,def)=>{$ZodLiteral.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>literalProcessor(inst,ctx,json2,params),inst.values=new Set(def.values),Object.defineProperty(inst,"value",{get(){if(def.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return def.values[0]}})});function literal(value,params){return new ZodLiteral({type:"literal",values:Array.isArray(value)?value:[value],...util_exports.normalizeParams(params)})}var ZodFile=$constructor("ZodFile",(inst,def)=>{$ZodFile.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>fileProcessor(inst,ctx,json2,params),inst.min=(size,params)=>inst.check(_minSize(size,params)),inst.max=(size,params)=>inst.check(_maxSize(size,params)),inst.mime=(types3,params)=>inst.check(_mime(Array.isArray(types3)?types3:[types3],params))});function file(params){return _file(ZodFile,params)}var ZodTransform=$constructor("ZodTransform",(inst,def)=>{$ZodTransform.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>transformProcessor(inst,ctx,json2,params),inst._zod.parse=(payload,_ctx)=>{if(_ctx.direction==="backward")throw new $ZodEncodeError(inst.constructor.name);payload.addIssue=issue2=>{var _a9,_b3,_c2;if(typeof issue2=="string")payload.issues.push(util_exports.issue(issue2,payload.value,def));else{let _issue=issue2;_issue.fatal&&(_issue.continue=!1),(_a9=_issue.code)!=null||(_issue.code="custom"),(_b3=_issue.input)!=null||(_issue.input=payload.value),(_c2=_issue.inst)!=null||(_issue.inst=inst),payload.issues.push(util_exports.issue(_issue))}};let output=def.transform(payload.value,payload);return output instanceof Promise?output.then(output2=>(payload.value=output2,payload.fallback=!0,payload)):(payload.value=output,payload.fallback=!0,payload)}});function transform(fn){return new ZodTransform({type:"transform",transform:fn})}var ZodOptional=$constructor("ZodOptional",(inst,def)=>{$ZodOptional.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>optionalProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.innerType});function optional(innerType){return new ZodOptional({type:"optional",innerType})}var ZodExactOptional=$constructor("ZodExactOptional",(inst,def)=>{$ZodExactOptional.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>optionalProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.innerType});function exactOptional(innerType){return new ZodExactOptional({type:"optional",innerType})}var ZodNullable=$constructor("ZodNullable",(inst,def)=>{$ZodNullable.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>nullableProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.innerType});function nullable(innerType){return new ZodNullable({type:"nullable",innerType})}function nullish2(innerType){return optional(nullable(innerType))}var ZodDefault=$constructor("ZodDefault",(inst,def)=>{$ZodDefault.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>defaultProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.innerType,inst.removeDefault=inst.unwrap});function _default2(innerType,defaultValue){return new ZodDefault({type:"default",innerType,get defaultValue(){return typeof defaultValue=="function"?defaultValue():util_exports.shallowClone(defaultValue)}})}var ZodPrefault=$constructor("ZodPrefault",(inst,def)=>{$ZodPrefault.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>prefaultProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.innerType});function prefault(innerType,defaultValue){return new ZodPrefault({type:"prefault",innerType,get defaultValue(){return typeof defaultValue=="function"?defaultValue():util_exports.shallowClone(defaultValue)}})}var ZodNonOptional=$constructor("ZodNonOptional",(inst,def)=>{$ZodNonOptional.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>nonoptionalProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.innerType});function nonoptional(innerType,params){return new ZodNonOptional({type:"nonoptional",innerType,...util_exports.normalizeParams(params)})}var ZodSuccess=$constructor("ZodSuccess",(inst,def)=>{$ZodSuccess.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>successProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.innerType});function success(innerType){return new ZodSuccess({type:"success",innerType})}var ZodCatch=$constructor("ZodCatch",(inst,def)=>{$ZodCatch.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>catchProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.innerType,inst.removeCatch=inst.unwrap});function _catch2(innerType,catchValue){return new ZodCatch({type:"catch",innerType,catchValue:typeof catchValue=="function"?catchValue:()=>catchValue})}var ZodNaN=$constructor("ZodNaN",(inst,def)=>{$ZodNaN.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>nanProcessor(inst,ctx,json2,params)});function nan(params){return _nan(ZodNaN,params)}var ZodPipe=$constructor("ZodPipe",(inst,def)=>{$ZodPipe.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>pipeProcessor(inst,ctx,json2,params),inst.in=def.in,inst.out=def.out});function pipe(in_,out){return new ZodPipe({type:"pipe",in:in_,out})}var ZodCodec=$constructor("ZodCodec",(inst,def)=>{ZodPipe.init(inst,def),$ZodCodec.init(inst,def)});function codec(in_,out,params){return new ZodCodec({type:"pipe",in:in_,out,transform:params.decode,reverseTransform:params.encode})}function invertCodec(codec2){let def=codec2._zod.def;return new ZodCodec({type:"pipe",in:def.out,out:def.in,transform:def.reverseTransform,reverseTransform:def.transform})}var ZodPreprocess=$constructor("ZodPreprocess",(inst,def)=>{ZodPipe.init(inst,def),$ZodPreprocess.init(inst,def)}),ZodReadonly=$constructor("ZodReadonly",(inst,def)=>{$ZodReadonly.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>readonlyProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.innerType});function readonly(innerType){return new ZodReadonly({type:"readonly",innerType})}var ZodTemplateLiteral=$constructor("ZodTemplateLiteral",(inst,def)=>{$ZodTemplateLiteral.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>templateLiteralProcessor(inst,ctx,json2,params)});function templateLiteral(parts,params){return new ZodTemplateLiteral({type:"template_literal",parts,...util_exports.normalizeParams(params)})}var ZodLazy=$constructor("ZodLazy",(inst,def)=>{$ZodLazy.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>lazyProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.getter()});function lazy(getter){return new ZodLazy({type:"lazy",getter})}var ZodPromise=$constructor("ZodPromise",(inst,def)=>{$ZodPromise.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>promiseProcessor(inst,ctx,json2,params),inst.unwrap=()=>inst._zod.def.innerType});function promise(innerType){return new ZodPromise({type:"promise",innerType})}var ZodFunction=$constructor("ZodFunction",(inst,def)=>{$ZodFunction.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>functionProcessor(inst,ctx,json2,params)});function _function(params){var _a9,_b3;return new ZodFunction({type:"function",input:Array.isArray(params==null?void 0:params.input)?tuple(params==null?void 0:params.input):(_a9=params==null?void 0:params.input)!=null?_a9:array(unknown()),output:(_b3=params==null?void 0:params.output)!=null?_b3:unknown()})}var ZodCustom=$constructor("ZodCustom",(inst,def)=>{$ZodCustom.init(inst,def),ZodType.init(inst,def),inst._zod.processJSONSchema=(ctx,json2,params)=>customProcessor(inst,ctx,json2,params)});function check(fn){let ch=new $ZodCheck({check:"custom"});return ch._zod.check=fn,ch}function custom(fn,_params){return _custom(ZodCustom,fn!=null?fn:(()=>!0),_params)}function refine(fn,_params={}){return _refine(ZodCustom,fn,_params)}function superRefine(fn,params){return _superRefine(fn,params)}var describe2=describe,meta2=meta;function _instanceof(cls,params={}){let inst=new ZodCustom({type:"custom",check:"custom",fn:data=>data instanceof cls,abort:!0,...util_exports.normalizeParams(params)});return inst._zod.bag.Class=cls,inst._zod.check=payload=>{var _a9;payload.value instanceof cls||payload.issues.push({code:"invalid_type",expected:cls.name,input:payload.value,inst,path:[...(_a9=inst._zod.def.path)!=null?_a9:[]]})},inst}var stringbool=(...args)=>_stringbool({Codec:ZodCodec,Boolean:ZodBoolean,String:ZodString},...args);function json(params){let jsonSchema=lazy(()=>union([string2(params),number2(),boolean2(),_null3(),array(jsonSchema),record(string2(),jsonSchema)]));return jsonSchema}function preprocess(fn,schema){return new ZodPreprocess({type:"pipe",in:transform(fn),out:schema})}var ZodIssueCode={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function setErrorMap(map2){config({customError:map2})}function getErrorMap(){return config().customError}var ZodFirstPartyTypeKind;ZodFirstPartyTypeKind||(ZodFirstPartyTypeKind={});var z={...schemas_exports2,...checks_exports2,iso:iso_exports},RECOGNIZED_KEYS=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function detectVersion(schema,defaultTarget){let $schema=schema.$schema;return $schema==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":$schema==="http://json-schema.org/draft-07/schema#"?"draft-7":$schema==="http://json-schema.org/draft-04/schema#"?"draft-4":defaultTarget!=null?defaultTarget:"draft-2020-12"}function resolveRef(ref,ctx){if(!ref.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let path=ref.slice(1).split("/").filter(Boolean);if(path.length===0)return ctx.rootSchema;let defsKey=ctx.version==="draft-2020-12"?"$defs":"definitions";if(path[0]===defsKey){let key2=path[1];if(!key2||!ctx.defs[key2])throw new Error(`Reference not found: ${ref}`);return ctx.defs[key2]}throw new Error(`Reference not found: ${ref}`)}function convertBaseSchema(schema,ctx){if(schema.not!==void 0){if(typeof schema.not=="object"&&Object.keys(schema.not).length===0)return z.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(schema.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(schema.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(schema.if!==void 0||schema.then!==void 0||schema.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(schema.dependentSchemas!==void 0||schema.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(schema.$ref){let refPath=schema.$ref;if(ctx.refs.has(refPath))return ctx.refs.get(refPath);if(ctx.processing.has(refPath))return z.lazy(()=>{if(!ctx.refs.has(refPath))throw new Error(`Circular reference not resolved: ${refPath}`);return ctx.refs.get(refPath)});ctx.processing.add(refPath);let resolved=resolveRef(refPath,ctx),zodSchema2=convertSchema(resolved,ctx);return ctx.refs.set(refPath,zodSchema2),ctx.processing.delete(refPath),zodSchema2}if(schema.enum!==void 0){let enumValues=schema.enum;if(ctx.version==="openapi-3.0"&&schema.nullable===!0&&enumValues.length===1&&enumValues[0]===null)return z.null();if(enumValues.length===0)return z.never();if(enumValues.length===1)return z.literal(enumValues[0]);if(enumValues.every(v=>typeof v=="string"))return z.enum(enumValues);let literalSchemas=enumValues.map(v=>z.literal(v));return literalSchemas.length<2?literalSchemas[0]:z.union([literalSchemas[0],literalSchemas[1],...literalSchemas.slice(2)])}if(schema.const!==void 0)return z.literal(schema.const);let type=schema.type;if(Array.isArray(type)){let typeSchemas=type.map(t=>{let typeSchema={...schema,type:t};return convertBaseSchema(typeSchema,ctx)});return typeSchemas.length===0?z.never():typeSchemas.length===1?typeSchemas[0]:z.union(typeSchemas)}if(!type)return z.any();let zodSchema;switch(type){case"string":{let stringSchema=z.string();if(schema.format){let format=schema.format;format==="email"?stringSchema=stringSchema.check(z.email()):format==="uri"||format==="uri-reference"?stringSchema=stringSchema.check(z.url()):format==="uuid"||format==="guid"?stringSchema=stringSchema.check(z.uuid()):format==="date-time"?stringSchema=stringSchema.check(z.iso.datetime()):format==="date"?stringSchema=stringSchema.check(z.iso.date()):format==="time"?stringSchema=stringSchema.check(z.iso.time()):format==="duration"?stringSchema=stringSchema.check(z.iso.duration()):format==="ipv4"?stringSchema=stringSchema.check(z.ipv4()):format==="ipv6"?stringSchema=stringSchema.check(z.ipv6()):format==="mac"?stringSchema=stringSchema.check(z.mac()):format==="cidr"?stringSchema=stringSchema.check(z.cidrv4()):format==="cidr-v6"?stringSchema=stringSchema.check(z.cidrv6()):format==="base64"?stringSchema=stringSchema.check(z.base64()):format==="base64url"?stringSchema=stringSchema.check(z.base64url()):format==="e164"?stringSchema=stringSchema.check(z.e164()):format==="jwt"?stringSchema=stringSchema.check(z.jwt()):format==="emoji"?stringSchema=stringSchema.check(z.emoji()):format==="nanoid"?stringSchema=stringSchema.check(z.nanoid()):format==="cuid"?stringSchema=stringSchema.check(z.cuid()):format==="cuid2"?stringSchema=stringSchema.check(z.cuid2()):format==="ulid"?stringSchema=stringSchema.check(z.ulid()):format==="xid"?stringSchema=stringSchema.check(z.xid()):format==="ksuid"&&(stringSchema=stringSchema.check(z.ksuid()))}typeof schema.minLength=="number"&&(stringSchema=stringSchema.min(schema.minLength)),typeof schema.maxLength=="number"&&(stringSchema=stringSchema.max(schema.maxLength)),schema.pattern&&(stringSchema=stringSchema.regex(new RegExp(schema.pattern))),zodSchema=stringSchema;break}case"number":case"integer":{let numberSchema=type==="integer"?z.number().int():z.number();typeof schema.minimum=="number"&&(numberSchema=numberSchema.min(schema.minimum)),typeof schema.maximum=="number"&&(numberSchema=numberSchema.max(schema.maximum)),typeof schema.exclusiveMinimum=="number"?numberSchema=numberSchema.gt(schema.exclusiveMinimum):schema.exclusiveMinimum===!0&&typeof schema.minimum=="number"&&(numberSchema=numberSchema.gt(schema.minimum)),typeof schema.exclusiveMaximum=="number"?numberSchema=numberSchema.lt(schema.exclusiveMaximum):schema.exclusiveMaximum===!0&&typeof schema.maximum=="number"&&(numberSchema=numberSchema.lt(schema.maximum)),typeof schema.multipleOf=="number"&&(numberSchema=numberSchema.multipleOf(schema.multipleOf)),zodSchema=numberSchema;break}case"boolean":{zodSchema=z.boolean();break}case"null":{zodSchema=z.null();break}case"object":{let shape={},properties=schema.properties||{},requiredSet=new Set(schema.required||[]);for(let[key2,propSchema]of Object.entries(properties)){let propZodSchema=convertSchema(propSchema,ctx);shape[key2]=requiredSet.has(key2)?propZodSchema:propZodSchema.optional()}if(schema.propertyNames){let keySchema=convertSchema(schema.propertyNames,ctx),valueSchema=schema.additionalProperties&&typeof schema.additionalProperties=="object"?convertSchema(schema.additionalProperties,ctx):z.any();if(Object.keys(shape).length===0){zodSchema=z.record(keySchema,valueSchema);break}let objectSchema2=z.object(shape).passthrough(),recordSchema=z.looseRecord(keySchema,valueSchema);zodSchema=z.intersection(objectSchema2,recordSchema);break}if(schema.patternProperties){let patternProps=schema.patternProperties,patternKeys=Object.keys(patternProps),looseRecords=[];for(let pattern of patternKeys){let patternValue=convertSchema(patternProps[pattern],ctx),keySchema=z.string().regex(new RegExp(pattern));looseRecords.push(z.looseRecord(keySchema,patternValue))}let schemasToIntersect=[];if(Object.keys(shape).length>0&&schemasToIntersect.push(z.object(shape).passthrough()),schemasToIntersect.push(...looseRecords),schemasToIntersect.length===0)zodSchema=z.object({}).passthrough();else if(schemasToIntersect.length===1)zodSchema=schemasToIntersect[0];else{let result=z.intersection(schemasToIntersect[0],schemasToIntersect[1]);for(let i=2;i<schemasToIntersect.length;i++)result=z.intersection(result,schemasToIntersect[i]);zodSchema=result}break}let objectSchema=z.object(shape);schema.additionalProperties===!1?zodSchema=objectSchema.strict():typeof schema.additionalProperties=="object"?zodSchema=objectSchema.catchall(convertSchema(schema.additionalProperties,ctx)):zodSchema=objectSchema.passthrough();break}case"array":{let prefixItems=schema.prefixItems,items=schema.items;if(prefixItems&&Array.isArray(prefixItems)){let tupleItems=prefixItems.map(item=>convertSchema(item,ctx)),rest=items&&typeof items=="object"&&!Array.isArray(items)?convertSchema(items,ctx):void 0;rest?zodSchema=z.tuple(tupleItems).rest(rest):zodSchema=z.tuple(tupleItems),typeof schema.minItems=="number"&&(zodSchema=zodSchema.check(z.minLength(schema.minItems))),typeof schema.maxItems=="number"&&(zodSchema=zodSchema.check(z.maxLength(schema.maxItems)))}else if(Array.isArray(items)){let tupleItems=items.map(item=>convertSchema(item,ctx)),rest=schema.additionalItems&&typeof schema.additionalItems=="object"?convertSchema(schema.additionalItems,ctx):void 0;rest?zodSchema=z.tuple(tupleItems).rest(rest):zodSchema=z.tuple(tupleItems),typeof schema.minItems=="number"&&(zodSchema=zodSchema.check(z.minLength(schema.minItems))),typeof schema.maxItems=="number"&&(zodSchema=zodSchema.check(z.maxLength(schema.maxItems)))}else if(items!==void 0){let element2=convertSchema(items,ctx),arraySchema=z.array(element2);typeof schema.minItems=="number"&&(arraySchema=arraySchema.min(schema.minItems)),typeof schema.maxItems=="number"&&(arraySchema=arraySchema.max(schema.maxItems)),zodSchema=arraySchema}else zodSchema=z.array(z.any());break}default:throw new Error(`Unsupported type: ${type}`)}return zodSchema}function convertSchema(schema,ctx){if(typeof schema=="boolean")return schema?z.any():z.never();let baseSchema=convertBaseSchema(schema,ctx),hasExplicitType=schema.type||schema.enum!==void 0||schema.const!==void 0;if(schema.anyOf&&Array.isArray(schema.anyOf)){let options=schema.anyOf.map(s=>convertSchema(s,ctx)),anyOfUnion=z.union(options);baseSchema=hasExplicitType?z.intersection(baseSchema,anyOfUnion):anyOfUnion}if(schema.oneOf&&Array.isArray(schema.oneOf)){let options=schema.oneOf.map(s=>convertSchema(s,ctx)),oneOfUnion=z.xor(options);baseSchema=hasExplicitType?z.intersection(baseSchema,oneOfUnion):oneOfUnion}if(schema.allOf&&Array.isArray(schema.allOf))if(schema.allOf.length===0)baseSchema=hasExplicitType?baseSchema:z.any();else{let result=hasExplicitType?baseSchema:convertSchema(schema.allOf[0],ctx),startIdx=hasExplicitType?0:1;for(let i=startIdx;i<schema.allOf.length;i++)result=z.intersection(result,convertSchema(schema.allOf[i],ctx));baseSchema=result}schema.nullable===!0&&ctx.version==="openapi-3.0"&&(baseSchema=z.nullable(baseSchema)),schema.readOnly===!0&&(baseSchema=z.readonly(baseSchema)),schema.default!==void 0&&(baseSchema=baseSchema.default(schema.default));let extraMeta={},coreMetadataKeys=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let key2 of coreMetadataKeys)key2 in schema&&(extraMeta[key2]=schema[key2]);let contentMetadataKeys=["contentEncoding","contentMediaType","contentSchema"];for(let key2 of contentMetadataKeys)key2 in schema&&(extraMeta[key2]=schema[key2]);for(let key2 of Object.keys(schema))RECOGNIZED_KEYS.has(key2)||(extraMeta[key2]=schema[key2]);return Object.keys(extraMeta).length>0&&ctx.registry.add(baseSchema,extraMeta),schema.description&&(baseSchema=baseSchema.describe(schema.description)),baseSchema}function fromJSONSchema(schema,params){var _a9;if(typeof schema=="boolean")return schema?z.any():z.never();let normalized;try{normalized=JSON.parse(JSON.stringify(schema))}catch(e){throw new Error("fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas")}let version2=detectVersion(normalized,params==null?void 0:params.defaultTarget),defs=normalized.$defs||normalized.definitions||{},ctx={version:version2,defs,refs:new Map,processing:new Set,rootSchema:normalized,registry:(_a9=params==null?void 0:params.registry)!=null?_a9:globalRegistry};return convertSchema(normalized,ctx)}var coerce_exports={};__export(coerce_exports,{bigint:()=>bigint3,boolean:()=>boolean3,date:()=>date4,number:()=>number3,string:()=>string3});function string3(params){return _coercedString(ZodString,params)}function number3(params){return _coercedNumber(ZodNumber,params)}function boolean3(params){return _coercedBoolean(ZodBoolean,params)}function bigint3(params){return _coercedBigint(ZodBigInt,params)}function date4(params){return _coercedDate(ZodDate,params)}config(en_default());var zod_default=external_exports;var defaultTemplate_default=`{% if is_new_article %}
# Metadata
{% if link %}Source URL:: {{link}}{% endif %}
{% if tags|length %}Topics:: #{{ tags | join(", #") }}{% endif %}
---
# {{title}}
{% if excerpt %}{{excerpt}}{% endif %}
## Highlights
{% endif -%}{% for highlight in highlights %}
{% if highlight.color == "red" -%}
{%- set callout = "danger" -%}
{%- elif highlight.color == "blue" -%}
{%- set callout = "info" -%}
{%- elif highlight.color == "green" -%}
{%- set callout = "check" -%}
{%- else -%}
{%- set callout = "quote" -%}
{%- endif -%}
> [!{{callout}}]+ Updated on {{highlight.lastUpdate}}
>
> {{highlight.text.split("\\n") | join("\\n>")}}
{% if highlight.note -%}> > {{highlight.note + "\\n"}}{%- endif %}
{%- endfor -%}
`;var defaultFilenameTemplate_default=`{{title}}
`;var VERSION3="0.0.25",DEFAULT_SETTINGS={version:VERSION3,username:void 0,isConnected:!1,ribbonIcon:!0,appendMode:!0,collectionsFolders:!0,onlyBookmarksWithHl:!1,syncDeleteFiles:!1,syncDeleteUseTrash:!0,highlightsFolder:"/",collectionGroups:!1,autoSyncSuccessNotice:!0,autoSyncAllCollections:!1,autoSyncNewNestedCollections:!1,syncCollections:{},template:defaultTemplate_default,metadataTemplate:defaultMetadataTemplate_default,filenameTemplate:defaultFilenameTemplate_default,preventMovingExistingFiles:!0,autoSyncInterval:0,autoescape:!0},SYSTEM_COLLECTIONS=[{id:0,title:"All bookmarks",parentId:null},{id:-1,title:"Unsorted",parentId:null},{id:-99,title:"Trash",parentId:null}];var BASEURL="https://api.raindrop.io/rest/v1",ZOptEmptyString=zod_default.string().optional().nullable().transform(val=>val!=null?val:""),ZUser=zod_default.object({user:zod_default.object({fullName:ZOptEmptyString,groups:zod_default.array(zod_default.object({collections:zod_default.array(zod_default.number()),title:ZOptEmptyString}))})}),ZRootCollection=zod_default.object({items:zod_default.array(zod_default.object({_id:zod_default.number(),title:ZOptEmptyString}))}),ZChildrenCollection=zod_default.object({items:zod_default.array(zod_default.object({_id:zod_default.number(),title:ZOptEmptyString,parent:zod_default.object({$id:zod_default.number()}).optional().nullable()}))}),ZRaindrop=zod_default.object({_id:zod_default.number(),collectionId:zod_default.number(),cover:ZOptEmptyString,created:zod_default.coerce.date(),creatorRef:zod_default.object({_id:zod_default.number(),name:ZOptEmptyString}),excerpt:ZOptEmptyString,highlights:zod_default.array(zod_default.object({color:zod_default.string().optional().default("yellow"),created:zod_default.coerce.date(),lastUpdate:zod_default.coerce.date(),note:ZOptEmptyString,text:ZOptEmptyString,_id:zod_default.string()})),important:zod_default.boolean().optional().default(!1),lastUpdate:zod_default.coerce.date(),link:ZOptEmptyString,note:ZOptEmptyString,tags:zod_default.array(zod_default.string()),title:ZOptEmptyString,type:ZOptEmptyString}),ZRaindrops=zod_default.object({count:zod_default.number(),items:zod_default.array(ZRaindrop)});esm_default(axios_default,{retries:3,retryCondition:error51=>error51.response&&error51.response.status===429?(new import_obsidian7.Notice("Too many requests, will retry sync after 1 minute",5),console.warn("Too many requests, will retry sync after 1 minute"),!0):(console.error(`request error: ${error51}`),!1),retryDelay:()=>6e4,onRetry:retryCount=>{new import_obsidian7.Notice(`Retry sync ${retryCount}/3`)}});var RaindropAPI=class{constructor(app){this.app=app,this.tokenManager=new TokenManager}async get(url2,params){let token=this.tokenManager.get();if(!token)throw new Error("Invalid token");let result=await axios_default.get(url2,{params,headers:{Authorization:`Bearer ${token}`,"Content-Type":"application/json"}});if(result.status==401)throw new Error("Unauthorized");if(result.status!==200)throw console.error("Raindrop API request failed:",result),new Error("Request failed");return result.data}async getCollections(enableCollectionGroup){let[rawRootCollections,rawNestedCollections]=await Promise.all([this.get(`${BASEURL}/collections`,{}),this.get(`${BASEURL}/collections/childrens`,{})]),collections=[...SYSTEM_COLLECTIONS],collectionGroupMap={};enableCollectionGroup&&(await this.getUser()).groups.forEach(g=>{g.collections.forEach(cid=>{collectionGroupMap[cid]=g.title})});let rootCollectionMap={};ZRootCollection.parse(rawRootCollections).items.forEach(collection=>{let id=collection._id,title=collection.title;enableCollectionGroup&&(title=`${collectionGroupMap[id]}/${title}`),rootCollectionMap[id]=title,collections.push({title,id,parentId:null})});let nestedCollectionMap={},nestedCollections=ZChildrenCollection.parse(rawNestedCollections);return nestedCollections.items.forEach(collection=>{var _a9,_b3;let id=collection._id;nestedCollectionMap[id]={title:collection.title,parentId:(_b3=(_a9=collection.parent)==null?void 0:_a9.$id)!=null?_b3:0}}),nestedCollections.items.forEach(collection=>{var _a9,_b3,_c2,_d;let id=collection._id,curParentId=(_b3=(_a9=collection.parent)==null?void 0:_a9.$id)!=null?_b3:0,curParent,title=collection.title;for(;curParentId&&(curParent=nestedCollectionMap[curParentId]);)title=`${curParent.title}/${title}`,curParentId=curParent.parentId;curParentId&&curParentId in rootCollectionMap&&(title=`${rootCollectionMap[curParentId]}/${title}`),collections.push({title,id,parentId:(_d=(_c2=collection.parent)==null?void 0:_c2.$id)!=null?_d:null})}),collections}async*getRaindropsAfter(collection,notice,lastSync){let getPage=async page2=>{let url2=`${BASEURL}/raindrops/${collection.id}`,res2=await this.get(url2,{search:collection.search?collection.search:void 0,page:page2,perpage:50,sort:"-lastUpdate"});try{return ZRaindrops.parse(res2)}catch(e){throw console.error("Failed to parse raindrops page:",res2),e}},res=await getPage(0),raindropsCnt=res.count,bookmarks=this.parseRaindrops(res.items),totalPages=Math.ceil(raindropsCnt/50),remainPages=totalPages-1,page=1;if(lastSync===void 0){if(bookmarks.length>0)for(yield bookmarks;remainPages--;){notice==null||notice.setMessage(`Sync "${collection.title}", pages: ${page+1}/${totalPages}`);let res2=await getPage(page++);yield this.parseRaindrops(res2.items)}}else{let filterLastUpdated=bookmarks2=>bookmarks2.filter(bookmark=>bookmark.lastUpdate.getTime()>=lastSync.getTime()),filteredBookmark=filterLastUpdated(bookmarks),lastBookmark;if(filteredBookmark.length>0)for(yield filteredBookmark;(lastBookmark=filteredBookmark[filteredBookmark.length-1])&&lastBookmark.lastUpdate.getTime()>=lastSync.getTime()&&remainPages--;){notice==null||notice.setMessage(`Sync Raindrop pages: ${page+1}/${totalPages}`);let res2=await getPage(page++);yield filterLastUpdated(this.parseRaindrops(res2.items))}}notice==null||notice.hide()}async getUser(){let res=await this.get(`${BASEURL}/user`,{});return ZUser.parse(res).user}async checkToken(token){let result;try{if(result=await axios_default.get(`${BASEURL}/user`,{headers:{Authorization:`Bearer ${token}`,"Content-Type":"application/json"}}),result.status!==200)throw new Error("Invalid token")}catch(e){throw new Error("Invalid token")}return ZUser.parse(result.data).user}async getRaindrop(id){let res=await this.get(`${BASEURL}/raindrop/${id}`,{});return this.parseRaindrop(ZRaindrop.parse(res.item))}parseRaindrops(bookmarks){return bookmarks.map(this.parseRaindrop)}parseRaindrop(raindrop){let{_id,highlights,creatorRef,...rest}=raindrop;return{id:_id,creator:{id:creatorRef._id,name:creatorRef.name},highlights:highlights.map(hl=>{let{_id:_id2,...rest2}=hl;return{id:_id2,signature:h.hashStr(`${hl.color},${hl.text},${hl.note}`),...rest2}}),...rest}}};var import_obsidian9=require("obsidian");var import_obsidian8=require("obsidian"),import_semver=__toESM(require_semver2()),BreadkingChangeModal=class extends import_obsidian8.Modal{constructor(app,currentVersion){super(app),this.titleEl.innerText="Raindrop Highlight - Breaking Changes";let breakingChanges="";import_semver.default.lt(currentVersion,"0.0.21")&&(breakingChanges+='<p>v0.0.21</p>\n<ul>\n<li>Sync collections from last update time is now changed to sync from created time. You should now use either `Raindrop Highlights: Sync all bookmarks (full sync)` or `Raindrop Highlights: Sync this bookmark` command to update existing files. See issue <a href="https://github.com/kaiiiz/obsidian-raindrop-highlights-plugin/issues/72">#72</a> for details.</li>\n</ul>\n'),import_semver.default.lt(currentVersion,"0.0.19")&&(breakingChanges+=`<p>v0.0.19</p>
<ul>
<li>The front matter property <code>raindrop_last_update</code> has now been replaced by <code>raindrop_highlights</code>, which stores the highlight signature for each highlight entry to fix the duplicate highlight entry bug in append mode.</li>
<li>The file name and front matter are now synced with templates while performing updates.</li>
</ul>
`),import_semver.default.lt(currentVersion,"0.0.18")&&(breakingChanges+=`<p>v0.0.18</p>
<ul>
<li>Date &amp; time format field is replaced by the <code>date</code> filter in template. Update <code>created</code> and <code>lastUpdate</code> in template accordingly.</li>
</ul>
`),breakingChanges!==""&&(this.contentEl.innerHTML=breakingChanges,this.open())}onClose(){super.onClose()}};var ZPluginSettings=zod_default.object({version:zod_default.string().optional().default(VERSION3),username:zod_default.string().optional(),isConnected:zod_default.boolean().optional().default(!1),ribbonIcon:zod_default.boolean().optional().default(!0),appendMode:zod_default.boolean().optional().default(!0),collectionsFolders:zod_default.boolean().optional().default(!0),onlyBookmarksWithHl:zod_default.boolean().optional().default(!1),syncDeleteFiles:zod_default.boolean().optional().default(!1),syncDeleteUseTrash:zod_default.boolean().optional().default(!0),highlightsFolder:zod_default.string().optional().default("/"),collectionGroups:zod_default.boolean().optional().default(!1),autoSyncSuccessNotice:zod_default.boolean().optional().default(!0),autoSyncAllCollections:zod_default.boolean().optional().default(!0),autoSyncNewNestedCollections:zod_default.boolean().optional().default(!1),syncCollections:zod_default.record(zod_default.string(),zod_default.object({id:zod_default.number(),title:zod_default.string(),sync:zod_default.boolean(),lastSyncDate:zod_default.coerce.date().optional(),parentId:zod_default.number().optional(),search:zod_default.string().optional()})).optional().default({}),template:zod_default.string().optional().default(defaultTemplate_default),metadataTemplate:zod_default.string().optional().default(""),filenameTemplate:zod_default.string().optional().default(defaultFilenameTemplate_default),preventMovingExistingFiles:zod_default.boolean().optional().default(!0),autoSyncInterval:zod_default.number().optional().default(0),autoescape:zod_default.boolean().optional().default(!0)});var import_semver2=__toESM(require_semver2()),RaindropPluginSettings=class{constructor(app,plugin){this._app=app,this._plugin=plugin,this._settings=DEFAULT_SETTINGS}get enableRibbonIcon(){return this._settings.ribbonIcon}async setEnableRibbonIcon(value){this._settings.ribbonIcon=value,await this.save()}get enableAppendMode(){return this._settings.appendMode}async setEnableAppendMode(value){this._settings.appendMode=value,await this.save()}get onlySyncBookmarksWithHl(){return this._settings.onlyBookmarksWithHl}async setOnlySyncBookmarksWithHl(value){this._settings.onlyBookmarksWithHl=value,await this.save()}get enablePreventMovingExistingFiles(){return this._settings.preventMovingExistingFiles}async setEnablePreventMovingExistingFiles(value){this._settings.preventMovingExistingFiles=value,await this.save()}get syncDeleteFiles(){return this._settings.syncDeleteFiles}async setSyncDeleteFiles(value){this._settings.syncDeleteFiles=value,await this.save()}get syncDeleteUseTrash(){return this._settings.syncDeleteUseTrash}async setSyncDeleteUseTrash(value){this._settings.syncDeleteUseTrash=value,await this.save()}get enableCollectionsFolders(){return this._settings.collectionsFolders}async setEnableCollectionsFolders(value){this._settings.collectionsFolders=value,await this.save()}get isConnected(){return this._settings.isConnected}get username(){return this._settings.username}async setIsConnected(connected,userName){this._settings.isConnected=connected,this._settings.username=userName,await this.save()}get highlightsFolder(){return this._settings.highlightsFolder}async setHighlightsFolder(path){this._settings.highlightsFolder=path,await this.save()}get enableCollectionGroups(){return this._settings.collectionGroups}async setEnableCollectionGroups(value){this._settings.collectionGroups=value,await this.save()}get contentTemplate(){return this._settings.template}async setContentTemplate(template){this._settings.template=template,await this.save()}get metadataTemplate(){return this._settings.metadataTemplate}async setMetadataTemplate(template){this._settings.metadataTemplate=template,await this.save()}get filenameTemplate(){return this._settings.filenameTemplate}async setFilenameTemplate(template){this._settings.filenameTemplate=template,await this.save()}get syncCollectionsList(){return Object.values(this._settings.syncCollections)}get syncCollections(){return this._settings.syncCollections}get syncCollectionsSeparated(){let sysCollectionIdSet=new Set(SYSTEM_COLLECTIONS.map(col=>col.id)),sysCollections=[],userCollections=[];for(let[key2,collection]of Object.entries(this._settings.syncCollections))sysCollectionIdSet.has(collection.id)?sysCollections.push([key2,collection]):userCollections.push([key2,collection]);return sysCollections.sort((a,b)=>a[1].title.localeCompare(b[1].title)),userCollections.sort((a,b)=>a[1].title.localeCompare(b[1].title)),{sysCollections,userCollections}}async setSyncCollections(collections){let syncCollections={};for(let collection of collections){let{id,title}=collection,collectionKey=id.toString(),targetCollection=this._settings.syncCollections[collectionKey],parentId=collection.parentId?collection.parentId:void 0;targetCollection===void 0?syncCollections[collectionKey]={id,title,sync:!1,lastSyncDate:void 0,parentId}:(targetCollection.title=title,targetCollection.parentId=parentId,syncCollections[collectionKey]=targetCollection)}this._settings.syncCollections=syncCollections,this._settings.autoSyncAllCollections?await this.setAllCollections(!0):await this.autoCheckNestedCollections(),await this.save()}async toggleCollectionSync(id){let targetCollection=this._settings.syncCollections[id];targetCollection&&(targetCollection.sync=!targetCollection.sync,this._settings.autoSyncNewNestedCollections&&await this.setAllChildCollections(targetCollection.id,targetCollection.sync),await this.save())}async setCollectionSearch(id,search){let targetCollection=this._settings.syncCollections[id];targetCollection&&(targetCollection.search=search,await this.save())}async resetAllCollectionSyncHistory(){for(let collection of Object.values(this._settings.syncCollections))collection.lastSyncDate=void 0;await this.save()}async updateCollectionLastSyncDate(id,date5){let targetCollection=this._settings.syncCollections[id];targetCollection&&(targetCollection.lastSyncDate=date5,await this.save())}get autoSyncInterval(){return this._settings.autoSyncInterval}async setAutoSyncInterval(minutes){this._settings.autoSyncInterval=minutes,await this.save()}get enableSyncNotices(){return this._settings.autoSyncSuccessNotice}async setEnableSyncNotices(value){this._settings.autoSyncSuccessNotice=value,await this.save()}get enableAutoEscape(){return this._settings.autoescape}async setEnableAutoEscape(value){this._settings.autoescape=value,await this.save()}get enableAutoSyncAllCollections(){return this._settings.autoSyncAllCollections}async toggleSyncAllCollections(){let newValue=!this._settings.autoSyncAllCollections;this._settings.autoSyncAllCollections=newValue,await this.setAllCollections(newValue),await this.save()}get enableAutoSyncNewNestedCollections(){return this._settings.autoSyncNewNestedCollections}async toggleAutoSyncNestedCollections(){let newValue=!this._settings.autoSyncNewNestedCollections;this._settings.autoSyncNewNestedCollections=newValue,await this.autoCheckNestedCollections(),await this.save()}getSyncCollectionById(id){return this._settings.syncCollections[id]}async migrateSettings(){this._settings=Object.assign({},DEFAULT_SETTINGS,await this._plugin.loadData()),!import_semver2.default.eq(this._settings.version,VERSION3)&&(import_semver2.default.lt(this._settings.version,"0.0.18")&&"dateTimeFormat"in this._settings&&delete this._settings.dateTimeFormat,new BreadkingChangeModal(this._app,this._settings.version),this._settings.version=VERSION3,await this.save())}async load(){await this.migrateSettings();let safedSettings=ZPluginSettings.safeParse(await this._plugin.loadData());safedSettings.success?this._settings=safedSettings.data:(new import_obsidian9.Notice("Raindrop Highlight: Settings are corrupted. Resetting to default."),this._settings=DEFAULT_SETTINGS,await this.save())}async save(){await this._plugin.saveData(this._settings)}flattenCollectionChain(){let collectionChainMap=new Map,parentMap=new Map;for(let collection of this.syncCollectionsList)parentMap.set(collection.id,collection.parentId);for(let collection of this.syncCollectionsList){let collectionChain=[],curParentId=collection.parentId;for(;curParentId!==void 0;)collectionChain.push(curParentId),curParentId=parentMap.get(curParentId);collectionChainMap.set(collection.id,collectionChain)}return collectionChainMap}async autoCheckNestedCollections(){if(!this._settings.autoSyncNewNestedCollections)return;let collectionChainMap=this.flattenCollectionChain();for(let[collectionId,parentIds]of collectionChainMap.entries()){let targetCollection=this._settings.syncCollections[collectionId.toString()];if(targetCollection)for(let parentId of parentIds){let parentCollection=this._settings.syncCollections[parentId.toString()];if(parentCollection!=null&&parentCollection.sync){targetCollection.sync=!0;break}}}}async setAllCollections(sync){let sysCollectionIdSet=new Set(SYSTEM_COLLECTIONS.map(col=>col.id));for(let[,collection]of Object.entries(this._settings.syncCollections))sysCollectionIdSet.has(collection.id)||(collection.sync=sync)}async setAllChildCollections(categoryId,sync){let collectionChainMap=this.flattenCollectionChain();for(let[collectionId,parentIds]of collectionChainMap.entries()){let targetCollection=this._settings.syncCollections[collectionId.toString()];targetCollection&&parentIds.includes(categoryId)&&(targetCollection.sync=sync)}}};var RaindropPlugin=class extends import_obsidian10.Plugin{constructor(app,manifest){super(app,manifest),this.api=new RaindropAPI(this.app),this.raindropSync=new RaindropSync(this.app,this,this.api),this.settings=new RaindropPluginSettings(this.app,this)}async onload(){await this.settings.load(),this.settings.enableRibbonIcon&&this.addRibbonIcon("cloud","Sync Raindrop bookmarks from last sync time",async()=>{this.settings.isConnected?await this.raindropSync.sync({fullSync:!1}):new import_obsidian10.Notice("Please configure Raindrop API token in the plugin setting")}),this.addCommand({id:"raindrop-sync-new",name:"Sync bookmarks from last sync time",callback:async()=>{await this.raindropSync.sync({fullSync:!1})}}),this.addCommand({id:"raindrop-sync-all",name:"Sync all bookmarks (full sync)",callback:async()=>{await this.raindropSync.sync({fullSync:!0})}}),this.addCommand({id:"raindrop-sync-this",name:"Sync this bookmark",callback:async()=>{let file2=this.app.workspace.getActiveFile();await this.raindropSync.syncSingle({file:file2})}}),this.addCommand({id:"raindrop-show-last-sync-time",name:"Show last sync time",callback:async()=>{var _a9;let messages=[];for(let collection of this.settings.syncCollectionsList)collection.sync&&messages.push(`${collection.title}: ${(_a9=collection.lastSyncDate)==null?void 0:_a9.toLocaleString()}`);messages.length===0?new import_obsidian10.Notice("No collections are being synced."):new import_obsidian10.Notice(messages.join(`
`))}}),this.addCommand({id:"raindrop-open-link",name:"Open link in Raindrop",callback:async()=>{var _a9;let file2=this.app.workspace.getActiveFile();if(file2){let fmc=(_a9=this.app.metadataCache.getFileCache(file2))==null?void 0:_a9.frontmatter;try{let raindropId=zod_default.coerce.number().parse(fmc==null?void 0:fmc.raindrop_id),bookmark=await this.api.getRaindrop(raindropId);window.open(`https://app.raindrop.io/my/${bookmark.collectionId}/item/${bookmark.id}/edit`)}catch(e){new import_obsidian10.Notice("This is not a Raindrop bookmark file")}}else new import_obsidian10.Notice("No active file")}}),this.addCommand({id:"raindrop-manage-collection",name:"Manage collections to be synced",callback:async()=>{let notice=new import_obsidian10.Notice("Loading collections...");await this.raindropSync.syncCollectionMeta(),notice.hide(),new CollectionsModal(this.app,this)}}),this.addSettingTab(new RaindropSettingTab(this.app,this,this.api,this.settings)),this.settings.autoSyncInterval&&await this.startAutoSync()}async onunload(){this.clearAutoSync()}clearAutoSync(){this.timeoutIDAutoSync&&(window.clearTimeout(this.timeoutIDAutoSync),this.timeoutIDAutoSync=void 0),console.info("Clearing auto sync...")}async startAutoSync(minutes){let minutesToSync=minutes!=null?minutes:this.settings.autoSyncInterval;minutesToSync>0&&(this.timeoutIDAutoSync=window.setTimeout(async()=>{await this.raindropSync.sync({fullSync:!1}),await this.startAutoSync()},minutesToSync*6e4)),console.info(`StartAutoSync: this.timeoutIDAutoSync ${this.timeoutIDAutoSync} with ${minutesToSync} minutes`)}};
/*! Bundled license information:
nunjucks/browser/nunjucks.js:
(*! Browser bundle of nunjucks 3.2.4 *)
moment/moment.js:
(*! moment.js *)
(*! version : 2.30.1 *)
(*! authors : Tim Wood, Iskren Chernev, Moment.js contributors *)
(*! license : MIT *)
(*! momentjs.com *)
*/
/* nosourcemap */